Research and Implementation of Low-Power Anomaly Recognition Method for Intelligent Manhole Covers

: This paper addresses the difﬁculty of balancing a real-time response and low power consumption in intelligent manhole cover application scenarios. It proposes a method to distinguish normal and abnormal events by segmenting the boundary at which the acceleration of the intelligent manhole cover deviates from a set threshold and lasts for a certain period, based on the difference in the intelligent manhole cover’s vibration patterns when a normal event and an abnormal event occur. This paper uses the autonomous data fusion of digital output motion sensor data to implement a pattern recognition algorithm for the above-mentioned pattern, which reduces the MCU computing and working time and the overall power consumption of the system while meeting real-time response requirements. The test results demonstrate that the method has a high rate of anomaly recognition accuracy. The method ensures the system’s real-time response capability, and the actual low power consumption test demonstrates that the device can operate continuously for 9.5 years. The low power consumption index exceeds the requirements of the existing national standard, thereby resolving the issue that it is challenging to balance intelligent manhole cover abnormality recognition and low power consumption.


Introduction
Today's cities have underground network, electric, and drainage systems.To manage these systems, many well chambers with manhole covers have been drilled into the road.Due to the displacement, loss, and damage of these manhole covers, however, vehicles and pedestrians on the road suffer severe injuries and property damage, and manhole cover accidents occur on occasion.Traditional management requires a large number of personnel to inspect manhole covers, which makes it impossible to detect problems promptly and creates significant safety risks.Intelligent manhole cover management systems have been developed in response to manhole cover management and safety issues [1].Intelligent manhole cover management systems effectively reduce the average maintenance time, thereby improving personnel and manhole cover safety.Intelligent manhole cover management systems are effective due to their self-awareness; active, real-time alarm; real-time response; low management cost; and short average maintenance time [2][3][4][5].
The sensors currently used in intelligent manhole covers to monitor posture abnormalities are mechanical springs, MPU6050 sensors, electromagnetic sensors, tilt ball switches, and acceleration sensors [2,[6][7][8], which are categorized as mechanical or digital IC sensors.In the complex environment of intelligent manhole covers, mechanical sensors have only two signal states: on and off.It is difficult to distinguish precisely between normal and abnormal attitude states based on the data they monitor.Digital IC sensors are used in the literature [2,8] to monitor the intelligent manhole cover's attitude.To achieve the goal of the real-time monitoring of the intelligent manhole cover, the MCU must constantly fuse the data collected by the digital IC, resulting in a high consumption of power.The intelligent manhole cover is powered by battery maintenance, and its continuous operation time is limited by the battery capacity and the power consumption of the device.To develop an intelligent manhole cover with a real-time response capability, a MCU is used in the current study to solve data from the motion sensor to monitor the manhole cover for abnormal posture, which reduces the device endurance of the intelligent manhole cover because the MCU is always in a non-low-power mode [8].National standards for an intelligent manhole cover [9] require that the dormant current of the intelligent manhole cover device is less than 20 µA and that its continuous operation time is greater than three years.The current research on the continuous operation time of intelligent manhole covers is 3-5 years, whereas the dormant current is 30-70 µA [8,10], which does not fully meet the national standard requirements.
In this paper, to address the above-mentioned issues, we suggest an exception recognition technique that considers a real-time response and minimal power consumption.By designing a hardware system for an intelligent manhole cover monitoring signal and an overall low-power management program, we hope to reduce the system's power consumption.The intelligent manhole cover terminal MCU is in low-power mode when the manhole cover is experiencing are no abnormal events.The motion sensor wakes the MCU for a real-time alarm after detecting an abnormality.For the intelligent manhole cover device to meet the characteristics of real-time response, its power consumption is decreased to increase its endurance.The improved battery life of the intelligent manhole cover will reduce the amount of time and money required to replace the battery.

Manhole Cover Attitude Recognition Circuit
For posture monitoring, the intelligent manhole cover requires sensors that monitor for abnormal posture to actively report an abnormal status, thereby reducing the MCU load and differentiating between tilt and vibration.In this paper, digital IC motion sensors are used to monitor the posture of the intelligent manhole cover.In contrast, the sensor's data fusion capability actively reports abnormal MCU conditions, thereby drastically reducing the MCU's resource consumption.

Scheme of Attitude Sensor
A comparative analysis led to the selection of ST's three-axis MEMS digital output motion sensor (LIS2DH12).The sensor's performance parameters are listed in Table 1.

Indicators Parameters
Operating voltage 1.71 V-3.6 V Operating temperature (−40 The LIS2DH12 digital output motion sensor has a wide operating voltage to accommodate more embedded system applications, an operating temperature range that meets industry standards, a minimum power consumption as low as 2 µA, a programmable range, a resolution of up to 1 mg/digit, and I2C/SPI interfaces for MCU communication.Among these are the sensor's two independent programmable interrupt interfaces, which allow the sensor to actively report two different data fusion states to the MCU, thereby facilitating the MCU's acquisition of additional sensor information.Its ultra-low power consumption reduces the device's overall endurance strain.

Pose Data Fusion Analysis in Dormant State
The Intelligent manhole cover must have the ability to respond in real time to external events.Thus, it must also be able to do so when it detects an abnormality in its posture.When the device status is normal, the MCU is typically in sleep mode in low-power applications, which makes it difficult for intelligent manhole covers to strike a balance between a real-time response and low-power operation [2,4,[6][7][8][10][11][12][13].As depicted in the flow in Figure 2, this paper employed the motion sensor LIS2DH12 to achieve autonomous data fusion.When the intelligent manhole cover operates normally, the MCU is in lowpower mode.However, when the intelligent manhole cover tilts or vibrates abnormally, the interrupt pin of the LIS2DH12 motion sensor generates an interrupt signal, waking the MCU and causing it to enter normal operation mode.The MCU then assesses the real-time alarm.This solution considers the device's real-time response and low-power operation.The dual wake-up mechanism of timing and abnormality must be used by the intelligent manhole cover to report the intelligent manhole cover monitoring data periodically.

Intelligent Manhole Cover Abnormal Event Recognition
This paper employs the LIS2DH12 autonomous data fusion method to determine whether or not the vibration pattern of the intelligent manhole cover is abnormal in order to realize a posture sensor that actively reports posture abnormalities.For the characteristics of vibration patterns in intelligent manhole cover application scenarios, this paper collects and analyzes acceleration data to determine the characteristics of the vibration patterns of intelligent manhole covers in different modes.Figure 3   The discrimination of the Z-axis direction acceleration monitored by the intelligent manhole cover is greater than the discrimination of the X-and Y-axis directions.The Z-axis direction acceleration data is more conducive to the intelligent manhole cover's pattern recognition of normal and abnormal conditions.The collected data can be categorized into three groups, as depicted in Figure 4.The gravitational acceleration at the location of the intelligent manhole cover can be monitored along the Z-axis when no event occurs, and the gravitational acceleration measured during the experiment is g = 9.80 m/s 2 .When a vehicle or pedestrian crushed or stepped on the manhole cover, the intelligent manhole cover observed a large fluctuation in the Z-axis acceleration.However, the time window for a single fluctuation to deviate from the gravitational acceleration was short (t = 0.04 s).
In this paper, the abnormal opening of the manhole cover was simulated by opening the manhole cover, and Figure 4 displays the monitored vibration data.In the vibration case of an abnormal opening of the manhole cover, the monitored acceleration deviated from the gravitational acceleration (a = |g − 8.90 m/s 2 | = 0.90 m/s 2 ) with a time window of 0.82 s, unlike the events of vehicle crushing and a pedestrian stepping on the cover in which the duration of acceleration deviation is longer.
In the application scenario of an intelligent manhole cover, the difference between a normal event (a vehicle crushing the manhole cover or a pedestrian stepping on the manhole cover) and an abnormal event (e.g., the manhole cover being opened illegally) lies in the different time window of acceleration deviating from gravitational acceleration in the Z-axis direction; therefore, segmenting the boundary at which the acceleration of the intelligent manhole cover deviates from the set threshold range and lasts for a certain amount of time can detect abnormal events.By analyzing the monitoring data, this paper establishes Ths = 0.90 m/s 2 as the threshold and Duration = 0.40 s = 400 ms as the duration.When the deviation in acceleration from gravitational acceleration in the Z-axis direction of the intelligent manhole cover exceeds Ths and the duration exceeds Duration, the intelligent manhole cover is considered illegally opened, and an abnormal event is deemed to have occurred.
Current research on vibration signal recognition focuses on feature extraction and classification algorithms, such as IMF, wavelet analysis, and convolutional neural networks [3,8,[14][15][16][17][18]; however, the complex processing algorithms place high demands on the processing platform.For the application scenario of an intelligent manhole cover, the recognition method proposed in this paper has very little computation and can achieve digital IC autonomous data fusion, which effectively reduces the calculation of the MCU, avoids the contradiction between the need for the MCU to permanently fuse motion sensor data and the low-power requirement of the device, and reduces the power consumption of the system based on the recognition of target events.
This paper uses the hardware comparator and counter embedded in the MEMS digital output motion sensor to generate interrupt signals for abnormal events, thereby realizing the pattern recognition of the autonomous data fusion of motion sensors.
The data to be processed are the Z-axis acceleration, which includes gravitational acceleration.The high-pass filter embedded in the motion sensor removes the DC component from the data, allowing the gravitational acceleration to be filtered.The Z-axis acceleration is output as 0 when no event occurs after passing through the high-pass filter.
As depicted in Figure 5, the principle of anomaly recognition through the motion sensor in this paper, the acceleration data applied to anomaly recognition have a value of 0 after passing through the high-pass filter.When vibration occurs, the monitored acceleration deviates from the initial 0 levels.The acceleration is compared to the threshold value stored in the THS reg register, and the Duration register begins counting when the absolute value exceeds the threshold value.When the number of consecutive acceleration samples above the threshold exceeds the duration setting, the motion sensor generates an interrupt, deems an abnormal event to have occurred, and wakes the MCU from sleep mode.
In the application scenario of an intelligent manhole cover, the motion sensor is utilized to achieve autonomous data fusion and to reduce the MCU's computing and running time to conserve energy.This is accomplished by analyzing the difference in acceleration between normal and abnormal times.In the event of an anomaly, the motion sensor generates an interrupt to wake up the MCU, realizing the device's real-time response and balancing the intelligent manhole cover's low power consumption and real-time response capability.

Algorithm for Pose Recognition in Wake State
This paper proposes the motion sensor autonomous data fusion method to monitor the abnormality of the intelligent manhole cover.Still, it fails to obtain the attitude information of the intelligent manhole cover.Therefore, this paper proposes to complete the solution of the attitude of the intelligent manhole cover under the mechanism of the intelligent manhole cover's timed wake-up to achieve the reporting of the attitude state of the intelligent manhole cover.
As depicted in Figure 6, the X-Y-Z coordinate system represents the three-dimensional space in which the intelligent manhole cover is located, the XOY plane represents the horizontal plane, and the Z axis represents the opposite direction of gravitational acceleration.The rectangle in the figure represents the tilted state of the motion sensor in the three-dimensional space, X acc , Y acc , Z acc is the vertical acceleration of the three axes measured by the motion sensor, and φ, θ, ψ are the angles between the measured acceleration and the three axes of the three-dimensional space X-Y-Z, respectively.The angle between the plane in which the motion sensor is located and the horizontal plane of the three-dimensional space XOY is the tilt angle of the intelligent manhole cover α, which can be obtained by calculating the angle normal to the two planes; thus, the angle φ between the Z axis and Z acc can be calculated.The combined acceleration of the three axes X acc , Y acc , Z acc is equal to the acceleration of gravity because the intelligent manhole cover is at rest.The following calculation of the tilt angle of the smart manhole cover can be obtained thanks to the implied relationship:

Low Power Management of the System 4.1. System Low-Power Implementation
This paper also adopts a low-power design for hardware other than the motion sensor, combined with the software control, aiming for an overall more minor power consumption to achieve an overall low-power design of the intelligent manhole cover.
While the application scenario requires low energy consumption, the intelligent manhole cover must have the following characteristics: an ability to monitor the environment, self-awareness, an active, real-time alarm, and a real-time response.The Texas Instruments (TI)-designed MSP430FR5962 was chosen as the MCU because it has a high data processing capacity and scalability and a broader range of applications in low-power scenarios.As a result of the system's use of the motion sensor's autonomous data fusion of the abnormal event recognition algorithm, which enables the motion sensor to react in real time, the MCU can operate in LPM3.5 sleep mode while consuming only 0.30-0.45µA of power.
The system takes the following actions to manage its overall power consumption.When a peripheral such as a Bluetooth module or an NB-IOT module is not in use, the control power switch, hardware configuration, and MCU shut off the peripheral power.This study chose the TPS7A02 as the MCU power supply because of its low quiescent current of 25 nA and high conversion efficiency of up to 99.6%, both of which guarantee the power supply chip's own low power consumption.The TPS7A24 peripheral power supply, managed by a microcontroller, has an off current as low as 325 nA and a conversion efficiency of up to 92.8%, ensuring the system peripheral power supply uses little power.
The MCU clock frequency is controlled by adjusting it under the task the MCU is performing.The MCU wake-up state and internal clock were set to a main frequency of 8 MHz for data reporting and acquisition tasks.Only the external low-speed crystal clock (ƒ = 32,768 Hz) is enabled during the MCU's sleep mode.The MCU only manages external interrupt service functions to react to abnormal alarms or timed wake-ups.
Regarding the control of the GPIO status and MCU on-chip peripherals, when the associated on-chip and off-chip peripherals, such as the ADC module, are not in use, they should be turned off.The GPIO is controlled in sleep mode to reduce power consumption, taking into account the hardware features and the type of peripherals connected to the MCU's GPIO.In this paper, the MSP430FR5962 MCU is configured with LPM3.5 as the sleep mode; the MCU consumes only 0.30-0.45µA of power while in sleep mode, and the corresponding GPIO is configured with input mode; the IO is in a high-resistance state, and the GPIO leakage current is only 50 nA.

Identification Test of the System
In this paper, we evaluate the recognition of an intelligent manhole cover in its virtual environment, which includes vehicle crushing, pedestrian stepping, and an abnormal opening time.As can be seen in Figure 2, the intelligent manhole cover takes the initiative to report the anomaly after recognizing it, and the time to enter sleep mode again after the process of reporting data is 100 s, which reduces the test's efficiency.To increase the efficiency of the test, the test program cancels the report data process and stores the identified abnormality in the external FLASH, as depicted in Figure 8.The intelligent manhole cover was installed in the actual environment and removed after 100 consecutive occurrences of Table 1's events.The abnormal records recorded in the FLASH chip were read, with the recorded results are shown in Table 2.

Actual Power Consumption Test
To verify the actual low power consumption of the intelligent manhole cover, as depicted in Figure 9, the Emkia Technology Precision Low Power Analyzer was utilized to test the device actual low power consumption.Figure 10 illustrates the actual test device's low power consumption current, and the average hibernation power consumption when the intelligent manhole cover enters the low power consumption state is 14.32 µA.
Based on the actual tested power consumption level, the intelligent manhole cover's power consumption in sleep mode for one year is q: The intelligent manhole cover must upload data via NB-IoT during the wake-up state.The NB module consumes more power when registering the network and sending data [19][20][21][22], and the average power consumption is 59.68495 mA.The time required for the system to report data is 100 s.Excluding the alarm for an abnormal device, the system configures the intelligent manhole cover to report data daily.When the intelligent manhole cover operates for one year, the amount of energy it consumes in the awake state is q ′ .q ′ = I ′ t = 59.685 mA × 100 3600 h × 365 d ≈ 605.14 mAh (4) The Intelligent manhole cover's total power consumption over one year is Q pc , considering its power requirements during sleep and when it wakes up.
The 3.7 V, 8500 mAh, and 82% small current discharge efficiency (data were obtained from reports by the battery manufacturers) of the power supply battery for the intelligent manhole cover in this paper are its specifications.The intelligent manhole cover can operate continuously for a period of time T based on the above analysis of the total power consumption.
Comprehensive test results show the device's sleep power consumption is 14.32 µA, and it can operate continuously for 9.5 (or more) years.As a result, the device's low power consumption index far exceeds the requirements of the current national standard, which is an improvement over the current study.

Experimental Discussion
By altering the smart manhole cover anomaly wake-up method using the hardware circuit design, this research reduces the smart manhole cover's power consumption while still enabling its real-time response.The test results of this research demonstrate that: (1) the proposed method for anomaly recognition has a guaranteed correct rate of anomaly recognition with an error rate of zero.(2) With the low-power anomaly recognition technique suggested in this study, the smart manhole cover's power usage is significantly reduced; the device's hibernation power consumption is 14.32 µA, and its continuous working time can be extended to 9.5 years.
The experimental findings of this study demonstrate that while maintaining the high accuracy and real-time response capability of the smart manhole cover anomaly recognition, the method proposed in this study significantly lowers the level of power consumption of the device.As a result, the device can be used for longer, which lowers the smart manhole cover's maintenance workload and associated labor and material costs.This study's method has good generalizability and is adaptable to other uses for intelligent manhole covers.
In addition to regularly uploading data, the smart manhole cover also wakes up to upload alarm information and associated detection data when something is abnormal.The power consumption derived from the experiment does not accurately reflect the real power consumption of the smart manhole cover because there are no empirical data on the frequency of the smart manhole cover's abnormal alarm.The results of the power consumption analysis of intelligent manhole covers will be more accurate if further research is conducted to gather data on the frequency distribution of abnormal alarms of intelligent manhole covers.

Summary
This paper suggests a method for the autonomous fusion of motion sensor data compatible with the intelligent manhole cover's low power consumption and real-time response capability.The system program design combines good universality with the most popular mainstream schemes.
Concerning computing power, the current research on vibration signal recognition necessitates complex feature extraction algorithms and even more complex classifiers.These processing algorithms place high demands on the processing platform.This paper suggests a low-power recognition method tailored to the intelligent manhole cover application scenario, and the test results indicate that the recognition rate in this scenario is high.
Based on fulfilling the abnormal recognition and real-time response functions of the intelligent manhole cover, the method proposed in this paper, which is based on the autonomous fusion of digital output motion sensors, lowers the power consumption level of the intelligent manhole cover.In the application scenario of an intelligent manhole cover, the system can clearly distinguish and identify normal events from abnormal events through practical testing.The low power consumption index tested far exceeds the national standard's requirements, increasing the device's durability.

Figure 1 Figure 1 .
Figure 1 depicts the circuit design of the LIS2DH12 digital output motion sensor.The The LIS2DH12's SCL and SDA pins are used as I2C communication interfaces to exchange data with the MCUs, and the INT 1 and INT 2 pins are used as interrupt interfaces to report the status to the MCUs.INT1 and INT2 can independently generate the event interrupt for anomaly recognition and the tilt of the smart manhole cover, respectively.Other power supplies were made under LIS2DH12's design, following official manual standards.
depicts a schematic of the acquisition environment for vibration signals.Intelligent Manhole Cover Abnormal Event Recognitionwhether or not the vibration pattern of the intelligent manhole cover is abnormal in order istics of vibration patterns in patterns of ntelligent manhole covers in different modes.Figure3depicts a schematic of
gent manhole cover observed a large fluctuation in time window for a single fluctuation to deviate from

Figure 4 .
Figure 4. Vehicle crushing intelligent manhole cover vibration data (a), vibration data of pedestrian stepping on manhole cover (b), and intelligent manhole cover abnormal open cover monitoring data (c).

Figure 5 .
Figure 5. Diagram of digital output sensor abnormal interrupt.

Figure 7 .
Figure 7. Hardware block diagram of intelligent manhole cover.
configured with LPM3.5 as the configured with input mode; the IO is in a highIdentification Systems efficiency.To increase the efficiency of the test, the test program cancels the report data process and stores the identified

Actual Power Consumption Test q Figure 9 .Figure 10 .
Figure 9. Power consumption test circuit.

Table 2 .
Actual test results.