Low-cost prototype for bearing failure detection using Tiny ML through vibration analysis
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재
기본 정보
- 저자
- DOI
- 10.1016/j.ohx.2025.e00658
- 저널
- HardwareX
- 발행년도
- 2025
- 발행기관
- Elsevier BV
- 피인용수
- 6
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.ohx.2025.e00658
- 토픽
- Gear and Bearing Dynamics Analysis
- OpenAlex ID
- W4410593882
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (3) 자동차 인테리어 소재
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- vibration analysis, predictive maintenance, Machine Learning, bearing failure detection, TinyML
- 판단 근거
- 본 논문은 진동 분석과 머신러닝을 이용한 베어링 결함 감지 프로토타입에 관한 연구로, 직접적인 제품 연구는 아니나 산업 설비의 예지 보전(Predictive Maintenance) 기술을 다룹니다.
- R&D 활용 포인트
- 자동차 부품(카시트 모듈 등)이나 산업용 컴파운드 제조 공정 설비의 상태를 모니터링하고 고장을 예측하는 스마트 팩토리 및 예지 보전 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 36,609자 중 30,032자 발췌
초록
본문 36,609자
본문 펼치기
섹션 본문 93문단 · 23,358자
Hardware in context
2Vibration analysis in engines has become very important nowadays due to the constant advances in predictive maintenance.It is more feasible to analyze plant elements' behavior than to wait for a failure to occur.These techniques allow for noninvasive or nondestructive analysis of machines to predict when they require part replacements or repairs [1].
3For the development of this prototype, we focused on bearings, as most electrical machines use this type of rotating element.Even under normal scenarios, vibrations can vary depending on the type of failure the bearing has, such as loss of lubrication, wear, missing balls inside, and notches on the raceway (brinelling), among others [2].Although many studies today have focused on vibration analysis in motors, most do so for AC motors, simulating bearing failures and saving the data to train models that allow future predictions [3].On the other hand, research on DC motors employs deep learning algorithms, which have a high consumption of computational resources to achieve correct detection (whether or not a failure is present) [4].They also implement derivatives of the Kalman filter, to which they input the vibrations produced by the rotating element and other plant variables (phase current) to process the data and obtain an accurate result [5].
4In the field of artificial intelligence AI, studies have also been conducted to analyze the vibration obtained from a bearing and classify whether it has any failures using artificial neural network (ANN) and support vector machine (SVM) models, resulting in both being quite effective [6].Alternatively, research has been conducted to analyze the vibrations of bearings using the empirical mode decomposition method (EMD), extracting the most important features to subsequently use a classifier to identify whether there is a failure or not [7].Notably, in industrial environments, vibration measurements are inevitably mixed with noise, which has led to research using (AI) methods based on denoising autoencoders (DAE) to remove the noise and retain important data for signal processing, feature extraction and obtaining classification results [8].
5The role of vibration monitoring in predictive maintenance cannot be overstated.With higher demands for plant efficiency and the complexity of modern machinery, a well-structured maintenance strategy that includes vibration analysis helps detect early signs of equipment deterioration, allowing for planned maintenance and reducing unexpected failures.Monitoring critical components like bearings can predict potential issues, minimizing downtime and repair costs, ultimately enhancing plant productivity and operational efficiency [9].
6Other prototypes or products on the market allow for some tasks, such as vibration analysis.For example, the CMCP601 Demonstration Rotor Kit is a test bench for a motor designed to realistically simulate the vibrations produced by a plant [10].
7This prototype provides a tool for simulating industrial elements and failures at the academic level.Due to the constant development of TinyML (Tiny Machine Learning), we aim to promote the use of AI models to solve problems such as vibration analysis [11].
8Additionally, all types of AI, such as machine learning, are gaining increasing importance in all areas of higher education today.AI is used to improve teaching and learning, create enhanced educational experiences, streamline processes, and accelerate academic research [12].
9Currently, it is very common for academic programs that encourage this type of technology in embedded systems to conduct practices with common sensors (microphone, camera, accelerometers, and gyroscopes, among others) that do not go beyond creating a simple dataset and an AI model to give a glimpse of the great potential of this field.Based on this, we decided to offer the opportunity to bring the industry into the academic environment and simulate these analyses as if it were a real plant.
10Additionally, low-cost construction materials, such as PLA (polylactic acid) and acrylic, were chosen to make the prototype replicable and implementable in various courses that encourage these technologies.Related to the other components like inertial Ultimately, the above will foster the use and applications of AI and embedded devices (TinyML) and develop STEM skills (Science, Technology, Engineering, Mathematics).
Hardware description
11This prototype operates due to a DC motor connected to a variable 24-volt power supply.The motor's rotation is transmitted through a shaft, utilizing a flexible coupling that connects the motor shaft to the bearing shaft.Once the power supply is turned on, the bearing starts to rotate, producing vibrations in the setup, where an inertial sensor can be attached (our prototype allows the connection of different types of sensors) for the respective analysis.By collecting data from bearings in good condition or with defects, a Machine Learning model can be created to classify the vibrations between a bearing with or without defects.Fig. 1 shows the general concept of the prototype.The classification model was developed using the Edge Impulse platform, which is specifically designed to support embedded devices such as Arduino, Raspberry Pi, and Jetson, among others.This platform is freely accessible and enables the complete workflow-from data acquisition and model creation to training and deployment-on the target device for effective vibration classification.A major advantage of this approach is that, by allowing the deployment of the trained model directly onto the embedded system, users can display the classification results (i.e., bearing in good condition or with defects) through actuators, screens, or visual indicators.
12The developed prototype has two important subsystems or parts: mechanical and electronic.
Mechanical part
13The mechanical design was created to obtain a portable and low-cost device; therefore, it is 3D printed, and its dimensions are suitable for easy transport.Fig. 1 shows an acrylic base of 225 mm × 200 mm × 3 mm, which supports each of the elements of the setup.The base for the motor and the bearings are designed to be manufactured using 3D printing with PLA material at a thickness of 1.75 mm, so these pieces do not take up much space nor require much material to be printed.
Electronic part
14The entire system is powered by a 24 Vdc power supply, which energizes the motor.However, as mentioned earlier, there is the possibility of connecting different types of inertial sensors; for example, tests were conducted with the MPU6050, the integrated IMU of the Arduino BLE Sense Rev2 (BMI270), and the Arduino BLE Sense (LSM9DS1) [13].Depending on the connected sensor, the implementation of the connection diagram will vary.For Arduino, only a USB cable is needed to transfer data to Edge Impulse, while for the MPU6050, a board like the ESP32 is necessary to send the data collected by the sensor via the client's program.Figs. 2 and 3 below show the motor and the MPU6050 connection diagrams.
15Through this development, interested parties such as students and professors related to artificial intelligence will be able to delve deeper into various concepts, put learned theory into practice, and, most importantly, understand on a small scale the problems that can arise in industries.Additionally, the fact that the prototype includes mechanical and electronic design concepts provides the opportunity to integrate different engineering disciplines or promote others, such as mechatronics.Furthermore, it promotes learning in cutting-edge topics such as artificial intelligence and machine learning, thereby increasing interest in TinyML and showcasing the significant capabilities of embedded devices in developing industrial applications or AI models.
16For all interested parties, this device can help with:
17• Simulating industrial processes on a small scale.
18• Recreating scenarios of vibration analysis and bearing failures.
19• Learning concepts of artificial intelligence and machine learning.
20• Promoting the use of embedded devices to implement AI models.
Design files summary
21The designed files for the device are presented below in Table 1, and a brief description of each will be provided.
Bill of materials summary
22All prices presented below in Tables 2 and 3 are in US dollars.Additionally, Table 3 presents the additional materials (sensors and related materials used to validate the bank's operation).
Build instructions
23The following are the steps to construct the device:
241. Perform the 3D printing of the files with the ".STL" extension (located in section 3).After printing, verify that the pieces fit correctly together; otherwise, post-processing is necessary, depending on the quality of the finished piece (sanding some walls and removing supports).2. Upload the file "AcrylicBase.DXF" to a laser cutter and place the acrylic piece to make the respective holes to secure the test bench later.3. Cut the steel shaft using a saw to obtain two smaller, 100 mm long shafts.4. Prepare all components, such as screws, nuts, and washers, for assembling the parts.5. Insert the DC motor into the 3D printed piece called "MotorBase.STL," aligning the holes on the front of the motor with those on its base.Once correctly positioned, place the M3 × 10 mm screws along with the washers.Fig. 4 provides a detailed view of the above-mentioned step.6.Once the motor is secured to its base, it should be screwed to the acrylic using the four holes as a guide (see Fig. 5 for more details on positioning the piece).Use 4 M5 × 15 mm screws and their respective M5 nuts to secure them to the bottom of the acrylic (see Fig. 6).7. Position the 3D printed piece called "BearingBase1.STL" on the acrylic to screw it in with two M5 × 15 mm screws and their respective nuts.See Fig. 7 for more information on positioning the piece for assembly.8. Insert the flexible coupling into the motor shaft (see Fig. 8 for more detail on proper positioning).It leaves space for later securing it to the bearing shaft.9. Insert the 100 mm long steel shafts into the two bearings and place the latter in the designated space in the "BearingBase1.STL" piece.See Fig. 9 for more details on how to position the bearing.10.Move the flexible coupling to position it between the motor shaft and the bearing shaft.Then, secure the coupling to the shafts with a 5/64″ Allen wrench using the four screws located on the coupling (see Fig. 10 for more detail).11.Insert the mini protoboard into the top part of the 3D printed piece called "BearingBase2.STL," using the shape of the component as a guide.Once done, position "BearingBase2" on top of "BearingBase1," using the holes in the latter as a guide.12. Place the four base supports using the four holes located at the corners of the test bench as a guide and secure them with the remaining four M5 * 15 mm screws and nuts.13.The user can connect their preferred sensor to the mini protoboard.
25The finished physical device should look like the one shown in Fig. 11.
Bearing replacement
261. Using the 5/64″ Allen wrench, loosen the coupling screws to release both shafts.Push the flexible coupling back completely onto the motor shaft, freeing the bearing shaft (see Fig. 8).2. Carefully loosen the top cover of the bearing support (BearingBase2).This will allow you to release the entire bearing with its shaft.3. Once the space is free, place the other bearing (defective or non-defective, as the case may be) to continue data collection.4. Reposition the flexible coupling between both shafts (bearing and motor) to secure them (follow step 10, shown earlier in this section).
Operation instructions
27A specific workflow must be followed to properly operate the device, encompassing everything from data collection to model conversion and validation testing.A schematic diagram outlines the step-by-step procedure for operating the prototype (see Fig. 12).
28It is important to highlight that the Edge Impulse platform is employed as the primary tool to carry out each of these steps successfully.The following section outlines the operational instructions that must be followed to comply with the previously presented workflow.In this context, the subsequent points pertain to data acquisition and preprocessing.
291. Connect the DC motor to the 24-volt power supply using alligator clips to secure the device's connection tabs (see Fig. 13).2. Connect the desired inertial sensor, either MPU6050 (see Fig. 3 for connection schematic) or one of the Arduinos (BLE Sense or BLE Sense Rev 2) via USB directly to the computer.3. Once the connections for the power supply and the sensor are ready, turn on the power supply and start collecting data.4. Access Edge Impulse online via the link: https://edgeimpulse.com/ 5. Log in on the homepage using the "Log In" section.Create one if you do not have an account (see Figs. 14 and 15).6.Once logged in, click the "Create new Project" option (see Fig. 16).Name the project and proceed to the next step.7.In the project's main menu, click "Data acquisition" on the left side of the screen (see Fig. 17).At this point, you must follow different steps to connect your chosen sensor to Edge Impulse.The steps for each sensor are detailed below.
Arduino BLE sense or arduino BLE sense rev 2
30a. Connect the Arduino of your choice via USB.b.In the "Data acquisition" tab, specifically under "Collect Data," click on the USB connection icon (see Fig. 18 for more detail).c.In the pop-up tab that appears in the browser, click on the Arduino board (see Fig. 19).d.Verify that the device connects correctly and that the different sensors available on these devices can be selected under "Collect Data" (see Fig. 20).
MPU6050 + ESP32
31a. Using the Arduino IDE, upload the program to read data from the sensor and send it via serial.Paste the text from the "esp32IMU.
32txt" [14] (file located in section 3) into the Arduino IDE to upload it to the ESP32.b.Once the code is uploaded to the board, check the wire connections and proceed to the next step.c.Install the Edge Impulse client via the terminal using the following link: https://docs.edgeimpulse.com/docs/tools/edge-impulsecli/cli-installationd.Verify that the ESP32 is correctly connected via USB to the computer.e.Once the Edge Impulse client is installed, run the following command in the computer terminal: "edge-impulse-data-forwarder."Log in to your Edge Impulse account using your username/email and password (see Fig. 21).f.Once logged in, the client will identify the device connected via the computer's USB ports.If not, select it using the keyboard arrows.Once the device is connected, the client will prompt you to choose the project to send the data read from the sensor (see Fig. 22).g.When the client recognizes the data from the sensor, you will be asked to name each of the incoming variables.For this case, you should label the values as "ax," "ay," and "az" for the three acceleration axes, which are most relevant for this analysis, and name the device (see Fig. 23).h.After this step, go to the Edge Impulse website in the "Data Acquisition" section, where you can select the previously named device and choose the data to be sampled (see Fig. 24).8. Once the sensor is correctly connected, turn on the power supply and collect data by clicking the "start sampling" button.A sampling frequency of 20 Hz is recommended, and each analysis class should be labeled (in this case, bearings with and without defects).See Fig. 25 for more details.9.Each class should take at least 15 to 20 samples.To change the bearing, follow the steps at the end of the previous section.
33Once the initial data collection stage has been completed, the process continues with creating and training a machine learning model, as illustrated in the diagram shown in Fig. 12.
34A multilayer perceptron (MLP) neural network is utilized to classify the fault of bearings.This architecture is included by default within Edge Impulse for such applications.Before passing into the neural network, the input data undergoes a preprocessing step to extract spectral features.The Fast Fourier Transform (FFT) is the recommended method to enhance classification performance in vibration analysis and is therefore adopted in this project.This process results in thirty-nine processed features, which corresponds to thirteen features per axis.Specifically, for each axis, three of these features belong to the time domain, comprising the statistical analyses of Root Mean Square (RMS), Skewness, and Kurtosis.The remaining features are associated with the frequency domain, where spectral analysis is performed to extract the maximum value from the Fast Fourier Transform (FFT) of each window generated from the collected data [15,16].
35Once all the spectral features are extracted, they are fed into the MLP, which has an input layer of size thirty-nine (representing all extracted features), two dense layers (with 20 and 10 neurons, respectively), and an output layer with two neurons corresponding to the classification targets.10.Switch to the "Impulse Design" tab once all the data is collected.This section selects a data processing block and a block to classify the classes.To process the data, click "Add a processing block" and select "Spectral Analysis."In the resulting block, mark only the axes corresponding to acceleration, such as "accX, accY, and accZ."For the "learning block," click on it and select "Classification."Click "Save impulse" (see Fig. 27 to verify the creation of the model).11.As shown in Fig. 27, two new tabs, "Spectral features" and "Classifier," are created in the "Impulse design" section.Click on "Spectral features," click "Save parameters," and then "Generate Features" (see Figs. 13.Click on the "Deployment" section, and in "Search deployment options," look for the device on which you want to run the classification model.The website offers many other options, including an Arduino library for ESP32.See Fig. 31 for more details.14.If you choose an Arduino library for deployment, go to the Arduino IDE and load the library.Once the library is correctly installed, go to the "File" tab, then "Examples," and look for the file name generated by Edge Impulse when exporting the library.Then, select the board you are working with (in the example image, it will be the BLE Sense Rev 2) and the example file named "accelerometer_continuous." See Fig. 32 for more details on the file to select.This way, the model will be uploaded to the chosen board, and the classification will run continuously if powered.
Validation and characterization
36Technical specifications of the prototype are presented below in Table 4: Based on Section 6, Fig. 33 presents a flow chart to illustrate the system's operation regarding the implemented software.This diagram represents the sequence of operations executed after the model is deployed on the Arduino board.
37According to the diagram, the software implemented on the Arduino platform is responsible for several tasks during this model testing stage.The first one is to acquire vibration data through inertial sensors.Three sensors were used: Arduino Nano 33 BLE Sense, Nano 33 BLE Sense Rev 2, and an MPU6050 module connected to an ESP32.
38Once the vibration data is acquired, the software processes the input through FFT spectral analysis and feeds the resulting values into the deployed model.The model then classifies each sample captured by the sensor.The classification result (good bearing or faulty one) is displayed in real time via the Arduino IDE serial monitor.Fig. 34 shows the output data as displayed on the serial monitor.
39Tests were performed before deploying the model (as shown above) using the website's "Live Classification" feature.This feature allows real-time data collection and subsequent classification of the results based on the previously trained model, and it is highly useful for validating the model's correct functioning before deploying it on a device such as Arduino.
40Once the model has been trained, this test can be performed by accessing the "Live Classification" tab in Edge Impulse (see Fig. 35).Upon connecting the sensor, the platform will be ready to capture data and perform the corresponding classification.
41A sample (default of 10 s) is taken to capture vibration data.The platform processes the information through the model and returns the results.Fig. 36 provides more details of the results.
42In the following video, the validation process can be observed, which includes testing from data collection to deployment on an embedded device (Arduino Nano 33 BLE Sense) and MPU6050 with ESP32: https://youtu.be/R4zRcM2mTus.
Capabilities
43• Recreate a real-life scenario focused on classrooms and practice ML and AI concepts on embedded devices.
44• Easy to assemble.
45• Easy to use.
46• Simple and intuitive creation of classification models.
47• Low-cost components.
48• The software used has extensive documentation and tutorials.
Limitations
49• Using online software to collect data and create and train the AI model can be problematic for users with limited internet access.
50• Connecting other sensors and boards will require different configurations (connections, Arduino IDE codes for data capture, etc.).
CRediT authorship contribution statement
51Andres Felipe Cotrino Herrera: Writingreview & editing, Writingoriginal draft, Validation, Software, Methodology, Investigation, Formal analysis, Conceptualization.Jesús Alfonso López Sotelo: Writingreview & editing, Supervision,
Fig. 1 .
52Fig. 1.Dimensions.
Fig. 2 .
53Fig. 2. Connection diagram for DC Motor.
Fig. 3 .
54Fig. 3. ESP32 and MPU6050 connection.
Fig. 4 .
55Fig. 4. Build instructions for step 5.
Fig. 5 .
56Fig. 5. Build instructions for step 6.
Fig. 6 .
57Fig. 6.Build instructions for step 6.
Fig. 7 .
58Fig. 7. Build instructions for step 7.
Fig. 8 .
59Fig. 8. Build instructions for step 8.
Fig. 9 .
60Fig. 9. Build instructions for step 9.
Fig. 10 .
61Fig. 10.Build instructions for step 10.
Fig. 11 .
62Fig. 11.Finished physical device.
Fig. 12 .
63Fig. 12. Workflow for operation.
Fig. 13 .
64Fig. 13.Operation instructions for step 1.
Fig. 14 .
65Fig. 14.Operation instructions for step 5.
Fig. 15 .
66Fig. 15.Operation instructions for step 5.
Fig. 16 .
67Fig. 16.Operation instructions for step 6.
Fig. 17 .
68Fig. 17.Operation instructions for step 7.
Fig. 18 .
69Fig. 18.Operation instructions for Arduino connection.
Fig. 19 .
70Fig. 19.Operation instructions for Arduino connection.
Fig. 20 .
71Fig. 20.Operation instructions for Arduino connection.
Fig. 21 .
72Fig. 21.Operation instructions for MPU6050 connection.
Fig. 22 .
73Fig. 22. Operation instructions for MPU6050 connection.
Fig. 23 .
74Fig. 23.Operation instructions for MPU6050 connection.
Fig. 24 .
75Fig. 24.Operation instructions for MPU6050 connection.
Fig. 25 .
76Fig. 25.Operation instruction for step 8.
Fig. 26 .
77Fig. 26.MLP neural network architecture.
Fig. 27 .
78Fig. 27.Operation instruction for step 10.
Fig. 28 .
79Fig. 28.Operation instruction for step 11.
80Fig. 26 presents the diagram of the implemented neural network architecture.The following section describes the steps required to design and train the model by the established workflow.
Fig. 29 .
81Fig. 29.Operation instruction for step 11.
Fig. 30 .
82Fig. 30.Operation instruction for step 12.
8328 and 29).12.After completing the previous step, click the "Classifier" tab and "Start training" to train the model.See Fig.30.Once the model training is completed, the model conversion and evaluation stage concludes.The following steps are carried out to
Fig. 31 .
84Fig. 31.Operation instruction for step 13.
Fig. 32 .
85Fig. 32.Operation instruction for step 14.
Fig. 33 .
86Fig. 33.Software description: Model operation.
Fig. 34 .
87Fig. 34.Deployment results.
Fig. 35 .
88Fig. 35.Live classification on Edge Impulse.
Fig. 36 .
89Fig. 36.Live classification results.
article AcrylicBase.SLDPRT: The file was designed to cut the acrylic sheet to the necessary size. BearingBase1.SLDPRT: The file is designed to support the bottom part of the bearing and serve as the main base to be attached to the acrylic base. BearingBase2.SLDPRT: The file is designed to support the top part of the bearing and holds the protoboard for connecting the inertial sensors. MotorBase.SLDPRT: The
90file was designed to support the DC motor in a fixed position on the acrylic base.
91esp32IMU.txt:Text file with code for reading IMU data for Arduino IDE.
Table 2
92Bill of materials summary.
Table 3
93Additional materials.
Table 4
94Technical specifications.
참고문헌 6건
- The Role of Vibration Monitoring in Predictive Maintenance Asset Management & Maintenance Journal · 2011
- Diagnosis of bearing fault of brushless DC motor based on dynamic neural network and orthogonal fuzzy neighborhood discriminant analysis 2014 10.1109/control.2014.6915170
- Fault diagnosis of ball bearings using machine learning methods Expert Systems with Applications · Elsevier BV · 2010 10.1016/j.eswa.2010.07.119
- Condition Monitoring and Fault Diagnosis of Electrical Motors—A Review IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2005 10.1109/tec.2005.847955
- Bearing fault diagnosis of BLDC motor using Vold-Kalman order tracking filter under variable speed condition 2019 10.1109/iciea.2019.8834107
- Vibration data feature extraction and deep learning-based preprocessing method for highly accurate motor fault diagnosis Journal of Computational Design and Engineering · Oxford University Press · 2022 10.1093/jcde/qwac128