Optical module fault detection method, device and electronic equipment

By adjusting the weight of optical module detection rules, the problem of low accuracy of optical module fault detection is solved, and more efficient fault identification and prevention is achieved.

CN120238197BActive Publication Date: 2025-07-25NEW H3C AI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510727697.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-25
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

In the prior art, the accuracy of optical module fault detection is low, and the fault of optical module cannot be accurately identified, which affects the stability of data transmission.

Method used

By adjusting the weight of the detection rules, adjusting the current weight of the detection rules one by one until the target weight is obtained, so as to improve the accuracy of optical module fault detection.

Benefits of technology

It improves the accuracy of optical module fault detection, can more accurately identify the fault status of optical modules, reduce false detection and missed detection, and detect and eliminate potential fault hazards in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238197B_ABST
    Figure CN120238197B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, and electronic device for detecting faults in optical modules. When the fault detection results of the sample data of N sample optical modules do not match the sample labels of the respective sample optical modules, the current weights of each detection rule are adjusted one by one in sequence. After adjusting the current weight of each detection rule each time, the reference detection results of the respective sample optical modules are re-determined according to the adjusted current weight. If the number of sample optical modules with non-matching results is not less than N, it indicates that the current weight adjustment is inappropriate, and then the current weight of this detection rule is readjusted; if the number of sample optical modules with non-matching results is less than N, it indicates that the current weight adjustment is appropriate, and then the current weight of the next detection rule is adjusted until the target weight is obtained; through the adaptive adjustment of the weights corresponding to each detection rule, the obtained target weight can more accurately detect faults in optical modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical communication technologies, and particularly to an optical module fault detection method, apparatus, and electronic device. Background Art

[0002] An optical module is a key component for realizing signal conversion and data transmission between network devices and optical fibers. In practical applications, the performance of an optical module may decay during long-term operation, resulting in unstable data transmission and affecting the integrity of data reception and transmission. However, the current fault detection accuracy of the fault detection scheme for optical modules is relatively low, and it is impossible to accurately detect faults in optical modules. Summary of the Invention

[0003] In view of this, this application provides an optical module fault detection method, apparatus, and electronic device to improve the fault detection accuracy of optical modules.

[0004] The technical solutions provided by this application are as follows:

[0005] According to an embodiment of the first aspect of this application, an optical module fault detection method is provided. The method includes:

[0006] Obtain sample data of multiple sample optical modules;

[0007] Determine whether the current detection result of each sample optical module matches the sample label of each sample optical module; the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection result obtained by performing fault detection on the sample data of the sample optical module by each detection rule;

[0008] If the current detection results of N sample optical modules do not match the sample labels, and N is greater than a set threshold, then sequentially adjust the current weights of each detection rule one by one, and after adjusting the current weight of each detection rule each time, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule;

[0009] If it is found that the reference detection results of P sample optical modules do not match the sample labels, and P is greater than or equal to N, then the current weight of this detection rule is readjusted, and the step of determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule is returned; if it is found that the reference detection results of M sample optical modules do not match the sample labels, M is less than N, and M is greater than the set threshold, then when this detection rule is not the last detection rule, the current weight of the next detection rule is adjusted in sequence, and when this detection rule is the last detection rule, the current weights of each detection rule are determined as the target weights of each detection rule, so as to determine the fault detection result of the optical module to be detected based on the target weights of each detection rule and the detection results obtained by performing fault detection on the optical module to be detected by each detection rule.

[0010] According to an embodiment of the second aspect of the present application, an optical module fault detection device is provided, and the device includes:

[0011] A sample acquisition unit, configured to acquire sample data of multiple sample optical modules;

[0012] A result judgment unit, configured to judge whether the current detection result of each sample optical module matches the sample label of each sample optical module; the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection results obtained by performing fault detection on the sample data of this sample optical module by each detection rule;

[0013] A first determination unit, configured to, if the current detection results of N sample optical modules do not match the sample labels, adjust the current weights of each detection rule one by one in sequence, and after adjusting the current weight of each detection rule each time, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule;

[0014] A second determination unit, configured to, if it is found that the reference detection results of P sample optical modules do not match the sample labels, where P is greater than or equal to N, readjust the current weight of the current detection rule, and return the step of determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; if it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N, when the detection rule is not the last detection rule, sequentially adjust the current weight of the next detection rule, and when the detection rule is the last detection rule, determine the current weights of each detection rule as the target weights of each detection rule, so as to determine the fault detection result of the optical module to be detected based on the target weights of each detection rule and the detection results obtained by performing fault detection on the optical module to be detected by each detection rule.

[0015] According to an embodiment of the third aspect of the present application, an electronic device is provided, including: a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is configured to execute the machine-executable instructions to implement the method described in the first aspect.

[0016] As can be seen from the above technical solutions, in the case where the fault detection results of the sample data of N sample optical modules do not match the sample labels of each sample optical module, the current weights of each detection rule are sequentially adjusted one by one, and after each adjustment of the current weight of a detection rule, the reference detection results of each sample optical module are re-determined according to the adjusted current weight. If the number of sample optical modules with non-matching results is not less than N, it indicates that the current weight adjustment is inappropriate, and the current weight of this detection rule is re-adjusted; if the number of sample optical modules with non-matching results is less than N, it indicates that the current weight adjustment is appropriate, and the current weight of the next detection rule is adjusted until the target weight is obtained; through the adaptive adjustment of the corresponding weights of each detection rule, the obtained target weight can more accurately perform fault detection on the optical module. Description of the Drawings

[0017] The drawings here are incorporated into the description and form a part of the description, showing embodiments consistent with the present application and used together with the description to explain the principles of the present application.

[0018] Figure 1 It is a flowchart of the optical module fault detection method provided by the embodiment of the present application;

