Optical module, optical line terminal and processing method for optical fiber fault detection
By building a machine learning model to analyze the working status data of optical modules, optical line terminals and optical fibers in real time, predict potential faults and trigger alarms, it solves the problem of low efficiency of traditional fault detection and achieves stable operation of the system and efficient fault handling.
Patent Information
- Application Number
- CN202410884304.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional optical module, optical line terminal and optical fiber fault detection methods have low detection efficiency and cannot predict potential faults, resulting in data transmission interruption and unstable system operation.
By collecting the working status data of optical modules, optical line terminals and optical fibers, we perform data standardization processing and feature extraction, build a machine learning model, analyze the equipment status in real time to predict potential faults, and notify relevant personnel through the alarm system for processing.
It realizes preventive maintenance before a fault occurs, avoids data transmission interruption, improves the efficiency and accuracy of fault detection, and reduces the cost and error of manual inspection.
Smart Images

Figure CN118631331A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network maintenance, and in particular to an optical module, an optical line terminal and a processing method for optical fiber fault detection. Background Art
[0002] In large data centers and cloud computing environments, stable and high-speed network connections are key factors in ensuring efficient operation of the system. As important components of network transmission, the performance of optical modules, optical line terminals, and optical fibers directly affects the quality and stability of data transmission. However, these devices may experience various faults during operation, such as optical power attenuation and signal quality degradation. If these faults are not discovered and handled in a timely manner, they may cause serious data transmission interruptions, thus affecting the normal operation of the entire system.
[0003] Traditional fault detection methods usually rely on regular manual inspections and the device's own alarm system. However, these methods often have problems such as low detection efficiency and untimely fault detection, and are unable to predict potential faults and perform preventive maintenance before a fault occurs. To this end, we propose a method for optical module, optical line terminal, and optical fiber fault detection. Summary of the invention
[0004] The object of the present invention is to provide an optical module, an optical line terminal and a processing method for optical fiber fault detection to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: an optical module, an optical line terminal and a processing method for optical fiber fault detection, the method specifically comprising:
[0006] Step 1, collecting the working status data of the optical module, optical line terminal and optical fiber when the fault occurs, including: collecting the transmitted optical power, received optical power, working temperature, working current and voltage of the optical module when the fault occurs; collecting the signal quality, bit error rate, equipment status and ambient temperature data of the optical line terminal when the fault occurs; collecting the optical signal attenuation and optical fiber connection status data of the optical fiber when the fault occurs; collecting all relevant fault conditions, including the time, location, type and cause of the fault;
[0007] Summarize and organize the working status data of optical modules, optical line terminals and optical fibers when faults occur and the corresponding fault conditions to form a complete fault record;
[0008] Step 2: Perform data standardization on the fault record data collected in step 1, and convert data of different dimensions and units into a unified format and range;
[0009] Step 3: Extract key features of the data processed in step 2, and extract feature parameters that have a key impact on fault detection by analyzing the correlation, variability or importance between the data to form a training data set for subsequent machine learning models;
[0010] Step 4: Build a machine learning model, use the training data set, and combine machine learning technology to train a fault prediction model, where the fault prediction model is used to predict potential faults of the optical module, optical line terminal, and optical fiber according to their real-time working status;
[0011] Step 5: Setting up a data collection system, which is used to capture operation data from optical modules, optical line terminals and optical fiber equipment in real time; specifically:
[0012] Collect data from optical modules, including transmitted optical power, received optical power, temperature, operating current, and voltage;
[0013] Collect data from optical line terminals, including signal quality, bit error rate, device status, and ambient temperature;
[0014] Collect data from optical fibers, including optical signal attenuation and fiber connection status;
[0015] Step 6: Clean the original real-time data collected in step 5, including removing or correcting incomplete, duplicate and abnormal data records;
[0016] Step 7: Analyze the cleaned real-time data through the fault prediction model constructed in step 4 to predict whether there is a potential fault and determine the location and type of the fault;
[0017] Step 8: Alarm and notification. If there is a potential fault in the prediction result, the alarm system will be triggered immediately, and relevant personnel will be notified in time for processing via email, SMS or a dedicated alarm platform.
[0018] Preferably, the step 2 of standardizing the data includes:
[0019] a. Determine the dimension and unit of each data feature;
[0020] b. Convert all data to dimensionless standardized form using the following formula:
[0021]
[0022] Among them, x represents the original data, min(x) represents the minimum value in the data set, max(x) represents the maximum value in the data set, and x norm It is the standardized data, with a value range between 0 and 1, indicating the position of the original data point relative to the overall range of the data set.
[0023] Preferably, in the process of extracting features from data in step 3, the Pearson correlation coefficient is used to measure the correlation between the features and the fault prediction results, and by calculating the correlation coefficient between each feature parameter and the fault condition, features with significant correlation are selected as key features.
[0024] Preferably, a random forest algorithm is used to construct and train a fault prediction model, and the specific implementation steps are as follows:
[0025] a. Initialization: Set the number of decision trees T in the random forest;
[0026] b. For each decision tree, follow the following steps to build it: i. From the training data set formed in step 3, extract a data set of the same size as the original training data set as the training data of the decision tree through random sampling with replacement; ii. When each node is split, randomly select a feature subset from all feature parameters; iii. Use the Gini impurity criterion to select the best split feature. The calculation formula of Gini impurity is: where p k is the probability of the kth category, K is the total number of categories, and when selecting the splitting feature, select the feature that reduces the Gini impurity the most after the split; iv. Recursively split the node until the preset tree depth is reached;
[0027] c. After all decision trees are constructed, a random forest model is formed;
[0028] d. During model training, k-fold cross validation is used to evaluate the performance of the model and adjust the model parameters to optimize the model performance.
[0029] Preferably, during the model training phase, the specific implementation steps of adjusting the model parameters to optimize the model performance include:
[0030] a. Randomly divide the training data set formed in step 3 into k subsets of equal size;
[0031] b. Perform k training and validation, each time selecting a subset as the validation set and the remaining k-1 subsets as the training set;
[0032] c. In each training and validation, the random forest model is trained using the training set, and the performance of the model is evaluated on the validation set; the performance evaluation indicators include accuracy, recall, and F1 score;
[0033] d. Record the performance evaluation results of each verification and calculate the average performance index of k verifications;
[0034] e. Set the parameter candidate value range and use the grid search method to traverse different parameter combinations. The optimization parameters of the random forest model include the number of decision trees, the maximum depth of the tree, the minimum sample split, and the minimum sample leaf node;
[0035] f. For each set of parameters, repeat the above k-fold cross-validation process to evaluate the performance of the model;
[0036] g. Select the parameter combination that performs best in cross-validation as the final parameters of the model.
[0037] Preferably, the data collection system is configured with a timer mechanism. When the timer reaches a preset collection time point, the data collection action is triggered. The data collection system obtains the working status data of the device by calling the API interface function provided by the optical module, optical line terminal and optical fiber equipment, or using the SNMP protocol to send a request for a specified OID.
[0038] Preferably, the method of data cleaning the original real-time data in step 6 is: first, identify and remove duplicate data records; second, check the integrity of the data records, and fill or delete the missing key fields according to the preset rules; finally, identify abnormal data through the preset threshold, and if the data is not within the preset threshold range, correct or delete it.
[0039] Preferably, the fault records during equipment operation are continuously collected, the training data set is regularly updated, and the fault prediction model is repeatedly trained using the updated training data set to optimize the parameters and performance of the model and adapt the model to the latest fault modes and characteristics.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The processing method of the present invention can predict potential faults through machine learning models, thereby performing preventive maintenance before the fault occurs, effectively avoiding data transmission interruption and ensuring the stable operation of the system. By automatically collecting and analyzing the working status data of optical modules, optical line terminals and optical fibers, the present invention can detect potential faults of equipment in real time and accurately, greatly improving the efficiency and accuracy of fault detection and reducing the cost and error of manual inspections. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A diagram showing the processing steps of the method of the present invention;
[0043] Figure 2 A functional decomposition diagram of the method of the present invention;
[0044] Figure 3 Diagram of the steps for building and training a fault prediction model. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] See also Figure 1-3 The present invention provides a technical solution: an optical module, an optical line terminal and a processing method for optical fiber fault detection, the method specifically comprising:
[0047] Step 1. Collect the working status data of the optical module, optical line terminal and optical fiber when the fault occurs, including: collecting the transmitted optical power, received optical power, operating temperature, operating current and voltage of the optical module when the fault occurs; collecting the signal quality, bit error rate, equipment status and ambient temperature data of the optical line terminal when the fault occurs; collecting the optical signal attenuation and optical fiber connection status data of the optical fiber when the fault occurs; collecting all relevant fault conditions, including the time, location, type and cause of the fault; summarizing and arranging the working status data of the optical module, optical line terminal and optical fiber when the fault occurs and the corresponding fault conditions to form a complete fault record; these data will serve as the basis for subsequent machine learning model training.
[0048] The following is an example of the above fault record data:
[0049] Fault ID: 001;
[0050] Failure time: 2023-04-15 14:30:00;
[0051] Fault location: Data center, Building A, 3rd floor, optical module 3-B-17;
[0052] Fault type: The optical module transmits abnormal optical power;
[0053] Solution: Replace the optical module;
[0054] Working status data:
[0055] Optical module data:
[0056] Transmitted optical power: -10dBm (abnormal, normal value should be >-5dBm);
[0057] Received optical power: -20dBm (normal);
[0058] Working temperature: 75℃ (a bit high, the normal value should be <70℃);
[0059] Working current: 50mA (normal);
[0060] Voltage: 3.3V (normal);
[0061] Optical Line Terminal Data:
[0062] Signal quality: Excellent;
[0063] Bit error rate: 10^-9 (normal);
[0064] Device status: normal;
[0065] Ambient temperature: 25℃ (normal);
[0066] Fiber Optic Data:
[0067] Optical signal attenuation: 0.5dB / km (normal);
[0068] Fiber connection status: stable connection;
[0069] Fault situation: In this fault, the main problem was that the optical module's transmitted optical power was abnormally low and the operating temperature was also high. After inspection, it was found that the optical module was aging, resulting in performance degradation. After replacing a new optical module, the system returned to normal.
[0070] This example records in detail all the data when the fault occurs, including the time, location, type, and working status data at the time of the fault, providing a real case for subsequent data analysis and model training.
[0071] Step 2: Standardize the fault record data collected in step 1. Since the collected data may have different dimensions and units, in order to facilitate subsequent data analysis and model training, these data need to be converted into a unified format and range. Data standardization can eliminate the impact of dimensions and units on data analysis and improve the accuracy and efficiency of data processing.
[0072] Step 3: The standardized data will be used for key feature extraction. By analyzing the correlation, variability and importance between the data, the characteristic parameters that have a key impact on fault detection are extracted. These characteristic parameters will constitute the training data set and provide data support for the subsequent training of the machine learning model. Key feature extraction helps to reduce data redundancy and noise and improve the training effect and prediction accuracy of the model.
[0073] Step 4: Use the training data set composed of the extracted key feature parameters and combine it with machine learning technology to train a fault prediction model. The model can predict potential faults based on the real-time working status of optical modules, optical line terminals, and optical fibers. Through continuous learning and optimization, the model can gradually improve the accuracy and reliability of fault prediction.
[0074] Step 5: In order to monitor the network status in real time and predict potential failures, a data collection system needs to be set up, which can capture operating data from optical modules, optical line terminals, and optical fiber equipment in real time. By collecting the real-time working status data of these devices, timely and accurate information support can be provided for subsequent fault prediction, specifically:
[0075] Collect data from optical modules, including transmitted optical power, received optical power, temperature, operating current, and voltage;
[0076] Collect data from optical line terminals, including signal quality, bit error rate, device status, and ambient temperature;
[0077] Collect data from optical fibers, including optical signal attenuation and fiber connection status;
[0078] Step 6: The collected raw real-time data may contain incomplete, duplicate or abnormal data records, which will interfere with subsequent fault prediction. Therefore, it is necessary to clean the data, including removing or correcting incomplete, duplicate and abnormal data records. Data cleaning can improve the quality and accuracy of the data, so as to improve the accuracy of subsequent fault prediction.
[0079] Step 7: Analyze the cleaned real-time data through the fault prediction model built in step 4 to predict whether there is a potential fault and determine the location and type of the fault. The model will determine the operating status of the network equipment based on the characteristics of the real-time data, and timely discover and warn of potential fault risks, which will help take preventive measures before the fault occurs to avoid data transmission interruption and system operation failure.
[0080] Step 8: If there is a potential failure in the prediction result, the system will immediately trigger the alarm mechanism and promptly notify relevant personnel through email, SMS or a dedicated alarm platform for processing. This timely alarm and notification mechanism can ensure that relevant personnel can respond quickly and take measures to solve potential failure problems, thereby ensuring the stability and efficiency of network connections.
[0081] The present invention proposes a processing method for optical module, optical line terminal and optical fiber fault detection, and its working principle is mainly based on machine learning technology. First, a training data set is formed by collecting historical fault data and corresponding working status data. Then, a fault prediction model is trained using these data so that it can learn and identify the patterns and trends of fault occurrence. In real-time operation, the real-time working status data of the equipment is captured by the data collection system, and after data cleaning, it is input into the fault prediction model for analysis. The model predicts whether there is a potential fault based on the characteristics of the real-time data, and determines the location and type of the fault. Once a potential fault is found, the system will immediately trigger an alarm mechanism to notify relevant personnel to handle it in time. By predicting potential faults, preventive maintenance can be performed before the fault occurs, avoiding data transmission interruption and ensuring the stable operation of the system.
[0082] The present invention will be further described below in conjunction with Examples 1 to 3:
[0083] Embodiment 1:
[0084] When collecting the working status data of optical modules, optical line terminals and optical fibers, different parameters are involved, and these parameters have different dimensions and units. For example, optical power may be measured in milliwatts or decibel milliwatts, and temperature may be measured in degrees Celsius or degrees Fahrenheit. These different dimensions and units make it difficult to directly compare and analyze the data. Therefore, data standardization is required to eliminate the impact of dimensions and units and improve the comparability of data.
[0085] Step 2 The steps to standardize the data include:
[0086] a. Determine the dimension and unit of each data feature: First, it is necessary to clarify the dimension and unit of each collected working status data, such as the dimension and unit of the optical module's transmitted optical power, received optical power, operating temperature and other parameters;
[0087] b. Data dimensionless conversion: Use a specific formula to convert all data into dimensionless standardized form. Use the following formula for conversion:
[0088]
[0089] Among them, x represents the original data, min(x) represents the minimum value in the data set, max(x) represents the maximum value in the data set, and x normThe data is standardized, and its value range is between 0 and 1, indicating the position of the original data point relative to the overall range of the data set. Taking the working status data processing of the optical module as an example, it is assumed that the transmitted optical power, received optical power and operating temperature data of the optical module at different time points are collected. These data have different dimensions and units, and it is difficult to directly compare and analyze them. Through data standardization processing, these data can be converted to a unified scale. For each parameter (such as transmitted optical power, received optical power and operating temperature), calculate its minimum and maximum values in the entire data set respectively, and then use the above formula for dimensionless conversion. The converted data can be compared and analyzed on the same scale, so that the working status of the optical module can be more accurately evaluated.
[0090] In the process of extracting features from data in step 3, the Pearson correlation coefficient is used to measure the correlation between the features and the fault prediction results. By calculating the correlation coefficient between each feature parameter and the fault condition, the features with significant correlation are selected as key features. The following is a specific implementation method for feature extraction using the Pearson correlation coefficient:
[0091] Step 3.1. Data preparation: Before starting feature extraction, make sure that the data has been standardized (as described in step 2). The standardized dataset will be used as the input for this step.
[0092] Step 3.2, calculate the Pearson correlation coefficient: for each characteristic parameter (such as the optical module's transmitted optical power, received optical power, operating temperature, etc.), calculate the Pearson correlation coefficient between it and the fault condition. The Pearson correlation coefficient is an indicator that measures the strength and direction of the linear relationship between two variables, and its value range is [-1,1].
[0093] The calculation formula of Pearson correlation coefficient is as follows:
[0094]
[0095] Among them, x i is the eigenvalue of the i-th sample, y i is the fault condition of the ith sample (it can be a binary variable of fault or not, or a continuous variable of fault severity), x' and y' are the means of the eigenvalue and fault condition, respectively, and n is the number of samples.
[0096] Step 3.3, feature selection: According to the calculated Pearson correlation coefficient, select those features that have a significant correlation with the fault condition. Features with an absolute value of the correlation coefficient greater than a certain threshold (such as 0.5) can be selected as key features. These key features will be used for subsequent machine learning model training.
[0097] Step 3.4, form a training dataset: Combine the selected key features with the corresponding fault conditions to form a complete training dataset, which will be used to train a machine learning model that can predict potential faults.
[0098] By introducing the Pearson correlation coefficient for feature extraction, the present invention can more effectively identify the characteristic parameters most relevant to fault prediction, thereby improving the accuracy and efficiency of fault prediction.
[0099] Embodiment 2:
[0100] The present invention uses the random forest algorithm to construct and train the fault prediction model. Random forest is an integrated learning method that improves the prediction accuracy and stability of the model by constructing multiple decision trees and integrating their prediction results. The specific implementation steps are as follows:
[0101] a. First, set the number of decision trees T in the random forest. The size of T can be adjusted according to the actual situation. Generally, the larger the value of T, the better the stability of the model, but the training time will also increase accordingly.
[0102] b. For each decision tree, follow the following steps to build it: i. From the training data set formed in step 3, extract a data set of the same size as the original training data set as the training data of the decision tree through random sampling with replacement. This sampling method can increase the diversity of the model, thereby improving the generalization ability of the model; ii. When each node is split, a feature subset is randomly selected from all feature parameters. The purpose of this is to reduce the correlation between features so that each decision tree focuses on different feature combinations, thereby improving the robustness of the model; iii. Use the Gini impurity criterion to select the best split feature. The calculation formula of Gini impurity is: where p k is the probability of the kth category, K is the total number of categories. When selecting split features, select the features that reduce the Gini impurity the most after splitting, so as to ensure that each split can maximize the purity of the data; iv. Recursively split the nodes until the preset tree depth is reached. The tree depth can be adjusted according to the actual situation. A tree that is too deep may lead to overfitting, while a tree that is too shallow may not fully capture the complexity of the data.
[0103] c. Repeat step b until T decision trees are constructed, which together constitute the random forest model.
[0104] d. During model training, k-fold cross validation is used to evaluate the performance of the model and adjust the model parameters to optimize the model performance.
[0105] The above method mainly constructs a single decision tree through sampling with replacement, feature selection, optimal split feature selection and recursive splitting, and finally forms a random forest model. The trained model can be used to predict potential failures of equipment, so as to take maintenance measures in time to ensure the stability and efficiency of data transmission.
[0106] During the model training phase, the specific steps to adjust model parameters to optimize model performance include:
[0107] Step 1: Dataset division
[0108] a. Randomly divide the training data set formed in step 3 into k subsets of equal size. This division ensures that in the subsequent cross-validation, each subset has the opportunity to be used as a validation set, thereby comprehensively evaluating the generalization ability of the model.
[0109] Step 2: k-fold cross validation
[0110] b. Perform k training and validation. In each iteration, select a subset as the validation set, and the remaining k-1 subsets are combined as the training set.
[0111] c. Use the training set data to train the random forest model. During the training process, the model will learn the relationship between the data features and labels.
[0112] d. After training, evaluate the performance of the model on the corresponding validation set. Performance evaluation indicators include but are not limited to accuracy, recall, and F1 score, which can fully reflect the performance of the model on unknown data.
[0113] e. Record the performance evaluation results of each validation and calculate the average performance index of k validations to more accurately measure the performance of the model.
[0114] Step 3: Parameter Optimization
[0115] f. Set the range of parameter candidate values. These parameters include the number of decision trees, the maximum depth of the tree, the minimum sample split and the minimum sample leaf node, which have an important impact on the performance and complexity of the model.
[0116] g. Use the grid search method to traverse different parameter combinations. For each set of parameters, repeat the above k-fold cross-validation process to evaluate the performance of the model under this parameter combination.
[0117] h. Compare the model performance under different parameter combinations and select the parameter combination that performs best in cross-validation as the final parameters of the model. These optimal parameters can maximize the predictive performance of the model while maintaining the complexity of the model.
[0118] Through the above steps, the present invention realizes the fine adjustment of model parameters in the model training stage. In the fault prediction model, accuracy, recall and F1 score are key performance evaluation indicators. These indicators help to comprehensively evaluate the performance of the model in fault prediction and provide directions for optimizing the model. The following are the specific roles of these indicators in the fault prediction model:
[0119] Precision: Precision is used to measure the proportion of instances that are actually positive samples among those predicted by the model as positive samples (i.e., there is a fault). In the fault prediction model, the accuracy reflects the accuracy of the model in predicting faults. A high accuracy means that the model can more accurately identify the real fault situation when predicting faults, reducing the possibility of false positives.
[0120] Recall: Recall is used to measure the proportion of all true positive samples (i.e., instances with actual faults) that are correctly predicted by the model. In fault prediction models, the recall reflects the model's sensitivity to faults and its ability to detect them. A high recall means that the model can more comprehensively detect actual faults and reduce the risk of missing faults.
[0121] F1 score: The F1 score is the harmonic mean of precision and recall, and is used to comprehensively evaluate the performance of the model. In the fault prediction model, the F1 score can balance the impact of precision and recall, providing a more comprehensive performance evaluation indicator. A high F1 score means that the model has both high accuracy in predicting faults and can more comprehensively detect actual faults.
[0122] The following is a code example (simplified version) using Python as the programming language to build and train a fault prediction model:
[0123] import pandas as pd
[0124] from sklearn.model_selection import train_test_split
[0125] from sklearn.ensemble import RandomForestClassifier
[0126] from sklearn.metrics import accuracy_score
[0127] # Load data
[0128] #The CSV file contains the working status data of the optical module, optical line terminal and optical fiber, as well as the label of whether a fault occurs
[0129] data=pd.read_csv('fault_data.csv')
[0130] #The dataset has the following columns: 'temperature', 'voltage', 'current', 'optical_power', 'signal_quality', 'fault'
[0131] #Where 'fault' is the target column, indicating whether a fault occurs (1 indicates a fault, 0 indicates normal)
[0132] #Separate features and labels
[0133] X=data[['temperature','voltage','current','optical_power','signal_quality']]
[0134] y = data['fault']
[0135] # Divide into training set and test set
[0136] X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.2,random_state=42)
[0137] #Create a random forest classifier instance
[0138] rf_classifier=RandomForestClassifier(n_estimators=100,random_state=42)
[0139] #Train model
[0140] rf_classifier.fit(X_train,y_train)
[0141] # Make predictions on the test set
[0142] y_pred=rf_classifier.predict(X_test)
[0143] #Evaluate model performance
[0144] accuracy=accuracy_score(y_test,y_pred)
[0145] print(f"Model accuracy:{accuracy}")
[0146] In the above code, three main python packages are imported: pandas, sklearn.model_selection, and sklearn.ensemble.
[0147] Pandas is a powerful data processing library for data cleaning, conversion, and analysis. In the code, the read_csv function of pandas is used to load the data set in CSV format; sklearn.model_selection: It is a module in the scikit-learn library that provides functions such as data splitting, cross-validation, and model selection. In the code, the train_test_split function is used to split the data set into training and test sets; the sklearn.ensemble module contains the implementation of ensemble learning algorithms, such as random forest. In the code, RandomForestClassifier (an ensemble classifier based on decision trees) is used to build multiple decision trees and combine their outputs to improve prediction accuracy and stability.
[0148] Embodiment 3:
[0149] The data collection system is configured with a timer mechanism. When the timer reaches the preset collection time point, the data collection action is triggered. The data collection system obtains the working status data of the equipment by calling the API interface functions provided by the optical module, optical line terminal and optical fiber equipment, or using the SNMP protocol to send a request to obtain the specified OID. The data collection system adopts a distributed architecture, consisting of a central server and multiple data collectors. The central server is responsible for managing and scheduling the data collectors, and the data collectors are responsible for collecting data from specific devices. The implementation method is as follows:
[0150] 1. Timer mechanism: The data collection system is equipped with a timer mechanism, which is used to control the frequency and time point of data collection. The timer can be set to trigger at a fixed interval, such as collecting data every 5 minutes, every hour, or every day. When the timer reaches the preset collection time point, the data collection action will be triggered.
[0151] 2. Data collection process: After receiving the trigger signal of the timer, the data collector starts to perform the data collection task. For optical modules, optical line terminals and optical fiber equipment, the data collector obtains data by calling the API interface functions provided by the equipment. These API interface functions can usually return the real-time working status of the equipment, such as transmitted optical power, received optical power, signal quality, etc. If the device supports the SNMP protocol, the data collector can also use the SNMP protocol to send a request to obtain the specified OID (object identifier). After receiving the request, the device will return the data value corresponding to the OID. The collected data is temporarily stored in the data collector, waiting for further processing or uploading to the central server.
[0152] 3. Data upload and storage: After completing data collection, the data collector will package the data and upload it to the central server through a secure network communication protocol (such as HTTPS)
[0153] The method of data cleaning the original real-time data in step 6 is:
[0154] Identify and remove duplicate data records: Use database query languages or data processing tools to check whether there are identical records in the data set. For duplicate records, only one is retained and the rest are deleted. Data hashing or sorting techniques can be used to efficiently identify duplicate records.
[0155] Check the completeness of data records: traverse the data set and check whether each record contains all the necessary fields. For records with missing key fields, process them according to the preset rules. If the missing fields are critical to the analysis and cannot be filled, the record will be eliminated. If the missing fields can be inferred or filled by other information (such as using statistical methods such as mean, median or mode), fill them.
[0156] Identify and handle abnormal data: Set reasonable threshold ranges for each data field based on historical data and domain knowledge. Traverse each record to check whether the data value is within the preset threshold range. For abnormal data that exceeds the threshold range, handle it according to the specific situation. If the abnormal data is caused by clear reasons such as equipment failure and operating errors, and these reasons are important for fault prediction, retain this data and give special consideration in the model; if the abnormal data is meaningless noise or error, correct it (such as using the mean or median instead) or delete it.
[0157] As optical modules, optical line terminals, and optical fiber equipment continue to operate, new failure modes, failure characteristics, or changes in equipment performance may occur. Regularly updating and training the model can adapt the model to these changes, thereby improving the accuracy and timeliness of fault prediction. Continuously collect fault records during equipment operation, regularly update the training data set, and use the updated training data set to repeatedly train the fault prediction model to optimize the model's parameters and performance and adapt the model to the latest failure modes and characteristics.
[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0159] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An optical module, an optical line terminal and a processing method for optical fiber fault detection, characterized in that: The method specifically comprises: Step 1, collecting the working status data of the optical module, optical line terminal and optical fiber when the fault occurs, including: collecting the transmitted optical power, received optical power, working temperature, working current and voltage of the optical module when the fault occurs; collecting the signal quality, bit error rate, equipment status and ambient temperature data of the optical line terminal when the fault occurs; collecting the optical signal attenuation and optical fiber connection status data of the optical fiber when the fault occurs; collecting all relevant fault conditions, including the time, location, type and cause of the fault; Summarize and organize the working status data of optical modules, optical line terminals and optical fibers when faults occur and the corresponding fault conditions to form a complete fault record; Step 2: Perform data standardization on the fault record data collected in step 1, and convert data of different dimensions and units into a unified format and range; Step 3: Extract key features of the data processed in step 2, and extract feature parameters that have a key impact on fault detection by analyzing the correlation, variability or importance between the data to form a training data set for subsequent machine learning models; Step 4: Build a machine learning model, use the training data set, and combine machine learning technology to train a fault prediction model, where the fault prediction model is used to predict potential faults of the optical module, optical line terminal, and optical fiber according to their real-time working status; Step 5: Setting up a data collection system, which is used to capture operation data from optical modules, optical line terminals and optical fiber equipment in real time; specifically: Collect data from optical modules, including transmitted optical power, received optical power, temperature, operating current, and voltage; Collect data from optical line terminals, including signal quality, bit error rate, device status, and ambient temperature; Collect data from optical fibers, including optical signal attenuation and fiber connection status; Step 6: Clean the original real-time data collected in step 5, including removing or correcting incomplete, duplicate and abnormal data records; Step 7: Analyze the cleaned real-time data through the fault prediction model constructed in step 4 to predict whether there is a potential fault and determine the location and type of the fault; Step 8: Alarm and notification. If there is a potential fault in the prediction result, the alarm system will be triggered immediately, and relevant personnel will be notified in time for processing via email, SMS or a dedicated alarm platform.
2. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 1, characterized in that: Step 2 The steps to standardize the data include: a. Determine the dimension and unit of each data feature; b. Convert all data to dimensionless standardized form using the following formula: Among them, x represents the original data, min(x) represents the minimum value in the data set, max(x) represents the maximum value in the data set, and x norm It is the standardized data, with a value range between 0 and 1, indicating the position of the original data point relative to the overall range of the data set.
3. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 2, characterized in that: In the process of feature extraction of data in step 3, the Pearson correlation coefficient is used to measure the correlation between the feature and the fault prediction result. By calculating the correlation coefficient between each feature parameter and the fault condition, the features with significant correlation are selected as key features.
4. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 3, characterized in that: The random forest algorithm is used to build and train the fault prediction model. The specific implementation steps are as follows: a. Initialization: Set the number of decision trees T in the random forest; b. For each decision tree, follow the following steps to build it: i. From the training data set formed in step 3, extract a data set of the same size as the original training data set as the training data of the decision tree through random sampling with replacement; ii. At each node split, randomly select a feature subset from all feature parameters; iii. Use the Gini impurity criterion to select the best split feature. The calculation formula of Gini impurity is: where p k is the probability of the kth category, K is the total number of categories, and when selecting the splitting feature, select the feature that reduces the Gini impurity the most after the split; iv. Recursively split nodes until the preset tree depth is reached; c. After all decision trees are constructed, a random forest model is formed; d. During model training, k-fold cross validation is used to evaluate the performance of the model and adjust the model parameters to optimize the model performance.
5. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 4, characterized in that: During the model training phase, the specific steps to adjust model parameters to optimize model performance include: a. Randomly divide the training data set formed in step 3 into k subsets of equal size; b. Perform k training and validation, each time selecting a subset as the validation set and the remaining k-1 subsets as the training set; c. In each training and validation, the random forest model is trained using the training set, and the performance of the model is evaluated on the validation set; the performance evaluation indicators include accuracy, recall, and F1 score; d. Record the performance evaluation results of each verification and calculate the average performance index of k verifications; e. Set the parameter candidate value range and use the grid search method to traverse different parameter combinations. The optimization parameters of the random forest model include the number of decision trees, the maximum depth of the tree, the minimum sample split, and the minimum sample leaf node; f. For each set of parameters, repeat the above k-fold cross-validation process to evaluate the performance of the model; g. Select the parameter combination that performs best in cross-validation as the final parameters of the model.
6. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 1, characterized in that: The data collection system is configured with a timer mechanism. When the timer reaches the preset collection time point, the data collection action is triggered. The data collection system obtains the working status data of the device by calling the API interface function provided by the optical module, optical line terminal and optical fiber equipment, or using the SNMP protocol to send a request for the specified OID.
7. An optical module, an optical line terminal and a processing method for optical fiber fault detection according to claim 6, characterized in that: The method of data cleaning for the original real-time data in step 6 is: first, identify and remove duplicate data records; second, check the integrity of the data records, and fill or delete the missing key fields according to the preset rules; finally, identify abnormal data through the preset threshold, and if the data is not within the preset threshold range, correct or delete it.
8. The optical module, optical line terminal and optical fiber fault detection processing method according to claim 7, characterized in that: Continuously collect fault records during equipment operation, regularly update the training data set, and use the updated training data set to repeatedly train the fault prediction model to optimize the model's parameters and performance and adapt the model to the latest fault modes and characteristics.
Citation Information
Cited By
Photovoltaic power station fault analysis and early warning method and system based on big data
CN118783891A
A photovoltaic power station fault analysis and early warning method and system based on big data
CN118783891B
Intelligent optical cable monitoring method and system based on digital twinning
CN118890090A
Safety monitoring method based on irradiation sterilization
CN119246010A
Self-adaptive high-altitude machine control system and method
CN119270641A
