Why Edge AI Needs a Relational Data Model

Trace Production Faults Back to Machine Conditions with the ITTIA DB Relational Model

A packaging line rejects a sealed package. The inspection system records a weak seal. The controller records when the sealing actuator moved, and sensors capture pressure and temperature throughout the cycle. To investigate the reject, an engineer needs to know which readings belonged to that package, what phase the machine was in, and which recipe revision was active.

The ITTIA DB relational model lets developers record those relationships inside MPU-based industrial equipment. Engineers can start with a failed inspection and retrieve the conditions under which the product was made. That same history lets them compare the failed cycle with successful cycles that ran under comparable conditions. Connect each reject to the recipe, machine state, and sensor readings from its production cycle so engineers can see what changed.

Give every production cycle an identity

Assign each cycle a unique ID and use it to link inspection results, machine states, and sensor readings. Store the recipe revision on the cycle record so it reflects the settings in effect when production occurred.

Record 

What it captures 

Production cycle

Cycle ID and the active recipe revision

Recipe revision

Versioned settings such as target seal pressure and dwell time

Machine phase

Cycle ID, phase name, and start and end times

Sensor sample

Cycle ID, sample time, signal name, and measured value

Inspection result

Cycle ID, inspection outcome, and reason for rejection 

 

The cycle ID identifies which production event a reading belongs to. The timestamp identifies when within that event it occurred. Together, they let an engineer isolate readings from the sealing phase even when the machine handles several packages at once. Versioned recipes also preserve the settings used for older cycles after an operator changes the current recipe.

Sample SQL to investigate a failed seal

The following example assumes the application records timestamps on a common clock and stores seal pressure in kilopascals. Given a specific rejected cycle, the query retrieves the recorded pressure samples during its sealing phase alongside the target pressure from the recipe revision used for that cycle.

-- Example cycle ID from the reject record.

SELECT
   cycle.cycle_id,
   inspection.reject_reason,
   recipe.revision_id,
   recipe.target_seal_pressure_kpa,
   phase.start_ms AS seal_start_ms,
   sample.sample_ms - phase.start_ms AS elapsed_in_seal_ms,
   sample."value" AS measured_pressure_kpa
FROM production_cycle AS cycle
JOIN recipe_revision AS recipe
   ON recipe.revision_id = cycle.recipe_revision_id
JOIN inspection_result AS inspection
   ON inspection.cycle_id = cycle.cycle_id
JOIN machine_phase AS phase
   ON phase.cycle_id = cycle.cycle_id
JOIN sensor_sample AS sample
   ON sample.cycle_id = cycle.cycle_id
  AND sample.sample_ms >= phase.start_ms
  AND sample.sample_ms < phase.end_ms
WHERE cycle.cycle_id = 10482
  AND inspection.inspection_name = 'seal_integrity'
  AND inspection.outcome = 'FAIL'
  AND phase.phase_name = 'sealing'
  AND sample.signal_name = 'seal_pressure_kpa'
ORDER BY phase.start_ms, sample.sample_ms;

The result shows how pressure developed relative to the start of sealing. To compare it with a successful run, use a passing cycle from the same recipe revision under comparable operating conditions and align the readings by elapsed_in_seal_ms. If the failed cycle reached target pressure later than the passing cycle, the engineer has a specific lead to investigate, such as actuator timing or the air supply.

Keep diagnostic history on the equipment

An application can use ITTIA DB to store detailed samples around recent faults and retain cycle-level summaries longer. With local recording configured, technicians can retrieve the relevant machine history during a network outage. Before deployment, introduce a known reject on the target equipment and verify that a technician can recover the correct recipe revision, phase, and readings. Repeat the check during a recipe change and with overlapping cycles.

A reject code tells the team which inspection failed. The linked production records show what the machine was doing when it made the rejected part and give engineers a basis for checking whether an adjustment improves subsequent runs.

Contact ITTIA to discuss your industrial automation platform or request an ITTIA DB demonstration.

Request Demonstration