[0019] Figure 2A It is a schematic diagram of the statistical characteristics of the transmission power of a normal optical module provided by the embodiment of the present application;

[0020] Figure 2BSchematic diagram of statistical characteristics of the transmission power of the faulty optical module provided by the embodiment of the present application;

[0021] Figure 3 Overall application schematic diagram of the optical module fault detection method provided by the embodiment of the present application;

[0022] Figure 4 Structural diagram of an optical module fault detection device provided by the embodiment of the present application;

[0023] Figure 5 Schematic diagram of the structure of an electronic device provided by the embodiment of the present application. Detailed implementation manners

[0024] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and make the above-mentioned objects, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0025] An optical module is a key component for realizing signal conversion and data transmission between network devices and optical fibers. In actual applications, the performance of the optical module will decay after long-term operation, resulting in unstable data transmission and affecting the integrity of data reception and transmission. Therefore, it is necessary to perform fault detection on the optical module to identify the optical module that may have a fault, so as to discover and eliminate potential faults in advance.

[0026] Among them, the fault detection of the optical module can be to detect various types of index data of the optical module, and determine whether the optical module is abnormal according to whether the index data is abnormal.

[0027] As an embodiment, the state of the optical module can be evaluated based on index data such as the transmitted optical power, received optical power, bias current, voltage, temperature, CRC (Cyclic Redundancy Check) error packet rate, and operating state (Up / Down) of the optical module.

[0028] However, the current fault detection accuracy of the optical module fault detection scheme is relatively low, and it is impossible to accurately perform fault detection on the optical module.

[0029] Based on this, the present application proposes an optical module fault detection method to improve the accuracy of optical module fault detection.

[0030] Please refer to Figure 1 , Figure 1 Flow chart of the optical module fault detection method provided by the embodiment of the present application.

[0031] As Figure 1 shown, the method may include the following steps:

[0032] Step 101: Obtain the sample data of multiple sample optical modules.

[0033] In this embodiment, the sample data of multiple sample optical modules can be obtained in advance. Among them, to ensure correct anomaly detection results for both normal optical modules and faulty optical modules, the multiple sample optical modules can include at least one normal optical module and at least one faulty optical module.

[0034] As an embodiment, the sample data of each sample optical module can be a time series data, which can include the recorded values of at least one index data of the sample optical module within a specified period. For example, the sample data of a sample optical module can be a set of transmitted optical powers of the sample optical module within 30 days. This application does not limit this.

[0035] For the obtained sample data of multiple sample optical modules, their corresponding sample labels can be normal or faulty. For example, the sample label of the sample data of a normal optical module is normal, that is, when performing a fault detection on the sample data of a normal optical module, the correct detection result should be normal. The sample label of the sample data of a faulty optical module is faulty, that is, when performing a fault detection on the sample data of a faulty optical module, the correct detection result should be faulty.

[0036] As an embodiment, different numerical values can be used to represent different detection results. For example, 0 represents normal and 1 represents faulty. Of course, other numerical values can also be used to characterize different detection results. This application does not limit this.

[0037] So far, the description of step 101 ends. Next, execute step 102.

[0038] Step 102: Determine whether the current detection results of each sample optical module match the sample labels of each sample optical module.

[0039] Among them, the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical module by each detection rule.

[0040] In this embodiment, for the sample data of any sample optical module, the sample data can be first subjected to fault detection according to different detection rules to obtain an initial detection result. Further, based on the initial detection results corresponding to each detection rule and the current weights of each detection rule, the current detection result of the sample optical module can be determined.

[0041] As an embodiment, a specific method for determining the current test result of the sample optical module according to the initial test results corresponding to each test rule and the current weight of each test rule may be to perform a weighted operation on the initial test results corresponding to each test rule based on the current weight of each test rule, and determine the current test result of the sample optical module according to the result of the weighted operation.

[0042] For example, taking 0 to represent normal and 1 to represent failure, a judgment threshold (such as 0.4) may be preset first. If the preset weighted operation result is greater than or equal to the judgment threshold, it is determined that the current test result is a failure. If the weighted operation result is less than the judgment threshold, it is determined that the current test result is normal. Assume that a sample optical module is subjected to a failure test through two different test rules (denoted as test rule 1 and test rule 2, and their corresponding current weights are 0.4 and 0.6 respectively). For test rule 1, the obtained initial test result is normal, and for test rule 2, the obtained initial test result is a failure; then a weighted operation can be performed on the initial test results corresponding to each test rule based on the current weight of each test rule to obtain a weighted operation result: 0*0.4 + 1*0.6 = 0.6. Since 0.6 is greater than the above judgment threshold of 0.4, it can be determined that the current test result of the sample optical module is a failure.

[0043] In this embodiment, multiple test rules for performing failure detection on the optical module may be preset in advance, and the sample data of the sample optical module is respectively subjected to failure detection using the above test rules. For each test rule, the initial test result corresponding to the rule can be obtained, and further, according to the initial test result corresponding to each test rule and the current weight of each test rule, the current test result of the sample optical module is determined.

[0044] Among them, the test rules for performing failure detection on the optical module may include but are not limited to threshold discrimination test rules, trend discrimination test rules, abnormal point quantity test rules, and model test rules, and the present application does not limit this.

[0045] Several representative test rules are introduced below.

[0046] (1) Threshold discrimination test rule

[0047] This test rule may include: performing failure detection on the index data of the optical module according to the determined actual detection range; if the index data of the optical module is not within the actual detection range, it is determined that the test result obtained by performing failure detection on the index data of the optical module by this test rule is a failure; if the index data of the optical module is not within the actual detection range, it is determined that the test result obtained by performing failure detection on the index data of the optical module by this test rule is not a failure.

