Geomagnetic sensor power consumption anomaly detection method, device, equipment, medium and product

By obtaining multi-dimensional data and using a deep learning model to predict the future power consumption of geomagnetic sensors, the accuracy and timeliness problems of power consumption anomaly detection in the existing technology are solved, and the stability of the parking management system is improved.

CN118837618APending Publication Date: 2024-10-25CHINA MOBILE GROUP ZHEJIANG +3
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410942936.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately and timely detect abnormal power consumption of geomagnetic sensors, which affects the efficiency and stability of the parking management system.

Method used

By obtaining multi-dimensional data from geomagnetic sensors, including business activity information, wireless network performance parameters, environmental condition information and power-saving parameter configurations, a deep learning model is used to predict future power consumption and compare it with real-time power consumption to determine abnormal power consumption. .

Benefits of technology

It improves the accuracy and timeliness of abnormal power consumption detection of geomagnetic sensors and ensures the stability and reliability of the parking management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118837618A_ABST
    Figure CN118837618A_ABST
Patent Text Reader

Abstract

The invention relates to the field of computers, and provides a geomagnetic sensor power consumption anomaly detection method, device and equipment, a medium and a product. The method comprises the following steps: acquiring multivariate dimension data of a geomagnetic sensor to be detected; inputting the multivariate dimension data into a power consumption prediction model to obtain a power consumption prediction value, output by the power consumption prediction model, of the to-be-detected geomagnetic sensor in a future time period; comparing the predicted power consumption value of the geomagnetic sensor to be detected in the future time period with the real power consumption value to obtain a comparison result; and determining that the power consumption of the geomagnetic sensor to be detected is abnormal under the condition that the comparison result accords with the power consumption abnormity judgment rule. According to the invention, the multivariate dimension data is input to the power consumption prediction model, and the power consumption abnormal condition of the geomagnetic sensor is determined according to the power consumption prediction value of the geomagnetic sensor in the future time period predicted by the power consumption prediction model and the power consumption true value of the geomagnetic sensor. And the detection accuracy and the detection timeliness of the power consumption abnormity of the geomagnetic sensor are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, equipment, medium and product for detecting abnormal power consumption of a geomagnetic sensor. Background Art

[0002] Current geomagnetic sensors, such as Narrow Band Internet of Things (NB-IOT) geomagnetic sensors and their parking management platforms, mainly rely on single physical parameters such as voltage changes and current consumption of the geomagnetic sensor battery itself to monitor abnormal power consumption of the geomagnetic sensor. Because of the relatively single reliance on parameters, it is difficult to accurately detect abnormal power consumption of the geomagnetic sensor, and it is impossible to discover abnormal power consumption of the geomagnetic sensor in time, which affects the working efficiency and stability of the entire parking management system.

[0003] Therefore, how to improve the detection accuracy and timeliness of abnormal power consumption of geomagnetic sensors has become a technical problem that needs to be urgently solved in the industry. Summary of the invention

[0004] The present application provides a method, device, equipment, medium and product for detecting abnormal power consumption of a geomagnetic sensor, which are used to solve the technical problem of how to improve the detection accuracy and timeliness of abnormal power consumption of a geomagnetic sensor in the prior art.

[0005] In a first aspect, the present application provides a method for detecting abnormal power consumption of a geomagnetic sensor, comprising: Acquire multi-dimensional data of the geomagnetic sensor to be detected, wherein the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration, and network signaling information of the geomagnetic sensor to be detected; Inputting the multi-dimensional data into a power consumption prediction model to obtain a power consumption prediction value of the geomagnetic sensor to be detected in a future time period output by the power consumption prediction model; Compare the predicted power consumption value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; When the comparison result meets the abnormal power consumption determination rule, it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal.

[0006] In some embodiments, the power consumption prediction model is obtained based on the following steps: Acquire sample multi-dimensional data based on parking management platform, narrowband IoT network and sample geomagnetic sensors; Processing the sample multidimensional data; the data processing includes data cleaning, converting data of different dimensions to a unified dimension, and performing feature coding on categorical variables in the sample multidimensional data and converting them into numerical values; The processed sample multidimensional data and the sample power consumption corresponding to the sample multidimensional data are used as training samples to train the initial power consumption prediction model to obtain the power consumption prediction model.

[0007] In some embodiments, the power consumption prediction model determines the power consumption prediction value based on the following steps: Convert the multi-dimensional data into the same data structure to obtain first data; Acquire local features of each scale of the first data based on feature extraction modules of different sizes of convolution kernels, pooling windows and sliding windows; the local features of each scale include short-term local features, medium-term local features and long-term local features; Assign different weights to local features of different scales and construct feature maps corresponding to each scale; The feature maps are spliced ​​to obtain the fusion features of the geomagnetic sensor to be detected; Performing semantic analysis on the fusion features to obtain semantic features of the geomagnetic sensor to be detected; The power consumption prediction value is determined based on the semantic feature and the linear activation function.

