Automatic fault recovery method of Internet of Things communication system based on fault-tolerant design
By deploying multiple types of building risk monitors and reinforcement learning algorithms in the Internet of Things communication system, a fault prediction model is constructed, which realizes rapid detection and adaptive repair of internal faults in the building, and solves the problem of slow and impossible fault recovery in the existing technology. Monitoring internal node faults improves the efficiency and accuracy of fault handling.
Patent Information
- Application Number
- CN202411027023.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In IoT communication systems with a large number of nodes or widely distributed nodes, fault recovery speed is slow, recovery efficiency is low, and internal node faults cannot be detected, affecting the safety and operational efficiency of the building.
Build a multi-source data monitoring network by deploying multiple types of building risk monitors, collect building status data in real time, use the weighted average method for data fusion, combine with preset thresholds and anomaly detection algorithms, and use reinforcement learning algorithms to build fault prediction models to achieve Automatic fault detection and adaptive repair, generating fault reports and improvement suggestions.
It improves the accuracy and timeliness of fault detection, quickly locates fault points, realizes adaptive automatic repair, reduces the delay and constraints of manual operations, and improves the efficiency of fault handling.
Smart Images

Figure CN118748642A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and in particular to an automatic fault recovery method for an Internet of Things communication system based on fault-tolerant design. Background Art
[0002] With the rapid development of Internet of Things technology, more and more devices and systems are connected to the Internet, making the application of Internet of Things communication systems more and more extensive in modern society, such as smart transportation, smart home, and telemedicine. However, due to equipment aging, network fluctuations, and software errors, system failures occur, affecting the normal operation of the system.
[0003] In terms of building monitoring, with the increase in the number of building monitors and the diversification of their functions, the complexity of IoT communication systems is also increasing, including various sensors, actuators, gateways and cloud server components, which work together to achieve comprehensive monitoring of building environment, equipment status and energy consumption. In complex IoT communication systems, the risk of failure is inevitable. These failures may arise from equipment failures, communication link problems, software errors or external interference. In building monitors, any failure may lead to data loss, false alarms or system paralysis, thus affecting the safety and operational efficiency of the building.
[0004] For example, the patent with authorization announcement number CN109714733B discloses a method for detecting and recovering IoT communication failures and an IoT system, including: the first UE transmits a wireless fault notification signal when it fails, and the second UE scans the wireless signal based on a preset scanning frequency band when it is operating normally, and establishes a short-distance communication wireless connection with the first UE, and performs a fault recovery operation on the first UE based on the short-distance communication wireless connection. The method and IoT system of this technical solution use short-distance communication technology to build a point-to-point network between adjacent nodes, and realize abnormal terminal recovery in a small-scale, gradual diffusion manner, which can solve the island problem caused by wireless communication coverage, terminal failure, etc., bring convenience to subsequent troubleshooting and operation and maintenance, and solve the positioning and system update problems of abnormal terminals in cellular IoT.
[0005] The above existing technologies all have the following problems: 1) when the number of nodes is large or they are widely distributed, the recovery speed is slow and the recovery efficiency is low; 2) internal faults of the nodes cannot be monitored. Summary of the invention
[0006] In view of the shortcomings of the existing technology, the present invention proposes an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design. By deploying multiple types of building risk monitors to build a multi-source data monitoring network, building status data is collected in real time, and data fusion is performed using Internet of Things technology and a weighted average method. Combined with preset thresholds and anomaly detection algorithms, the system can automatically detect anomalies and risk situations in buildings. Based on the fault features extracted from the data, a reinforcement learning algorithm is used to build a fault prediction model. After the fault is isolated, the system performs adaptive automatic repair and generates repair suggestions. The fault event and its processing process are recorded, and fault reports and improvement suggestions are generated through big data analysis, thereby improving the accuracy and timeliness of fault detection.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design includes:
[0009] Step S1: construct a multi-source data monitoring network by deploying multiple types of building risk monitors, collect building status data, and perform data fusion to obtain fused building status data;
[0010] Step S2: Extract the fault features of vibration, tilt, and settlement from the fused building status data. Based on the historical data, real-time building status data, and fault features, use the reinforcement learning algorithm to build and optimize the fault prediction model. Through real-time analysis of the fused building status data, combined with the preset threshold and anomaly detection algorithm, automatically detect the anomalies and risk conditions in the building. When the CPU detects an anomaly or fault, it locates the fault point in combination with the fault prediction model and isolates the fault point.
[0011] Step S3: After the fault is isolated, the system performs adaptive automatic repair and automatically generates repair suggestions based on the fault type and repair status. If the automatic repair fails, manual intervention is performed;
[0012] Step S4: Record fault events and their handling process, and generate fault reports and improvement suggestions regularly.
[0013] Specifically, the specific steps of step S2 include:
[0014] S2.1: Obtain fused building status data, use TPCA algorithm to extract features from the fused building status data, and obtain building status feature data in, Indicates vibration fault characteristic data, Represents tilt fault characteristic data, represents the characteristic data of subsidence fault, n, m, and r represent the number of characteristic data of vibration, tilt, and subsidence fault, respectively;
[0015] S2.2: Obtain historical building condition data and extract failure modes, frequencies, and trends from the historical building condition data;
[0016] S2.3: Based on and historical building status data, and build a failure prediction model using a reinforcement learning algorithm.
[0017] Specifically, the specific steps of step S2 also include:
[0018] S2.4: According to the real-time building status data and the prediction results of the fault prediction model, the parameters of the fault prediction model are adjusted in real time using the improved online gradient descent algorithm;
[0019] S2.5: Use the improved g-σ principle outlier detection algorithm to analyze the fused building status data. The formula of the g-σ principle outlier detection algorithm is:
[0020]
[0021] in, represents the fusion of building status data, w j Representation data The weight of max represents the upper threshold of outliers, d min represents the lower limit threshold of the outlier, b represents the number of fused building status data, j represents the location index of the fused building status data, and g represents a positive number.
[0022] Specifically, the specific steps of step S2 also include:
[0023] S2.6: If or The building status data is judged to be abnormal, and an abnormal alarm is triggered. When the CPU detects an abnormality, the abnormality handling process is triggered;
[0024] S2.7: Combined with the fault prediction model, analyze the abnormal building status parameters of the CPU, locate the fault point or risk area through data analysis and model reasoning. Once the fault point is located, the system immediately takes isolation measures to isolate the fault point.
[0025] Specifically, the specific steps of S2.3 include:
[0026] S2.31: According to Define the state space and action space of the building system, set the reward function according to the state changes and actions taken by the system, and Divide the training set and test set;
[0027] S2.32: Use successful failure prevention as a reward and failure occurrence as a penalty, and initialize the DQN Q value network and target Q value network, using a deep neural network as the model structure;
[0028] S2.33: For each state in the training set, randomly select an action with probability ε according to the ε-greedy strategy, select the action with the highest Q value with probability (1-ε), execute the selected action, and record the reward and next state.
[0029] Specifically, the specific steps of S2.3 also include:
[0030] S2.34: Store the experience data (state; action; reward; next state) into the experience replay buffer, and randomly extract a batch of experience data from the experience replay buffer for training the DQN model;
[0031] S2.35: Calculate the reward after performing the action plus the highest Q value of the next state, and use the gradient descent algorithm to update the weight of the Q value network. The formula is:
[0032]
[0033] Among them, y k represents the target Q value, p k Indicates that after executing the action, in state s k The instant reward obtained when η represents the discount factor, μ represents the weight parameter of the environment, and U cer (s k+1 ) indicates state s k+1 The uncertainty function, Q(S k+1 , l dz ; θ) represents the next state s k+1 Next, the Q value obtained by the target Q value network θ, ψ represents the weight parameter of the entropy of the control action selection, E tro (l dz ) indicates action l dz The entropy function, s k+1 Indicates the next state reached after executing the action.
[0034] Specifically, the specific steps of S2.3 also include:
[0035] S2.36: Every fixed number of steps, use the weights of the Q-value network to update the weights of the target Q-value network and evaluate the performance of the DQN model;
[0036] S2.37: Use the trained DQN model to predict faults, take corresponding preventive measures based on the prediction results, and adjust the fault prediction strategy based on the actual operating effect after the preventive measures are implemented using the information fed back by the reward function;
[0037] S2.38: Evaluate and optimize the adjusted fault prediction model.
[0038] Specifically, the formula of the improved online gradient descent algorithm in S2.4 is:
[0039]
[0040] Among them, α t+1 , α t They represent the parameters of the fault prediction model at the (t+1)th and tth iterations, β represents the learning rate, δ represents a constant, and m t-1 、v t-1 They represent the first-order moment estimate and the second-order moment estimate of the gradient, λ1 and λ2 represent the exponential decay rates of the moment estimates, Denotes the loss function L with respect to parameter α t At the data point (row t ,col t ) position.
[0041] Specifically, an electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design are implemented.
[0042] Specifically, a computer-readable storage medium stores computer instructions, which, when executed, execute the steps of an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] 1. The present invention proposes an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design. By deploying multiple types of building risk monitors to build a multi-source data monitoring network, combined with preset thresholds and anomaly detection algorithms, fault detection can be performed quickly and accurately. By constructing and optimizing a fault prediction model, the system can predict potential fault risks in advance, accurately locate fault points, and improve the efficiency of fault handling.
[0045] 2. The present invention proposes an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design. By isolating the fault point, adaptive automatic repair and fault isolation are achieved, thus avoiding the delay problem caused by manual operation and reducing the constraints of manual operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design of the present invention;
[0047] Figure 2 This is a working diagram of the method for automatic fault recovery of an Internet of Things communication system based on fault-tolerant design of the present invention;
[0048] Figure 3 This is a flow chart of the fault prediction and isolation implementation of the automatic fault recovery method of the Internet of Things communication system based on the fault-tolerant design of the present invention;
[0049] Figure 4 A flow chart of the fault prediction model construction of the automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design of the present invention. DETAILED DESCRIPTION
[0050] Example 1
[0051] See also Figure 1-Figure 2 , an embodiment provided by the present invention: an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design, comprising the following steps:
[0052] Step S1: construct a multi-source data monitoring network by deploying multiple types of building risk monitors, collect building status data through the multi-source data monitoring network, transmit the building status data to the CPU using the Internet of Things, and use the weighted average method to fuse the data to obtain fused building status data;
[0053] Among them, multiple types of building risk monitors include vibration, tilt, and settlement monitors, which ensure the redundancy and accuracy of the data, and at the same time ensure that when one monitor fails, the remaining monitors can still work normally and provide monitoring data; the Internet of Things method refers to the WIFI method.
[0054] Furthermore, the specific formula of the weighted average method is:
[0055]
[0056] Among them, W av represents the average weight after weighted processing, x i represents the building status data value obtained from the i-th monitor, w i It represents the weight of the building status data value of the ith monitor, which is usually determined based on the accuracy and reliability factors of the monitor. q represents the total number of monitors.
[0057] Step S2: Extract the fault features of vibration, tilt, and settlement from the building status data. Based on the historical data, real-time building status data, and fault features, use the reinforcement learning algorithm to build and optimize the fault prediction model. Through real-time analysis and fusion of the building status data, combined with the preset threshold and anomaly detection algorithm, the abnormalities and risk conditions in the building are automatically detected. When the CPU detects an abnormality or fault, it locates the fault point in combination with the fault prediction model and isolates the fault point.
[0058] Step S3: After the fault is isolated, the system performs adaptive automatic repair and automatically generates repair suggestions based on the fault type and repair status. If the automatic repair fails, manual intervention is performed;
[0059] Furthermore, the specific steps of step S3 include:
[0060] (1) Fault isolation: Determine the specific location or scope of the fault through system detection or manual diagnosis, and perform corresponding isolation operations such as disconnecting the circuit breaker or turning off the switch according to the type of fault, such as distribution network fault or equipment fault;
[0061] (2) Adaptive automatic repair: The system automatically attempts to repair the fault according to the preset fault handling strategy, which includes restarting the device, switching to backup power, and adjusting parameter settings;
[0062] (3) Generate repair suggestions: The system generates corresponding repair suggestions based on the fault type and repair status, including replacing parts, upgrading software, and adjusting operation methods;
[0063] (4) Automatic repair evaluation: The system evaluates the effectiveness of automatic repair and determines whether the fault has been resolved. If the fault has been resolved, the repair process and results are recorded;
[0064] (5) Manual intervention: If the automatic repair fails, the system triggers the manual intervention process, notifies relevant personnel, provides fault information and repair suggestions, and further processes are performed manually.
[0065] Step S4: Record the fault events and their handling process, and use big data analysis and data mining algorithms to perform intelligent analysis on the fault records, and regularly generate fault reports and improvement suggestions.
[0066] Example 2
[0067] See also Figure 3-Figure 4 In this embodiment, the specific steps in step S2 include:
[0068] S2.1: Obtain fused building status data, use TPCA algorithm to extract features from the fused building status data, and obtain building status feature data in, Indicates vibration fault characteristic data, Represents tilt fault characteristic data, represents the characteristic data of subsidence fault, n, m, and r represent the number of characteristic data of vibration, tilt, and subsidence fault, respectively;
[0069] S2.2: Obtain historical building condition data and extract failure modes, frequencies, and trends from the historical building condition data;
[0070] S2.3: Based on and historical building status data, using reinforcement learning algorithms to build a failure prediction model;
[0071] S2.4: According to the real-time building status data and the prediction results of the fault prediction model, the improved online gradient descent algorithm is used to adjust the fault prediction model parameters in real time. The formula of the improved online gradient descent algorithm is:
[0072]
[0073] Among them, α t+1 , α t They represent the parameters of the fault prediction model at the (t+1)th and tth iterations, β represents the learning rate, δ represents a constant used to prevent division by zero, and m t-1 、v t-1 They represent the first-order moment estimate and the second-order moment estimate of the gradient, λ1 and λ2 represent the exponential decay rates of the moment estimates, Denotes the loss function L with respect to parameter α t At the data point (row t ,col t ) position, in the present invention, by collecting and processing building status data in real time, combining online learning algorithms to update and optimize the fault prediction model in real time, and monitoring the performance of the model through performance indicators, it can be ensured that the model can accurately and timely predict building failures, thereby improving the safety and reliability of the building;
[0074] It should be noted that in the existing online gradient descent algorithm, a fixed learning rate is used, which leads to an excessively large step size in the initial stage of learning, misses the optimal solution, or converges too slowly in the later stage. Moreover, in the calculation process, gradient disappearance or gradient explosion is a common problem, especially when the number of network layers is large, which makes the noise data sensitive to high. For these two types of problems, the present invention introduces the concepts of momentum method and adaptive learning rate on the basis of the existing online gradient descent algorithm, wherein the introduction of momentum variables helps to accelerate the convergence of gradient descent in the relevant direction and suppress oscillation, and the introduction of the concept of adaptive learning rate variables can correct deviations in real time and accelerate the convergence process of the optimal solution. Therefore, the inventor of the present application has ingeniously added the multi-order moment estimation variables of the gradient itself and their exponential decay rates, automatically adjusted the learning rate of each parameter according to the historical changes of the gradient, realized the adaptation of the learning rate, and at the same time, reduced the sensitivity to noise, made the parameter update more stable, and could better handle the gradient disappearance / explosion problem.
[0075] S2.5: Use the improved g-σ principle outlier detection algorithm to analyze the fused building status data. The formula of the g-σ principle outlier detection algorithm is:
[0076]
[0077] in, represents the fusion of building status data, w j Representation data The weight of max represents the upper threshold of outliers, d min represents the lower limit threshold of the outlier, b represents the number of fused building status data, j represents the location index of the fused building status data, g represents a positive number, represents the weighted standard deviation.
[0078] In the present invention, the range of outliers is redefined on the basis of the existing outlier detection algorithm. The inventor of the present application creatively finds that each data point has different importance, and introduces the concept of weight based on the different importance; at the same time, the processing process of missing value variables is introduced to avoid the error problem caused by missing data; at the same time, the inventor of the present application creatively abandons the original 3-fold principle and uses different distance metrics; therefore, in the present invention, the missing values are filled by the standard deviation, and a weight is assigned to each data point. The final range of outliers is obtained by adjusting the distance metric, and the range of outliers is more accurate than the range of outliers obtained by other methods.
[0079] For example, for an IoT system, the system is responsible for monitoring the data of multiple sensor nodes, such as temperature, humidity, and air pressure. These sensor data are crucial for real-time understanding of the environmental status, but occasionally there will be abnormal values or missing values.
[0080] (1) Different sensor data have different importance for environmental monitoring. For example, in extreme weather conditions, temperature data may be more important than humidity data. In the calculation process, a weight is assigned to each sensor data, such as the weight of temperature data is 2, the weight of humidity data is 1, and the weight of air pressure data is 1.5. When calculating outliers, the value of each data point is multiplied by its corresponding weight;
[0081] (2) In order to avoid the impact of missing values on outlier detection and reduce errors, the process of introducing missing value variables is introduced. Assuming that the humidity data is missing at a certain time point, and the mean of the humidity data is 60%, and the standard deviation is 10%, the missing value after filling is 60% ± 10%, and 60% + 10% = 70% can be selected as the filling value;
[0082] (3) The traditional 3 times standard deviation method may not be applicable to all data sets, especially when the data distribution is not normally distributed, so it is necessary to use different distance metrics; assuming that weighted data and missing values are already available, Manhattan distance is used to calculate the distance from each data point to the mean of all data points, where the k value is set to 1.5, that is, if the distance of a data point is greater than 1.5 times the mean distance of all points, the data point is considered to be an outlier.
[0083] In summary, through this method, the IoT system can identify outliers more accurately and effectively handle missing values, improving the reliability of data and the fault tolerance of the system.
[0084] S2.6: If or The building status data is judged to be abnormal, and an abnormal alarm is triggered. When the CPU detects an abnormality, the abnormality handling process is triggered;
[0085] S2.7: Combined with the fault prediction model, analyze the abnormal building status parameters of the CPU, locate the fault point or risk area through data analysis and model reasoning. Once the fault point is located, the system immediately takes isolation measures to isolate the fault point.
[0086] Furthermore, the specific implementation steps of locating the fault point include:
[0087] (1) Data collection: Real-time collection of status parameter data corresponding to the CPU in the building system, such as CPU usage, temperature, and power consumption;
[0088] (2) Anomaly detection: The trained fault prediction model is used to analyze the collected status parameter data in real time to determine whether there is an anomaly.
[0089] (3) Feature analysis: Conduct in-depth analysis of abnormal data and extract key features, such as a sudden surge in CPU usage and abnormally high temperature.
[0090] (4) Fault location: using the 7-layer network structure analysis method, combined with abnormal characteristics and parameter values, to locate the fault point or risk area, wherein the 7-layer network structure analysis method is the prior art content in this field, is not the inventive solution of the present application, and is not described in detail here;
[0091] (5) Verification and confirmation: Verify the accuracy of fault location through actual testing or user feedback.
[0092] Isolation measures include: 1) Hardware isolation. If the fault point is located on a specific hardware device, such as CPU or memory, physical isolation measures can be taken, such as shutting down the device or disconnecting the device. 2) Software isolation: Through software means, such as restarting services, shutting down processes, and disabling functions, the fault point can be isolated in a smaller range to prevent it from affecting other parts. 3) Network isolation: If the fault point is in the network, isolate the fault point from the network through network configuration or security devices, such as firewalls. 4) System isolation: For the entire system or application, backup and recovery, switching to a backup system, isolate the fault point from the system to ensure business continuity. 5) Data isolation: If the fault point involves data, data backup, data migration, and data isolation measures are taken to ensure data security and integrity.
[0093] The specific steps of S2.3 include:
[0094] S2.31: According to Define the state space and action space of the building system, set the reward function according to the state changes and actions taken by the system, and The training set and test set are divided. In the state space of the building system, the state is represented by the extracted fault features and historical building status data. The action space contains all maintenance or operation strategies, such as replacing parts and adjusting parameters. The reward function reflects the impact of different actions on system performance. For example, actions that successfully prevent faults should receive high rewards, while actions that cause faults should receive low rewards.
[0095] S2.32: Use successful failure prevention as a reward and failure occurrence as a penalty, and initialize the DQN Q value network and target Q value network, using a deep neural network as the model structure;
[0096] S2.33: For each state in the training set, randomly select an action with probability ε according to the ε-greedy strategy, select the action with the highest Q value with probability (1-ε), execute the selected action, and record the reward and next state;
[0097] S2.34: Store the experience data (state; action; reward; next state) into the experience replay buffer, and randomly extract a batch of experience data from the experience replay buffer for training the DQN model;
[0098] S2.35: Calculate the reward after performing the action plus the highest Q value of the next state, and use the gradient descent algorithm to update the weight of the Q value network. The formula is:
[0099]
[0100] Among them, y k represents the target Q value, p k Indicates that after executing the action, in state s k The instant reward obtained when η represents the discount factor, μ represents the weight parameter of the environment, and U cer (s k+1 ) indicates state s k+1 The uncertainty function, Q(s k+1 , l dz ; θ) represents the next state s k+1 Next, the Q value obtained by the target Q value network θ, ψ represents the weight parameter of the entropy of the control action selection, E tro (l dz ) indicates action l dz The entropy function, s k+1 Indicates the next state reached after executing the action;
[0101] It should be noted that in the present invention, when calculating the target Q value, there are environmental uncertainty, time decay, and uncertainty factors in action selection, which will affect the Q value calculation. Therefore, it is necessary to consider these uncertainties in the algorithm design. On the basis of the prior art, the uncertainty of environmental state transfer is considered, which makes it more robust in the face of unpredictable or dynamically changing environments, and helps to reduce the performance degradation caused by environmental mutations. Considering the uncertainty of action selection in the decision-making process can allow the algorithm to find a better balance between exploration and utilization, and avoid overconfidence in an action that may not be optimal. By introducing uncertainty in the calculation of the target Q value, the algorithm can more intelligently choose the exploration direction, give priority to exploring those areas or actions with higher uncertainty, and thus be more likely to find a better strategy. Therefore, it is very necessary to increase uncertainty considerations in the present invention.
[0102] S2.36: Every fixed number of steps, use the weights of the Q-value network to update the weights of the target Q-value network and evaluate the performance of the DQN model;
[0103] The weight update formula of the target Q value network is:
[0104]
[0105] Among them, ξ represents the learning rate of the target Q value network, represents partial derivative, Represents the loss function About network parameters The gradient of Indicates that in the next state S k Next, according to the target Q value network parameters The obtained Q value;
[0106] S2.37: Use the trained DQN model to predict faults, take corresponding preventive measures based on the prediction results, and adjust the fault prediction strategy based on the actual operating effect after the preventive measures are implemented using the information fed back by the reward function;
[0107] S2.38: Evaluate and optimize the adjusted fault prediction model.
[0108] Example 3
[0109] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design are implemented.
[0110] A computer-readable storage medium stores computer instructions, which, when executed, execute the steps of an automatic fault recovery method for an Internet of Things communication system based on a fault-tolerant design.
[0111] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in the field may also change, modify, replace and modify the above-mentioned embodiments without departing from the purpose and scope of protection of the present invention, and all of these are within the protection of the present invention.
Claims
1. Automatic fault recovery method for IoT communication system based on fault-tolerant design, It is characterized in that include: Step S1: construct a multi-source data monitoring network by deploying multiple types of building risk monitors, collect building status data, and perform data fusion to obtain fused building status data; Step S2: Extract the fault features of vibration, tilt, and settlement from the fused building status data. Based on the historical data, real-time building status data, and fault features, use the reinforcement learning algorithm to build and optimize the fault prediction model. Through real-time analysis of the fused building status data, combined with the preset threshold and anomaly detection algorithm, automatically detect the anomalies and risk conditions in the building. When the CPU detects an anomaly or fault, it locates the fault point in combination with the fault prediction model and isolates the fault point. Step S3: After the fault is isolated, the system performs adaptive automatic repair and automatically generates repair suggestions based on the fault type and repair status. If the automatic repair fails, manual intervention is performed; Step S4: Record fault events and their handling process, and generate fault reports and improvement suggestions regularly.
2. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 1, It is characterized in that The specific steps of step S2 include: S2.1: Obtain fused building status data, use TPCA algorithm to extract features from the fused building status data, and obtain building status feature data in, Indicates vibration fault characteristic data, Represents tilt fault characteristic data, represents the characteristic data of subsidence fault, n, m, and r represent the number of characteristic data of vibration, tilt, and subsidence fault, respectively; S2.2: Obtain historic building condition data and extract failure modes, frequencies, and trends from the historic building condition data; S2.3: Based on and historical building status data, and build a failure prediction model using a reinforcement learning algorithm.
3. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 2, It is characterized in that The specific steps of step S2 also include: S2.4: According to the real-time building status data and the prediction results of the fault prediction model, the parameters of the fault prediction model are adjusted in real time using the improved online gradient descent algorithm; S2.5: Use the improved g-σ principle outlier detection algorithm to analyze the fused building status data. The formula of the g-σ principle outlier detection algorithm is: in, represents the fusion of building status data, w j Representation data The weight of max represents the upper threshold of outliers, d min represents the lower limit threshold of the outlier, b represents the number of fused building status data, j represents the location index of the fused building status data, and g represents a positive number.
4. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 3, It is characterized in that The specific steps of step S2 also include: S2.6: If or The building status data is judged to be abnormal, and an abnormal alarm is triggered. When the CPU detects an abnormality, the abnormality handling process is triggered; S2.7: Combined with the fault prediction model, analyze the abnormal building status parameters of the CPU, locate the fault point or risk area through data analysis and model reasoning. Once the fault point is located, the system immediately takes isolation measures to isolate the fault point.
5. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 4, It is characterized in that The specific steps of S2.3 include: S2.31: According to Define the state space and action space of the building system, set the reward function according to the state changes and actions taken by the system, and Divide the training set and test set; S2.32: Use successful failure prevention as a reward and failure occurrence as a penalty, and initialize the Q value network and target Q value network of DQN, using a deep neural network as the model structure; S2.33: For each state in the training set, randomly select an action with probability ε according to the ε-greedy strategy, select the action with the highest Q value with probability (1-ε), execute the selected action, and record the reward and next state.
6. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 5, It is characterized in that The specific steps of S2.3 also include: S2.34: Store the experience data (state; action; reward; next state) into the experience replay buffer, and randomly extract a batch of experience data from the experience replay buffer for training the DQN model; S2.35: Calculate the reward after performing the action plus the highest Q value of the next state, and use the gradient descent algorithm to update the weight of the Q value network. The formula is: Among them, y k represents the target Q value, p k Indicates that after executing the action, in state s k The instant reward obtained when η represents the discount factor, μ represents the weight parameter of the environment, and U cer (s k+1 ) indicates state s k+1 The uncertainty function, Q(s k+1 , l dz ; θ) represents the next state s k+1 Next, the Q value obtained by the target Q value network θ, ψ represents the weight parameter of the entropy of the control action selection, E tro (l dz ) indicates action l dz The entropy function, s k+1 Indicates the next state reached after executing the action.
7. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 5, It is characterized in that The specific steps of S2.3 also include: S2.36: Every fixed number of steps, use the weights of the Q-value network to update the weights of the target Q-value network and evaluate the performance of the DQN model; S2.37: Use the trained DQN model to predict faults, take corresponding preventive measures based on the prediction results, and adjust the fault prediction strategy based on the actual operating effect after the preventive measures are implemented using the information fed back by the reward function; S2.38: Evaluate and optimize the adjusted fault prediction model.
8. The automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as claimed in claim 7, It is characterized in that The formula of the improved online gradient descent algorithm in S2.4 is: Among them, α t+1 , α t They represent the parameters of the fault prediction model at the (t+1)th and tth iterations, β represents the learning rate, δ represents a constant, and m t-1 、v t-1 They represent the first-order moment estimate and the second-order moment estimate of the gradient, λ 1 , 2 represents the exponential decay rate of the moment estimate, Denotes the loss function L with respect to parameter α t At the data point (row t ,col t ) position.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method for automatic fault recovery of an Internet of Things communication system based on fault-tolerant design as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, It is characterized in that Computer instructions are stored thereon, and when the computer instructions are executed, the steps of the automatic fault recovery method of the Internet of Things communication system based on fault-tolerant design as described in any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Intelligent equipment management system and method based on Internet of Things
CN116823227A
Computer equipment, fault detection system and method and readable storage medium
CN117194163A
Method for detecting steady-state information transmission anomaly of power grid regulation and control system
CN117639265A
General reinforcement learning framework for process monitoring and anomaly / fault detection
US20240119342A1
Cited By
Fault detection method and system based on large model
CN119226985A
Distribution box switch cabinet fault detection method and system
CN119596028A
Fault self-recovery method based on intelligent doorbell system
CN119718384A