[0048] In this embodiment, the normal fluctuation range of each type of index data can be determined according to the statistical characteristics of the actually detected various types of index data in the normal optical module; according to the normal fluctuation range and the alarm range configured at the factory for each type of index data, the actual detection range of each type of index data is determined.

[0049] Further, a fault detection is performed on the optical module according to the determined actual detection range.

[0050] Specifically, a large number of normal optical modules can be actually detected in advance, and the various types of index data of a large number of normal optical modules are collected. For each index data, its mean value "mean" and standard deviation "std" are statistically obtained. Then, its normal fluctuation range [Value_lo, Value_hi] = [ mean + 6 * std, mean - 6 * std ], where Value_lo refers to the minimum value of the normal fluctuation range, and Value_hi refers to the maximum value of the normal fluctuation range. Here, [ mean + 6 * std, mean - 6 * std ] is only an exemplary range value, indicating that this range is determined by the statistical characteristics of each index data (here, the mean value and the standard deviation). The present application does not limit the specific determination method of this range.

[0051] At the same time, for each type of optical module, an alarm range is usually set for each index data at the time of factory shipment, that is, if the index data exceeds this warning range, it is considered that the optical module may have a fault. This alarm range configured at the factory is usually relatively wide, and the above-determined normal fluctuation range is usually included in this warning range configured at the factory. Here, the alarm range configured at the factory is denoted as [Fac_lo, Fac_hi], where Fac_lo refers to the minimum value of the alarm range configured at the factory, and Fac_hi refers to the maximum value of the alarm range configured at the factory.

[0052] In this embodiment, the actual detection range of each type of index data can be determined according to the normal fluctuation range and the alarm range configured at the factory for each type of index data.

[0053] For example, the determined actual detection range can be [Warn_lo, Warn_hi], where Warn_lo refers to the minimum value of the actual detection range, and Warn_hi refers to the maximum value of the actual detection range; Warn_lo = (Value_lo + Fac_lo) / 2; Warn_hi = (Value_hi + Fac_hi) / 2. That is, the mean value of the minimum value of the normal fluctuation range and the alarm range configured at the factory can be used as the minimum value of the actual detection range, and the mean value of the maximum value of the normal fluctuation range and the alarm range configured at the factory can be used as the maximum value of the actual detection range.

[0054] After determining the actual detection range [Warn_lo, Warn_hi], this actual detection range can be used as a new discrimination criterion to detect the optical module data through this range. If the index data of the optical module is not within the actual detection range, it is determined that the initial detection result of the optical module is a fault.

[0055] It should be noted that the above method for determining the actual detection range is only exemplary and is only used to illustrate that the actual detection range is determined according to the normal fluctuation range and the alarm range of the factory configuration. In actual applications, the actual detection range can also be obtained by weighted averaging the normal fluctuation range and the alarm range of the factory configuration. This application does not limit this.

[0056] It can be seen that the actual detection range obtained by the above method combines the normal fluctuation range and the alarm range of the factory configuration, and can more accurately judge the fault situation of the optical module.

[0057] In addition, it should be noted that since some index data, such as the number of mispackets at the input port and the number of FECs, etc., do not have an alarm range of the factory configuration, for these index data, the detection can be judged by setting an empirical value (Threshold). For example, if it is greater than the empirical threshold, it is considered that an anomaly is detected.

[0058] (2) Trend discrimination detection rule

[0059] This detection rule may include: if it is detected that the change of any index data of the optical module to be detected shows a monotonic trend within a specified duration, and the change amount of this index data within the specified duration is greater than the first threshold, it is determined that the detection result obtained by the detection rule for the index data of this optical module is a fault; otherwise, it is determined that the detection result obtained by the detection rule for the index data of this optical module is no fault.

[0060] In this embodiment, considering that the normal optical module index data fluctuates randomly, if the index data of the optical module shows an obvious monotonic change trend and reaches a certain change amount, it can often be considered that there is a suspicion of a fault.

[0061] Specifically, please refer to Figure 2A , Figure 2A which is a schematic diagram of the statistical characteristics of the transmission power of a normal optical module provided by an embodiment of this application.

[0062] As Figure 2A shown, Figure 2A the upper left image in it is the change trend of the mean of the transmission power within 16,000 samplings; Figure 2AThe lower left image in the middle shows the changing trend of the standard deviation (std) of the transmission power within 16,000 samplings; Figure 2A The upper right image in the middle shows the changing trend of the maximum value (max) of the transmission power within 16,000 samplings; Figure 2A The lower right image in the middle shows the changing trend of the minimum value (min) of the transmission power within 16,000 samplings.

[0063] It should be noted that the sampling value for each sampling refers to the statistical characteristics of the transmission power within the specified duration. For example, sampling is performed once per minute. Figure 2A If the ordinate of the data point corresponding to 12,000 on the abscissa in the middle is 9,900, it means that in the 12,000th sampling, the average value of the transmission power of the optical module within this sampling time period (i.e., one minute from the previous sampling to this sampling) is 9,900 milliwatts.

[0064] Through Figure 2A the four images included in

[0065] it can be seen that for the index data of a normal optical module, the changes of its mean (mean), standard deviation (std), maximum value (max), and minimum value (min) show a random state within a certain time range, without an obvious monotonic trend. Figure 2B , Figure 2B Please refer to

[0066] As Figure 2B shown, Figure 2B The upper left image in the middle shows the changing trend of the mean (mean) of the transmission power within 16,000 samplings; Figure 2B The lower left image in the middle shows the changing trend of the standard deviation (std) of the transmission power within 16,000 samplings; Figure 2B The upper right image in the middle shows the changing trend of the maximum value (max) of the transmission power within 16,000 samplings; Figure 2B The lower right image in the middle shows the changing trend of the minimum value (min) of the transmission power within 16,000 samplings.

[0067] Among Figure 2B the four images included in