[0008] In some embodiments, the training of the initial power consumption prediction model includes: Dividing the training samples into a training set, a validation set and a test set; Iteratively training the initial power consumption prediction model based on the training set; When the current training cycle ends, the prediction performance of the current initial power consumption prediction model is evaluated based on the verification set, and the model parameters of the current initial power consumption prediction model are adjusted based on the evaluation result; The prediction performance of the initial power consumption prediction model after training is evaluated based on the test set, and the model structure of the initial power consumption prediction model is adjusted based on the evaluation result to obtain the power consumption prediction model.

[0009] In some embodiments, after obtaining the power consumption prediction model, the method further includes:

[0010] The power consumption prediction model is compressed based on a lightweight inference engine.

[0011] The compressed power consumption prediction model is integrated into a narrowband Internet of Things parking management system that uses geomagnetic sensors for parking.

[0012] In some embodiments, the power consumption abnormality determination rule includes determining that the power consumption of the geomagnetic sensor to be detected is abnormal when the difference between the power consumption prediction value and the actual power consumption value of the geomagnetic sensor to be detected within a preset time period is greater than a dynamic threshold; Wherein, the dynamic threshold is determined based on the historical power consumption fluctuation range of the sample geomagnetic sensor and the neural network model; When it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal, alarm information of the geomagnetic sensor to be detected is generated.

[0013] In a second aspect, the present application provides a device for detecting abnormal power consumption of a geomagnetic sensor, comprising: An acquisition module, used to acquire multi-dimensional data of the geomagnetic sensor to be detected, wherein the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration and network signaling information of the geomagnetic sensor to be detected; A prediction module, used for inputting the multi-dimensional data into a power consumption prediction model to obtain a power consumption prediction value of the geomagnetic sensor to be detected in a future time period output by the power consumption prediction model; A comparison module, used to compare the power consumption prediction value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; The detection module is used to determine that the power consumption of the geomagnetic sensor to be detected is abnormal when the comparison result meets the power consumption abnormality judgment rule.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to implement the above method when executing the program through the computer program.

[0015] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned method when executed by a processor.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0017] The method, device, equipment, medium and product for detecting abnormal power consumption of geomagnetic sensors provided in the embodiments of the present application obtain multi-dimensional data such as business activity information, wireless network performance parameters, environmental condition information, power-saving parameter configuration and network signaling information, and predict the normal power consumption of the geomagnetic sensor in a future time period based on the multi-dimensional data and the power consumption prediction model, so that the power consumption prediction model can more comprehensively capture the various factors affecting the power consumption of the geomagnetic sensor, thereby improving the prediction accuracy; by comparing the predicted normal power consumption with the actual power consumption detected in real time, it can be accurately and timely discovered whether the geomagnetic sensor has abnormal power consumption, thereby improving the abnormality detection efficiency and detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 One of the flow charts of the method for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a parking management system provided in an embodiment of the present application; Figure 3 A second flow chart of the method for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of a device for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] It should be noted that the terms "first", "second" etc. in the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or modules need not be limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or equipment.

[0022] The method for detecting abnormal power consumption of a geomagnetic sensor provided in the embodiment of the present application is applicable to a terminal, which may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to servers, smart phones, tablet computers, laptop computers, and desktop computers.

[0023] Figure 1 One of the flow charts of the method for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application is as follows: Figure 1 As shown, the method includes step 110, step 120, step 130 and step 140. The steps of the method flow are only a possible implementation of the present application.

[0024] Step 110: Acquire multi-dimensional data of the geomagnetic sensor to be detected, where the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration, and network signaling information of the geomagnetic sensor to be detected.

[0025] Specifically, the execution subject of the geomagnetic sensor power consumption anomaly detection method provided in the embodiment of the present application is a geomagnetic sensor power consumption anomaly detection device, which can be a hardware device independently set in the terminal, or a software program running in the terminal. For example, when the terminal is a mobile phone, the geomagnetic sensor power consumption anomaly detection device can be embodied as an application such as detection software in the mobile phone.

[0026] The geomagnetic sensor to be detected may be a NB-IOT geomagnetic sensor. The NB-IOT geomagnetic sensor is a device that uses the geomagnetic effect to detect parking space occupancy. It is usually installed under the ground of the parking space and can accurately sense the impact of slight changes in the earth's magnetic field when a vehicle is parked in or out. The NB-IOT parking management system refers to a parking management system that combines geomagnetic sensors with NB-IOT technology.

[0027] Figure 2 This is a schematic diagram of the structure of the parking management system provided in the embodiment of the present application. Figure 2As shown in the figure, NB-IOT technology has the characteristics of low power consumption, wide coverage, and large connections. The NB-IOT geomagnetic sensor can remotely transmit parking space status information to the parking management platform through the NB-IOT wireless network without wiring, realizing real-time monitoring and intelligent management of parking spaces. This can effectively improve the utilization rate of urban parking resources and alleviate the problem of parking difficulties.

[0028] Business activity information refers to data that records and analyzes activities and events that occur during a specific business process, such as the number of times a vehicle enters a parking space, the number of times a vehicle leaves a parking space, the duration of a vehicle's parking, the time distribution of vehicle entry and exit, the data transmission cycle of the geomagnetic sensor, and the amount of data transmitted by the geomagnetic sensor. These activities will directly affect the workload of the geomagnetic sensor. Frequent activities mean that the sensor needs to sense and transmit data more frequently, thereby increasing energy consumption. By monitoring business activity information, its impact on battery consumption can be quantitatively evaluated.

