Remote monitoring and fault detection method and system for integrated energy-saving lamps
Through intelligent sensors and Internet of Things technology, combined with the computing power of edge gateways, fault detection and positioning of multiple heterogeneous energy-saving lamps are realized, which solves the problems of low fault detection efficiency and insufficient positioning capabilities of energy-saving lamps in the existing technology, and improves Improves fault handling efficiency and system availability.
Patent Information
- Application Number
- CN202410851367.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing energy-saving lamp fault detection methods are inefficient and difficult to meet large-scale management needs. They also lack unified management and fault location capabilities for multiple heterogeneous energy-saving lamps, resulting in insufficient fault handling efficiency and reliability.
Intelligent sensors are used to obtain real-time working status data of energy-saving lamps, which are transmitted to the edge gateway for real-time analysis through the Internet of Things. The preset fault detection algorithm is used to determine the fault node, and the location of the fault node is calculated through a distributed algorithm combined with topology information to achieve various Unified management and fault location of heterogeneous energy-saving lamps.
It improves the efficiency and reliability of energy-saving lamp troubleshooting, reduces the fault duration, optimizes usage efficiency and achieves energy saving and emission reduction.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to fault detection technology, and in particular to a remote monitoring and fault detection method and system for an integrated energy-saving lamp. Background Art
[0002] With the rapid development of Internet of Things technology, a large number of energy-saving lamps have been deployed in application scenarios such as smart cities and smart homes. Energy-saving lamps have the advantages of low energy consumption and long life, and have become the mainstream choice for lighting systems. However, energy-saving lamps are also prone to failures during actual operation, such as lamp damage and drive circuit failure, which affect the lighting function. In order to promptly discover and handle energy-saving lamp failures, effective fault detection and positioning of energy-saving lamps is required.
[0003] Traditional energy-saving lamp fault detection mainly relies on manual inspection and regular maintenance. The staff checks the working status of the energy-saving lamps on site, identifies the faulty lamps and replaces or repairs them. However, this method is inefficient and difficult to meet the needs of large-scale energy-saving lamp management. In addition, manual inspection is easily affected by subjective factors, making it difficult to ensure the accuracy and reliability of the inspection results.
[0004] However, the existing energy-saving lamp fault detection methods that combine the Internet of Things with edge computing still have some limitations. On the one hand, although the computing and storage resources of the edge gateway are higher than those of ordinary wireless sensor network nodes, they are still limited compared to cloud servers and cannot support complex fault diagnosis and positioning algorithms. On the other hand, the existing methods mainly target a single type of energy-saving lamp equipment and lack the ability to uniformly manage and detect faults for multiple heterogeneous energy-saving lamps. In addition, the existing methods focus on fault detection functions and lack support for fault location, making it difficult to accurately identify the specific location of the faulty energy-saving lamp, affecting the efficiency of fault handling.
[0005] Therefore, there is an urgent need for an integrated energy-saving lamp fault detection and positioning algorithm based on the combination of the Internet of Things and the edge gateway, which can give full play to the computing and storage advantages of the edge gateway, realize unified management and real-time fault detection of multiple heterogeneous energy-saving lamps, and combine the positioning algorithm to accurately identify the location of the faulty energy-saving lamp, thereby improving the efficiency and reliability of energy-saving lamp fault handling. Summary of the invention
[0006] The embodiments of the present invention provide a method and a system, which can solve the problems in the prior art.
[0007] According to a first aspect of the embodiments of the present invention,
[0008] Provided is a remote monitoring and fault detection method for an integrated energy-saving lamp, comprising:
[0009] Use smart sensors to obtain the working status data of energy-saving lamps in real time, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time and uses the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node.
[0010] Send a fault query message to all neighboring nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether it has a fault. If not, it forwards the fault query message to the next-hop neighbor node. Repeat this process until the query message reaches the boundary of the fault area and sends a fault reply message to the edge gateway.
[0011] According to the received fault response message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the faulty node is calculated through a distributed algorithm, and the obtained location information of the faulty node is sent to the monitoring center and visualized on the management interface.
[0012] In an optional embodiment,
[0013] Using the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault includes:
[0014] Construct a spatiotemporal topological model of the energy-saving lamp network, where nodes represent energy-saving lamp nodes, edges represent the connection relationship between nodes, weights represent the strength of association between nodes, and a time series is attached to each node to record its historical working status data;
[0015] Obtain the historical working status data of each node and perform preprocessing, use the pre-trained time series analysis model to predict the working status of the node in the preset time domain, obtain the predicted value of the node working status, and calculate the prediction deviation between the predicted value and the actual value. When the prediction deviation exceeds the preset deviation threshold, the node is judged to be abnormal, and the node status abnormality information is output;
[0016] Based on the abnormal state information of the nodes, the attribute graph of the energy-saving lamp network is constructed. Based on the attribute graph of the energy-saving lamp network, a graph neural network model is designed. The trained graph neural network model is used to predict the abnormal type and fault cause of each node, and the state difference and correlation degree between the current node and the adjacent nodes are analyzed to obtain the spatial abnormality measurement between the nodes.
[0017] An anomaly scoring function is constructed based on the prediction deviation and the spatial anomaly measurement between nodes. The anomaly score is calculated and the classification threshold is set. Based on the classification threshold, it is judged whether each energy-saving lamp node has a fault. Combined with expert knowledge and fault case library, the diagnosis results are inferred and verified, and a fault diagnosis report is output.
[0018] In an optional embodiment,
[0019] The calculation formula of the anomaly scoring function is as follows:
[0020] ;
[0021] Among them, CAS(i, t) represents the abnormal scoring function, i represents the node number, t represents the time point, α represents the weight coefficient of the prediction deviation, X(i, t) represents the actual state value of node i at time point t, represents the predicted state value of node i at time point t, β represents the weight coefficient of spatial anomaly measurement, j represents the jth node, ω (i, j) represents the edge weight between node i and node j, Y(i) represents the anomaly type prediction result of node i, Y(j) represents the anomaly type prediction result of node j, and N(i) represents the set of neighbor nodes of node i.
[0022] In an optional embodiment,
[0023] The node that receives the fault query message determines whether it has a fault. If it does not, it forwards the fault query message to the next-hop neighbor node, including:
[0024] After receiving multiple fault query messages from different directions, the source node extracts multiple attribute values contained in each fault query message, wherein the attribute values include hop count, energy, fault severity and timestamp. The source node is the node that initially receives the fault query message.
[0025] Based on the extracted attribute values, a comprehensive priority score of each fault query message is calculated, and whether to forward the fault query message is determined according to a comparison result between the comprehensive priority score and a preset priority threshold, wherein the adjustment range of the priority threshold is adaptively calculated according to the network status and node density;
[0026] After confirming the forwarding of the fault query message, the fault query message is propagated in both the forward and reverse directions. After receiving the forward fault query message, the node will first forward it to the forward next-hop candidate node, and at the same time generate a reverse query message and forward it to the reverse next-hop candidate node;
[0027] When selecting the next-hop candidate node, the energy balance factor of each candidate node is calculated based on the node's remaining energy, distance to the fault area, historical failure rate, and communication quality, and the candidate node with the largest energy balance factor is selected as the next hop for fault query message propagation.
[0028] In an optional embodiment,
[0029] According to the received fault reply message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the fault node is calculated by a distributed algorithm, including:
[0030] According to the received fault reply message, the connection relationship between the nodes in the fault area is extracted to construct a topological structure diagram of the fault area;
[0031] In the topological structure diagram of the fault area, three non-collinear boundary nodes are selected as reference nodes. The reference nodes broadcast ranging requests to their neighboring nodes, and at the same time broadcast their own location coordinates and unique request identification numbers;
[0032] The neighbor node that receives the ranging request calculates the estimated distance from itself to the faulty node through the distance estimation algorithm, and returns the estimated distance and the corresponding ranging request identification number to the reference node;
[0033] The reference node uses a random increment algorithm to construct a minimum enclosing circle based on the collected distance estimates, where the center of the circle is the estimated coordinates of the faulty node. By exchanging the coordinates of the faulty node of each reference node, the current position estimate of the faulty node is calculated;
[0034] The current position estimate of the faulty node is broadcast to all boundary nodes. The boundary nodes update their estimated distance to the faulty node based on the current positions of multiple faulty nodes received. The iteration is repeated until the change in the current position estimate of the faulty node is less than the preset threshold, and the final coordinates of the faulty node are obtained.
[0035] In an optional embodiment,
[0036] Based on the current positions of multiple faulty nodes received, the boundary node updates its estimated distance to the faulty node by:
[0037] Extracting signal information received by the boundary node to construct signal features, wherein the signal features include signal arrival time, signal strength and signal quality;
[0038] Input the signal features into a pre-trained classifier to identify the measurement value of the non-line-of-sight error, and use the expectation maximization algorithm to iteratively estimate the error distribution parameters of the identified non-line-of-sight error measurement value;
[0039] The prior probability density function of the non-line-of-sight error is constructed according to the estimated error distribution parameters, and the posterior probability density function of the true distance corresponding to the measured value of the non-line-of-sight error is calculated using Bayesian inference;
[0040] The corrected distance estimate is obtained according to the expected value of the posterior probability density function, and the corrected distance estimate is substituted into the weighted least squares problem to solve the coordinate estimate of the faulty node.
[0041] In an optional embodiment,
[0042] The corrected distance estimate is calculated as follows:
[0043] ;
[0044] in, represents the corrected distance estimate of the boundary node i to the faulty node, i represents the node number, represents the true distance between the boundary node i and the fault node, p(·) represents the probability kernel density function, H1 represents the existence of interference source, K represents the number of non-line-of-sight error models, θ t represents the weight of the t-th non-line-of-sight error model, G(·) represents the normal distribution function, μ t represents the offset of the tth non-line-of-sight error model, represents the variance of the tth non-line-of-sight error model, and d is the differential symbol.
[0045] According to a second aspect of the embodiments of the present invention,
[0046] Provided is an integrated energy-saving lamp remote monitoring and fault detection system, comprising:
[0047] The first unit is used to obtain the working status data of the energy-saving lamp in real time by using the intelligent sensor, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time, and uses the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node;
[0048] The second unit is used to send a fault query message to all neighboring nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether it has a fault. If there is no fault, the fault query message is forwarded to the next-hop neighboring node. The process is repeated until the query message reaches the boundary of the fault area, and a fault reply message is sent to the edge gateway.
[0049] The third unit is used to obtain the topological structure information of the fault area according to the received fault response message, and based on the topological structure information, calculate the location information of the faulty node through a distributed algorithm, send the obtained location information of the faulty node to the monitoring center and visualize it on the management interface.
[0050] According to a third aspect of the embodiments of the present invention,
[0051] An electronic device is provided, comprising:
[0052] processor;
[0053] a memory for storing processor-executable instructions;
[0054] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0055] According to a fourth aspect of the embodiments of the present invention,
[0056] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0057] In this embodiment, by using intelligent sensors to obtain the working status data of energy-saving lamps in real time, combined with the real-time data analysis and fault detection algorithm of the edge gateway, it is possible to achieve real-time monitoring and fault detection of the energy-saving lamp system, and timely discover the faulty nodes. By sending fault query messages to neighboring nodes through the edge gateway, and repeatedly forwarding the query messages until the boundary of the fault area is reached, the topological structure information of the fault area can be automatically identified without human intervention. Based on the acquired topological structure information of the fault area, the precise location information of the faulty node is calculated using a distributed algorithm, which improves the efficiency of fault diagnosis and maintenance. The calculated faulty node location information is sent to the monitoring center and visualized on the management interface, providing maintenance personnel with intuitive fault information, facilitating rapid positioning and handling of faults, while reducing the duration of faults, improving the availability and operation and maintenance efficiency of the system, and by real-time monitoring of the working status of energy-saving lamps, it helps to optimize the use efficiency of energy-saving lamps and achieve energy conservation and emission reduction. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of a flow chart of a remote monitoring and fault detection method for an integrated energy-saving lamp according to an embodiment of the present invention;
[0059] Figure 2 It is a structural schematic diagram of a remote monitoring and fault detection system for an integrated energy-saving lamp according to an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0062] Figure 1 FIG. 1 is a flow chart of a remote monitoring and fault detection method for an integrated energy-saving lamp according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0063] S101. Use smart sensors to obtain the working status data of energy-saving lamps in real time, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time, and uses a preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node.
[0064] Among them, on the edge gateway, the algorithm first pre-processes the collected data, including data cleaning, normalization and other operations to improve data quality. Then, the algorithm uses a threshold-based anomaly detection method to determine whether each street light node has a fault.
[0065] Specifically, the algorithm sets different working thresholds for different types of energy-saving lamp failures, such as burnt-out bulbs and power supply line failures. When the collected data of a node exceeds the corresponding working threshold, the node is determined to be faulty. Optionally, in order to minimize the false alarm rate, after determining that a fault has occurred, the algorithm will also combine time series analysis and other technologies to conduct a secondary confirmation of the fault.
[0066] In an optional embodiment,
[0067] Using the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault includes:
[0068] Construct a spatiotemporal topological model of the energy-saving lamp network, where nodes represent energy-saving lamp nodes, edges represent the connection relationship between nodes, weights represent the strength of association between nodes, and a time series is attached to each node to record its historical working status data;
[0069] Obtain the historical working status data of each node and perform preprocessing, use the pre-trained time series analysis model to predict the working status of the node in the preset time domain, obtain the predicted value of the node working status, and calculate the prediction deviation between the predicted value and the actual value. When the prediction deviation exceeds the preset deviation threshold, the node is judged to be abnormal, and the node status abnormality information is output;
[0070] Based on the abnormal state information of the nodes, the attribute graph of the energy-saving lamp network is constructed. Based on the attribute graph of the energy-saving lamp network, a graph neural network model is designed. The trained graph neural network model is used to predict the abnormal type and fault cause of each node, and the state difference and correlation degree between the current node and the adjacent nodes are analyzed to obtain the spatial abnormality measurement between the nodes.
[0071] An anomaly scoring function is constructed based on the prediction deviation and the spatial anomaly measurement between nodes. The anomaly score is calculated and the classification threshold is set. Based on the classification threshold, it is judged whether each energy-saving lamp node has a fault. Combined with expert knowledge and fault case library, the diagnosis results are inferred and verified, and a fault diagnosis report is output.
[0072] For example, first, it is necessary to build a topological model that reflects the spatiotemporal characteristics of the entire energy-saving lamp network based on the location and communication connection relationship of the energy-saving lamp nodes. The model can be represented by a weighted undirected graph, in which the nodes represent the energy-saving lamp nodes, the edges represent the connection relationship between the nodes, and the weights represent the strength of the association between the nodes. The weights of the edges can be calculated based on factors such as the physical distance between the nodes, the signal strength, and the data transmission frequency, reflecting the strength of the association between the nodes. At the same time, in order to characterize the temporal dynamics of the node state, a time series can be attached to each node to record its historical state data. Ultimately, the spatiotemporal topological model can not only reflect the relative position and connection relationship of the nodes in space, but also show the evolution law of its state in time.
[0073] Based on the spatiotemporal topological model, we first model and predict the state data of each node in the time dimension.
[0074] Specifically, the historical working status data of each node is first preprocessed, such as outlier filtering, missing value interpolation, data normalization, etc., to improve data quality, and then an appropriate time series analysis model is selected, such as ARIMA, LSTM, GRU, etc., and training and parameter tuning are performed according to the historical working status data of the node; the trained model is used to predict the future short-term state of the node, and the deviation measurement between the predicted value and the actual value is calculated, such as mean square error, mean absolute percentage error, etc.; the abnormal threshold is set according to the prediction deviation. When the deviation between the actual state and the predicted state exceeds the threshold, the node is judged to be abnormal at this moment, and the subsequent spatial correlation analysis is triggered.
[0075] After obtaining the abnormal status information of each node, the historical working status data and working status abnormal information of each node are used as the initial features of the node to construct the attribute graph of the street light network; the hierarchical structure and propagation mechanism of the graph neural network are designed, such as using classic models such as graph convolutional network (GCN) and graph attention network (GAT), through node feature aggregation and graph structure propagation, the hidden representation of the node is updated, so that it can integrate the information of adjacent nodes and the network topology.
[0076] In the output layer of the graph neural network, a node status classification task is set to predict the abnormal type and fault cause of each node, and the loss function is calculated. The back propagation algorithm is used to optimize the parameters of the graph neural network so that it can capture the spatial dependencies between nodes as accurately as possible and improve the accuracy of fault diagnosis.
[0077] After completing the prediction modeling of the time dimension and the correlation modeling of the space dimension, we need to combine the analysis results of the two dimensions to make the final abnormal judgment and fault diagnosis of the node status. Specifically, for each node, compare its actual status with the expected status given by the time prediction model, calculate the deviation value between the two, combine the output of the graph neural network model, analyze the state difference and correlation degree between the node and the adjacent nodes, calculate the spatial anomaly metric, and design a comprehensive anomaly scoring function based on the time deviation and spatial anomaly metric to determine the degree of abnormality of the node in the two dimensions of time and space. According to the anomaly score, set the threshold of classification, and make a preliminary diagnosis of the node status, such as normal, mild abnormality, severe abnormality, etc. Optionally, further combine expert knowledge and fault case library to reason and verify the diagnosis results, give possible fault causes and countermeasures, and form a final diagnosis report.
[0078] In an optional embodiment,
[0079] The calculation formula of the anomaly scoring function is as follows:
[0080] ;
[0081] Among them, CAS(i, t) represents the abnormal scoring function, i represents the node number, t represents the time point, α represents the weight coefficient of the prediction deviation, X(i, t) represents the actual state value of node i at time point t, represents the predicted state value of node i at time point t, β represents the weight coefficient of spatial anomaly measurement, j represents the jth node, ω (i, j) represents the edge weight between node i and node j, Y(i) represents the anomaly type prediction result of node i, Y(j) represents the anomaly type prediction result of node j, and N(i) represents the set of neighbor nodes of node i.
[0082] In this embodiment, through modeling and prediction in the time dimension, the abnormal change trend of the node status can be discovered in time, and a basis can be provided for subsequent fault diagnosis. By constructing a graph neural network model, the spatial correlation pattern of the street light node status can be fully explored to discover possible regional faults or group anomalies. At the same time, the graph neural network can also use the connection information between nodes to infer and warn the impact range of the faulty node. Through spatiotemporal correlation analysis, the temporal and spatial correlation characteristics of the node status data can be fully utilized to mine abnormal patterns from multiple dimensions and improve the accuracy and comprehensiveness of the diagnosis. At the same time, the interpretability and applicability of the model are also taken into account. Through the integrated application of spatiotemporal topological modeling, time series prediction, graph neural network and other technologies, the diagnosis process is made more transparent and reasonable, which is convenient for engineering practice.
[0083] S102. Send a fault query message to all neighbor nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether there is a fault on its own. If there is no fault, the fault query message is forwarded to the next-hop neighbor node. The process is repeated until the query message reaches the boundary of the fault area, and a fault reply message is sent to the edge gateway.
[0084] The fault query message contains the fault node ID, message generation timestamp, message TTL (Time To Live) counter, etc. TTL is used to limit the propagation range of the message, and the initial value is set to the maximum number of hops in the network; the fault reply message contains the node's own ID, the number of hops to the fault node, the routing path, and other information.
[0085] For example, after receiving the fault query message, the neighbor node of node A (denoted as node B) first determines whether it has also failed. If node B works normally, it stores the received message in the cache, decrements the TTL value of the message by 1, and checks whether the TTL value of the message is equal to 0. If so, it stops forwarding, otherwise it forwards the message to all neighbor nodes of node B (except node A).
[0086] Repeat the above forwarding steps, and the fault query message will be recursively propagated among the neighboring nodes of node A. When the message reaches the boundary of the fault area, since the neighboring nodes of the boundary node are all working normally, the TTL value of the message will eventually decrease to 0 and stop forwarding. These boundary nodes mark the scope of the fault area.
[0087] In an optional embodiment,
[0088] The node that receives the fault query message determines whether it has a fault. If it does not, it forwards the fault query message to the next-hop neighbor node, including:
[0089] After receiving multiple fault query messages from different directions, the source node extracts multiple attribute values contained in each fault query message, wherein the attribute values include hop count, energy, fault severity and timestamp. The source node is the node that initially receives the fault query message.
[0090] Based on the extracted attribute values, a comprehensive priority score of each fault query message is calculated, and whether to forward the fault query message is determined according to a comparison result between the comprehensive priority score and a preset priority threshold, wherein the adjustment range of the priority threshold is adaptively calculated according to the network status and node density;
[0091] After confirming the forwarding of the fault query message, the fault query message is propagated in both the forward and reverse directions. After receiving the forward fault query message, the node will first forward it to the forward next-hop candidate node, and at the same time generate a reverse query message and forward it to the reverse next-hop candidate node;
[0092] When selecting the next-hop candidate node, the energy balance factor of each candidate node is calculated based on the node's remaining energy, distance to the fault area, historical failure rate, and communication quality, and the candidate node with the largest energy balance factor is selected as the next hop for fault query message propagation.
[0093] For example, after receiving the query message, the node extracts multiple attribute values contained in the message, such as the number of hops, energy, fault severity, timestamp, etc., and performs weighted summation on each attribute to obtain a comprehensive priority score. The weight of each attribute can be adaptively adjusted according to the network environment and application requirements. For example, in a scenario where energy is relatively tight, the weight of the energy attribute is increased; in a scenario where real-time requirements are high, the weight of the timestamp attribute is increased; in a scenario where faults occur frequently, the weight of the fault severity attribute is increased.
[0094] The node maintains a priority threshold with an initial value set to a high level. When the node receives multiple query messages with a priority lower than the priority threshold in succession, the priority threshold value is gradually reduced to expand the scope of message forwarding; conversely, when the node receives multiple query messages with a priority higher than the priority threshold in succession, the priority threshold value is gradually increased to reduce redundant message transmission. The adjustment range of the threshold can be adaptively calculated based on factors such as network status and node density. Specifically, the number of fault query messages received by the node within a certain period of time is first counted to obtain the average receiving rate, and the number of fault query messages forwarded by the node within a certain period of time is counted to obtain the average forwarding rate. The ratio between the average receiving rate and the average forwarding rate is calculated to obtain the forwarding ratio.
[0095] If the forwarding ratio is greater than the set upper threshold, it means that the current priority threshold is too low and you need to increase the threshold to reduce the forwarding volume. If the forwarding ratio is less than the set lower threshold, it means that the current priority threshold is too high and you need to lower the threshold to increase the forwarding volume.
[0096] The adjustment range of the priority threshold is calculated based on the deviation between the forwarding ratio and the upper and lower thresholds. The greater the deviation, the greater the adjustment range. The priority threshold is updated according to the calculated adjustment range to obtain a new priority threshold.
[0097] During the forwarding process, the fault query message is transmitted in both the forward direction (from the source node to the fault area) and the reverse direction (from the fault area to the source node). After receiving the forward query message, the node will first forward it to the next hop node in the forward direction; at the same time, the node will also generate a reverse query message and forward it to the next hop node in the reverse direction. The forward and reverse message transmissions are performed alternately to form a closed-loop query path.
[0098] Optionally, during the bidirectional alternating transmission, the node records the priority and timestamp of the received forward and reverse messages, and merges and filters the messages according to certain strategies to reduce redundant transmission. For example, when a node receives forward and reverse messages with similar priorities at the same time, it can choose to discard one of them and only keep the message with the newer timestamp.
[0099] When selecting the next hop node, the node must not only consider the remaining energy of the candidate node, but also comprehensively evaluate other factors, such as the location of the node, failure rate, communication quality, etc. Among them, the node can estimate the remaining available energy by measuring the current power of its own battery or energy device. The location of the node can be obtained by setting up sensors. The historical failure rate of the node can be calculated by maintaining a fault record log at the node, recording the time and type of failure of each node. By counting the number of node failures in a period of time and comparing it with the total working time of the time period, the historical failure rate of the node can be calculated. The notification quality of the node is measured by measuring the received signal strength.
[0100] Based on the above factors, an energy balance factor EBF (Energy Balance Factor) can be defined to quantify the comprehensive score of each candidate node. The node selects the candidate node with the largest EBF value as the next hop, thereby ensuring energy balance while taking into account network performance and reliability.
[0101] Specifically, the data of different dimensions such as the node's remaining energy, location, historical failure rate, and communication quality are first normalized so that their numerical ranges are unified between 0 and 1. This can eliminate the impact of different dimensions and ensure that the contribution weight of each factor to the energy balance factor is equal.
[0102] According to the actual application scenario and needs, the importance of each factor to the energy balance factor is determined and assigned different weight values. For example, in the case of energy constraints, the weight of the remaining energy factor can be set higher; and in an environment with poor communication quality, the weight of the communication quality factor can be appropriately increased.
[0103] For each node, its normalized residual energy, distance to the fault area (the closer the distance, the higher the score), historical failure rate (the lower the failure rate, the higher the score), and communication quality score are multiplied by the corresponding weight values to obtain four weighted scores. The four weighted scores are added together to obtain the comprehensive weighted score of the node as the energy balance factor of the node. Among all candidate nodes, the node with the largest energy balance factor value is selected as the next hop node for fault query message propagation.
[0104] In this embodiment, by calculating the comprehensive priority score of each fault query message and combining it with an adaptive priority threshold, low-priority redundant query messages can be effectively filtered out, thereby reducing network load and improving the efficiency of fault query. A two-way propagation strategy is adopted, that is, the fault query message propagates in both the forward and reverse directions. This strategy can speed up the speed at which the fault query message reaches the boundary of the fault area, thereby shortening the time of the entire fault response. By comprehensively considering factors such as the remaining energy of the node, the distance from the fault area, the historical failure rate, and the communication quality, the energy balance factor is calculated to select the best next-hop node, which can effectively balance the energy consumption of the node and extend the overall life cycle of the network. By adaptively adjusting the priority threshold, it can adapt to different network environments and conditions, providing a more efficient, reliable, and energy-saving solution for IoT fault detection and maintenance.
[0105] S103. According to the received fault response message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the faulty node is calculated by a distributed algorithm, and the obtained location information of the faulty node is sent to the monitoring center and visualized on the management interface.
[0106] Among them, the topological structure information of the fault area is that when a node failure occurs in the network, the faulty node will broadcast the fault information to the surrounding neighboring nodes. The neighboring nodes that receive the fault information will further propagate the fault information to other nodes until the edge node receives the fault information. After receiving the fault information, the edge node will send a fault reply message to the sink node, which contains the routing path information from the edge node to the faulty node. The sink node collects the fault reply messages sent by all edge nodes, extracts the connection relationship between the nodes in the fault area, and constructs a topological structure diagram of the fault area.
[0107] In an optional embodiment,
[0108] According to the received fault reply message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the fault node is calculated by a distributed algorithm, including:
[0109] According to the received fault reply message, the connection relationship between the nodes in the fault area is extracted to construct a topological structure diagram of the fault area;
[0110] In the topological structure diagram of the fault area, three non-collinear boundary nodes are selected as reference nodes. The reference nodes broadcast ranging requests to their neighboring nodes, and at the same time broadcast their own location coordinates and unique request identification numbers;
[0111] The neighbor node that receives the ranging request calculates the estimated distance from itself to the faulty node through the distance estimation algorithm, and returns the estimated distance and the corresponding ranging request identification number to the reference node;
[0112] The reference node uses a random increment algorithm to construct a minimum enclosing circle based on the collected distance estimates, where the center of the circle is the estimated coordinates of the faulty node. By exchanging the coordinates of the faulty node of each reference node, the current position estimate of the faulty node is calculated;
[0113] The current position estimate of the faulty node is broadcast to all boundary nodes. The boundary nodes update their estimated distance to the faulty node based on the current positions of multiple faulty nodes received. The iteration is repeated until the change in the current position estimate of the faulty node is less than the preset threshold, and the final coordinates of the faulty node are obtained.
[0114] Exemplarily, first, based on the received fault response message, the connection relationship between the nodes in the fault area is extracted, and the topological structure diagram of the fault area is constructed using graph theory knowledge. In the topological diagram of the fault area, three non-collinear boundary nodes are selected as reference nodes. The reference nodes broadcast ranging requests to their neighbor nodes respectively, carrying their own known position coordinates and unique request identification number.
[0115] The neighbor node that receives the ranging request calculates the estimated distance from itself to the reference node that sends the ranging request through a distance estimation algorithm (such as RSSI or TOA), and returns these distance estimates together with the corresponding ranging request identification number to the reference node.
[0116] The minimum enclosing circle is constructed using a random incremental algorithm. Specifically, three distance estimates are first randomly selected to determine an initial circle. Then, other distance estimates are gradually added to the circle. Each time an estimate is added, the center and radius of the circle are updated so that it can cover all the added estimates. This process is repeated until all distance estimates are contained in the circle.
[0117] By exchanging the coordinates of the faulty node of each reference node, the current position estimate of the faulty node is calculated. When the three nodes exchange the coordinates of the faulty node, they also exchange the radius of the minimum enclosing circle calculated by each node. The weighted average of the coordinate estimates of the three nodes is taken as the current position estimate P. The weight depends on the radius of the corresponding minimum enclosing circle. The smaller the radius, the greater the weight.
[0118] The flooding routing protocol is used to broadcast the current location estimate to all boundary nodes. The boundary nodes comprehensively consider the multiple location estimates received and update their distance estimates to the faulty node by weighted average. The above steps are repeated until the change in the location estimate is less than the preset threshold or the maximum number of iterations is reached, and the current location estimate is used as the final coordinate of the faulty node.
[0119] In this embodiment, by analyzing the received fault reply message, the connection relationship between the nodes in the fault area is extracted, and the topological structure diagram of the fault area is constructed. This automated fault area identification method does not require human intervention, which greatly improves the efficiency of fault diagnosis. By adopting the idea of distributed collaborative positioning, multiple reference nodes are used to work together and exchange positioning information with each other, thereby improving the accuracy and robustness of positioning, and reducing the risk of single-point failure and error accumulation. By using the reference node to construct the minimum enclosing circle using a random increment algorithm, combined with the iterative update optimization of the boundary node, the coordinate position of the fault node can be accurately calculated in the end, and the positioning accuracy is high, which provides an important basis for subsequent fault diagnosis and maintenance.
[0120] In an optional embodiment,
[0121] Based on the current positions of multiple faulty nodes received, the boundary node updates its estimated distance to the faulty node by:
[0122] Extracting signal information received by the boundary node to construct signal features, wherein the signal features include signal arrival time, signal strength and signal quality;
[0123] Input the signal features into a pre-trained classifier to identify the measurement value of the non-line-of-sight error, and use the expectation maximization algorithm to iteratively estimate the error distribution parameters of the identified non-line-of-sight error measurement value;
[0124] The prior probability density function of the non-line-of-sight error is constructed according to the estimated error distribution parameters, and the posterior probability density function of the true distance corresponding to the measured value of the non-line-of-sight error is calculated using Bayesian inference;
[0125] The corrected distance estimate is obtained according to the expected value of the posterior probability density function, and the corrected distance estimate is substituted into the weighted least squares problem to solve the coordinate estimate of the faulty node.
[0126] Exemplarily, the signal information received by the boundary node is first extracted to construct the signal feature, and the obtained feature vector is input into the pre-trained classifier to identify the measurement value that may have NLOS error. The classifier can use common machine learning algorithms such as support vector machine and random forest. For the identified NLOS measurement value, it is assumed that its error obeys the Gaussian mixture distribution, and the expectation maximization (EM) algorithm is used to estimate the error distribution parameters. The EM algorithm estimates the mean, variance, weight and other parameters of the Gaussian mixture distribution by alternating the E step and the M step in an iterative manner, wherein the E step calculates the posterior probability that each NLOS measurement value belongs to each Gaussian component based on the current parameter estimate. The M step updates the parameter estimate of the Gaussian mixture distribution based on the posterior probability calculated by the E step. Repeat the E step and the M step until the parameter estimate converges or the maximum number of iterations is reached to obtain the Gaussian mixture distribution model of the NLOS error.
[0127] Based on the obtained NLOS error distribution parameters, the prior probability density function of the NLOS error is constructed. Based on the prior probability density function of the NLOS error and the conditional probability of the distance measurement, the posterior probability density function of the true distance is calculated. The posterior probability density function represents the probability distribution of different values of the true distance under the condition of a given NLOS measurement. The expected value of the posterior probability density function is calculated as the corrected distance estimate of the NLOS measurement.
[0128] Substitute the corrected distance estimate into the weighted least squares problem to solve the coordinates of the faulty node. Specifically, construct an observation equation with the corrected distance estimate as the observation value and the coordinates of the faulty node as the unknown quantity. Set a weight for each distance estimate to reflect its credibility. The weight can be determined based on factors such as the variance of the NLOS error distribution. Solve the weighted least squares problem to obtain the optimal estimate of the coordinates of the faulty node.
[0129] In an optional embodiment,
[0130] The corrected distance estimate is calculated as follows:
[0131] ;
[0132] in, represents the corrected distance estimate of the boundary node i to the faulty node, i represents the node number, represents the true distance between the boundary node i and the fault node, p(·) represents the probability kernel density function, H1 represents the existence of interference source, K represents the number of non-line-of-sight error models, θ t represents the weight of the t-th non-line-of-sight error model, G(·) represents the normal distribution function, μ trepresents the offset of the tth non-line-of-sight error model, represents the variance of the tth non-line-of-sight error model, and d is the differential symbol.
[0133] In this embodiment, by using machine learning technology to identify and estimate non-line-of-sight errors, and by correcting the distance estimate through Bayesian inference, the accuracy of distance measurement is significantly improved, providing more reliable input data for subsequent fault node positioning, making the entire positioning system more robust to non-line-of-sight errors. The expectation maximization algorithm is used to iteratively estimate the distribution parameters of the non-line-of-sight error, and the distance estimate is corrected through Bayesian inference. The computational complexity of this solution is low, and it can efficiently complete the estimation and distance correction of non-line-of-sight errors, and is suitable for running on resource-constrained edge devices. Finally, a more accurate coordinate of the fault node is obtained through weighted least squares solution. Since the input distance estimate has been corrected by the non-line-of-sight error, the positioning accuracy has been significantly improved compared to traditional methods.
[0134] Figure 2 FIG. 1 is a schematic diagram of the structure of the remote monitoring and fault detection system of the integrated energy-saving lamp according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0135] The first unit is used to obtain the working status data of the energy-saving lamp in real time by using the intelligent sensor, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time, and uses the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node;
[0136] The second unit is used to send a fault query message to all neighboring nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether it has a fault. If there is no fault, the fault query message is forwarded to the next-hop neighboring node. The process is repeated until the query message reaches the boundary of the fault area, and a fault reply message is sent to the edge gateway.
[0137] The third unit is used to obtain the topological structure information of the fault area according to the received fault response message, and based on the topological structure information, calculate the location information of the faulty node through a distributed algorithm, send the obtained location information of the faulty node to the monitoring center and visualize it on the management interface.
[0138] According to a third aspect of the embodiments of the present invention,
[0139] An electronic device is provided, comprising:
[0140] processor;
[0141] a memory for storing processor-executable instructions;
[0142] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0143] According to a fourth aspect of the embodiments of the present invention,
[0144] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0145] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A remote monitoring and fault detection method for an integrated energy-saving lamp, characterized in that: include: Use smart sensors to obtain the working status data of energy-saving lamps in real time, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time and uses the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node. Send a fault query message to all neighboring nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether it has a fault. If not, it forwards the fault query message to the next-hop neighbor node. Repeat this process until the query message reaches the boundary of the fault area and sends a fault reply message to the edge gateway. According to the received fault reply message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the faulty node is calculated by a distributed algorithm, and the obtained location information of the faulty node is sent to the monitoring center and visualized on the management interface; Using the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault includes: Construct a spatiotemporal topological model of the energy-saving lamp network, where nodes represent energy-saving lamp nodes, edges represent the connection relationship between nodes, weights represent the strength of association between nodes, and a time series is attached to each node to record its historical working status data; Obtain the historical working status data of each node and perform preprocessing, use the pre-trained time series analysis model to predict the working status of the node in the preset time domain, obtain the predicted value of the node working status, and calculate the prediction deviation between the predicted value and the actual value. When the prediction deviation exceeds the preset deviation threshold, the node is judged to be abnormal, and the node status abnormality information is output; Based on the abnormal state information of the nodes, the attribute graph of the energy-saving lamp network is constructed. Based on the attribute graph of the energy-saving lamp network, a graph neural network model is designed. The trained graph neural network model is used to predict the abnormal type and fault cause of each node, and the state difference and correlation degree between the current node and the adjacent nodes are analyzed to obtain the spatial abnormality measurement between the nodes. An anomaly scoring function is constructed based on the prediction deviation and the spatial anomaly measurement between nodes. The anomaly score is calculated and the classification threshold is set. Based on the classification threshold, it is determined whether each energy-saving lamp node has a fault. In combination with expert knowledge and the fault case library, the diagnosis results are inferred and verified, and a fault diagnosis report is output. The calculation formula of the anomaly scoring function is as follows: ; Among them, CAS(i, t) represents the abnormal scoring function, i represents the node number, t represents the time point, α represents the weight coefficient of the prediction deviation, X(i, t) represents the actual state value of node i at time point t, represents the predicted state value of node i at time point t, β represents the weight coefficient of spatial anomaly measurement, j represents the jth node, ω (i, j) represents the edge weight between node i and node j, Y(i) represents the anomaly type prediction result of node i, Y(j) represents the anomaly type prediction result of node j, and N(i) represents the neighbor node set of node i; The node that receives the fault query message determines whether it has a fault. If it does not, it forwards the fault query message to the next-hop neighbor node, including: After receiving multiple fault query messages from different directions, the source node extracts multiple attribute values contained in each fault query message, wherein the attribute values include hop count, energy, fault severity and timestamp. The source node is the node that initially receives the fault query message. Based on the extracted attribute values, a comprehensive priority score of each fault query message is calculated, and whether to forward the fault query message is determined according to a comparison result between the comprehensive priority score and a preset priority threshold, wherein the adjustment range of the priority threshold is adaptively calculated according to the network status and node density; After confirming the forwarding of the fault query message, the fault query message is propagated in both the forward and reverse directions. After receiving the forward fault query message, the node will first forward it to the forward next-hop candidate node, and at the same time generate a reverse query message and forward it to the reverse next-hop candidate node; When selecting the next-hop candidate node, the energy balance factor of each candidate node is calculated based on the node's remaining energy, distance to the fault area, historical failure rate, and communication quality, and the candidate node with the largest energy balance factor is selected as the next hop for fault query message propagation; According to the received fault reply message, the topological structure information of the fault area is obtained, and based on the topological structure information, the location information of the fault node is calculated by a distributed algorithm, including: According to the received fault reply message, the connection relationship between the nodes in the fault area is extracted to construct a topological structure diagram of the fault area; In the topological structure diagram of the fault area, three non-collinear boundary nodes are selected as reference nodes. The reference nodes broadcast ranging requests to their neighboring nodes, and at the same time broadcast their own location coordinates and unique request identification numbers; The neighbor node that receives the ranging request calculates the estimated distance from itself to the faulty node through the distance estimation algorithm, and returns the estimated distance and the corresponding ranging request identification number to the reference node; The reference node uses a random increment algorithm to construct a minimum enclosing circle based on the collected distance estimates, where the center of the circle is the estimated coordinates of the faulty node. By exchanging the coordinates of the faulty node of each reference node, the current position estimate of the faulty node is calculated; The current position estimate of the faulty node is broadcast to all boundary nodes. The boundary nodes update their estimated distance to the faulty node based on the current positions of multiple faulty nodes received. The iteration is repeated until the change in the current position estimate of the faulty node is less than the preset threshold, and the final coordinates of the faulty node are obtained.
2. The method according to claim 1, characterized in that Based on the current positions of multiple faulty nodes received, the boundary node updates its estimated distance to the faulty node by: Extracting signal information received by the boundary node to construct signal features, wherein the signal features include signal arrival time, signal strength and signal quality; Input the signal features into a pre-trained classifier to identify the measurement value of the non-line-of-sight error, and use the expectation maximization algorithm to iteratively estimate the error distribution parameters of the identified non-line-of-sight error measurement value; The prior probability density function of the non-line-of-sight error is constructed according to the estimated error distribution parameters, and the posterior probability density function of the true distance corresponding to the measured value of the non-line-of-sight error is calculated using Bayesian inference; The corrected distance estimate is obtained according to the expected value of the posterior probability density function, and the corrected distance estimate is substituted into the weighted least squares problem to solve the coordinate estimate of the faulty node.
3. The method according to claim 2, characterized in that The corrected distance estimate is calculated as follows: ; in, represents the corrected distance estimate of the boundary node i to the faulty node, i represents the node number, represents the true distance between the boundary node i and the fault node, p(·) represents the probability kernel density function, H1 represents the existence of interference source, K represents the number of non-line-of-sight error models, θ t represents the weight of the t-th non-line-of-sight error model, G(·) represents the normal distribution function, μ t represents the offset of the tth non-line-of-sight error model, represents the variance of the tth non-line-of-sight error model, and d is the differential symbol.
4. A remote monitoring and fault detection system for an integrated energy-saving lamp, used to implement the method described in any one of claims 1 to 3, characterized in that: include: The first unit is used to obtain the working status data of the energy-saving lamp in real time by using the intelligent sensor, and transmit the working status data to the edge gateway through the Internet of Things. The edge gateway analyzes the received working status data in real time, and uses the preset fault detection algorithm to determine whether each energy-saving lamp node has a fault. When it is detected that the working status data of a certain energy-saving lamp node exceeds the preset normal working threshold, the energy-saving lamp node is determined to be a faulty node; The second unit is used to send a fault query message to all neighboring nodes of the faulty node through the edge gateway. The node that receives the fault query message determines whether it has a fault. If there is no fault, the fault query message is forwarded to the next-hop neighboring node. The process is repeated until the query message reaches the boundary of the fault area, and a fault reply message is sent to the edge gateway. The third unit is used to obtain the topological structure information of the fault area according to the received fault response message, and based on the topological structure information, calculate the location information of the faulty node through a distributed algorithm, send the obtained location information of the faulty node to the monitoring center and visualize it on the management interface.
5. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 3.
6. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 3 is implemented.
