Sewing Factory IoT War (3) : Sensor Outlier Detection and Output Confirmation

Sewing Factory IoT War series: (1) The Battle Between Real-Time Data and the Cloud · (2) The Secret Behind a Real-Time-Looking Web · (3) Sensor Outlier Detection and Output Confirmation

“How many pieces did our line produce yesterday?”
In many factories we have seen the line leader’s handwritten daily production report, the office Excel sheet and the inspection count give three different answers to this question. None of the three records is wrong; the gap comes from counting at different points in time and at different operations.
When measurement equipment is installed to remove this gap, the first question from the floor is “Can we accept this quantity as output?” The short answer is no: raw sensor data is never used as output as-is, and SIJE confirms only the values that pass outlier detection.
Two Signals Collected by Monolog V2
V1 collected signals through a vibration sensor attached to the sewing machine and a pressure pedal on the floor; V2 replaces them with a tablet camera and a pedal angle sensor.
- Tablet camera (vision inference): The tablet in front of the operator reads the needle point and separates sewing time from handling time, when the fabric is picked up, turned and put down.
- Pedal angle sensor: An angle sensor mounted on the side of the pedal plate measures how far the pedal is pressed and sends the value to the tablet over a wired connection.
The two signals are combined to split each cycle into VA (actual sewing) and NVA (handling). In V2 the tablet is therefore not a display but a sensor hub and communication gateway: data flows from the angle sensor → wired → tablet (edge aggregation) → WiFi → server, and most of the aggregation is processed on the tablet.


Types of Sensor False Detection
Sensors record every input signal without judging whether it is actual sewing work, so both signals produce false detections depending on floor conditions.
The camera logs a stop when the operator’s hand briefly leaves the frame, logs motion that never happened when the next operator’s arm enters the edge of the frame, and loses accuracy at window-side workstations when afternoon backlight gets strong.
The angle sensor spikes when the pedal is pressed without sewing or the foot trembles on it, or when the cable contact is momentarily unstable, and an idle run for maintenance produces a regular signal that looks exactly like sewing.
From the sensor’s side these are all the same kind of input, so separate detection logic is needed to tell actual sewing from false signals.

Spikes and Drops in the Daily Raw Signal
When the daily signal of one workstation is plotted, most of the day moves within a stable range, with a few unexplained spikes and drops.

If a quantity running around 50 pieces per minute suddenly records 180, the operator did not become three times faster; it is a false detection. If it drops to 2, a collection gap such as a tablet reboot is more likely than a work stoppage.
Summing these values inflates daily output, creates abnormal peaks in the efficiency chart, and leaves the floor with no evidence to explain the time slot when a manager asks what happened.
Detection Criteria: Quartiles (IQR) Instead of the Mean
The method is to calculate the normal variation range for each workstation on each day, set upper and lower limits, and exclude values outside those limits from output.
The key is how the limits are calculated. The simplest approach takes the mean and adds a deviation band above and below, but the mean is highly sensitive to outliers: a single 180-piece value increases both the mean and the deviation, raising and widening the limits so that the value that should be excluded falls inside the allowed range.
That is why quartiles are used instead of the mean. The day’s values are sorted in ascending order to find the lower 25% point (Q1) and upper 25% point (Q3); the width between them (IQR) is taken as the workstation’s normal variation, and a margin is added to set the upper and lower limits. The median and quartiles barely change when one extreme value is added, so the limits hold.
Limits are calculated separately for each workstation and each day. Cycle times differ by operation even within the same line, so applying the same limits to an overlock operation and a pattern operation excludes normal values on one side and lets outliers pass on the other.

First-Pass Screening on the Tablet (Edge)
Part 1 described the in-factory local gateway as the “middle manager” that protects sewing data. V2 adds a step in front of it: the tablet performs the first-pass screening for its own workstation.
First, excluding outliers before transfer costs less. Sending unnecessary signals to the server and removing them there consumes more bandwidth and storage, and factory internet capacity is usually tight.
Second, the ANDON light has to be right immediately. The ANDON light at each workstation is a 10-segment gauge whose color changes with achievement against target, and if a corrected value comes down from the server minutes later and the light changes color late, the line leader stops using it as a management reference. The outlier-free value must be reflected on the light from the start.

Excluded Data Is Kept, Not Deleted
Excluded values are not deleted; they are flagged as “excluded” and stored separately.
Outliers are often an early sign of equipment problems. Reboot sections at the same workstation and the same time slot for several days point to a maintenance issue rather than a data error, unstable camera detection at one workstation calls for rechecking the tablet angle or lighting, and repeated angle spikes mean the cable connection should be checked first. Deleting excluded data removes this maintenance evidence at the same time.

When the Floor Accepts System Numbers as Output
The hardest stage of introducing a system to a factory is not installation but getting the floor to accept system numbers as its own output.
Once a complaint that “the system quantity is wrong” is confirmed even once, the floor stops using the monitor for management; conversely, if the team can answer an odd value with “this value was excluded for this reason,” trust in the numbers is established from that point.
Installing measurement equipment is the first stage, defining how much of the collected signal counts as output is the next, and in practice the second stage takes longer.

Sewing Production Glossary
VA / NVA
A cycle split into value-added time spent actually sewing the fabric (VA) and non-value-added handling time spent picking up, turning and putting down the fabric (NVA). Most improvement potential lies in NVA.
Raw Signal
The unprocessed value sent by a sensor.
Outlier
A value far outside the normal variation range under the same conditions, caused by equipment malfunction, surrounding interference or abnormal work.
IQR (Interquartile Range)
The width between the lower 25% point and the upper 25% point when values are sorted in ascending order. Less affected by extreme values than the mean, it is used as the basis for outlier detection.
Edge Aggregation
Processing aggregation on field equipment (the tablet in V2) before sending data to the server.
The structure that carries raw signals from the factory to the cloud was covered in part 1.
👉 Sewing Factory IoT War (1) : The Battle Between Real-Time Data and the Cloud
The next article explains why the same outlier-free numbers should be displayed differently on the line-end monitor and the headquarters dashboard.
👉 Sewing Factory IoT War (4) : Same Data, Different Screens (coming soon)
