Fault detection and automatic recovery method of electrical communication link
By deploying environmental sensors and signal quality monitoring in telecommunications networks, and using random forest models and dynamic threshold adjustment modules for fault analysis and automatic recovery, the problems of manual intervention dependence and low efficiency of complex fault handling in the existing technology are solved, and the Fast and accurate fault diagnosis and recovery improve the reliability and automated management level of the network.
Patent Information
- Application Number
- CN202410930204.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing telecommunications network fault handling technology relies on manual intervention and is inefficient. It is difficult to accurately locate the cause of faults and take effective recovery measures in complex networks, and lacks rapid automated fault diagnosis and recovery capabilities.
By deploying environmental sensors to monitor temperature, humidity and electromagnetic interference, combined with signal quality data, the random forest model and dynamic threshold adjustment module are used for fault prediction and analysis, automatically performing recovery operations such as route switching and configuration reloading, and recovering through continuous optimization adjustments Strategy.
It achieves rapid automated fault detection and recovery of telecommunications networks, improves response speed and processing efficiency, reduces manual intervention, ensures the immediacy and accuracy of fault handling, and improves network reliability and automated management levels.
Smart Images

Figure CN118764372A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of telecommunication technology, and in particular to a fault detection and automatic recovery method for an electrical communication link. Background Art
[0002] With the rapid development of information technology, telecommunication networks have become a key infrastructure for the operation of modern society. The stability of the network directly affects the operational efficiency of enterprises and the daily lives of users. In telecommunication networks, link failures are often caused by a variety of factors, including but not limited to physical damage, equipment failure, configuration errors, and external environmental influences (such as electromagnetic interference, temperature and humidity changes, etc.). Although existing technologies can track network status in real time through various monitoring systems, these systems often focus on fault detection rather than fault recovery, and there are still deficiencies in automated fault response and recovery.
[0003] Existing electrical communication network fault handling technologies usually rely on manual intervention to identify faults and execute recovery strategies, which is not only time-consuming but also inefficient. In addition, existing methods often find it difficult to accurately locate the cause of faults and take the most effective recovery measures when dealing with complex network faults.
[0004] Therefore, there is an urgent need for a technology that can achieve fast and automated fault diagnosis and recovery. This technology should be able to comprehensively analyze data from all aspects of the network, predict and identify potential faults through intelligent algorithms, and automatically perform effective recovery operations, thereby significantly improving the reliability and automated management level of the network. Summary of the invention
[0005] Based on the above objectives, the present invention provides a method for fault detection and automatic recovery of an electrical communication link.
[0006] A method for fault detection and automatic recovery of an electrical communication link comprises the following steps:
[0007] S1: Deploy a variety of environmental sensors around the telecommunications equipment to monitor environmental parameters including temperature, humidity, and electromagnetic interference;
[0008] S2: Continuously monitor the signal quality of the electrical communication link, including parameters such as signal-to-noise ratio, attenuation rate, and bit error rate, and dynamically adjust the fault identification criteria based on historical data using a preset dynamic threshold adjustment module;
[0009] S3: Use the preset random forest model and combine the data from S1 and S2 to predict and analyze the potential failures of the electrical communication link;
[0010] S4: Based on the prediction results obtained from S3, the root cause of the fault is analyzed and identified through a preset multi-dimensional fault decision method, and a corresponding recovery strategy is selected based on the root cause;
[0011] S5: automatically performing appropriate recovery operations based on the decision result of S4, including but not limited to route switching, power adjustment, and configuration reloading;
[0012] S6: After the recovery operation, re-execute S2 and S3 to verify the recovery effect and adjust the recovery strategy to ensure that the link is restored to the optimal state.
[0013] Furthermore, the S1 specifically includes:
[0014] S11: Selecting sensor types for monitoring the electrical communication environment, including a temperature sensor, a humidity sensor, and an electromagnetic interference sensor, wherein the temperature sensor uses a thermocouple or a thermistor to measure the temperature of the device surface and the surrounding air; the humidity sensor uses a capacitive humidity sensor to monitor the moisture content in the air; and the electromagnetic interference sensor uses a high-sensitivity magnetic field detector to detect the electromagnetic noise level in the surrounding environment;
[0015] S12: Determine the optimal deployment location of sensors based on the specific layout of the electrical communication equipment and the characteristics of the surrounding environment. The temperature sensor and humidity sensor are deployed at the air inlet and outlet of the electrical communication equipment to monitor the conditions of the incoming and outgoing air; the electromagnetic interference sensor is deployed near the main board of the equipment and on the housing of the equipment to capture the electromagnetic environment inside and outside the equipment;
[0016] S13: Environmental parameter data is continuously collected through a data acquisition unit connected to each sensor. The data acquisition unit is configured with signal conditioning and amplification functions to ensure that the data collected from the sensor is accurate. The collected data includes the average temperature, humidity value and electromagnetic interference intensity per minute.
[0017] Furthermore, the S2 specifically includes:
[0018] S21: Determine parameters required to monitor the signal quality of the electrical communication link, including signal-to-noise ratio, attenuation rate, and bit error rate;
[0019] S22: installing a signal acquisition device at a node of the electrical communication link, including an optical-to-electrical converter and a radio frequency analyzer, to continuously capture signal data, the signal acquisition device being used to convert raw signal data into a digital format for further analysis;
[0020] S23: The collected signal data is transmitted to a data processing center in real time, and a high-speed data processing algorithm is implemented in the data processing center to instantly calculate the signal-to-noise ratio, attenuation rate, and bit error rate to monitor the instantaneous status of the link;
[0021] S24: Based on historical signal quality data, the preset dynamic threshold adjustment algorithm will automatically update the threshold for fault identification, predicting and setting the threshold that adapts to the current environment by analyzing past performance trends and current operating conditions;
[0022] S25: When real-time data shows that a parameter exceeds the dynamically adjusted threshold, a fault warning will be triggered immediately, and the signal quality data and event details will be recorded for subsequent analysis and troubleshooting.
[0023] Furthermore, the S24 specifically includes:
[0024] S241: regularly collect signal quality data from monitoring equipment, including parameters of signal-to-noise ratio, attenuation rate and bit error rate, and pre-process the collected data, including filtering and denoising, to ensure data quality and consistency;
[0025] S242: Analyze historical signal quality data using an autoregressive moving average model, and establish statistical characteristics of historical data through the model to identify and quantify trends and seasonal changes in data; the autoregressive moving average model formula is:
[0026] Among them, X t represents the signal quality measurement at time point t; are the parameters of the autoregressive part; θ1,…,θ q is the parameter of the moving average part; ∈ t is the prediction error at time t;
[0027] S243: Combined with real-time monitoring data, evaluate the current network operating conditions, including the impact of traffic load and environmental factors on signal quality;
[0028] S244: Based on the analysis results of S242 and S243, a prediction model is used to calculate a new fault threshold. The prediction model combines historical trend analysis and current operating conditions, and specifically uses a machine learning algorithm of a gradient boosting tree to dynamically adjust the threshold. The gradient boosting tree algorithm builds a strong prediction model by using multiple decision trees. Each tree learns the residual of the previous tree and iteratively reduces the prediction error. The optimization function is:
[0029] Among them, h t (x) represents the prediction result of the t-th decision tree under the given input x; γ t is the contribution weight of the tth tree, which is used to adjust the influence of a single tree on the final prediction result; λ is the regularization parameter, which is used to control the complexity of the model and prevent overfitting; Ω(h t ) is a function that measures the complexity of the t-th tree;
[0030] S245: Automatically update the fault identification threshold according to the prediction result of S244.
[0031] Furthermore, the S3 specifically includes:
[0032] S31: Integrate the environmental monitoring data from S1 and the signal quality data from S2. The data integration process includes data synchronization and format standardization.
[0033] S32: extracting features from the integrated data, the feature selection includes calculating the rate of change of environmental parameters and signal quality data, long-term and short-term fluctuations, and pattern recognition of historical fault data;
[0034] S33: Use the integrated and extracted feature data to train the preset random forest model. The random forest model improves the accuracy and stability of prediction by building multiple decision trees and voting among them. Model training includes determining the number of trees, the maximum depth, and the minimum number of samples for each node, as well as using cross-validation to optimize parameters and prevent overfitting.
[0035] S34: Use the trained random forest model to analyze the currently collected real-time data to predict potential failures, thereby identifying high-risk states and potential failure types.
[0036] Further, the S32 specifically includes:
[0037] S321: Calculate the change rate of the environmental parameters and signal quality parameters. The change rate is calculated by dividing the difference between the current value and the historical average value within a certain time window by the historical standard deviation to evaluate the short-term fluctuation of the parameters. The change rate formula is: Among them, X t Represents the parameter value at the current time point, μ t-n:t and σ t-n:t Represent the mean and standard deviation of the past n time points respectively;
[0038] S322: Use moving average and exponential smoothing techniques to analyze long-term and short-term fluctuations of signals to distinguish trends and seasonal fluctuations in signal quality changes;
[0039] The moving average formula is:
[0040] The exponential smoothing formula is: ES t =αX t +(1-α)ES t-1 , where MA t represents the moving average at time point t, which is used to smooth short-term fluctuations; X t-i represents the observation value at time point ti; k represents the window size of the moving average; ESt represents the exponential smoothing value at time point y; α represents the smoothing coefficient; X t represents the observed value at time point t; ES t-1 Represents the exponential smoothing value at time point t-1, indicating the smoothing result of the previous moment;
[0041] S323: Use the principal component analysis method to analyze the patterns and anomalies in the historical fault data. The specific formula of principal component analysis is: Z=XW, where X is the data matrix, W is the weight matrix, which is composed of the principal components of the data, and Z is the transformed data, showing the direction of variation.
[0042] Furthermore, the S33 specifically includes:
[0043] S331: preprocessing the feature data integrated and extracted from steps S31 and S32, including scaling and normalization, so that the data is suitable for the input requirements of the random forest model, and dividing the data set into a training set and a test set, specifically using 70% of the data as a training set and the remaining 30% as a test set;
[0044] S332: Set the basic parameters of the random forest model, including the number of decision trees, the maximum depth of each tree, and the maximum number of features considered at each split node. The formula of the random forest model is: Among them, RF represents the final prediction output of the random forest model; B represents the total number of decision trees; T b (x;θ b ) represents the prediction result of the b-th decision tree for the input feature x, where θ b represents the parameters and data subsets randomly selected by the tree during training; x represents the feature data input to the model;
[0045] S333: Use the training set data to train the random forest model. In the specific training process, each tree will randomly extract a sample subset from the training set and build a decision tree on the subset. The establishment of the tree uses information gain as the splitting criterion; the calculation formula of information gain is:
[0046] Among them, IG(D,f) represents information gain, which is used to measure the entropy reduction brought by feature f after the data set D is split; H(D) represents the entropy of the data set D; D v represents the sub-dataset when the value of feature f is v; |D v | represents the sub-dataset D v The number of samples in the dataset D; |D| represents the number of samples in the entire dataset D; H(D v ) represents the sub-dataset D v Entropy of
[0047] S334: Use the test set to evaluate the performance of the random forest model, including the model's accuracy, recall, and F1 score, and adjust the model parameters based on the test results to achieve better prediction results.
[0048] Furthermore, the S4 specifically includes:
[0049] S41: first, receiving the fault prediction result from S3, including the type of potential fault, the probability of occurrence, and the severity of the impact;
[0050] S42: Integrate prediction results with monitoring data, including equipment performance logs, user service quality reports, and historical maintenance records, with the goal of obtaining a comprehensive view of the fault to support more accurate fault analysis;
[0051] S43: Apply the decision tree analysis method, combined with the rule engine, to conduct in-depth analysis on the integrated data to determine the root cause of the failure. The decision tree analysis formula is: Where C(T) is the cost of tree T, p i is the probability that node i is in the tree, H(T i ) is the entropy of node i.
[0052] S44: Based on the result of the fault cause analysis, a corresponding recovery strategy is used, which includes rerouting communication data, adjusting network device configuration, or starting backup.
[0053] Furthermore, the S5 specifically includes:
[0054] S51: receiving a recovery instruction, first receiving the fault handling decision result obtained from S4, including but not limited to route switching, power adjustment and configuration reloading;
[0055] S52: Determine the type of recovery operation: Based on the nature and impact scope of the fault, determine the type of recovery operation that needs to be performed;
[0056] S53: Execute operations: route switching is to modify the routing table or use the network management protocol to dynamically change the data path to bypass the fault area; power adjustment is to increase or decrease the power supply of the device or network segment as needed; configuration reload is to reload the previous configuration snapshot or optimized configuration to the affected device;
[0057] S54: Verify the operation results. After performing the recovery operation, immediately monitor the operation effect to ensure that the recovery operation actually solves the problem. Specifically, it includes re-evaluating network performance and stability to ensure that all changes meet the expected repair goals.
[0058] Furthermore, the S6 specifically includes:
[0059] S61: After the recovery operation is completed, a signal quality monitoring program is triggered to re-evaluate the signal quality of the electrical communication link, including signal-to-noise ratio, attenuation rate, and bit error rate;
[0060] S62: synchronously, continue to collect environmental parameters related to link performance, including temperature, humidity, and electromagnetic interference;
[0061] S63: Integrate the latest monitoring data collected from steps S61 and S62, and re-extract features, including calculating new change rates and long- and short-term fluctuations, to evaluate the current status and trend of the link;
[0062] S64: Update the preset random forest model using the latest feature data;
[0063] S65: Analyze the fault prediction results output by the model, evaluate the effectiveness of the recovery measures, and determine whether the link has been restored to the optimal state or whether adjustment is required;
[0064] S66: Based on the results of step S65, make policy adjustments, including continuing to optimize network configuration or implementing additional technical measures. All adjustment measures will be recorded and fed back to the preset knowledge base for future fault response and recovery strategy optimization.
[0065] Beneficial effects of the present invention:
[0066] The present invention significantly improves the response speed and processing efficiency of the electrical communication network when facing various types of faults through automated fault detection and recovery processes. By utilizing advanced machine learning technology and multi-source data analysis, the method can monitor the network status in real time and quickly identify the root cause of the fault. This automated processing not only reduces the reliance on manual intervention, but also ensures the immediacy and accuracy of fault handling.
[0067] The present invention, through a preset multi-dimensional fault decision method, can automatically select the most suitable recovery measure according to the specific cause of the fault, such as route switching, power adjustment or configuration reloading, etc. The precise matching of this strategy not only improves the effectiveness of the recovery measure, but also helps to minimize the impact of the fault on network operations.
[0068] The present invention, by continuously collecting and analyzing fault data, can continuously adjust and improve fault prediction models and recovery strategies. This continuous optimization process enables the network to better adapt to environmental changes and emerging challenges, thereby maintaining high stability and reliability of the network for a long time. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 A schematic flow chart of a method for fault detection and automatic recovery of an electrical communication link according to an embodiment of the present invention;
[0071] Figure 2 Schematic diagram of the training process of a random forest model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0072] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0073] like Figure 1-Figure 2 As shown, the fault detection and automatic recovery method of the electrical communication link includes the following steps:
[0074] S1: Deploy a variety of environmental sensors around telecommunication equipment to monitor environmental parameters including temperature, humidity, and electromagnetic interference, and capture non-equipment factors that may affect link stability;
[0075] S2: Continuously monitor the signal quality of the electrical communication link, including parameters such as signal-to-noise ratio, attenuation rate, and bit error rate, and dynamically adjust the fault identification criteria based on historical data using a preset dynamic threshold adjustment module;
[0076] S3: Use the preset random forest model and combine the data from S1 and S2 to predict and analyze the potential failures of the electrical communication link;
[0077] S4: Based on the prediction results obtained from S3, the root cause of the fault is analyzed and identified through a preset multi-dimensional fault decision method, and a corresponding recovery strategy is selected based on the root cause;
[0078] S5: automatically performing appropriate recovery operations based on the decision result of S4, including but not limited to route switching, power adjustment, and configuration reloading;
[0079] S6: After the recovery operation, re-execute S2 and S3 to verify the recovery effect and adjust the recovery strategy to ensure that the link is restored to the optimal state.
[0080] S1 specifically includes:
[0081] S11: Selecting sensor types for monitoring the electrical communication environment, including a temperature sensor, a humidity sensor, and an electromagnetic interference (EMI) sensor, wherein the temperature sensor uses a thermocouple or a thermistor to measure the temperature of the device surface and the surrounding air; the humidity sensor uses a capacitive humidity sensor to monitor the moisture content in the air; and the electromagnetic interference sensor uses a high-sensitivity magnetic field detector to detect the electromagnetic noise level in the surrounding environment;
[0082] S12: Determine the optimal deployment location of sensors based on the specific layout of the electrical communication equipment and the characteristics of the surrounding environment. The temperature sensor and humidity sensor are deployed at the air inlet and outlet of the electrical communication equipment to monitor the conditions of the incoming and outgoing air; the electromagnetic interference sensor is deployed near the main board of the equipment and on the housing of the equipment to capture the electromagnetic environment inside and outside the equipment;
[0083] S13: Continuously collect environmental parameter data through the data acquisition unit connected to each sensor. The data acquisition unit is configured with signal conditioning and amplification functions to ensure that the data collected from the sensor is accurate. The collected data includes the average temperature, humidity value and electromagnetic interference intensity per minute. The above steps describe in detail how to deploy and use a variety of environmental sensors around electrical communication equipment to effectively monitor various environmental factors that may affect the stability of the link. Through precise deployment and efficient data collection, these steps provide key support for the stable operation of the electrical communication link.
[0084] S2 specifically includes:
[0085] S21: Determine the parameters required to monitor the signal quality of the electrical communication link, including signal-to-noise ratio, attenuation rate and bit error rate, using a dedicated signal quality analysis instrument that can capture and analyze relevant quality indicators of the transmission signal in real time;
[0086] S22: installing a signal acquisition device at a node of the electrical communication link, including an optical-to-electrical converter and a radio frequency analyzer, to continuously capture signal data, the signal acquisition device being used to convert raw signal data into a digital format for further analysis;
[0087] S23: The collected signal data is transmitted to a data processing center in real time, and a high-speed data processing algorithm is implemented in the data processing center to instantly calculate the signal-to-noise ratio, attenuation rate, and bit error rate to monitor the instantaneous status of the link;
[0088] S24: Based on historical signal quality data, the preset dynamic threshold adjustment algorithm will automatically update the threshold for fault identification, predict and set the threshold adapted to the current environment by analyzing past performance trends and current operating conditions, so as to optimize the accuracy and response speed of fault detection;
[0089] S25: When real-time data shows that a parameter exceeds the dynamically adjusted threshold, a fault warning will be triggered immediately, and the signal quality data and event details will be recorded for subsequent analysis and troubleshooting;
[0090] The above method can more accurately identify potential link problems and provide early warning of possible failures by monitoring key signal quality parameters in real time and dynamically adjusting fault identification thresholds based on historical data, thereby greatly improving the reliability and service quality of the communication network. In addition, by automatically recording detailed information on key events, the method also supports subsequent fault analysis and system optimization, enhancing the network's maintenance efficiency and operational flexibility.
[0091] S24 specifically includes:
[0092] S241: regularly collect signal quality data from monitoring equipment, including parameters of signal-to-noise ratio, attenuation rate and bit error rate, and pre-process the collected data, including filtering and denoising, to ensure data quality and consistency;
[0093] S242: Analyze historical signal quality data using an autoregressive moving average (ARMA) model, and establish statistical characteristics of historical data through the model to identify and quantify trends and seasonal changes in the data; the autoregressive moving average model formula is:
[0094] Among them, X t Represents a signal quality measurement at time point t, such as signal-to-noise ratio, attenuation rate, or bit error rate; is the parameter of the autoregressive (AR) part, which is used to describe the influence of the signal quality values of the previous p time points on the current value; θ1,…,θ q is the parameter of the moving average (MA) part, which is used to describe the impact of the prediction error of the previous q time points on the current error; ∈ t is the prediction error at time point t, which represents the deviation between the actual observed value and the model predicted value;
[0095] S243: Combined with real-time monitoring data, evaluate current network operating conditions, including traffic load and the impact of environmental factors (such as temperature and humidity) on signal quality. This analysis helps determine the deviation between current data and historical trends;
[0096] S244: Based on the analysis results of S242 and S243, a prediction model is used to calculate a new fault threshold. The prediction model combines historical trend analysis and current operating conditions, and specifically uses a machine learning algorithm of a gradient boosting tree to dynamically adjust the threshold. The gradient boosting tree algorithm builds a strong prediction model by using multiple decision trees. Each tree learns the residual of the previous tree and iteratively reduces the prediction error. The optimization function is:
[0097] Among them, h t (x) represents the prediction result of the t-th decision tree under the given input x (such as the current signal quality data point); γ t is the contribution weight of the tth tree, which is used to adjust the influence of a single tree on the final prediction result; λ is the regularization parameter, which is used to control the complexity of the model and prevent overfitting; Ω(h t ) is a function that measures the complexity of the tth tree, which is usually related to the depth or number of nodes of the tree;
[0098] S245: According to the prediction result of S244, the fault identification threshold is automatically updated. This update operation is automatically performed, and the system will record the time and reason of each threshold adjustment for subsequent evaluation and optimization. The above method improves the accuracy of fault prediction and the adaptability of the system by accurately analyzing historical data and real-time conditions. The use of advanced statistical models and machine learning algorithms can respond more flexibly to changes in the network environment and reduce false alarms and missed alarms, thereby improving network operation and maintenance efficiency and user experience.
[0099] S3 specifically includes:
[0100] S31: Integrate the environmental monitoring data from S1 (such as temperature, humidity, and electromagnetic interference level) and the signal quality data from S2 (such as signal-to-noise ratio, attenuation rate, and bit error rate). The data integration process includes data synchronization and format standardization to ensure that the input data is unified and consistent for the random forest model.
[0101] S32: Extract features from the integrated data, which are crucial for predicting potential failures of electrical communication links. Feature selection includes calculating the rate of change of environmental parameters and signal quality data, long-term and short-term fluctuations, and pattern recognition of historical failure data;
[0102] S33: Use the integrated and extracted feature data to train the preset random forest model. The random forest model improves the accuracy and stability of prediction by building multiple decision trees and voting among them. Model training includes determining the number of trees, the maximum depth, and the minimum number of samples for each node, as well as using cross-validation to optimize parameters and prevent overfitting.
[0103] S34: Use the trained random forest model to analyze the currently collected real-time data to predict potential failures. The model will output the failure probability based on the input features, thereby identifying high-risk states and potential failure types;
[0104] The above method steps can effectively integrate and analyze multi-source data from electrical communication links by utilizing the integrated learning ability of the random forest model, significantly improving the accuracy of predicting potential faults. This method not only improves the early identification capability of fault detection, but also through continuous model optimization, can more accurately predict and analyze faults, thereby intervening in advance, reducing service interruptions, and enhancing network reliability and user satisfaction.
[0105] S32 specifically includes:
[0106] S321: Calculate the change rate of environmental parameters (such as temperature and humidity) and signal quality parameters (such as signal-to-noise ratio and attenuation rate). The change rate is calculated by dividing the difference between the current value and the historical average value within a certain time window by the historical standard deviation to evaluate the short-term fluctuation of the parameter. The change rate formula is: Among them, X t Represents the parameter value at the current time point, μ t-n:t and σ t-n:t Represent the mean and standard deviation of the past n time points respectively;
[0107] S322: Use moving average and exponential smoothing techniques to analyze long-term and short-term fluctuations of signals to distinguish trends and seasonal fluctuations in signal quality changes;
[0108] The moving average formula is:
[0109] The exponential smoothing formula is: ES t =αX t +(1-α)ES t-1 , where MA t Represents the moving average at time point t, which is used to smooth short-term fluctuations and reduce the impact of accidental changes so that long-term trends can be seen more clearly; X t-i represents the observed value at time point ti, where the observed value can be a signal quality parameter such as signal-to-noise ratio, attenuation rate or bit error rate; k represents the window size of the moving average, which indicates the number of historical data points considered when calculating the average. Choosing a suitable k value can balance the response speed and smoothing effect; ES t represents the exponential smoothing value at time point t, which is a recursive form used to more flexibly reflect the latest changes in the data; α represents the smoothing coefficient, a parameter between 0 and 1, which determines the new observation value X t The impact on the smoothing result. A larger α value gives more weight to more recent data, making the model more sensitive to trend changes. t Represents the observed value at time point t, which can also be various parameters of signal quality; ES t-1 Represents the exponential smoothing value at time point t-1, indicating the smoothing result of the previous moment;
[0110] S323: Analyze the patterns and anomalies in the historical fault data using the principal component analysis method. This method can reveal the typical data patterns before a fault occurs and provide additional input features for the prediction model. The specific formula for principal component analysis is: Z = XW, where X is the data matrix, W is the weight matrix, which is composed of the principal components of the data, and Z is the converted data, which shows the direction of variation. Through the above steps, it is possible to accurately extract features that are critical to fault prediction from a large amount of monitoring data, including the rate of change calculated from the environment and signal quality data and the identified historical fault patterns. The extraction and analysis of these features greatly improves the accuracy and sensitivity of the fault prediction model, thereby allowing for earlier identification of potential problems, reducing system downtime, and improving the stability and reliability of the entire electrical communication network.
[0111] S33 specifically includes:
[0112] S331: preprocessing the feature data integrated and extracted from steps S31 and S32, including scaling and normalization, so that the data is suitable for the input requirements of the random forest model, and dividing the data set into a training set and a test set, specifically using 70% of the data as a training set and the remaining 30% as a test set;
[0113] S332: Set the basic parameters of the random forest model, including the number of decision trees (usually ranging from 100 to 500), the maximum depth of each tree, and the maximum number of features considered at each split node. The formula of the random forest model is: Among them, RF represents the final prediction output of the random forest model, which is the average of the prediction results based on all decision trees; B represents the total number of decision trees, which is usually set between 100 and 500 trees in the random forest model, and the specific number can be determined by model tuning; T b (x;θ b ) represents the prediction result of the b-th decision tree for the input feature x, where θ b represents the parameters and data subsets randomly selected by the tree during the training process; x represents the feature data input into the model, which includes various environmental and signal quality parameters obtained from the monitoring of the electrical communication link;
[0114] S333: Use the training set data to train the random forest model. In the specific training process, each tree will randomly extract a sample subset from the training set and build a decision tree on the subset. The establishment of the tree uses information gain as the splitting criterion; the calculation formula of information gain is:
[0115] Among them, IG(D,f) represents information gain, which is used to measure the entropy reduction brought by feature f after splitting the data set D. In the decision tree, the feature with the highest information gain is selected for splitting; H(D) represents the entropy of the data set D, which is a statistic that measures the uncertainty of the data set. The higher the entropy, the greater the uncertainty of the data; D v represents the sub-dataset when the value of feature f is v; |D v | represents the sub-dataset D v The number of samples in the dataset D; |D| represents the number of samples in the entire dataset D; H(D v ) represents the sub-dataset D v Entropy of
[0116] S334: Use the test set to evaluate the performance of the random forest model, including the accuracy, recall rate and F1 score of the model, and adjust the model parameters, such as the number and depth of decision trees, according to the test results to achieve better prediction results; through the training and optimization process of the above steps, the random forest model can efficiently process a large number of features and make accurate fault predictions. By utilizing the ensemble learning characteristics of the random forest, the model not only improves the overfitting problem that may occur in a single decision tree, but also reduces the variance of the model by averaging the output of multiple trees, thereby significantly enhancing the stability and reliability of electrical communication link fault prediction.
[0117] S4 specifically includes:
[0118] S41: first, receiving the fault prediction result from S3, including the type of potential fault, the probability of occurrence, and the severity of the impact;
[0119] S42: Integrate prediction results with monitoring data, including equipment performance logs, user service quality reports, and historical maintenance records, with the goal of obtaining a comprehensive view of the fault to support more accurate fault analysis;
[0120] S43: Apply the decision tree analysis method, combined with the rule engine, to conduct in-depth analysis on the integrated data to determine the root cause of the failure. The decision tree analysis formula is: Where C(T) is the cost of tree T, p i is the probability that node i is in the tree, H(T i ) is the entropy of node i, which represents the uncertainty of the fault classification of this node.
[0121] S44: according to the result of the fault cause analysis, using a corresponding recovery strategy, the strategy including rerouting communication data, adjusting the network device configuration or starting a backup system;
[0122] By combining multi-source data and advanced analysis techniques, the above steps can deeply identify and analyze the root causes of telecommunications network failures and formulate effective recovery strategies accordingly. This not only improves the accuracy and efficiency of fault handling, but also significantly reduces system recovery time and maintenance costs by optimizing recovery measures, thereby improving the overall robustness of the network and user satisfaction.
[0123] S5 specifically includes:
[0124] S51: receiving a recovery instruction, first receiving the fault handling decision results obtained from S4, which indicate the specific recovery strategies to be taken, including but not limited to route switching, power adjustment and configuration reloading;
[0125] S52: Determine the type of recovery operation. Based on the nature and impact scope of the fault, determine the type of recovery operation that needs to be performed. For example, if the fault is caused by network congestion, the system may select route switching; if the fault is caused by a power problem, power adjustment may be selected.
[0126] S53: Execute operations. Routing switching is specifically to modify the routing table or dynamically change the data path using the network management protocol to bypass the fault area. Power adjustment is specifically to increase or decrease the power supply of the device or network segment as needed. The adjustment can be achieved by sending a control signal to the intelligent power management system. Configuration reloading is to reload the previous configuration snapshot or the optimized configuration to the affected device.
[0127] S54: Verify the results of the operation. After performing the recovery operation, immediately monitor the effect of the operation to ensure that the recovery operation actually solves the fault, including re-evaluating network performance and stability to ensure that all changes meet the expected repair goals;
[0128] By automatically executing targeted recovery operations as described above, the method can respond to various network failures quickly and effectively, minimize service interruption time and ensure the continuity of network services. The automated recovery process reduces the need for manual intervention and improves the accuracy and efficiency of recovery operations. In addition, the system can self-optimize according to actual operation results, continuously improve fault response and recovery strategies, thereby improving the stability and reliability of the entire electrical communication network.
[0129] S6 specifically includes:
[0130] S61: After the recovery operation is completed, the signal quality monitoring program (corresponding to step S2) is triggered to re-evaluate the signal quality of the electrical communication link, including the signal-to-noise ratio, attenuation rate and bit error rate. This step ensures that all recovery measures have effectively improved the link performance;
[0131] S62: synchronously, continue to collect environmental parameters related to link performance, including temperature, humidity, and electromagnetic interference (corresponding to step S1), to ensure that these environmental factors do not have new negative impacts on link recovery;
[0132] S63: Integrate the latest monitoring data collected from steps S61 and S62, and re-extract features (corresponding to the feature engineering step in step S3), including calculating new change rates and long-term and short-term fluctuations to evaluate the current status and trend of the link;
[0133] S64: Use the latest feature data to update the preset random forest model (corresponding to the model training and fault prediction analysis in step S3). This step is to confirm whether there are any unresolved potential problems or whether further recovery measures are needed;
[0134] S65: Analyze the fault prediction results output by the model, evaluate the effectiveness of the recovery measures, and determine whether the link has been restored to the optimal state or whether adjustment is required;
[0135] S66: Based on the results of step S65, make policy adjustments, including continuing to optimize network configuration or implementing additional technical measures. All adjustment measures will be recorded and fed back to the preset knowledge base for future fault response and recovery policy optimization;
[0136] The above method will re-execute the monitoring and prediction steps, which can effectively verify and optimize the results of network recovery operations. This not only ensures that the electrical communication link can quickly recover to the optimal state after various interferences and failures, but also improves the network's adaptability and overall reliability through continuous learning and adjustment. In addition, real-time performance verification and strategy adjustment also greatly reduce the risks and costs of network operation and maintenance, and improve service quality and user satisfaction.
[0137] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for fault detection and automatic recovery of an electrical communication link, characterized in that: The following steps are involved: S1: Deploy a variety of environmental sensors around the telecommunications equipment to monitor environmental parameters including temperature, humidity, and electromagnetic interference; S2: Continuously monitor the signal quality of the electrical communication link, including parameters such as signal-to-noise ratio, attenuation rate, and bit error rate, and dynamically adjust the fault identification criteria based on historical data using a preset dynamic threshold adjustment module; S3: Use the preset random forest model and combine the data from S1 and S2 to predict and analyze the potential failures of the electrical communication link; S4: Based on the prediction results obtained from S3, the root cause of the fault is analyzed and identified through a preset multi-dimensional fault decision method, and a corresponding recovery strategy is selected based on the root cause; S5: automatically performing appropriate recovery operations based on the decision result of S4, including but not limited to route switching, power adjustment, and configuration reloading; S6: After the recovery operation, re-execute S2 and S3 to verify the recovery effect and adjust the recovery strategy to ensure that the link is restored to the optimal state.
2. The method for fault detection and automatic recovery of an electrical communication link according to claim 1, characterized in that: The S1 specifically includes: S11: Selecting sensor types for monitoring the electrical communication environment, including a temperature sensor, a humidity sensor, and an electromagnetic interference sensor, wherein the temperature sensor uses a thermocouple or a thermistor to measure the temperature of the device surface and the surrounding air; the humidity sensor uses a capacitive humidity sensor to monitor the moisture content in the air; and the electromagnetic interference sensor uses a high-sensitivity magnetic field detector to detect the electromagnetic noise level in the surrounding environment; S12: Determine the optimal deployment location of sensors based on the specific layout of the electrical communication equipment and the characteristics of the surrounding environment. The temperature sensor and humidity sensor are deployed at the air inlet and outlet of the electrical communication equipment to monitor the conditions of the incoming and outgoing air; the electromagnetic interference sensor is deployed near the main board of the equipment and on the housing of the equipment to capture the electromagnetic environment inside and outside the equipment; S13: Environmental parameter data is continuously collected through a data acquisition unit connected to each sensor. The data acquisition unit is configured with signal conditioning and amplification functions to ensure that the data collected from the sensor is accurate. The collected data includes the average temperature, humidity value and electromagnetic interference intensity per minute.
3. The method for fault detection and automatic recovery of an electrical communication link according to claim 1, characterized in that: The S2 specifically includes: S21: Determine parameters required to monitor the signal quality of the electrical communication link, including signal-to-noise ratio, attenuation rate, and bit error rate; S22: installing a signal acquisition device at a node of the electrical communication link, including an optical-to-electrical converter and a radio frequency analyzer, to continuously capture signal data, the signal acquisition device being used to convert raw signal data into a digital format; S23: The collected signal data is transmitted to a data processing center in real time, and a high-speed data processing algorithm is implemented in the data processing center to instantly calculate the signal-to-noise ratio, attenuation rate, and bit error rate to monitor the instantaneous status of the link; S24: Based on historical signal quality data, the preset dynamic threshold adjustment algorithm will automatically update the threshold for fault identification, predicting and setting the threshold that adapts to the current environment by analyzing past performance trends and current operating conditions; S25: When real-time data shows that a parameter exceeds the dynamically adjusted threshold, a fault warning will be triggered, and the signal quality data and event details will be recorded for subsequent analysis and troubleshooting.
4. The method for fault detection and automatic recovery of an electrical communication link according to claim 3, characterized in that: The S24 specifically includes: S241: regularly collecting signal quality data from monitoring equipment, including parameters of signal-to-noise ratio, attenuation rate, and bit error rate, and preprocessing the collected data, including filtering and denoising; S242: Analyze historical signal quality data using an autoregressive moving average model, and establish statistical characteristics of historical data through the model to identify and quantify trends and seasonal changes in data; the autoregressive moving average model formula is: Among them, X t represents the signal quality measurement at time point t; are the parameters of the autoregressive part; θ1,…,θ q is the parameter of the moving average part; ∈ t is the prediction error at time t; S243: Combined with real-time monitoring data, evaluate the current network operating conditions, including the impact of traffic load and environmental factors on signal quality; S244: Based on the analysis results of S242 and S243, a prediction model is used to calculate a new fault threshold. The prediction model combines historical trend analysis and current operating conditions, and specifically uses a machine learning algorithm of a gradient boosting tree to dynamically adjust the threshold. The gradient boosting tree algorithm builds a strong prediction model by using multiple decision trees. Each tree learns the residual of the previous tree and iteratively reduces the prediction error. The optimization function is: Among them, h t (x) represents the prediction result of the t-th decision tree under the given input x; γ t is the contribution weight of the tth tree, which is used to adjust the influence of a single tree on the final prediction result; λ is the regularization parameter, which is used to control the complexity of the model and prevent overfitting; Ω(h t ) is a function that measures the complexity of the t-th tree; S245: Automatically update the fault identification threshold according to the prediction result of S244.
5. The method for fault detection and automatic recovery of an electrical communication link according to claim 1, characterized in that: The S3 specifically includes: S31: Integrate the environmental monitoring data from S1 and the signal quality data from S2. The data integration process includes data synchronization and format standardization. S32: extracting features from the integrated data, the feature selection includes calculating the rate of change of environmental parameters and signal quality data, long-term and short-term fluctuations, and pattern recognition of historical fault data; S33: Use the integrated and extracted feature data to train the preset random forest model. The random forest model improves the accuracy and stability of prediction by building multiple decision trees and voting among them. Model training includes determining the number of trees, the maximum depth, and the minimum number of samples for each node, as well as using cross-validation to optimize parameters and prevent overfitting. S34: Use the trained random forest model to analyze the currently collected real-time data to predict potential failures, thereby identifying high-risk states and potential failure types.
6. The method for fault detection and automatic recovery of an electrical communication link according to claim 5, characterized in that: The S32 specifically includes: S321: Calculate the change rate of the environmental parameters and signal quality parameters. The change rate is calculated by dividing the difference between the current value and the historical average value within a certain time window by the historical standard deviation to evaluate the short-term fluctuation of the parameters. The change rate formula is: Among them, X t Represents the parameter value at the current time point, μ t-n:t and σ t-n:t Represent the mean and standard deviation of the past n time points respectively; S322: Use moving average and exponential smoothing techniques to analyze long-term and short-term fluctuations of signals to distinguish trends and seasonal fluctuations in signal quality changes; The moving average formula is: The exponential smoothing formula is: ES t =αX t +(1-α)ES t-1 , where MA t represents the moving average at time point t, which is used to smooth short-term fluctuations; X t-i represents the observation value at time point ti; k represents the window size of the moving average; ES t represents the exponential smoothing value at time point y; α represents the smoothing coefficient; X t represents the observed value at time point t; ES t-1 Represents the exponential smoothing value at time point t-1, indicating the smoothing result of the previous moment; S323: Use the principal component analysis method to analyze the patterns and anomalies in the historical fault data. The specific formula of principal component analysis is: Z=XE, where X is the data matrix, W is the weight matrix, which is composed of the principal components of the data, and Z is the transformed data, showing the direction of variation.
7. The method for fault detection and automatic recovery of an electrical communication link according to claim 6, characterized in that: The S33 specifically includes: S331: preprocessing the feature data integrated and extracted from steps S31 and S32, including scaling and normalization, so that the data is suitable for the input requirements of the random forest model, and dividing the data set into a training set and a test set, specifically using 70% of the data as a training set and the remaining 30% as a test set; S332: Set the basic parameters of the random forest model, including the number of decision trees, the maximum depth of each tree, and the maximum number of features considered at each split node. The formula of the random forest model is: Among them, RF represents the final prediction output of the random forest model; B represents the total number of decision trees; T b (x;θ b ) represents the prediction result of the b-th decision tree for the input feature x, where θ b represents the parameters and data subsets randomly selected by the tree during training; x represents the feature data input to the model; S333: Use the training set data to train the random forest model. In the specific training process, each tree will randomly extract a sample subset from the training set and build a decision tree on the subset. The establishment of the tree uses information gain as the splitting criterion; the calculation formula of information gain is: Among them, IG(D,f) represents information gain, which is used to measure the entropy reduction brought by feature f after the data set D is split; H(D) represents the entropy of the data set D; D v represents the sub-dataset when the value of feature f is v; |D v | represents the sub-dataset D v The number of samples in the dataset D; |D| represents the number of samples in the entire dataset D; H(D v ) represents the sub-dataset D v Entropy of S334: Use the test set to evaluate the performance of the random forest model, including the model's accuracy, recall, and F1 score, and adjust the model parameters based on the test results to achieve better prediction results.
8. The method for fault detection and automatic recovery of an electrical communication link according to claim 7, characterized in that: The S4 specifically includes: S41: first, receiving the fault prediction result from S3, including the type of potential fault, the probability of occurrence, and the severity of the impact; S42: Integrate prediction results with monitoring data, including equipment performance logs, user service quality reports, and historical maintenance records, to obtain a comprehensive fault view; S43: Apply the decision tree analysis method, combined with the rule engine, to conduct in-depth analysis on the integrated data to determine the root cause of the failure. The decision tree analysis formula is: Where C(T) is the cost of tree T, p i is the probability that node i is in the tree, H(T i ) is the entropy of node i. S44: Based on the result of the fault cause analysis, a corresponding recovery strategy is used, which includes rerouting communication data, adjusting network device configuration, or starting backup.
9. The method for fault detection and automatic recovery of an electrical communication link according to claim 1, characterized in that: The S5 specifically includes: S51: receiving a recovery instruction, first receiving the fault handling decision result obtained from S4, including but not limited to route switching, power adjustment and configuration reloading; S52: Determine the type of recovery operation: Based on the nature and impact scope of the fault, determine the type of recovery operation that needs to be performed; S53: Execute operations: route switching is to dynamically change the data path by modifying the routing table or using the network management protocol to bypass the fault area; power adjustment is to increase or decrease the power supply of the device or network segment as needed; configuration reloading is to reload the previous configuration snapshot or the optimized configuration to the affected device; S54: Verify the operation results. After performing the recovery operation, immediately monitor the operation effect to ensure that the recovery operation actually solves the problem. Specifically, it includes re-evaluating network performance and stability to ensure that all changes meet the expected repair goals.
10. The method for fault detection and automatic recovery of an electrical communication link according to claim 1, characterized in that: The S6 specifically includes: S61: After the recovery operation is completed, a signal quality monitoring program is triggered to re-evaluate the signal quality of the electrical communication link, including signal-to-noise ratio, attenuation rate, and bit error rate; S62: synchronously, continue to collect environmental parameters related to link performance, including temperature, humidity, and electromagnetic interference; S63: Integrate the latest monitoring data collected from steps S61 and S62, and re-extract features, including calculating new change rates and long- and short-term fluctuations, to evaluate the current status and trend of the link; S64: Update the preset random forest model using the latest feature data; S65: Analyze the fault prediction results output by the model, evaluate the effectiveness of the recovery measures, and determine whether the link has been restored to the optimal state or whether adjustment is required; S66: Based on the results of step S65, make policy adjustments, including continuing to optimize network configuration or implementing additional technical measures. All adjustment measures will be recorded and fed back to the preset knowledge base for future fault response and recovery strategy optimization.
Citation Information
Cited By
Self-adaptive remote communication control system and method based on large model
CN119182694A
Remote intelligent monitoring system and method for safety of town houses
CN119207060A
Mobile phone data line detection and analysis system
CN119210613A
Network anomaly monitoring and processing system
CN119383056A
A network anomaly monitoring processing system
CN119383056B