[0029] Wireless network performance parameters refer to indicators that measure and monitor signal quality, data transmission efficiency, and network connection stability in wireless networks, such as signal strength (RSRP), signal-to-noise ratio (SINR), network packet loss rate, number of retransmissions, network congestion, network coverage level, etc. Good wireless network performance helps reduce the number of retransmissions and power amplification requirements during communication, thereby reducing power consumption in the communication process. A poor network environment may cause the device to increase the transmission power in order to maintain normal communication, accelerating battery loss.

[0030] Environmental condition information refers to data that describes and records natural environmental factors such as temperature, humidity, air pressure, and weather around a specific location or device. Extreme temperatures can affect the efficiency of battery chemical reactions and internal resistance, resulting in reduced battery capacity or unsatisfactory charging efficiency; high humidity environments may cause problems such as battery leakage; air pressure can affect battery performance; extreme weather such as rain, snow, and sandstorms may affect the working state of the device and battery life. Therefore, real-time monitoring and consideration of these factors can more accurately estimate the actual impact of changes in environmental conditions on sensor power consumption.

[0031] Power saving parameter configuration refers to the parameters that the device uses to adjust its power management strategy and timer settings in different working states, such as T3412 timer (TAU cycle), T3324 timer (PSM activity timer), TeDRX (eDRX cycle), TPTW (eDRX paging time window), wireless transmission power level, etc. These are all parameters related to the energy saving mode of NB-IOT terminals. By properly configuring these parameters, you can extend the battery life as much as possible while ensuring business needs. Monitoring the changes in these parameters and their actual effects on power consumption is the key to quantitatively evaluating battery consumption.

[0032] Network signaling information refers to data that tracks and records the control signaling and messages exchanged during the communication process between mobile devices and wireless networks, such as the number of Attach processes (number of times a terminal device accesses the network), TAU update frequency (frequency of updating the location of a terminal device in the network), Paging response times (number of times a terminal device is awakened by network paging and responds), RRC connection establishment times (point-to-point connection established between a terminal device and a wireless network), and RRC connection release times (point-to-point connection released between a terminal device and a wireless network). They reflect the activity status and frequency of the device in the network, and indirectly reflect the overall workload of the device and the resulting energy consumption.

[0033] The embodiment of the present application integrates data of multiple dimensions such as business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration, and network signaling information. Compared with the prior art that relies on a single or limited input parameter to detect abnormal power consumption of the geomagnetic sensor, the detection accuracy can be improved.

[0034] Step 120: Input the multi-dimensional data into the power consumption prediction model to obtain the power consumption prediction value of the geomagnetic sensor to be detected in the future time period output by the power consumption prediction model.

[0035] Specifically, the power consumption prediction model refers to a deep learning network model used to predict the power consumption of the geomagnetic sensor under normal conditions in the future.

[0036] The power consumption prediction value includes the power consumption of the geomagnetic sensor at each detection moment in a normal state in a future time period.

[0037] The power consumption prediction model can accurately predict the normal power consumption of the geomagnetic sensor to be detected at each detection time in the future based on multi-dimensional input information.

[0038] Step 130: Compare the predicted power consumption value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result.

[0039] Step 140: When the comparison result meets the abnormal power consumption determination rule, determine that the power consumption of the geomagnetic sensor to be detected is abnormal.

[0040] Specifically, after obtaining the predicted power consumption value of the geomagnetic sensor to be detected, the actual power consumption of the geomagnetic sensor (i.e., the true power consumption value) is obtained in real time at each detection moment, and the true power consumption value of the geomagnetic sensor to be detected is compared with the predicted power consumption value as a benchmark, thereby accurately identifying abnormal power consumption of the geomagnetic sensor.

[0041] The power consumption abnormality determination rule may include that the difference between the actual power consumption value and the predicted power consumption value for N consecutive days exceeds P%. N and P are dynamically determined values.

[0042] When the comparison result meets the abnormal power consumption judgment rule, the power consumption of the geomagnetic sensor to be detected is determined to be abnormal, and the system automatically triggers the alarm mechanism. In this way, accurate and real-time detection of abnormal power consumption of the NB-IOT geomagnetic sensor is achieved. The embodiment of the present application can realize real-time monitoring and advance prediction of abnormal power consumption that may occur in the NB-IOT geomagnetic sensor, effectively avoiding equipment downtime, data loss and other problems caused by battery failure, and improving the stability and reliability of the entire intelligent parking system.

[0043] The method for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application obtains multi-dimensional data such as business activity information, wireless network performance parameters, environmental condition information, power-saving parameter configuration, and network signaling information, and predicts the normal power consumption of the geomagnetic sensor in a future time period based on the multi-dimensional data and the power consumption prediction model, so that the power consumption prediction model can more comprehensively capture the various factors affecting the power consumption of the geomagnetic sensor, thereby improving the prediction accuracy; by comparing the predicted normal power consumption with the actual power consumption detected in real time, it can be accurately and timely discovered whether the geomagnetic sensor has abnormal power consumption, thereby improving the efficiency and accuracy of abnormality detection.