[0068] For the index data of the faulty optical module, the changes of its mean (mean) and maximum value (max) show an obvious monotonic decreasing trend within this time range, and the decrease is relatively large, exceeding 15%.

[0069] It should be noted that the trend discrimination and detection rule can detect the statistical characteristics (such as mean, standard deviation, maximum value, minimum value) of each index data, or directly detect each index data itself. At the same time, the specified duration and the magnitude of the change can also be set according to the actual situation, and the present application does not limit this.

[0070] (3) Anomaly point quantity detection rule

[0071] This detection rule may include: counting the anomaly points in each index data of the optical module that exceed the reference data range. If the number of anomaly points is greater than or equal to the second threshold, it is determined that the detection result obtained by the detection rule for the index data of this optical module for fault detection is a fault. If the number of anomaly points is less than the second threshold, it is determined that the detection result obtained by the detection rule for the index data of this optical module for fault detection is no fault; the reference data range is determined according to the statistical characteristics of each index data of the optical module.

[0072] In this embodiment, considering that when the optical module is detected for faults by the reference data range of each set index data (that is, if any data in the index data within the specified duration exceeds the reference data range, it is determined that the optical module is abnormal), there will also be anomaly points in a normal optical module, and it cannot be guaranteed that every data point under each index data is within the reference data range. Determining the abnormality of the optical module directly through the reference data range will cause a large number of false detections. Since there will be anomaly points in a normal optical module, but the number is relatively small, while the number of anomaly points in a faulty optical module is relatively large, therefore, a detection rule based on the number of anomaly points is proposed.

[0073] Specifically, anomaly detection and analysis can be performed on the index data of multiple normal optical modules and multiple faulty optical modules. For example, the 4-sigma method can be used for detection. This method assumes that the index data conforms to a normal distribution. For the index data of the optical module, data within a specified duration such as 30 days is taken, and its mean mean and standard deviation std are calculated to obtain the reference data range [mean - 4*std, mean + 4*std]. Then, the points outside the range [mean - 4*std, mean + 4*std] are considered anomaly points. Anomaly detection is performed on all types of index data of the optical module to determine the corresponding reference data range of the index data. Further, for each type of index data, the number of its anomaly points is calculated, and the numbers of anomaly points of all types of index data of this optical module are summed.

[0074] For the above example, perform anomaly detection on the index data of the optical module for 30 days through the 4-sigma algorithm, and calculate the sum of the anomaly points of the index data. If the number of anomaly points is greater than or equal to the second threshold (such as 50), it is considered that the initial detection result of the optical module under this detection rule is a failure.

[0075] (4)Model detection rule

[0076] This detection rule may include: detecting the index data of the optical module according to the trained anomaly detection model to obtain the reconstruction error of the index data of the optical module; if the reconstruction error of any index data is greater than or equal to the third threshold, it is determined that the detection result obtained by performing failure detection on the index data of the optical module by this detection rule is a failure; if the reconstruction errors of all index data are less than the third threshold, it is determined that the detection result obtained by performing failure detection on the index data of the optical module by this detection rule is no failure.

[0077] In this embodiment, the index data of the optical module can be detected according to the trained anomaly detection model to obtain the reconstruction error of the index data of the optical module. This reconstruction error can be used to determine whether the index data matches the normal sample data during training. If the reconstruction error of an index data is high, then this index data may be regarded as an outlier because normal data will be well reconstructed by the model, while abnormal data may not be well reconstructed, resulting in a large reconstruction error.

[0078] Specifically, in the actual scenario, since the number of faulty optical modules is very small, it is very difficult to collect a large amount of data of faulty optical modules, and it is necessary to monitor a large-scale network containing a large number of optical modules for a long time. Therefore, it is necessary to design a detection method that only uses normal data.

[0079] As an embodiment, the anomaly detection model can be a classification model based on the VAE (Variational Autoencoder) algorithm. VAE is a generative model used to learn the probability distribution of training data, so as to generate new samples similar to the training data. VAE combines the characteristics of generative models and autoencoders and is an unsupervised learning method.

[0080] In anomaly detection, the VAE mainly learns the distribution of normal data. Therefore, for normal samples, the VAE can reconstruct them well. However, for abnormal samples, since they do not conform to the distribution learned during training, the reconstruction effect is poor, and thus the reconstruction error will be large. By setting a threshold for the reconstruction error, samples can be classified as normal or abnormal. If the reconstruction error of a certain sample exceeds the predetermined threshold, then the sample may be abnormal. Similar to the application of anomaly detection, the reconstruction error can be used to distinguish between two types of samples. If the reconstruction error of one category is significantly higher than that of another category, the reconstruction error can be used as a feature for binary classification. By setting an appropriate threshold, the category can be directly determined based on the reconstruction error.

[0081] In addition, in this embodiment, models such as Isolation Forest, Local Outlier Factor (LOF), and K-means clustering can also be used as anomaly detection models, and the present application does not limit this.

[0082] It can be seen that by using the model detection rules for fault detection, the training of the model only needs to use the data of normal modules, thus avoiding the problem of scarce fault data.

[0083] So far, the description of several representative detection rules is completed.

[0084] After obtaining the current detection results of each sample optical module, it can be determined whether the current detection results of each sample optical module match the sample labels of each sample optical module.

[0085] So far, the description of step 102 ends, and then step 103 is executed.

[0086] Step 103, if the current detection results of the N sample optical modules do not match the sample labels, and N is greater than the set threshold, then sequentially adjust the current weights of each detection rule one by one. And after each adjustment of the current weight of a detection rule, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module using each detection rule.

[0087] In this embodiment, if it is found that the current detection results of the N sample optical modules do not match the sample labels and N is greater than the set threshold, it indicates that the current weight settings of each detection rule are inappropriate and a good detection effect cannot be achieved. At this time, the current weights of each detection rule need to be adjusted.

