When industrial equipment breaks, the resulting problem often is not the cost of replacing that equipment but the forced downtime. A production line standing still may mean thousands of dollars lost every minute. Performing regular maintenance can help avoid unplanned downtime, but it does not guarantee that equipment will not fail.
What if the machine could indicate when one of its parts was about to fail? What if the machine could even tell you which part needed to be replaced? Unplanned downtime would be reduced considerably. Planned maintenance would be performed only when necessary rather than at fixed intervals. This is the goal of predictive maintenance: avoiding downtime by using sensor data to predict when maintenance is necessary.
At the heart of developing any predictive maintenance algorithm is sensor data, which can be used to train a classification algorithm for fault detection. Meaningful features are extracted from this data in a preprocessing step and used to train a machine learning algorithm for predictive maintenance. This algorithm is exported to simulation software such as Simulink® for verification and then deployed as code to the control unit of the machine.
It is not always possible to acquire data from physical equipment in the field under typical fault conditions. Permitting faults to occur in the field may lead to catastrophic failure and result in destroyed equipment. Generating faults intentionally under more controlled circumstances may be time-consuming, costly, or even unfeasible.
A solution to this challenge is to create a digital twin of the equipment and generate sensor data for various fault conditions through simulation. This approach enables engineers to generate all sensor data needed for a predictive maintenance workflow, including tests with all possible fault combinations and faults of varying severity.
This article discusses the design of a predictive maintenance algorithm for a triplex pump using MATLAB®, Simulink, and Simscape™ (Figure 1). A digital twin of the actual pump is created in Simscape and tuned to match measured data, and machine learning is used to create the predictive maintenance algorithm. The algorithm needs only the outlet pump pressure to recognize which components or combinations of components are about to fail.