[0044] It should be noted that each implementation method of the present application can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.

[0045] In some embodiments, the power consumption prediction model is obtained based on the following steps: Acquire sample multi-dimensional data based on parking management platform, narrowband IoT network and sample geomagnetic sensors; Process the sample multidimensional data; data processing includes data cleaning, converting data of different dimensions to a unified dimension, and converting the categorical variables in the sample multidimensional data into numerical values ​​through feature coding; The processed sample multidimensional data and the sample power consumption corresponding to the sample multidimensional data are used as training samples to train the initial power consumption prediction model to obtain the power consumption prediction model.

[0046] Specifically, historical multi-dimensional data that has a significant impact on the power consumption prediction of sample geomagnetic sensors can be collected from systems such as parking management platforms, NB-IOT networks, and geomagnetic sensors. For example, business activity information, wireless network performance parameters, environmental condition information, power-saving parameter configuration, and network signaling information of sample geomagnetic sensors. All of this information is closely related to the power consumption of NB-IOT geomagnetic sensors. Comprehensively collecting and integrating this information is conducive to building a model that can comprehensively reflect the actual power consumption of the sensor, thereby achieving accurate identification and prediction of abnormal power consumption.

[0047] After obtaining historical multi-dimensional data, we can further perform feature extraction, data preprocessing and sample labeling on these data.

[0048] For example, the acquired historical multi-dimensional data can be quantified separately to form a multi-dimensional training sample.

[0049] Data preprocessing can include: data cleaning, removing invalid or outliers; standardization, converting data of different dimensions to the same scale for model training; feature encoding, converting categorical variables (i.e. non-numeric variables) into numerical features using methods such as one-hot encoding or label encoding.

[0050] The training samples are labeled, and the labeled data is the actual normal power consumption of NB-IOT geomagnetic sensors in a known historical period, which is used as the target variable in the model training process.

[0051] The initial power consumption prediction model is trained by the training samples obtained after processing to obtain a power consumption prediction model. The initial power consumption prediction model is a power consumption prediction model that has not been trained or the training has not been completed.

[0052] The method for detecting abnormal power consumption of a geomagnetic sensor provided in the embodiment of the present application can enable the power consumption prediction model to more comprehensively capture various factors that affect the power consumption of the geomagnetic sensor battery, thereby improving the prediction accuracy and improving the detection efficiency of abnormal power consumption of the geomagnetic sensor.

[0053] In some embodiments, the power consumption prediction model determines the power consumption prediction value based on the following steps: Convert the multi-dimensional data into the same data structure to obtain first data; Acquire local features of each scale of the first data based on feature extraction modules of different sizes of convolution kernels, pooling windows, and sliding windows; the local features of each scale include short-term local features, medium-term local features, and long-term local features; Assign different weights to local features of different scales and construct feature maps corresponding to each scale; Each feature map is spliced ​​together to obtain the fusion feature of the geomagnetic sensor to be detected; Perform semantic analysis on the fused features to obtain the semantic features of the geomagnetic sensor to be detected; The power consumption prediction value is determined based on semantic features and linear activation function.

[0054] Specifically, Figure 3 The second flow chart of the method for detecting abnormal power consumption of a geomagnetic sensor provided in the embodiment of the present application is as follows: Figure 3 As shown, the power consumption prediction model includes a unified input layer, a multi-scale feature extraction layer, a feature cross and mixing layer, a feature fusion layer, a semantic enhancement layer and an output layer.

[0055] 1. Unified input layer.

[0056] This layer receives time-series inputs from at least 5 types of multivariate features and integrates them into a unified data structure to obtain the first data so that the data can be processed in the neural network. The existence of this layer enables multivariate dimensional data of different types or sources to be effectively combined and processed, providing a consistent input structure for subsequent neural network models, which helps to improve the generalization ability and performance of the model. The unified input layer can output a two-dimensional matrix feature map of size M×N.

[0057] 2. Multi-scale feature extraction layer.

[0058] This layer consists of three submodules, each of which uses different convolution kernel sizes, pooling windows, sliding windows and other parameters to extract local features of different scales. The multi-scale feature extraction layer includes a short time window feature extraction submodule, a medium time window feature extraction submodule and a long time window feature extraction submodule.

[0059] For example, the short-time window feature extraction submodule: the convolution kernel size is 3x3, the pooling window size is 2x2, the sliding window size is 5 minutes, and the output feature map size is (M / 2)×(N / 2), which extracts short-term local features, such as the number of times a vehicle enters a parking space, the number of times a vehicle leaves a parking space, and the duration of a vehicle's parking. These data reflect short-term activities and are suitable for using smaller convolution kernels and pooling windows to capture finer details.

[0060] Medium time window feature extraction submodule: The convolution kernel size is 5x5, the pooling window size is 4x4, the sliding window size is 10 minutes, and the output feature map size is (M / 8)×(N / 8). It extracts medium-term local features such as RSRP, SINR, network packet loss rate, and number of retransmissions. These data reflect the stability of network performance and are suitable for using medium-sized convolution kernels and pooling windows to extract more comprehensive features.