[0088] It should be noted that the accuracy of anomaly detection and the degree of computing resource occupation can be balanced by adjusting the above-set threshold. It is easy to understand that the smaller the set threshold, the fewer the current detection results that do not match the sample labels, and it will be considered that the current weight settings of each detection rule are inappropriate, and the current weights of each detection rule will be further adjusted. Such a set threshold can make the accuracy of anomaly detection relatively high, but the computing resource occupation is also relatively large, and the speed of determining the target weight is slower; while the larger the set threshold, the more current detection results that do not match the sample labels are required to consider that the current weight settings of each detection rule are inappropriate, and the current weights of each detection rule are further adjusted. Such a set threshold will make the accuracy of anomaly detection relatively low (with a large error), but the computing resource occupation is also smaller, and the speed of determining the target weight is faster. Therefore, the above-set threshold can be adjusted according to the actual anomaly detection accuracy requirements to balance the accuracy of anomaly detection and the degree of computing resource occupation.

[0089] As an embodiment, the method for adjusting the current weight of any detection rule may include: increasing the current weight of the detection rule or decreasing the current weight of the detection rule.

[0090] Specifically, for the method of increasing the current weight w i , it can be set that w i = w i + w i / 4, where w i refers to the current weight of the i-th detection rule, that is, increasing by 1 / 4 on the basis of the current weight. This is only an exemplary method, and the current weight can also be increased by a specified value or multiplied by a specified coefficient to obtain the increased current weight. The present application does not limit this.

[0091] Similarly, for the method of decreasing the current weight w i , it can be set that w i = w i - w i / 4, where w i refers to the current weight of the i-th detection rule, that is, decreasing by 1 / 4 on the basis of the current weight. This is only an exemplary method, and the current weight can also be decreased by a specified value or multiplied by a specified coefficient to obtain the decreased current weight. The present application does not limit this.

[0092] After adjusting the current weight of a detection rule, the reference detection results of each sample optical module can be determined based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule.

[0093] So far, the description of step 103 ends. After completing one adjustment of the current weight, the reference detection results of each sample optical module can be determined again based on the adjusted weight to determine whether the adjustment of the current weight is effective, that is, to determine whether the reference detection results of each sample optical module match the sample labels of each sample optical module. If it is found that the reference detection results of P sample optical modules do not match the sample labels, and P is greater than or equal to N, then step 104 is executed; if it is found that the reference detection results of M sample optical modules do not match the sample labels, M is less than N, and M is greater than the set threshold, then step 105 is executed.

[0094] Step 104, if it is found that the reference detection results of P sample optical modules do not match the sample labels, and P is greater than or equal to N, then readjust the current weight of this detection rule, and return to the step of determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule.

[0095] In this embodiment, after adjusting the current weight of a certain detection rule through step 103 to obtain the reference detection results of each sample optical module, the reference detection results of each sample optical module can be compared with the sample labels. If it is found that the reference detection results of P sample optical modules do not match the sample labels, and P is greater than or equal to N, that is, the number of sample optical modules that do not match has not decreased, it indicates that the adjusted current weight has not achieved a good effect. At this time, the previous adjustment of the current weight of this detection rule can be abandoned, and the current weight before the adjustment of this detection rule can be readjusted.

[0096] As an embodiment, if the current weight of this detection rule was previously adjusted in the way of increasing the current weight, then the current weight of this detection rule is readjusted in the way of decreasing the current weight; if the current weight of this detection rule was previously adjusted in the way of decreasing the current weight, then the current weight before the adjustment of this detection rule is readjusted in the way of increasing the current weight.

[0097] For example, the way to adjust the current weight of this detection rule in step 103 is w i =w i + w i / 4, then when readjusting the current weight of this detection rule, it can be adjusted according to w i =w i - w i / 4.

[0098] After completing the readjustment of the current weights of the detection rules, the step of determining the reference detection results of each sample optical module in step 103 based on the current weights of each detection rule and the detection results obtained by each detection rule for the sample data of each sample optical module can be returned to re-determine the effect of the current weight adjustment this time.

[0099] Thus, the description of step 104 ends.

[0100] Step 105, if it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N and M is greater than the set threshold, when this detection rule is not the last detection rule, sequentially adjust the current weight of the next detection rule; when this detection rule is the last detection rule, determine the current weights of each detection rule as the target weights of each detection rule, so as to determine the fault detection result of the optical module to be detected based on the target weights of each detection rule and the detection results obtained by each detection rule for the optical module to be detected.

[0101] In this embodiment, after adjusting the current weight of any detection rule through step 103 to obtain the reference detection results of each sample optical module, the reference detection results of each sample optical module can be compared with the sample labels. If it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N and M is greater than the set threshold, that is, the number of sample optical modules with mismatches decreases and the number of successfully matched sample optical modules increases, but it has not reached the error range, it indicates that the effect of the adjusted current weight is better than that of the pre-adjusted current weight. At this time, the current weight of the next detection rule can be further adjusted sequentially, and the adjustment method has been described in detail above and will not be elaborated here.

[0102] When the adjusted current weight is the current weight of the last detection rule, the current weights of each detection rule can be determined as the target weights of each detection rule to perform fault detection on the optical module through the target weights of each detection rule.

[0103] As an embodiment, determining the current weights of each detection rule as the target weights of each detection rule may specifically include:

[0104] Determine the target detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by each detection rule for the sample data of each sample optical module;

[0105] If it is found that the target detection results of L sample optical modules do not match the sample labels, and L is greater than the set threshold, then return the step of sequentially adjusting the current weights of each detection rule one by one, and after adjusting the current weight of each detection rule each time, determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module using each detection rule; if it is found that the target detection results of L sample optical modules do not match the sample labels, and L is less than or equal to the set threshold, then use the current weights of each detection rule as the target weights of each detection rule.

