Think about all the machines you use during a year, all of them, from a toaster every morning to an airplane every summer holiday. Now imagine that, from now on, one of them would fail every day. What impact would that have? The truth is that we are surrounded by machines that make our life easier, but we also get more and more dependent on them. Therefore, the quality of a machine is not only based on how useful and efficient it is, but also on how reliable it is. And together with reliability comes maintenance.
When the impact of a failure cannot be afforded, such as a malfunctioning airplane engine, the machine should be subjected to preventive maintenance. Maintenance becomes a tedious process with an increase in the complexity of the machine, with many components working together influencing each others' lifetime. In such a system how can one predict the right moment for maintenance so that the components are not prematurely but the whole machine works reliably. There arises the importance of preventive maintenance.
In this solution, we collect all the possible data of a machine. Using the Brainium widgets and Machine learning algorithms the collected data is processed. The collected data with historic characteristics can be used for predictive maintenance.
Consider a machine say, a motor. We can find all the properties like temperature, vibrations, magnetic field, sound intensity, etc produced by a motor using sensors on the SmartEdge Agile board. The data is directly passed and processed by Brainium portal widgets. Using the historical and static characteristics one can choose any one of following the predictive maintenance strategies.
1. Regression models to predict remaining useful lifetime (RUL): Based on the historic characteristics of the system and on how it behaves now (static characteristics), the remaining useful time can be predicted. Assuming the degradation process to be smooth.
2. Classification models to predict failure within a given time window: In this strategy, the data needed are more or less the same. But the major difference is that since we are defining a time window the degradation process shouldn't be smooth.
3. Flagging anomalous behavior: If the degradation process is very rapid or there are too many types of failures or there are only a few failure data we define the collected data under normal conditions to be normal and any change in normal behavior is notified.
In our solution, we use historical data and define it to be normal behavior. And whenever a violation from this behavior is noted the maintenance team is notified. The team can visualize the current data and historical data and can compare and analyze the behavior and necessary maintenance can be taken to avoid failures.
Using the historical data and the live data we can detect,
- Normal Working Mode
- Irregular vibrations (due to unbound screws or anything similar)
- Heating Issues (due to internal short circuits or anything similar.
Also by collecting the parameters of the motor like temperature, magnetic field, sound pattern, and by processing them using ML algorithms we can predict the next expected maintenance time to a good extent.
HardWare SetUpAs stated earlier we are using an AC motor operating at 220V. A motor is a basic part of any of large machinery so the elemental motor is a good case study.
We mount SmartEdge Agile on the motor and fix it firmly.
We use Raspberry Pi as the output UI for users to analyze the machine. The python program running in Raspberry Pi collects data from brainium portal and processes it and enables users to analyze the machine. We use Raspberry Pi as the output UI for users to analyze the machine.
SoftwareGetting Started With Brainium
To use our SmartEdge Agile device, first, we need o tocreate an account on the Brainium platform. Then we can download the Brainium Gateway companion app to our phone and use our newly created account to log into it. The phone will act as a gateway, between the Brainium Portal and our AI devices connected over Bluetooth.
Predictive Maintenance
After setting up brainium gateway let's build a new project. Then go to PdM panel and create a new PdM workspace
Initial Learning stage
In this stage, the platform tries to learn how our device normally operates. It tries to identify stationary(states) and dynamic(transitions between states)patterns, based on the sensor data of the SmartEdge Agile.
In our case, we have mainly 3 normal states
1. Turning On
2. Normal Working Mode
3. Turning Off
Also, we have added certain other patterns that may be generated during working such as vibration pattern with unbound or loose screws, vibrations with something stuck inside motor, etc.
Once we have got enough data patterns let's generate the model and apply it to SmartEdge Agile.
Continuous Learning stage
In this stage, the portal keeps on learning new patterns to get complete knowledge about the working of our device. The more patterns we detect the more accurate will be the prediction.
Rules and Alerts
After the application of the model to the device, we want to enforce certain rules for the portal to respond. We can have two types of rules
- AI rules
AI rules are those rules that can be applied for motion recognition and PdM. In our project, we enforce certain rules. According to these rules, the portal produces alerts. - Normal rules
AI rules are those rules that can be applied for sensors. In our project, we enforce certain rules. According to these rules, the portal produces alerts.
MQTT over WebSocket API
MQTT API provides access to the data which has been sent from user's devices in real-time.
How to connect
MQTT API is available over WebSockets by the following URI: wss://ns01-wss.brainium.com and it's secured. The MQTT protocol provides username and password fields in the CONNECT message for authentication. The client has the option to send a username and a password when it connects to an MQTT broker. For connection to Brainium Platform this option is a must:
- the username has the specified static value : oauth2-user.
- the password is different for each user and equals to external access token (it's available in the user's profile).
Python Code
We run this python code in Raspberry Pi which waits for alerts to be triggered in the brainium portal. When an alert is triggered we get the value in the program. After the value is received, the program checks for anomalous(faulty behavior) PdM pattern and if any triggers an alert in an android application or any other suitable UI. Also, the sensor's data are saved into cloud for further processing. From the sensory data by using ML algorithms time before the next failure can be approximated.
WorkingLet's see the working
Mobile App
We are providing a Mobile app that enables users to analyse the machine. For more details about mobile app please visit our GitHub repository
Comments