[0061] Long-term window feature extraction submodule: The convolution kernel size is 7x7, the pooling window size is 8x8, the sliding window size is 30 minutes, and the output feature map size is (M / 48)×(N / 48). It extracts long-term local features, such as environmental condition information, power-saving parameter configuration, etc. These data reflect the operating status and usage habits of the device, and are suitable for using larger convolution kernels and pooling windows to cover a larger area and extract more macro features.

[0062] By connecting these submodules in parallel, features with different granularities and levels can be extracted from geomagnetic sensor-related data, thereby improving the accuracy of subsequent processing and analysis.

[0063] 3. Feature Crossover and Mixing Layers

[0064] This layer uses the Transformer encoder and receives the output of the multi-scale feature extraction layer. It is mainly responsible for fusing features of different scales to extract more comprehensive and richer features.

[0065] For short-term local features, the model gives higher weights to reflect the importance of data such as the number of times a vehicle enters a parking space, the number of times a vehicle leaves a parking space, and the duration of a vehicle parking. For mid-term features, the model gives moderate weights to reflect the importance of data such as RSRP, SINR, network packet loss rate, and number of retransmissions. For long-term global features, the model gives lower weights to reflect the importance of data such as environmental condition information and power-saving parameter configuration.

[0066] This layer can use a 4-head multi-head attention mechanism, set the hidden layer dimension to 128, the number of encoder layers to 2, each layer has its own feedforward network, the feedforward network consists of 2 fully connected layers, the first layer has a dimension of 512, the second layer has a dimension of 128, and the ReLU activation function is used between the feedforward network layers.

[0067] This layer outputs three feature maps of the same size as the input feature map, but due to the processing of the self-attention mechanism, the elements of each feature map are assigned weights related to power consumption.

[0068] 4. Feature fusion layer.

[0069] This layer is used to integrate the feature maps extracted by the Transformer encoder from three different levels.

[0070] First, these three feature maps are spliced ​​together to form a unified high-dimensional feature vector, so that the local details captured by each layer, the contextual information of the middle layer, and the global abstract meaning of the high layer can all be brought together to provide detailed basic data for subsequent analysis.

[0071] The concatenated feature vector can be processed by a fully connected layer with 256 nodes. The fully connected layer uses the ReLU activation function to obtain the fused features. During the calculation process, any negative value will be converted to zero, and only positive activations will be retained, so as to effectively filter and enhance the original features, which helps the model better understand and capture the complex relationships behind the data.

[0072] 5. Semantic enhancement layer.

[0073] This layer can use the fully connected structure of 128 neurons and the ReLU activation function to further refine and enhance the feature expression obtained in the previous stage. The core goal of this layer is to deeply mine and refine the fused features, paying special attention to the high-level semantic features that are crucial for accurately predicting power consumption, and obtain the semantic features of the geomagnetic sensor to be detected.

[0074] 6. Output layer.

[0075] This layer contains only one neuron node and uses a linear activation function to output the predicted normal power consumption value. The output layer outputs specific power consumption numerical indicators, and the linear output can be directly mapped to the actual numerical range without additional nonlinear transformation.

[0076] During the training process of the power consumption prediction model, the mean squared error (MSE) can be selected as the loss function to quantify the gap between the power consumption prediction value and the actual power consumption value, and the power consumption prediction model weight can be optimized through back propagation during the training process.

[0077] You can choose the Adam adaptive learning rate optimizer to effectively avoid the problem of gradient disappearance or explosion while ensuring the convergence speed of the power consumption prediction model.

[0078] The method for detecting abnormal power consumption of geomagnetic sensors provided in the embodiment of the present application constructs a power consumption prediction model based on deep learning. The model has powerful nonlinear expression capabilities and adaptive learning capabilities, can automatically extract effective features from complex data and perform efficient modeling, thereby achieving a more accurate prediction of the future power consumption of geomagnetic sensors.

[0079] In some embodiments, training the initial power consumption prediction model includes: Divide the training samples into training set, validation set and test set; Iteratively train the initial power consumption prediction model based on the training set; When the current training cycle is finished, the prediction performance of the current initial power consumption prediction model is evaluated based on the validation set, and the model parameters of the current initial power consumption prediction model are adjusted based on the evaluation result; The prediction performance of the initial power consumption prediction model after training is evaluated based on the test set, and the model structure of the initial power consumption prediction model is adjusted based on the evaluation result to obtain the power consumption prediction model.

[0080] After obtaining the power consumption prediction model, it also includes

[0081] Based on the lightweight inference engine, the power consumption prediction model is compressed.

[0082] The compressed power consumption prediction model is integrated into the NB-IoT parking management system using geomagnetic sensors for parking.

[0083] The power consumption abnormality determination rule includes determining that the power consumption of the geomagnetic sensor to be detected is abnormal when the difference between the power consumption prediction value and the actual power consumption value of the geomagnetic sensor to be detected within a preset time period is greater than a dynamic threshold; Among them, the dynamic threshold is determined based on the historical power consumption fluctuation range of the sample geomagnetic sensor and the neural network model; When it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal, alarm information of the geomagnetic sensor to be detected is generated.

