From IoT Data to Intelligent Action: Building Reliable AIoT Systems
The full guide to industrial sensor pipelines, predictive maintenance, edge AI and the engineering decisions that make for reliable AIoT applications.
Introduction
The factory sensor is detecting a spike in motor temperature. Do we have a faulted machine, a machine running at a heavier load, or a noisy measurement?
Getting the reading is simple. Figuring out what it means and what to do about it is the hard engineering.
That is where Artificial Intelligence of Things (AIoT) comes in. Here, connected devices and sensor networks are combined with artificial intelligence to generate operations data and inform decision-making processes.
Use cases include predictive maintenance, asset monitoring, quality inspection and energy management. But creating a trustworthy AIoT solution is about more than just attaching a sensor to a machine-learning model. You'll have to create a dependable data pipeline, determine the right deployment architecture, manage failures, and measure model performance in live conditions.
- Understanding the AIoT Architecture
An industrial AIoT application comprises five tiers.
Hardware and sensing layer: Sensors are used to make measurements of temperature, vibration, pressure, electrical current, etc. The precision and calibration, sampling rate, and surrounding environment of the sensors are critical to the quality of all downstream analysis.
Connectivity layer: Measurements are transmitted from the device via protocols like MQTT or HTTP, or industrial communication protocols. The decision should be made on the basis of required latency, reliability, interoperability, and security.
Data points coming in are checked, synchronized, time stamped, normalized, and made ready to analyze. The processing pipeline has to support missing measurements, duplicate messages, delayed events, and unit inconsistencies.
The trained model processes the preprocessed data to generate results like anomaly scores, classifications, or states of equipment. Inference is performed either on the edge device, gateway, or in the cloud.
Application layer: Reporting in dashboards, moni toring applications, and maintenance processes. Each alert should have a specific meaning and prescribed action rather than just increasing a number in a dashboard.
However, it can also make for an implementation that is easier to test, maintain, and troubleshoot.
- Start With Reliable Sensor Data
Prior to training any model developers would need to determine that data was usable prior to the information being consumed.
Think of a sensor where the temperature reading is in Celsius but the data is being received in Fahrenheit. If the values aren't converted properly during processing, you may end up with an inaccurate assessment. Similarly a timestamp error or a sensor reading outside of the valid value range can lead you astray.
A simple Python validation check could be:
``python
def validate_temperature(value):
if value is None:
return None
try:
temperature = float (value)
except (Type Error, Value Error):
return None
Illustrative limits, not universal safety thresholds.
if not -40 <= temperature <= 150:
return None
return temperature
reading = validate_temperature("72.4")
if reading is None:
print("Invalid reading: investigate the input")
else:
print(f"Accepted temperature: {reading:.1f} °C")
``
The ranges used in this example are examples only. Actual systems must use ranges suitable to the sensor, equipment and conditions.
This function too fails to identify all invalid readings. A reading may be within an acceptable range, but wrong. Production systems will require calibration verification, timestamping, device id, duplicate detection, limits on nonspecific change etc.
Important distinction: Input validation is a data-quality step not an AI prediction. Good AI requires good data handling plus a trained and verified model.
- Example: Predictive Maintenance
Unexpected equipment failures that can stall production and raise repair costs: Predictive maintenance tries to leverage information from equipment that can predict potential issues before failure occurs.
Suppose for example an industrial motor being tracked via the temperature and vibration sensors.
A potential workflow might be:
- Gathering historical data from sensors and maintenance and repair records.
- Aligning timestamps and checking data quality.
- Determining a normal operating level.
- Train and test on proxy data.
- Applying inference to an edge gateway or cloud service.
- Reminding maintenance personnel of abnormal readings or models.
- Matching alerts to inspection results and actual equipment outcomes.
The model might also find an anomaly from the vibration data and temperature data. Then, the technician can do a visual inspection of the equipment to see if maintenance is required.
The system does not need to be able to tell when something is about to fail to be a good tool: just detecting that something is starting to go wrong could give teams an opportunity to look into it a little earlier.
But you need to compare it to real results. False positives can cost you maintenance time; false negatives may mean you don't find real issues. The quality assurance of your pilot study should include not only model performance metrics, but operational measures, like time off-line and confirmed maintenance findings.
- Edge AI or Cloud AI?
Where inference happens is a crucial design choice.
Edge AI – at the equipment level Data at the source – or, at least, locally – processing can help avoid network reliance and latency, but also reduce the volume of raw data that needs to be sent elsewhere. Considerations include limited processing power, management, and deployment.
All resources and model management from a central location, ready to scale. Benefits include multi-facility data analysis and heavy workload processing. Developers need to be aware of considerations like latency, cost of bandwidth, connectivity, and compliance.
A hybrid approach with complementary capabilities is also possible. For example, edge devices can discard some readings and identify critical exceptions at the local level; while cloud applications can provide fleetwide reports, model training, and historical analysis.
Different architectures are needed for the specific needs of the application. Systems with response-time or safety critical demands must be designed and validated with special care.
- Engineering Challenges Beyond the Model
Data quality: The presence of missing values, sensor drift, data in various units of measurements or wrong timestamps can spoil results.
An equipment malfunction might be an infrequent event which provides very limited number of instances for training models. The evaluation should consider the real world operating situation.
As the machinery, workload, and environment change over time, performance can decrease. Keep an eye on the input distributions and their resulting output, and reevaluate the model if the distribution shifts.
Connectivity failures: Network failures require appropriate buffering, retries, message id's and idempotent processing when necessary.
Security: Employ device authentication, encrypt data in transit as applicable, least-privilege access, secure updates, and network segmentation appropriate for the environment.
Notional notifications: Operators want context. Show an alert and tell us what you've found and how high a priority this seems to be, so that you help determine how to look into it.
These issues ought to be considered at design time, rather than after the system has been installed.
- A Practical Development Checklist
Before scaling an AIoT project, developers should:
- For example, a predefined workhour loss reduction from unplanned downtime.
- Set a benchmark: measure your current output before you begin to change it.
- Validate the pipeline: simulate missing data, wrong values, late messages, and disconnects of device.
- Be practical: Test on the machine(s) and the conditions where the equipment will really be used.
- Monitor quality of inputs, results and outcomes of the model, as well as system errors.
- Recovery plan: Version models and configurations; and develop rollback procedures.
- Keep humans in the loop: Mandate suitable oversight prior to critical maintenance or operational decisions.
For devices that impact physical safety, AI decisions must not circumvent safety controls. Automated behaviors require both safety mechanisms and environment-specific testing.
Conclusion
AIoT combines sensor data with analytics, paving the way for enhanced industrial insights and decision support. In addition to predictive maintenance, the same engineering concepts hold for energy monitoring, inspection, quality and more industrial applications.
The most important concern for developers is not which model is most complicated.
https://apertureventurestudio .com/
Top comments (0)