Digital monitoring and data analysis method for optical fiber links
By training the site anomaly prediction model and the source location map model, the source of fiber site anomalies is automatically identified, which solves the problem of low fiber site anomaly location efficiency in the existing technology and improves the stability and reliability of the communication network.
Patent Information
- Application Number
- CN202410272627.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-03-07
AI Technical Summary
Existing technology is difficult to effectively identify and locate the source of fiber optic site anomalies, leading to communication interruptions and data loss, affecting the stability of the power grid.
By collecting optical fiber link topology maps in advance, conducting fault experiments, and training site anomaly prediction models and source point location map models, we can automatically identify abnormal optical fiber sites and their anomaly source points, and improve anomaly location efficiency.
It can quickly identify the source of fiber site anomalies, reduce manual troubleshooting costs, and ensure the stability and reliability of the communication network.
Smart Images

Figure CN118264316B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of optical fiber link abnormality monitoring, and in particular to an optical fiber link digital monitoring and data analysis method. Background Art
[0002] As a basic component of power communication and intelligent control, the fiber optic link network system supports core businesses such as power grid dispatching, marketing, and production, and is the basis for the stable and reliable operation of the power grid.
[0003] A fiber optic site is a network infrastructure that is usually located in a fiber optic communication network and is used to connect, transmit and exchange fiber optic signals. Each fiber optic site is a key node in the network and has multiple functions to provide reliable, high-speed, and high-bandwidth communication services. These sites usually include fiber optic switching equipment, fiber optic transmission equipment, and equipment that interconnects with other networks. Its main role is to provide data transmission between end users in the network, to achieve interconnection between different networks, and to support various communication services. The deployment and management of fiber optic sites are essential to building an efficient communication network.
[0004] In modern society, communication network anomalies may lead to major social and economic problems. The identification of communication anomalies at fiber optic sites has become particularly important. Fiber optic site anomalies may include signal loss, transmission rate drop, equipment failure, etc. These anomalies may lead to communication interruption, data loss, and even affect key areas such as finance, medical care, and transportation. Therefore, establishing an effective fiber optic site anomaly identification system is crucial to ensure the security and reliability of communication networks;
[0005] At present, the monitoring of fiber optic site equipment is often done manually or by some simple automated monitoring methods. Due to the extremely high speed of fiber optic communication, the abnormal communication status can be propagated from the abnormal source point to other fiber optic sites in a short time, and the monitoring of fiber optic site equipment has a lag. Therefore, it is difficult to find the source of the abnormality among many fiber optic sites with abnormal communication.
[0006] The Chinese patent with publication number CN1 15499055A discloses a method for intelligent identification and management of optical links by a monitoring master station, which relates to the field of optical link line technology. It includes: analyzing and monitoring the service area of the optical fiber link, and constructing a distribution model of the optical fiber link in the service area; selecting the layout coordinates of the monitoring sites according to the distribution model of the optical fiber link, and analyzing the center coordinates of the service area of the optical fiber link according to the coordinates of each monitoring site; establishing a monitoring master station and configuring monitoring sub-sites at the actual coordinates corresponding to the center coordinates of the service area of the optical fiber link distribution model; controlling the monitoring sub-sites to monitor the operating status of the optical fiber link in real time, and capturing optical fiber link anomalies and faults; however, this method only establishes a monitoring master station and configures monitoring sub-sites at the center coordinates of the service area, and is mainly used for the selection of monitoring sites, but fails to solve the problem of specific fault location;
[0007] To this end, the present invention proposes a digital monitoring and data analysis method for an optical fiber link. Summary of the invention
[0008] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a digital monitoring and data analysis method for optical fiber links, which improves the efficiency of abnormal location of optical fiber sites and reduces the cost of manual troubleshooting.
[0009] To achieve the above object, a method for digital monitoring and data analysis of an optical fiber link is proposed according to Embodiment 1 of the present invention, comprising the following steps:
[0010] Step 1: Collect the optical fiber link topology map in advance; perform a fault experiment in the test environment according to the optical fiber link topology map, and collect site abnormal sample feature data, site abnormal sample label data, and source point topology positioning sample data;
[0011] Step 2: Using the site abnormality sample feature data as input and the site abnormality sample label data as output, a site abnormality prediction model is trained to determine whether there is communication abnormality at each optical fiber site;
[0012] Step 3: Based on the source point topology positioning sample data, construct source point positioning sample feature data and source point positioning sample label data;
[0013] Step 4: Using the source point positioning sample feature data as input and the source point positioning sample label data as output, a source point positioning graph model is trained to predict the probability of each optical fiber site being an abnormal source point;
[0014] Step 5: Load the site anomaly prediction model into the system background of each optical fiber site, and each optical fiber site outputs a single point anomaly label based on the site anomaly prediction model;
[0015] Step 6: If the optical fiber site that outputs the single point abnormality label as abnormal does not meet the secondary tracing condition, the abnormal source point is checked according to the time when each optical fiber site outputs the single point abnormality label as abnormal; if the secondary tracing condition is met, go to step 7;
[0016] Step 7: Generate a site status topology map for the optical fiber link topology map; based on the site status topology map and the source point location map model, calculate the comprehensive source point probability that each optical fiber site with an abnormal single point abnormality label is an abnormal source point, and based on the comprehensive source point probability of each optical fiber site, perform abnormal source point inspection on the optical fiber site;
[0017] The method of conducting the fault experiment and collecting site abnormal sample feature data, site abnormal sample label data and source point topology positioning sample data is as follows:
[0018] Selecting N1 test topology sub-graphs from the optical fiber link topology graph; N1 is the number of preset selected test topology sub-graphs; each test topology sub-graph is selected based on the specific results of the optical fiber link topology graph and actual experience;
[0019] For all fiber sites in each test topology sub-graph, N2 fault experiments are performed; N2 is the preset number of fault experiments;
[0020] In each fault experiment, a fiber optic site is manually selected as the test abnormality source point, and the fiber optic communication state of the test abnormality source point is set to abnormal;
[0021] Preset the sample collection interval; in each fault experiment, after setting the fiber optic communication state of the test abnormal source point to the abnormal sample collection interval, collect the site abnormal sample feature vector of each fiber optic site in the corresponding test topology subgraph, and manually mark each fiber optic site with a site abnormal sample label;
[0022] The site abnormal sample feature vector includes various feature values representing the abnormal communication status of the optical fiber site;
[0023] The site abnormal sample label is one of 0 and 1;
[0024] In all fault experiments, the site abnormal sample feature vectors of each optical fiber site constitute the site abnormal sample feature data, and the abnormal sample labels of each optical fiber site constitute the site abnormal sample label data;
[0025] The test topology subgraphs corresponding to all fault experiments, the site abnormal sample feature vectors of each optical fiber site, the site abnormal sample labels and the source point sample labels constitute the source point topology positioning sample data; the source point sample labels include -1, 0 and 1;
[0026] The method of training a site anomaly prediction model for determining whether each optical fiber site has a communication anomaly is as follows:
[0027] The site abnormality sample feature vector of each optical fiber site in the site abnormality sample feature data is used as the input of the site abnormality prediction model, the site abnormality prediction model uses the predicted value of the site abnormality label of the optical fiber site as the output, uses the site abnormality sample label corresponding to the group of site abnormality sample feature vectors as the prediction target, uses the square of the difference between the predicted value of the site abnormality label and the site abnormality sample label as the first prediction error, and minimizes the sum of all first prediction errors as the training target; the site abnormality prediction model is trained until the sum of the first prediction errors reaches convergence and the training is stopped;
[0028] The method of constructing source point positioning sample feature data and source point positioning sample label data is:
[0029] For each fault experiment, the adjacency matrix of the test topology subgraph corresponding to the fault experiment is obtained, and the single-point positioning feature vector of each optical fiber site in the corresponding test topology subgraph is collected; the single-point positioning feature vector includes the site abnormal sample feature vector and the site abnormal sample label of each optical fiber site;
[0030] The adjacency matrix corresponding to each fault experiment and the single-point positioning feature vector of each optical fiber site constitute the source point positioning sample input set;
[0031] The source point location sample input set of all fault experiments constitutes the source point location sample feature data;
[0032] In each fault experiment, the source point sample labels of each fiber site corresponding to the test topology subgraph constitute the source point sample label vector;
[0033] The source point sample label vectors of all fault experiments constitute the source point positioning sample label data;
[0034] The method of training the source point location graph model for predicting the probability of each optical fiber site being an abnormal source point is:
[0035] The source point positioning sample input set corresponding to each fault experiment in the source point positioning sample feature data is used as the input of the source point positioning graph model, and the source point positioning graph model uses the predicted label vector composed of the predicted values of the source point sample labels of each optical fiber station in the fault experiment as the output, and the value range of each element in the predicted label vector is [-1, 1]; the source point sample label vector corresponding to the fault experiment is used as the prediction target, the Euclidean distance between the predicted label vector and the source point sample label vector is used as the second prediction error, and minimizing the sum of the second prediction errors of all fault experiments is used as the training target; the source point positioning graph model is trained until the sum of the second prediction errors reaches convergence and the training is stopped;
[0036] The secondary traceability conditions are:
[0037] Preset thresholds for troubleshooting sites;
[0038] During the sample collection interval after the first fiber optic station outputs a single point anomaly label as abnormal, the total number of fiber optic stations that output a single point anomaly label as abnormal is greater than the screening station threshold;
[0039] The generating of a site status topology map for the optical fiber link topology map includes:
[0040] The fiber sites with the single point anomaly label as abnormal are indicated as abnormal sites;
[0041] Find a target topology subgraph from the fiber link topology graph, the target topology subgraph contains all abnormal sites, and there is a path between any two abnormal sites, and the target topology subgraph is used as the site status topology graph;
[0042] The method for calculating the comprehensive source point probability of each optical fiber site with an abnormal single point abnormality label being an abnormal source point is:
[0043] Obtaining the adjacency matrix of the site status topology graph as the target adjacency matrix;
[0044] The real-time site anomaly feature vectors and single-point anomaly labels of each fiber site in the site status topology map constitute the single-point positioning feature vector of the fiber site, and the target adjacency matrix and the single-point positioning feature vectors of all fiber sites in the site status topology map constitute the source point positioning input set;
[0045] The source point positioning input set is input into the source point positioning graph model to obtain the source point label prediction value of each optical fiber site output by the source point positioning graph model; the source point sample label prediction value is used as the comprehensive source point probability.
[0046] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0047] The processor executes the above-mentioned optical fiber link digital monitoring and data analysis method by calling the computer program stored in the memory.
[0048] A computer-readable storage medium having a rewritable computer program stored thereon;
[0049] When the computer program is executed on a computer device, the computer device executes the above-mentioned optical fiber link digital monitoring and data analysis method.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] The present invention collects the optical fiber link topology map in advance, performs a fault experiment according to the optical fiber link topology map in a test environment, collects site abnormality sample feature data, site abnormality sample label data and source point topology positioning sample data, takes the site abnormality sample feature data as input and takes the site abnormality sample label data as output, trains a site abnormality prediction model for judging whether each optical fiber site has a communication abnormality, constructs source point positioning sample feature data and source point positioning sample label data based on the source point topology positioning sample data, takes the source point positioning sample feature data as input and takes the source point positioning sample label data as output, trains a source point positioning graph model for predicting the probability of each optical fiber site being an abnormal source point, loads the site abnormality prediction model into the system background of each optical fiber site, and each optical fiber site outputs a single point abnormality label based on the site abnormality prediction model. If If the fiber optic site that outputs the single-point anomaly label as abnormal does not meet the secondary traceability conditions, the abnormal source point is checked according to the time when each fiber optic site outputs the single-point anomaly label as abnormal; if the secondary traceability conditions are met, a site status topology map is generated for the fiber optic link topology map; based on the site status topology map and the source point positioning map model, the comprehensive source point probability of each fiber optic site with an abnormal single-point anomaly label as an abnormal source point is calculated, and based on the comprehensive source point probability of each fiber optic site, the fiber optic site is checked for abnormal source points; by training the site anomaly prediction model, it is automatically and intelligently identified whether a single fiber optic site has an abnormality to ensure the communication stability of the fiber optic site, and then by training the source point positioning map model, when multiple fiber optic sites have communication anomalies, the abnormal source points are automatically identified, thereby improving the efficiency of locating fiber optic site anomalies and reducing the cost of manual troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a flow chart of the optical fiber link digital monitoring and data analysis method in Embodiment 1 of the present invention;
[0053] Figure 2 This is an example diagram of a fiber optic link topology diagram in the fiber optic link digital monitoring and data analysis method in Embodiment 1 of the present invention;
[0054] Figure 3 is an example diagram of the adjacency matrix in Embodiment 1 of the present invention;
[0055] Figure 4 This is a schematic diagram of the structure of an electronic device in Embodiment 2 of the present invention;
[0056] Figure 5 This is a schematic diagram of the computer-readable storage medium structure in Example 3 of the present invention. DETAILED DESCRIPTION
[0057] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than 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.
[0058] Example 1
[0059] like Figure 1 As shown, the optical fiber link digital monitoring and data analysis method includes the following steps:
[0060] Step 1: Collect the optical fiber link topology map in advance; perform a fault experiment in the test environment according to the optical fiber link topology map, and collect site abnormal sample feature data, site abnormal sample label data, and source point topology positioning sample data;
[0061] Step 2: Using the site abnormality sample feature data as input and the site abnormality sample label data as output, a site abnormality prediction model is trained to determine whether there is communication abnormality at each optical fiber site;
[0062] Step 3: Based on the source point topology positioning sample data, construct source point positioning sample feature data and source point positioning sample label data;
[0063] Step 4: Using the source point positioning sample feature data as input and the source point positioning sample label data as output, a source point positioning graph model is trained to predict the probability of each optical fiber site being an abnormal source point;
[0064] Step 5: Load the site anomaly prediction model into the system background of each optical fiber site, and each optical fiber site outputs a single point anomaly label based on the site anomaly prediction model;
[0065] Step 6: If the optical fiber site that outputs the single point abnormality label as abnormal does not meet the secondary tracing condition, the abnormal source point is checked according to the time when each optical fiber site outputs the single point abnormality label as abnormal; if the secondary tracing condition is met, go to step 7;
[0066] Step 7: Generate a site status topology map for the optical fiber link topology map; based on the site status topology map and the source point location map model, calculate the comprehensive source point probability that each optical fiber site with an abnormal single point abnormality label is an abnormal source point, and based on the comprehensive source point probability of each optical fiber site, perform abnormal source point inspection on the optical fiber site;
[0067] The method of pre-collecting the optical fiber link topology map is as follows:
[0068] According to the locations of the constructed optical fiber sites and the laying conditions of the optical fiber cable links between the optical fiber sites in the actual scenario, the optical fiber link topology map is obtained in advance; Figure 2 As shown in FIG. 1 , a specific example of a fiber link topology diagram is shown. In the diagram, nodes A1, A2, A3, B1, B2, B3, C1, C2, and C3 represent different fiber sites, respectively. The edge between each two nodes represents that there is a fiber connection between the two nodes.
[0069] Further, the method of conducting a fault experiment in a test environment according to the optical fiber link topology diagram and collecting site abnormality sample feature data, site abnormality sample label data and source point topology positioning sample data is as follows:
[0070] Selecting N1 test topology sub-graphs from the optical fiber link topology graph; N1 is the number of preset selected test topology sub-graphs; each test topology sub-graph is selected based on the specific results of the optical fiber link topology graph and actual experience;
[0071] For all fiber sites in each test topology sub-map, N2 fault experiments are performed; it should be noted that in the test topology sub-map, the fiber site used for the fault experiment can be either an actual operating fiber site selected or a micro fiber site model constructed in the laboratory according to the test topology sub-map in order to avoid affecting the actual network communication needs; N2 is the preset number of fault experiments;
[0072] In each fault experiment, a fiber optic station is manually selected as a test abnormality source point, and the fiber optic communication state of the test abnormality source point is set to abnormal; specifically, the fiber optic communication state is set to abnormal including but not limited to reducing or increasing optical power, reducing or increasing data transmission rate, and intermittent disconnection, etc.;
[0073] Preset the sample collection interval; in each fault experiment, after setting the fiber optic communication state of the test abnormal source point to the abnormal sample collection interval, collect the site abnormal sample feature vector of each fiber optic site in the corresponding test topology subgraph, and manually mark each fiber optic site with a site abnormal sample label;
[0074] The site abnormal sample feature vector includes various feature values that characterize the abnormal communication status of the optical fiber site, including but not limited to optical power, data transmission rate, optical signal strength fluctuation variance value, flow fluctuation variance value, signal attenuation rate, connection status, etc.;
[0075] The site abnormal sample label is one of 0 and 1. Specifically, when the communication status of the optical fiber site is manually determined to be abnormal, the site abnormal sample label corresponding to the optical fiber site is set to 1, otherwise it is set to 0;
[0076] In all fault experiments, the site abnormal sample feature vectors of each optical fiber site constitute the site abnormal sample feature data, and the abnormal sample labels of each optical fiber site constitute the site abnormal sample label data;
[0077] The test topology subgraphs corresponding to all fault experiments, the site abnormal sample feature vectors of each optical fiber site, the site abnormal sample labels and the source point sample labels constitute the source point topology positioning sample data; the source point sample labels include -1, 0 and 1; wherein, the source point sample label of the test abnormal source point is 1, the source point sample label of the optical fiber site that is not the test abnormal source point and the site abnormal sample label is abnormal is 0, and the source point sample label of the optical fiber site that is not the test abnormal source point and the site abnormal sample label is normal is -1; it can be understood that the optical fiber sites are classified by the source point sample labels, and the test abnormal source point, the optical fiber site that has a communication relationship with the test abnormal source point and the optical fiber site that does not have a communication relationship with the test abnormal source point are effectively distinguished;
[0078] Furthermore, each fault experiment collects sample data of the site anomaly prediction model and sample data of the source point location map model. The design of the fault experiment ensures the consistency between the sample generation order of the two models and the model use order, ensuring that the same sample data is used for model training and application, thereby improving the unity and coherence of the model.
[0079] Furthermore, the method of training a site anomaly prediction model for judging whether each optical fiber site has communication anomaly by taking site anomaly sample feature data as input and site anomaly sample label data as output is:
[0080] The site abnormality sample feature vector of each optical fiber site in the site abnormality sample feature data is used as the input of the site abnormality prediction model, the site abnormality prediction model uses the predicted value of the site abnormality label of the optical fiber site as the output, uses the site abnormality sample label corresponding to the group of site abnormality sample feature vectors as the prediction target, uses the square of the difference between the predicted value of the site abnormality label and the site abnormality sample label as the first prediction error, and minimizes the sum of all first prediction errors as the training target; the site abnormality prediction model is trained until the sum of the first prediction errors reaches convergence, and the training is stopped, and a site abnormality prediction model that outputs the predicted value of the site abnormality label according to the site abnormality sample feature vector is trained; the site abnormality prediction model is any one of the SVM or deep neural network model; the sum of the first prediction errors can be a mean square error or a cross entropy error;
[0081] Furthermore, the method of constructing source point positioning sample feature data and source point positioning sample label data based on source point topology positioning sample data is as follows:
[0082] For each fault experiment, the adjacency matrix of the test topology subgraph corresponding to the fault experiment is obtained, and the single-point positioning feature vector of each optical fiber site in the corresponding test topology subgraph is collected; the single-point positioning feature vector includes the site abnormal sample feature vector and the site abnormal sample label of each optical fiber site;
[0083] The adjacency matrix corresponding to each fault experiment and the single-point positioning feature vector of each optical fiber site constitute the source point positioning sample input set; it can be understood that the source point positioning sample input set contains an adjacency matrix of size M×M and a feature matrix of size M×F, where M is the number of optical fiber nodes and F is the number of elements in the single-point positioning feature vector of each optical fiber node;
[0084] The source point location sample input set of all fault experiments constitutes the source point location sample feature data;
[0085] In each fault experiment, the source point sample labels of each fiber optic station corresponding to the test topology subgraph constitute a source point sample label vector; an example of a source point sample label vector is [0, 0, 1, -1, -1, 0, 0]. In this example, the 1st, 2nd, 6th and 7th fiber optic stations are fiber optic stations with communication anomalies but not the test anomaly source points, the 3rd fiber optic station is the test anomaly source point, and the 4th and 5th fiber optic stations are fiber optic stations with normal communication;
[0086] The source point sample label vectors of all fault experiments constitute the source point positioning sample label data;
[0087] It should be noted that the adjacency matrix is common knowledge in the field of computer data structures. The adjacency matrix represents the matrix of adjacent relationships between vertices. When the test topology subgraph is determined, its adjacency matrix is also determined; for example Figure 3 An example of an adjacency matrix is shown in FIG. 1 , where matrix A1 represents the connection relationship between nodes in the undirected graph below. For example, a value of 1 in the first column of the second row indicates that there is a connection relationship between nodes V0 and V1;
[0088] The method of training a source point positioning graph model for predicting the probability of each optical fiber site being an abnormal source point by taking the source point positioning sample feature data as input and the source point positioning sample label data as output is as follows:
[0089] The source point positioning sample input set corresponding to each fault experiment in the source point positioning sample feature data is used as the input of the source point positioning graph model, and the source point positioning graph model uses the predicted label vector composed of the predicted values of the source point sample labels of each optical fiber station in the fault experiment as the output, and the value range of each element in the predicted label vector is [-1, 1]; the source point sample label vector corresponding to the fault experiment is used as the prediction target, the Euclidean distance between the predicted label vector and the source point sample label vector is used as the second prediction error, and the sum of the second prediction errors of all fault experiments is minimized as the training target; the source point positioning graph model is trained until the sum of the second prediction errors reaches convergence, and the training is stopped, and a source point positioning graph model that outputs the predicted label vector according to the source point positioning sample input set is trained; the source point positioning graph model is any one of the graph neural network models, such as the GCN network; the sum of the second prediction errors can be a mean square error;
[0090] Furthermore, each optical fiber site outputs a single point anomaly label based on the site anomaly prediction model in the following manner:
[0091] The system background of each optical fiber site collects the real-time site abnormality feature vector of the corresponding optical fiber site in real time; the features contained in the real-time site abnormality feature vector are the same as the site abnormality sample feature vector;
[0092] The real-time site abnormality feature vector is input into the site abnormality prediction model of the corresponding system background, and the predicted value of the site abnormality label output by the site abnormality prediction model for judging whether the communication state of the optical fiber site is abnormal is obtained as the single point abnormality label;
[0093] Furthermore, the secondary traceability condition is:
[0094] Preset thresholds for troubleshooting sites;
[0095] During the sample collection interval after the first fiber optic station outputs a single point anomaly label as abnormal, the total number of fiber optic stations that output a single point anomaly label as abnormal is greater than the screening station threshold;
[0096] It is understandable that due to the extremely high speed of optical fiber communication, the communication anomaly state can be propagated from the abnormal source point to other optical fiber sites in a short time, and the site anomaly prediction model has a certain lag in processing and outputting data, and different optical fiber sites have different data processing capabilities. Therefore, the optical fiber sites with communication anomalies within the sample collection interval may all be abnormal sources; and when the total number of optical fiber sites with the output single-point anomaly label as abnormal within the sample collection interval is less than or equal to the site screening threshold, it means that the impact range of the communication anomaly is small, and they can be screened one by one to save computing resources;
[0097] Further, generating a site status topology map for the optical fiber link topology map refers to:
[0098] The fiber sites with the single point anomaly label as abnormal are indicated as abnormal sites;
[0099] Find a target topology subgraph from the fiber link topology graph, the target topology subgraph contains all abnormal sites, and there is a path between any two abnormal sites, and the target topology subgraph is used as the site status topology graph;
[0100] Specifically, the method for constructing the target topological subgraph may be a connected subgraph algorithm;
[0101] Furthermore, the method for calculating the comprehensive source point probability that each optical fiber site with an abnormal single point abnormality label is an abnormal source point based on the site status topology map and the source point location map model is as follows:
[0102] Obtaining the adjacency matrix of the site status topology graph as the target adjacency matrix;
[0103] The real-time site anomaly feature vectors and single-point anomaly labels of each fiber site in the site status topology map constitute the single-point positioning feature vector of the fiber site, and the target adjacency matrix and the single-point positioning feature vectors of all fiber sites in the site status topology map constitute the source point positioning input set;
[0104] The source point positioning input set is input into the source point positioning graph model to obtain the source point label prediction value of each optical fiber site output by the source point positioning graph model; the source point sample label prediction value is used as the comprehensive source point probability;
[0105] The method of checking abnormal source points of optical fiber sites based on the comprehensive source point probability of each optical fiber site is as follows:
[0106] Abnormal sites are checked according to the comprehensive source point probability from large to small.
[0107] Example 2
[0108] Figure 4 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 As shown, according to another aspect of the present application, an electronic device 100 is also provided. The electronic device 100 may include one or more processors and one or more memories, and the processor may include a CPU 102 and a GPU 109. The memory stores a computer-readable code, and when the computer-readable code is run by one or more processors, the optical fiber link digital monitoring and data analysis method as described above may be executed.
[0109] The method or system according to the embodiment of the present application can also be used by Figure 4 The electronic device architecture shown in FIG. Figure 4As shown, the electronic device 100 may include a bus 101, one or more CPUs 102, a read-only memory (ROM) 103, a random access memory (RAM) 104, a communication port 105 connected to a network, an input / output component 106, a hard disk 107, a GPU 109, etc. The storage device in the electronic device 100, such as the ROM 103 or the hard disk 107, may store the optical fiber link digital monitoring and data analysis method provided in the present application. The optical fiber link digital monitoring and data analysis method may, for example, include the following steps: Step 1: pre-collect the optical fiber link topology map; perform a fault experiment in a test environment according to the optical fiber link topology map, and collect site abnormality sample feature data, site abnormality sample label data, and source point topology positioning sample data; Step 2: take the site abnormality sample feature data as input and the site abnormality sample label data as output, and train a site abnormality prediction model for judging whether there is a communication abnormality at each optical fiber site; Step 3: construct source point positioning sample feature data and source point positioning sample label data based on the source point topology positioning sample data; Step 4: take the source point positioning sample feature data as input and the source point positioning sample label data as output, and train a site abnormality prediction model for predicting whether there is a communication abnormality at each optical fiber site. A source point positioning map model for the probability of an abnormal source point; Step 5: Load the site anomaly prediction model into the system background of each optical fiber site, and each optical fiber site outputs a single-point anomaly label based on the site anomaly prediction model; Step 6: If the optical fiber site that outputs the single-point anomaly label as abnormal does not meet the secondary traceability conditions, the abnormal source point is checked according to the time when each optical fiber site outputs the single-point anomaly label as abnormal; if the secondary traceability conditions are met, go to step 7; Step 7: Generate a site status topology map for the optical fiber link topology map; Based on the site status topology map and the source point positioning map model, calculate the comprehensive source point probability of each optical fiber site with an abnormal single-point anomaly label as an abnormal source point, and based on the comprehensive source point probability of each optical fiber site, check the abnormal source point of the optical fiber site.
[0110] Furthermore, the electronic device 100 may further include a user interface 108. Figure 4 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 4 One or more components of an electronic device are shown.
[0111] Example 3
[0112] Figure 5 Schematic diagram of a computer-readable storage medium structure provided by an embodiment of the present application. Figure 5As shown, a computer-readable storage medium 200 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 200. When the computer-readable instructions are executed by the processor, the optical fiber link digital monitoring and data analysis method according to the embodiment of the present application described with reference to the above figures can be executed. The computer-readable storage medium 200 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0113] In addition, according to the implementation of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium stores machine-readable instructions, the machine-readable instructions can be run by a processor to execute instructions corresponding to the method steps provided by the present application, and when the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.
[0114] The methods, apparatuses, and devices of the present application may be implemented in many ways. For example, the methods, apparatuses, and devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the method according to the present application. Therefore, the present application also covers recording media storing programs for executing the method according to the present application.
[0115] The above preset parameters or preset thresholds are all set by technicians in this field according to actual conditions or obtained through large-scale data simulation.
[0116] The above embodiments are only used to illustrate the technical method of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A method for digital monitoring and data analysis of optical fiber links, characterized in that: The following steps are involved: Step 1: Collect the optical fiber link topology map in advance; In the test environment, according to the optical fiber link topology diagram, a fault experiment is conducted, and site abnormal sample feature data, site abnormal sample label data, and source point topology positioning sample data are collected; Step 2: Using the site abnormality sample feature data as input and the site abnormality sample label data as output, a site abnormality prediction model is trained to determine whether there is communication abnormality at each optical fiber site; Step 3: Based on the source point topology positioning sample data, construct source point positioning sample feature data and source point positioning sample label data; Step 4: Using the source point positioning sample feature data as input and the source point positioning sample label data as output, a source point positioning graph model is trained to predict the probability of each optical fiber site being an abnormal source point; Step 5: Load the site anomaly prediction model into the system background of each optical fiber site, and each optical fiber site outputs a single point anomaly label based on the site anomaly prediction model; Step 6: If the optical fiber site that outputs the single point abnormality label as abnormal does not meet the secondary tracing condition, the abnormal source point is checked according to the time when each optical fiber site outputs the single point abnormality label as abnormal; if the secondary tracing condition is met, go to step 7; Step 7: Generate a site status topology map for the optical fiber link topology map; Based on the site status topology map and source point location map model, the comprehensive source point probability of each fiber site with an abnormal single point anomaly label as an abnormal source point is calculated, and based on the comprehensive source point probability of each fiber site, the abnormal source point of the fiber site is checked; The method of conducting the fault experiment and collecting site abnormal sample feature data, site abnormal sample label data and source point topology positioning sample data is as follows: Selecting N1 test topology sub-graphs from the optical fiber link topology graph; N1 is the number of preset selected test topology sub-graphs; each test topology sub-graph is selected based on the specific results of the optical fiber link topology graph and actual experience; For all fiber sites in each test topology sub-graph, N2 fault experiments are performed; N2 is the preset number of fault experiments; In each fault experiment, a fiber optic site is manually selected as the test abnormality source point, and the fiber optic communication state of the test abnormality source point is set to abnormal; Preset sample collection interval duration; In each fault experiment, after setting the fiber optic communication state of the test abnormal source point to the abnormal sample collection interval, the site abnormal sample feature vector of each fiber optic site in the corresponding test topology subgraph is collected, and the site abnormal sample label is manually marked for each fiber optic site; The site abnormal sample feature vector includes various feature values representing the abnormal communication status of the optical fiber site; The site abnormal sample label is one of 0 and 1; In all fault experiments, the site abnormal sample feature vectors of each optical fiber site constitute the site abnormal sample feature data, and the abnormal sample labels of each optical fiber site constitute the site abnormal sample label data; The test topology subgraphs corresponding to all fault experiments, the site abnormal sample feature vectors of each optical fiber site, the site abnormal sample labels and the source point sample labels constitute the source point topology positioning sample data; the source point sample labels include -1, 0 and 1; The secondary traceability conditions are: Preset thresholds for troubleshooting sites; During the sample collection interval after the first fiber optic station outputs a single point anomaly label as abnormal, the total number of fiber optic stations that output a single point anomaly label as abnormal is greater than the screening station threshold; The method for calculating the comprehensive source point probability of each optical fiber site with an abnormal single point abnormality label being an abnormal source point is: Obtaining the adjacency matrix of the site status topology graph as the target adjacency matrix; The real-time site anomaly feature vectors and single-point anomaly labels of each fiber site in the site status topology map constitute the single-point positioning feature vector of the fiber site, and the target adjacency matrix and the single-point positioning feature vectors of all fiber sites in the site status topology map constitute the source point positioning input set; The source point positioning input set is input into the source point positioning graph model to obtain the source point label prediction value of each optical fiber site output by the source point positioning graph model; the source point sample label prediction value is used as the comprehensive source point probability.
2. The optical fiber link digital monitoring and data analysis method according to claim 1, characterized in that: The method of training a site anomaly prediction model for determining whether each optical fiber site has a communication anomaly is as follows: The site anomaly sample feature vector of each optical fiber site in the site anomaly sample feature data is used as the input of the site anomaly prediction model. The site anomaly prediction model uses the predicted value of the site anomaly label of the optical fiber site as the output, the site anomaly sample label corresponding to the site anomaly sample feature vector as the prediction target, the square of the difference between the predicted value of the site anomaly label and the site anomaly sample label as the first prediction error, and minimizing the sum of all first prediction errors as the training target; the site anomaly prediction model is trained until the sum of the first prediction errors reaches convergence and the training is stopped.
3. The optical fiber link digital monitoring and data analysis method according to claim 2, characterized in that: The method of constructing source point positioning sample feature data and source point positioning sample label data is: For each fault experiment, the adjacency matrix of the test topology subgraph corresponding to the fault experiment is obtained, and the single-point positioning feature vector of each optical fiber site in the corresponding test topology subgraph is collected; the single-point positioning feature vector includes the site abnormal sample feature vector and the site abnormal sample label of each optical fiber site; The adjacency matrix corresponding to each fault experiment and the single-point positioning feature vector of each optical fiber site constitute the source point positioning sample input set; The source point location sample input set of all fault experiments constitutes the source point location sample feature data; In each fault experiment, the source point sample labels of each fiber site corresponding to the test topology subgraph constitute the source point sample label vector; The source point sample label vectors of all fault experiments constitute the source point positioning sample label data.
4. The optical fiber link digital monitoring and data analysis method according to claim 3, characterized in that: The method of training the source point location graph model for predicting the probability of each optical fiber site being an abnormal source point is: The source point positioning sample input set corresponding to each fault experiment in the source point positioning sample feature data is used as the input of the source point positioning graph model, and the source point positioning graph model uses the predicted label vector composed of the predicted values of the source point sample labels of each optical fiber site in the fault experiment as the output, and the value range of each element in the predicted label vector is [-1,1]; the source point sample label vector corresponding to the fault experiment is used as the prediction target, the Euclidean distance between the predicted label vector and the source point sample label vector is used as the second prediction error, and minimizing the sum of the second prediction errors of all fault experiments is used as the training target; The source point positioning map model is trained until the sum of the second prediction errors reaches convergence and then the training is stopped.
5. The optical fiber link digital monitoring and data analysis method according to claim 4, characterized in that: The generating of a site status topology map for the optical fiber link topology map includes: The fiber sites with single point anomaly labels as abnormal are indicated as abnormal sites; A target topology subgraph is found from the optical fiber link topology graph, the target topology subgraph includes all abnormal sites, and there is a path between any two abnormal sites. The target topology subgraph is used as the site status topology graph.
6. An electronic device, characterized in that: include: processor and memory, wherein The memory stores a computer program that can be called by the processor; The processor executes the optical fiber link digital monitoring and data analysis method according to any one of claims 1 to 5 in the background by calling the computer program stored in the memory.
7. A computer-readable storage medium, characterized in that: A rewritable computer program is stored thereon; When the computer program is executed on a computer device, the computer device is enabled to execute the optical fiber link digital monitoring and data analysis method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for monitoring master station to intelligently identify and manage optical link
CN115499055A
Strategy, algorithm and circuit for selecting earthing interval of 20-10kV distribution line
CN107305233A
Fault positioning method and device
CN107317691A
Optical fiber state monitoring method and system and storage medium
CN116886183A
Power distribution station terminal telemetering value anomaly detection method and system
CN117031182A