[0084] Specifically, a large number of training samples can be obtained, for example, 10,000 training samples are collected and divided into training set, test set and validation set, with a ratio of 70%, 15% and 15%. The initial power consumption prediction model is iteratively trained using the training set data, with the learning rate set to 0.001, epochs set to 500, batch_size set to 64, and the loss is calculated after each forward propagation, and the model parameters are updated through back propagation.

[0085] After each training cycle, the validation set data is used to evaluate the model performance of the initial power consumption prediction model. The model parameters, including learning rate and regularization, are dynamically adjusted according to the performance on the validation set, and the early stopping method is applied to avoid overfitting.

[0086] After training, the model performance is evaluated using the test set to see how it performs on new data. If the performance is not ideal, the model can be tuned by increasing the number of network layers, changing the number of hidden layer nodes, and adjusting the learning rate. Finally, a power consumption prediction model with good generalization ability is obtained, which can accurately predict the power consumption of NB-IOT geomagnetic sensors under new multivariate input data.

[0087] After completing the training of the deep learning model and verifying its performance, that is, obtaining a usable power consumption prediction model, the power consumption prediction model is converted into a form suitable for embedded devices, and the power consumption prediction model is compressed using the lightweight inference engine ONNX Runtime, and then integrated into the NB-IOT parking management system.

[0088] After the power consumption prediction model is deployed and operated, actual operation data can be collected regularly to monitor the performance of the power consumption prediction model, and the model can be updated according to actual conditions to cope with new working conditions and demands. A feedback mechanism can be established to analyze the prediction errors of the power consumption prediction model, and continuously optimize and improve the model algorithm and threshold setting strategy of the power consumption prediction model.

[0089] It can collect multi-dimensional data such as business activity information, wireless network performance parameters, environmental condition information, power-saving parameter configuration, and network signaling information of the new NB-IOT geomagnetic sensor in real time, and pass these data as input into the trained power consumption prediction model.

[0090] The power consumption prediction model calculates and analyzes these multivariate features in real time based on the rules and patterns learned from a large amount of historical data, and outputs the power consumption prediction value of the normal power consumption of the geomagnetic sensor in the future period of time.

[0091] The NB-IOT geomagnetic sensor will regularly report the remaining battery power. The NB-IO parking management system continuously records the actual power consumption of the geomagnetic sensor and compares and analyzes the actual power consumption with the predicted power consumption predicted by the power consumption prediction model. This dynamic comparison mechanism can reflect the difference between the actual working status and the expected status of the geomagnetic sensor in real time.

[0092] Based on comparative monitoring, the power consumption abnormality judgment rule can be reasonably set. For example, the power consumption abnormality judgment rule is set as the difference between the actual power consumption value and the predicted power consumption value for N consecutive days exceeds P%. N and P are dynamically determined thresholds, and N and P can be determined by the following method.

[0093] (1) Based on historical data analysis: Collect long-term historical data and analyze the fluctuation range of actual power consumption of sample geomagnetic sensors under different environmental conditions and different business activity levels under normal circumstances. Calculate statistical indicators of these fluctuations, such as mean, standard deviation, median, and quartiles, and combine time series analysis to determine a dynamically changing N and P threshold range.

[0094] (2) Adaptive threshold algorithm prediction: Use a neural network model, such as adaptive threshold methods in machine learning or statistics, such as sliding window method, moving average method, or anomaly detection algorithm (such as Z-score, local outlier factor LOF and integrated distance metric, etc.) to dynamically calculate N and P thresholds. For example, dynamically set a threshold that matches the degree of deviation of the currently observed data points based on the data distribution characteristics over a period of time.

[0095] (3) Time series prediction model feedback: Combined with deep learning or other time series prediction models, dynamic N and P thresholds are set based on the predictions of the power consumption prediction model. For example, the power consumption prediction model is used to evaluate the expected changes in the power consumption of the geomagnetic sensor in the next few days, and the corresponding allowable deviation range of actual power consumption is set based on this.

[0096] When the comparison result meets the abnormal power consumption judgment rule, it is considered that the geomagnetic sensor to be detected has abnormal power consumption. At this time, the parking management system triggers the early warning mechanism and sends an alarm to the management personnel, indicating potential battery failure, equipment performance degradation, or energy-saving strategy optimization.

[0097] In summary, by using deep learning models to predict and process real-time collected data and combining it with dynamic comparative monitoring of actual power consumption, we can accurately identify and warn of abnormal power consumption of NB-IOT geomagnetic sensors. This can not only detect equipment failures or battery life issues in a timely manner, but also provide a decision-making basis for subsequent maintenance strategies, thereby improving the operating efficiency and service quality of the entire smart parking system.

[0098] The method for detecting abnormal power consumption of a geomagnetic sensor provided in the embodiment of the present application, by setting up a continuous comparison monitoring mechanism and combining it with a dynamic threshold for alarm, can promptly detect and issue an early warning when the power consumption of the geomagnetic sensor to be detected is abnormal, thereby greatly reducing the risk of equipment failure caused by untimely detection.

[0099] The following is a description of the geomagnetic sensor power consumption abnormality detection device provided in an embodiment of the present application. The geomagnetic sensor power consumption abnormality detection device described below and the geomagnetic sensor power consumption abnormality detection method described above can be referenced to each other.