[0106] In this embodiment, when the adjusted current weight is the current weight of the last detection rule, the target detection results of each sample optical module can be determined based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module using each detection rule.

[0107] If the target detection results of L sample optical modules do not match the sample labels, and L is greater than the set threshold, it indicates that the adjustment of the current weight in this round (regarding adjusting the current weight once for each detection rule as one round) still does not achieve the required effect. At this time, the step of sequentially adjusting the current weights of each detection rule one by one can be returned, and after adjusting the current weight of each detection rule each time, determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module using each detection rule, so as to perform the next round of adjustment.

[0108] If the target detection results of L sample optical modules do not match the sample labels, and L is less than or equal to the set threshold, it indicates that the adjustment of the current weight in this round has achieved the required effect. At this time, the current weights of each detection rule can be used as the target weights of each detection rule to perform fault detection on the optical module through the target weights of each detection rule.

[0109] As an embodiment, if the current detection results of N sample optical modules do not match the sample labels, and N is less than or equal to the set threshold, then use the current weights of each detection rule as the target weights of each detection rule; if it is found that the reference detection results of M sample optical modules do not match the sample labels, M is less than N, and M is less than or equal to the set threshold, use the current weights of each detection rule as the target weights of each detection rule.

[0110] In this embodiment, if it is found that N is less than or equal to the set threshold or M is less than or equal to the set threshold, it indicates that the current detection results are already within the pre-set allowable error range. At this time, the current weights of each detection rule can be directly used as the target weights of each detection rule.

[0111] Thus, the description of step 105 ends.

[0112] After obtaining the target weights of each detection rule through steps 101 to 105, the optical module to be detected can be subjected to anomaly detection based on the target weights, that is, based on the target weights of each detection rule and the detection results obtained by performing fault detection on the optical module to be detected by each detection rule, determine the fault detection result of the optical module to be detected.

[0113] Specifically, please refer to Figure 3 , Figure 3 which is an overall application schematic diagram of the optical module fault detection method provided in the embodiments of the present application.

[0114] As Figure 3 shown, first, the optical module to be detected and each index data of the optical module within a specified period can be determined according to the actual detection requirements.

[0115] In this embodiment, the optical module can be detected based on the obtained index sequence. Specifically, since the fault condition of the optical module is detected based on each index data included in a specified period (such as 30 days), first, the above-mentioned specified period can be determined according to the actual detection requirements.

[0116] For example, if it is necessary to detect the fault condition of the optical module at the current moment, the period including 30 days before the current date can be determined as the specified period, and each index data within the specified period is obtained to perform fault detection on the optical module.

[0117] For another example, if it is necessary to predict the fault condition of the optical module 10 days later, the period including 30 days before the cut-off date can be determined as the specified period with the date 10 days later as the cut-off date, that is, 20 days before the current date and the next 10 days after the current date. It should be noted that the index data of the optical module for the 20 days before the current date can be directly obtained from the recorded data, and the index data for the next 10 days after the current date needs to be predicted based on the index data before the current date. The specific prediction method can use time series prediction methods such as through LSTM (Long Short-Term Memory), Random Forest, Support Vector Regression (SVR), etc. The present application does not limit this.

[0118] It is easy to understand that the specified duration can be set according to actual needs. The longer the specified period is set, the more index data can be obtained for prediction during detection, but it will also be more time-consuming.