[0100] Figure 4 The schematic diagram of the structure of the device for detecting abnormal power consumption of a geomagnetic sensor provided in the embodiment of the present application is as follows: Figure 4 As shown, the device includes an acquisition module 410 , a prediction module 420 , a comparison module 430 and a detection module 440 .

[0101] An acquisition module, used to acquire multi-dimensional data of the geomagnetic sensor to be detected, wherein the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration and network signaling information of the geomagnetic sensor to be detected; A prediction module, used to input the multi-dimensional data into the power consumption prediction model to obtain the power consumption prediction value of the geomagnetic sensor to be detected in the future time period output by the power consumption prediction model; A comparison module is used to compare the power consumption prediction value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; The detection module is used to determine that the power consumption of the geomagnetic sensor to be detected is abnormal when the comparison result meets the power consumption abnormality judgment rule.

[0102] Specifically, according to an embodiment of the present application, any multiple modules among the acquisition module, the prediction module, the comparison module and the detection module can be combined into one module for implementation, or any one of the modules can be split into multiple modules.

[0103] Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module.

[0104] According to an embodiment of the present application, at least one of the acquisition module, prediction module, comparison module and detection module can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them.

[0105] Alternatively, at least one of the acquisition module, the prediction module, the comparison module and the detection module may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.

[0106] The device for detecting abnormal power consumption of a geomagnetic sensor provided in an embodiment of the present application obtains multi-dimensional data such as business activity information, wireless network performance parameters, environmental condition information, power-saving parameter configuration, and network signaling information, and predicts the normal power consumption of the geomagnetic sensor in a future time period based on the multi-dimensional data and the power consumption prediction model, so that the power consumption prediction model can more comprehensively capture the various factors affecting the power consumption of the geomagnetic sensor, thereby improving the prediction accuracy; by comparing the predicted normal power consumption with the actual power consumption detected in real time, it can accurately and timely detect whether the geomagnetic sensor has abnormal power consumption, thereby improving the abnormality detection efficiency and detection accuracy.

[0107] In some embodiments, the power consumption prediction model is obtained based on the following steps: Acquire sample multi-dimensional data based on parking management platform, narrowband IoT network and sample geomagnetic sensors; Process the sample multidimensional data; data processing includes data cleaning, converting data of different dimensions to a unified dimension, and converting the categorical variables in the sample multidimensional data into numerical values ​​through feature coding; The processed sample multidimensional data and the sample power consumption corresponding to the sample multidimensional data are used as training samples to train the initial power consumption prediction model to obtain the power consumption prediction model.

[0108] In some embodiments, the power consumption prediction model determines the power consumption prediction value based on the following steps: Convert the multi-dimensional data into the same data structure to obtain first data; Acquire local features of each scale of the first data based on feature extraction modules of different sizes of convolution kernels, pooling windows, and sliding windows; the local features of each scale include short-term local features, medium-term local features, and long-term local features; Assign different weights to local features of different scales and construct feature maps corresponding to each scale; Each feature map is spliced ​​together to obtain the fusion feature of the geomagnetic sensor to be detected; Perform semantic analysis on the fused features to obtain the semantic features of the geomagnetic sensor to be detected; The power consumption prediction value is determined based on semantic features and linear activation function.

[0109] In some embodiments, the device for detecting abnormal power consumption of a geomagnetic sensor further includes a training module, which is specifically used for: Divide the training samples into training set, validation set and test set; Iteratively train the initial power consumption prediction model based on the training set; When the current training cycle is finished, the prediction performance of the current initial power consumption prediction model is evaluated based on the validation set, and the model parameters of the current initial power consumption prediction model are adjusted based on the evaluation result; The prediction performance of the initial power consumption prediction model after training is evaluated based on the test set, and the model structure of the initial power consumption prediction model is adjusted based on the evaluation result to obtain the power consumption prediction model.

[0110] In some embodiments, the device for detecting abnormal power consumption of a geomagnetic sensor further includes an integrated module, and the integrated module is specifically used for: Based on the lightweight inference engine, the power consumption prediction model is compressed.

[0111] The compressed power consumption prediction model is integrated into the NB-IoT parking management system using geomagnetic sensors for parking.

[0112] In some embodiments, the power consumption abnormality determination rule includes determining that the power consumption of the geomagnetic sensor to be detected is abnormal when the difference between the power consumption prediction value and the actual power consumption value of the geomagnetic sensor to be detected within a preset time period is greater than a dynamic threshold; Among them, the dynamic threshold is determined based on the historical power consumption fluctuation range of the sample geomagnetic sensor and the neural network model; When it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal, alarm information of the geomagnetic sensor to be detected is generated.

[0113] It should be noted here that the geomagnetic sensor power consumption abnormality detection device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned geomagnetic sensor power consumption abnormality detection method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0114] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: a processor (Processor) 510, a communication interface (Communication Interface) 520, a memory (Memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call a computer program in the memory 530 to execute the above method, for example, including: Acquire multi-dimensional data of the geomagnetic sensor to be detected, the multi-dimensional data including business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration and network signaling information of the geomagnetic sensor to be detected; Input the multi-dimensional data into the power consumption prediction model to obtain the power consumption prediction value of the geomagnetic sensor to be detected in the future time period output by the power consumption prediction model; Compare the predicted power consumption value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; When the comparison result meets the abnormal power consumption determination rule, it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal.

[0115] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software function modules and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.

[0116] On the other hand, an embodiment of the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the methods provided in the above embodiments.

[0117] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, which stores a computer program, and the computer program is used to enable the processor to execute the methods provided in the above embodiments.

[0118] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0119] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting abnormal power consumption of a geomagnetic sensor, It is characterized in that include: Acquire multi-dimensional data of the geomagnetic sensor to be detected, wherein the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration, and network signaling information of the geomagnetic sensor to be detected; Inputting the multi-dimensional data into a power consumption prediction model to obtain a power consumption prediction value of the geomagnetic sensor to be detected in a future time period output by the power consumption prediction model; Compare the predicted power consumption value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; When the comparison result meets the abnormal power consumption determination rule, it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal.

2. The method for detecting abnormal power consumption of a geomagnetic sensor according to claim 1, It is characterized in that The power consumption prediction model is obtained based on the following steps: Acquire sample multi-dimensional data based on parking management platform, narrowband IoT network and sample geomagnetic sensors; Processing the sample multidimensional data; the data processing includes data cleaning, converting data of different dimensions to a unified dimension, and performing feature coding on categorical variables in the sample multidimensional data and converting them into numerical values; The processed sample multidimensional data and the sample power consumption corresponding to the sample multidimensional data are used as training samples to train the initial power consumption prediction model to obtain the power consumption prediction model.

3. The method for detecting abnormal power consumption of a geomagnetic sensor according to claim 1, It is characterized in that The power consumption prediction model determines the power consumption prediction value based on the following steps: Convert the multi-dimensional data into the same data structure to obtain first data; Acquire local features of each scale of the first data based on feature extraction modules of different sizes of convolution kernels, pooling windows and sliding windows; the local features of each scale include short-term local features, medium-term local features and long-term local features; Assign different weights to local features of different scales and construct feature maps corresponding to each scale; The feature maps are spliced ​​to obtain the fusion features of the geomagnetic sensor to be detected; Performing semantic analysis on the fusion features to obtain semantic features of the geomagnetic sensor to be detected; The power consumption prediction value is determined based on the semantic feature and the linear activation function.

4. The method for detecting abnormal power consumption of a geomagnetic sensor according to claim 2, It is characterized in that The training of the initial power consumption prediction model includes: Dividing the training samples into a training set, a validation set and a test set; Iteratively training the initial power consumption prediction model based on the training set; When the current training cycle ends, the prediction performance of the current initial power consumption prediction model is evaluated based on the verification set, and the model parameters of the current initial power consumption prediction model are adjusted based on the evaluation result; The prediction performance of the initial power consumption prediction model after training is evaluated based on the test set, and the model structure of the initial power consumption prediction model is adjusted based on the evaluation result to obtain the power consumption prediction model.

5. The method for detecting abnormal power consumption of a geomagnetic sensor according to claim 2, It is characterized in that After obtaining the power consumption prediction model, it also includes The power consumption prediction model is compressed based on a lightweight inference engine. The compressed power consumption prediction model is integrated into a narrowband Internet of Things parking management system that uses geomagnetic sensors for parking.

6. The method for detecting abnormal power consumption of a geomagnetic sensor according to claim 1, It is characterized in that The power consumption abnormality determination rule includes determining that the power consumption of the geomagnetic sensor to be detected is abnormal when the difference between the power consumption prediction value and the actual power consumption value of the geomagnetic sensor to be detected within a preset time period is greater than a dynamic threshold; Wherein, the dynamic threshold is determined based on the historical power consumption fluctuation range of the sample geomagnetic sensor and the neural network model; When it is determined that the power consumption of the geomagnetic sensor to be detected is abnormal, alarm information of the geomagnetic sensor to be detected is generated.

7. A device for detecting abnormal power consumption of a geomagnetic sensor, It is characterized in that include: An acquisition module, used to acquire multi-dimensional data of the geomagnetic sensor to be detected, wherein the multi-dimensional data includes business activity information, wireless network performance parameters, environmental condition information, power saving parameter configuration and network signaling information of the geomagnetic sensor to be detected; A prediction module, used for inputting the multi-dimensional data into a power consumption prediction model to obtain a power consumption prediction value of the geomagnetic sensor to be detected in a future time period output by the power consumption prediction model; A comparison module, used to compare the power consumption prediction value of the geomagnetic sensor to be detected in the future time period with the actual power consumption value to obtain a comparison result; The detection module is used to determine that the power consumption of the geomagnetic sensor to be detected is abnormal when the comparison result meets the power consumption abnormality judgment rule.

8. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and the processor is configured to execute the method for detecting abnormal power consumption of a geomagnetic sensor according to any one of claims 1 to 6 through the computer program.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for detecting abnormal power consumption of a geomagnetic sensor according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for detecting abnormal power consumption of a geomagnetic sensor according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Tablet computer screen health detection and management system based on AI

    CN120336098A

  • Dynamic self-adaptive operation and maintenance data intelligent prediction system, method and server

    CN120806287A

  • Dynamic adaptive operation and maintenance data intelligent prediction system, method and server

    CN120806287B