[0119] In this embodiment, the index data for anomaly detection in the optical module to be detected (Figure 3 After the index sequence in Figure 3 Detection rule 1, Detection rule 2, Detection rule n, etc. in Figure 3 These detection rules can include discrimination rules (such as threshold discrimination, trend discrimination, and the number of outlier discrimination), and can also include classification models (such as VAE classification models, etc.). Anomaly detection is performed on the index data of each optical module. For each detection rule, an initial detection result corresponding to the detection rule can be obtained (

[0120] Detection result 1, Detection result 2, Detection result n, etc. in Figure 3 in

[0121] So far, the description of the optical module fault detection method in Figure 3 ends.

[0122] For flexibility, in this embodiment, it is not required that the sum of all target weights is equal to 1, and the weighted operation result is not required to be less than or equal to 1.

[0123] In addition, in this embodiment, two judgment thresholds can be specified, such as 0.2 and 0.7. If it is determined that the weighted operation result is less than or equal to 0.2, it indicates that the optical module is a normal optical module and there is no need to repair or adjust the optical module; if it is determined that the weighted operation result is greater than 0.2 and less than 0.7, it indicates that the optical module is a sub-healthy optical module. At this time, it indicates that there may be some risks of failure in the optical module. At this time, relevant personnel can be prompted to further check the optical module to discover and eliminate potential failure hazards in advance; if it is determined that the weighted operation result is greater than 0.7, it indicates that the optical module is a faulty optical module and needs to be repaired or replaced.

[0124] It should be noted that when the detection rules do not change, only need to execute the above optical module fault detection method once. After obtaining the target weights corresponding to the current detection rules, when detecting the optical module to be detected later, the determined target weights can be directly used without re-determining the target weights.

[0125] When the detection rules are updated, such as added, deleted, or replaced, it is necessary to re-execute the above method to re-determine the target weights corresponding to the detection rules, so as to detect the optical module to be detected through the new target weights and detection rules.

[0126] So far, the description ofFigure 1 Description.

[0127] When the fault detection results of the sample data of N sample optical modules in this application do not match the sample labels of each sample optical module, the current weights of each detection rule are adjusted one by one in sequence. After adjusting the current weight of each detection rule each time, the reference detection results of each sample optical module are re-determined according to the adjusted current weight. If the number of sample optical modules with mismatches is not less than N, it indicates that the current weight adjustment is inappropriate, and the current weight of this detection rule is readjusted; if the number of sample optical modules with mismatches is less than N, it indicates that the current weight adjustment is appropriate, and the current weight of the next detection rule is adjusted until the target weight is obtained; through the adaptive adjustment of the corresponding weights of each detection rule, the obtained target weight can more accurately detect faults in the optical module.

[0128] Please refer to Figure 4 , Figure 4 which is a structural diagram of an optical module fault detection device proposed in an embodiment of this application. As Figure 4 shown, the device may include a sample acquisition unit 401, a result judgment unit 402, a first determination unit 403, and a second determination unit 404. Specifically, the device includes:

[0129] The sample acquisition unit 401 is configured to acquire sample data of multiple sample optical modules;

[0130] The result judgment unit 402 is configured to judge whether the current detection results of each sample optical module match the sample labels of each sample optical module; the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection results obtained by performing fault detection on the sample data of this sample optical module by each detection rule;

[0131] The first determination unit 403 is configured to, if the current detection results of N sample optical modules do not match the sample labels and N is greater than a set threshold, adjust the current weights of each detection rule one by one in sequence, and after adjusting the current weight of each detection rule each time, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule;

[0132] A second determination unit 404, configured to, if it is found that the reference detection results of P sample optical modules do not match the sample labels, where P is greater than or equal to N, readjust the current weight of the detection rule, and return the step of determining the reference detection results of the sample optical modules based on the current weights of the detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical modules by the detection rules; if it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N and M is greater than a set threshold, when the detection rule is not the last detection rule, sequentially adjust the current weight of the next detection rule, and when the detection rule is the last detection rule, determine the current weights of the detection rules as the target weights of the detection rules, so as to determine the fault detection results of the optical module to be detected based on the target weights of the detection rules and the detection results obtained by performing fault detection on the optical module to be detected by the detection rules.

[0133] Optionally, the second determination unit 404 is specifically configured to:

[0134] Determine the target detection results of the sample optical modules based on the current weights of the detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical modules by the detection rules;

[0135] If it is found that the target detection results of L sample optical modules do not match the sample labels, where L is greater than the set threshold, return the step of sequentially adjusting the current weights of the detection rules one by one, and after each adjustment of the current weight of a detection rule, determining the reference detection results of the sample optical modules based on the current weights of the detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical modules by the detection rules; if it is found that the target detection results of L sample optical modules do not match the sample labels, where L is less than or equal to the set threshold, use the current weights of the detection rules as the target weights of the detection rules.

[0136] Optionally, the second determination unit 404 is further configured to:

[0137] If the current detection results of N sample optical modules do not match the sample labels and N is less than or equal to the set threshold, use the current weights of the detection rules as the target weights of the detection rules;

[0138] If it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N and M is less than or equal to the set threshold, use the current weights of the detection rules as the target weights of the detection rules.

[0139] Optionally, the detection rule includes a threshold discrimination detection rule; the threshold discrimination detection rule includes:

[0140] Perform fault detection on the indicator data of the optical module according to the determined actual detection range; if the indicator data of the optical module is not within the actual detection range, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is a fault; if the indicator data of the optical module is not within the actual detection range, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is no fault;

[0141] Among them, the actual detection range is determined according to the following method:

[0142] According to the statistical characteristics of the indicator data of various types actually detected in the normal optical module, determine the normal fluctuation range of the indicator data of various types;

[0143] According to the normal fluctuation range and the alarm range configured at the factory for the indicator data of various types, determine the actual detection range of the indicator data of various types.

[0144] Optionally, the detection rule includes a trend discrimination detection rule; the trend discrimination detection rule includes:

[0145] If it is detected that the change of any indicator data of the optical module to be detected shows a monotonic trend within the specified time period, and the change amount of this indicator data within the specified time period is greater than the first threshold, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is a fault; otherwise, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is no fault.

[0146] Optionally, the detection rule includes an outlier quantity detection rule; the outlier quantity detection rule includes:

[0147] Count the outliers in the indicator data of the optical module that exceed the reference data range. If the number of outliers is greater than or equal to the second threshold, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is a fault. If the number of outliers is less than the second threshold, determine that the detection result obtained by performing fault detection on the indicator data of the optical module by this detection rule is no fault; the reference data range is determined according to the statistical characteristics of the indicator data of the optical module.

[0148] Optionally, the detection rule includes a model detection rule; the model detection rule includes:

[0149] Detect the indicator data of the optical module according to the trained anomaly detection model to obtain the reconstruction error of the indicator data of the optical module;

[0150] If the reconstruction error of any index data is greater than or equal to the third threshold, it is determined that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is a fault; if the reconstruction errors of all index data are less than the third threshold, it is determined that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is no fault.

[0151] Optionally, the multiple sample optical modules include at least one normal optical module and at least one faulty optical module.

[0152] Optionally, adjusting the current weight of each detection rule includes increasing the current weight or decreasing the current weight; the second determination unit 404 is specifically configured to:

[0153] If the current weight of this detection rule was previously adjusted in a way of increasing the current weight, then re-adjust the current weight of this detection rule in a way of decreasing the current weight;

[0154] If the current weight of this detection rule was previously adjusted in a way of decreasing the current weight, then re-adjust the current weight of this detection rule in a way of increasing the current weight.

[0155] Thus, the description of the optical module fault detection device in Figure 4 is completed.

[0156] This application embodiment also provides Figure 4 a description of the hardware structure of the device shown. This hardware structure is the structure in the electronic device shown in Figure 5 Please refer to Figure 5 , Figure 5 which is the structural diagram of the electronic device provided by this application embodiment. As shown in Figure 5 , this hardware structure may include: a processor and a machine-readable storage medium, and the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above examples of this application.

[0157] Based on the same application concept as the above method, this application embodiment also provides a machine-readable storage medium, on which several computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above examples of this application can be implemented.

[0158] Exemplarily, the above machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, and so on. For example, the machine-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof.

[0159] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A method for detecting optical module faults, characterized in that, The method includes: Obtaining sample data of multiple sample optical modules; Determining whether the current detection result of each sample optical module matches the sample label of each sample optical module; the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical module by each detection rule; If the current detection results of N sample optical modules do not match the sample labels and N is greater than a set threshold, then sequentially adjust the current weights of each detection rule one by one, and after adjusting the current weight of each detection rule each time, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; If it is found that the reference detection results of P sample optical modules do not match the sample labels, and P is greater than or equal to N, then readjust the current weight of this detection rule, and return to the step of determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; If it is found that the reference detection results of M sample optical modules do not match the sample labels, M is less than N, and M is greater than the set threshold, then when this detection rule is not the last detection rule, sequentially adjust the current weight of the next detection rule, and when this detection rule is the last detection rule, then determine the current weights of each detection rule as the target weights of each detection rule, so as to determine the fault detection result of the optical module to be detected based on the target weights of each detection rule and the detection results obtained by performing fault detection on the optical module to be detected by each detection rule.

2. The method according to claim 1, wherein The determining the current weights of each detection rule as the target weights of each detection rule includes: Determining the target detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; If it is found that the target detection results of L sample optical modules do not match the sample labels, and L is greater than the set threshold, then return to the step of sequentially adjusting the current weights of each detection rule one by one, and after adjusting the current weight of each detection rule each time, determine the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; if it is found that the target detection results of L sample optical modules do not match the sample labels, and L is less than or equal to the set threshold, then use the current weights of each detection rule as the target weights of each detection rule.

3. The method according to claim 1, wherein The method further includes: If the current detection results of N sample optical modules do not match the sample labels and N is less than or equal to the set threshold, then use the current weights of each detection rule as the target weights of each detection rule; If it is found that the reference detection results of M sample optical modules do not match the sample labels, M is less than N, and M is less than or equal to the set threshold, use the current weights of each detection rule as the target weights of each detection rule.

4. The method according to claim 1, wherein The detection rules include threshold discrimination detection rules; the threshold discrimination detection rules include: Performing fault detection on the index data of the optical module according to the determined actual detection range; if the index data of the optical module is not within the actual detection range, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is a fault; if the index data of the optical module is not within the actual detection range, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is no fault; Among them, the actual detection range is determined according to the following method: Determining the normal fluctuation range of each type of index data according to the statistical characteristics of the actually detected index data of normal optical modules; Determining the actual detection range of each type of index data according to the normal fluctuation range and the alarm range configured at the factory for each type of index data.

5. The method according to claim 1, wherein The detection rules include trend discrimination detection rules; the trend discrimination detection rules include: If it is detected that the change of any index data of the optical module to be detected shows a monotonic trend within a specified duration, and the change amount of this index data within the specified duration is greater than the first threshold, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is a fault; otherwise, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is no fault.

6. The method according to claim 1, wherein The detection rules include abnormal point quantity detection rules; the abnormal point quantity detection rules include: Counting the abnormal points exceeding the reference data range in the index data of the optical module. If the number of abnormal points is greater than or equal to the second threshold, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is a fault; if the number of abnormal points is less than the second threshold, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is no fault; the reference data range is determined according to the statistical characteristics of the index data of the optical module.

7. The method according to claim 1, wherein The detection rules include model detection rules; the model detection rules include: Detecting the index data of the optical module according to the trained anomaly detection model to obtain the reconstruction error of the index data of the optical module; If the reconstruction error of any index data is greater than or equal to the third threshold, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is a fault; if the reconstruction errors of all index data are less than the third threshold, determining that the detection result obtained by performing fault detection on the index data of the optical module by this detection rule is no fault.

8. The method according to claim 1, wherein Adjusting the current weight of each detection rule includes increasing the current weight or decreasing the current weight; Re-adjusting the current weight of this detection rule includes: If the current weight of this detection rule was previously adjusted in the way of increasing the current weight, then re-adjusting the current weight of this detection rule in the way of decreasing the current weight; If the current weight of the detection rule was previously adjusted in a manner that decreased the current weight, then the current weight of the detection rule is re-adjusted in a manner that increases the current weight.

9. An optical module fault detection device, characterized by The device includes: A sample acquisition unit for acquiring sample data of a plurality of sample optical modules; A result judgment unit for judging whether the current detection result of each sample optical module matches the sample label of each sample optical module; the current detection result of any sample optical module is determined based on the current weights of at least two detection rules and the detection results obtained by performing fault detection on the sample data of the sample optical module by each detection rule; A first determination unit for, if the current detection results of N sample optical modules do not match the sample labels and N is greater than a set threshold, sequentially adjusting the current weights of each detection rule one by one, and after adjusting the current weight of each detection rule each time, determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; A second determination unit for, if it is found that the reference detection results of P sample optical modules do not match the sample labels, where P is greater than or equal to N, re-adjusting the current weights of the detection rules and returning to the step of determining the reference detection results of each sample optical module based on the current weights of each detection rule and the detection results obtained by performing fault detection on the sample data of each sample optical module by each detection rule; if it is found that the reference detection results of M sample optical modules do not match the sample labels, where M is less than N and M is greater than the set threshold, when the detection rule is not the last detection rule, sequentially adjusting the current weight of the next detection rule, and when the detection rule is the last detection rule, determining the current weights of each detection rule as the target weights of each detection rule, so as to determine the fault detection result of the optical module to be detected based on the target weights of each detection rule and the detection results obtained by performing fault detection on the optical module to be detected by each detection rule.

10. An electronic device, characterized in that, Includes: A processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The processor is used to execute the machine-executable instructions to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, apparatus and device for predicting fault of optical module

    IN202034002026A

  • Method of detecting abnormality

    US20230085028A1