Optical fiber link gain prediction method and device
By generating data sets before and after the change of the optical fiber link, training and fixing the main neural network model, and adding an auxiliary neural network model, the problem of weak model transferability caused by changes in the optical fiber link hardware is solved and the rapid adaptation of the chain is achieved. Optical fiber link gain prediction based on path changes improves prediction accuracy and deployment efficiency.
Patent Information
- Application Number
- CN202410982031.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, hardware changes in optical fiber links result in weak transferability of machine learning models, requiring a large amount of new data to be trained, which is time-consuming and labor-intensive, makes it difficult to quickly adapt to link changes, and affects prediction accuracy.
By generating fiber link data sets before and after the change, the main neural network model is trained and its weights are fixed, an auxiliary neural network model is attached, and the data set after the change is used for training, so that the model can quickly adapt to link changes.
It improves the portability of machine learning models, quickly adapts to fiber link changes, improves the accuracy of fiber link gain prediction and deployment speed, reduces the amount of training data, and enhances performance optimization efficiency.
Smart Images

Figure CN118740657A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communications, and in particular to a method and device for predicting optical fiber link gain. Background Art
[0002] In response to the rapid growth of communication traffic, the use of extended bands has become an effective way to increase the capacity of optical fibers. At present, optical transmission applications have expanded from the C band to the C+L band, and even further to the S+C+L band. However, in multi-band systems, the stimulated Raman scattering (ISRS) effect causes the optical power of each channel to shift from short wavelengths to long wavelengths. Especially in extended band and multi-span transmission links, the continuous accumulation of power drift causes unpredictable warping and jitter in the power spectrum, and the gain flatness is significantly degraded, which seriously affects the performance of the system. Therefore, it is necessary to dynamically balance the gain of all channels within the full band to ensure the signal quality of each channel transmission.
[0003] Among related technologies, machine learning is widely used in the modeling and optimization of optical communication systems because it can handle complex data relationships. A variety of machine learning models have been applied to the power balancing problem between different channels in multi-band and multi-span optical fiber links, and have achieved good prediction accuracy.
[0004] However, existing technologies mainly model end-to-end fixed optical transmission links. Changes in factors such as fiber length and amplifier settings in the link will affect the actual output gain. When the hardware in the link changes, the old model trained based on past data often no longer fits the new situation. In order to solve the model migration problem, a large amount of new data needs to be collected and trained for the new link. The collection and training process is time-consuming and labor-intensive, which greatly reduces the portability of the machine learning model. Summary of the invention
[0005] The present application provides a method and device for predicting optical fiber link gain, which can solve the problem of weak transferability of machine learning models when predicting optical fiber link gain in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a method for predicting optical fiber link gain, the method comprising:
[0007] Generate a first data set based on the input optical power and the output optical power of each channel before the optical fiber link is changed;
[0008] generating a second data set based on the input optical power and the output optical power of each channel after the optical fiber link is changed;
[0009] Training a main neural network model based on the first data set and fixing the weights;
[0010] Adding an auxiliary neural network model to the main neural network model to obtain a first neural network model;
[0011] Training the first neural network model based on the second data set until the first neural network model converges stably;
[0012] The input optical power and target gain of the channel to be measured are input into the first neural network model, and the first neural network model outputs a predicted value.
[0013] In combination with the first aspect, in one implementation, the method further includes:
[0014] Collect full-band signal light before and after the optical fiber link changes;
[0015] The full-band signal light is input into a spectrometer to obtain input optical power and output optical power corresponding to each channel before and after the optical fiber link changes.
[0016] In combination with the first aspect, in one implementation, the optical fiber link changes as follows:
[0017] Hardware replacement in fiber optic links;
[0018] or the number of channels in the fiber link changes;
[0019] Or a change in the target gain of any channel in a fiber link.
[0020] In combination with the first aspect, in one implementation, the optical fiber link includes a plurality of cascaded optical fibers, optical amplifiers, and filters.
[0021] In combination with the first aspect, in one embodiment, the main neural network model is a fully connected neural network model, which includes an input layer, a hidden layer and an output layer, and its input is the input optical power and target gain of each channel, and its output is the predicted gain and predicted output optical power of each channel.
[0022] In combination with the first aspect, in one implementation, the fixed weight includes:
[0023] Calculating a first difference between the output optical power predicted by the main neural network model and the actual output optical power;
[0024] When the first difference is less than a preset difference, the weight of the main neural network model is fixed.
[0025] In combination with the first aspect, in one embodiment, the auxiliary neural network model is a fully connected neural network model, and includes an input layer, an output layer and two hidden layers, wherein the input is the predicted gain and target gain of each channel, and the output is the corrected value of each channel.
[0026] In combination with the first aspect, in one implementation, the loss function of the first neural network model is a mean square error.
[0027] In combination with the first aspect, in one implementation, the number of hidden layers and the number of hidden layer parameters of the first neural network model are both preset optimal values.
[0028] In a second aspect, an embodiment of the present application provides a device for predicting optical fiber link gain, the device comprising:
[0029] A data set generation module, used to generate a first data set based on the input optical power and output optical power of each channel before the optical fiber link changes; and to generate a second data set based on the input optical power and output optical power of each channel after the optical fiber link changes;
[0030] A training module, used for training a main neural network model based on the first data set and fixing the weights; attaching an auxiliary neural network model to the main neural network model to obtain a first neural network model;
[0031] Training the first neural network model based on the second data set until the first neural network model converges stably;
[0032] The prediction module is used to input the input optical power and target gain of the channel to be measured into the first neural network model, and the first neural network model outputs a predicted value.
[0033] The beneficial effects brought by the technical solution provided by the embodiments of the present application include:
[0034] The present application first trains a main neural network model using the input optical power and output optical power of each channel in the optical fiber link before the change, fixes its weights, and then attaches an auxiliary neural network model to the main neural network model to obtain a first neural network model. The first neural network model is trained using the input optical power and output optical power of each channel in the optical fiber link after the change, so that the first neural network model can quickly adapt to the changes in the optical fiber link, and effectively improves the portability of the machine learning model when predicting the gain of the optical fiber link. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flow chart of a specific embodiment of the optical fiber link gain prediction method in this application;
[0036] Figure 2 This is a schematic diagram of the process of prediction by the first neural network model in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] First, some technical terms in the present application are explained to facilitate those skilled in the art to understand the present application.
[0039] Fiber link gain: In a fiber link, the ratio of the output RF signal power to the input RF signal power after the signal is transmitted. It is an important performance indicator to measure the degree of signal amplification or attenuation of the fiber link, and plays a key role in evaluating the performance of fiber optic communication systems. The size of the link gain is affected by many factors, including fiber loss, amplifier gain, connector loss, etc.
[0040] Fully Connected Neural Network (FCNN): also known as Multilayer Perceptron (MLP), is a basic and widely used artificial neural network structure. It is a type of feedforward neural network, mainly composed of an input layer, a hidden layer, and an output layer, in which each neuron is connected to all neurons in the previous and next layers to form a densely connected structure. This connection method enables the fully connected neural network to learn the complex features of the input data and perform tasks such as classification and regression.
[0041] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0042] First, please refer to Figure 1 , Figure 1 This is a flow chart of a specific embodiment of a method for predicting optical fiber link gain in the present application. The present application embodiment provides a method for predicting optical fiber link gain, and the specific steps of the method are as follows:
[0043] Step S1: Generate a first data set based on the input optical power and output optical power of each channel before the optical fiber link changes.
[0044] Step S2: Generate a second data set based on the input optical power and output optical power of each channel after the optical fiber link changes.
[0045] Step S3: Train the main neural network model based on the first data set and fix the weights.
[0046] Step S4: attaching the auxiliary neural network model to the main neural network model to obtain the first neural network model.
[0047] Step S5: training the first neural network model based on the second data set until the first neural network model converges stably.
[0048] It should be noted that the first neural network model obtained here is the optimal model under the current optical fiber link conditions.
[0049] Step S6: inputting the input optical power and target gain of the channel to be measured into the first neural network model, and the first neural network model outputs a predicted value.
[0050] This method retrains the first neural model through a small amount of new data after the fiber link changes, so that the model can quickly adapt to the link changes, enhance the model's portability, and improve the deployment speed and performance optimization efficiency of the fiber link. The trained model can quickly and accurately predict the gain of the full-band and full-wavelength fiber link.
[0051] In some embodiments, before the above step S1, it also includes:
[0052] First, the full-band signal light is collected before and after the optical fiber link changes, and then the full-band signal light is input into the spectrometer to obtain the input optical power and output optical power corresponding to each channel before and after the optical fiber link changes.
[0053] In some embodiments, in the above steps S1 and S2, the fiber link change includes hardware replacement in the fiber link, a change in the number of channels in the fiber link, or a change in the target gain of any channel in the fiber link.
[0054] Specifically, when the cumulative changes in the optical fiber link are too large, that is, the hardware in the optical fiber link is replaced, the number of channels in the optical fiber link changes, or the target gain of any channel in the optical fiber link changes, and the cumulative number of changes of these three factors exceeds the change number threshold, it is necessary to retrain the main neural network model and fix the weights of the main neural network model through the input optical power and output optical power of each channel before the optical fiber link changes, and then train the first neural network model through the input optical power and output optical power of each channel after the optical fiber link changes.
[0055] When the fiber link changes slightly, the first neural network model only needs to be trained through the input optical power and output optical power of each channel after the fiber link changes. This can reduce the amount of training data, speed up the training speed, and ensure the prediction accuracy of the first neural network model.
[0056] It should be noted that by performing differentiated training according to changes in the optical fiber link, the required training data can be reduced, allowing the first neural network model to quickly adapt to link changes, thereby effectively improving the portability of the first neural network model.
[0057] In some embodiments, the optical fiber link comprises a plurality of cascaded optical fibers, optical amplifiers, and filters.
[0058] In some embodiments, in the above steps S3 and S4, the main neural network model is a fully connected neural network model, which includes an input layer, a hidden layer and an output layer, and its input is the input optical power and target gain of each channel, and its output is the predicted gain and predicted output optical power of each channel.
[0059] It should be noted that each layer of neurons in a fully connected neural network receives the outputs of all neurons in the previous layer as input, generates its own output through weighted summation, activation function and other steps, and then passes it to the next layer of neurons. During the training process, the neural network adjusts the connection weights according to the error between the actual output and the expected output to optimize the performance of the neural network.
[0060] Optionally, the main neural network model can be trained separately and predict the gain of each channel in the optical fiber link, with the input being the input optical power and target gain of each channel, and the output being the predicted gain and predicted output optical power of each channel.
[0061] In some embodiments, in the above step S3, fixing the weights includes:
[0062] A first difference between the output optical power predicted by the main neural network model and the actual output optical power is calculated, and when the first difference is less than a preset difference, the weight of the main neural network model is fixed.
[0063] In this embodiment, the above-mentioned preset difference selects the empirical optimal value. When the first difference is greater than the preset difference, the main neural network model needs to be retrained until the first difference is less than the preset difference, and then the weight of the main neural network model is fixed.
[0064] In some embodiments, in the above step S4, the auxiliary neural network model is a fully connected neural network model, and includes an input layer, an output layer and two hidden layers, its input is the predicted gain and target gain of each channel, and its output is the corrected value of each channel.
[0065] It should be noted that the auxiliary neural network model adopts a double hidden layer structure, which can approximate complex nonlinear functions through more nonlinear transformations, allowing the neural network to handle more complex input-output relationships. This nonlinear mapping capability makes the neural network more flexible and effective in dealing with nonlinear problems.
[0066] In some embodiments, in the above steps S4, S5 and S6, the loss function of the first neural network model is the mean square error.
[0067] It should be noted that the loss function of the first neural network model can be replaced according to actual conditions instead of fixedly using the mean square error.
[0068] In some embodiments, in the above steps S4, S5 and S6, the number of hidden layers and the number of hidden layer parameters of the first neural network model are both preset optimal values.
[0069] It should be noted that the number of hidden layers refers to the number of layers between the input layer and the output layer in a neural network. A neural network can have no hidden layers, or one or more hidden layers. The number of hidden layer parameters refers to the total number of weights and biases of the neurons in each hidden layer. Each neuron is connected to all neurons in the previous layer, so each connection has a corresponding weight. In addition, each neuron also has a bias term.
[0070] In this embodiment, in the above step S6, please refer to Figure 2 , Figure 2 The following is a flow chart of prediction by the first neural network model in the embodiment of the present application. The input optical power and target gain of the channel to be measured are input into the first neural network model, and the specific steps of the first neural network model outputting the predicted value are as follows:
[0071] S61: Input the input optical power and target gain of the kth channel into the first neural network model.
[0072] S62: Main neural network model output prediction gain G main,k (λ i ).
[0073] S63: G main,k (λ i ) and the target gain of the kth channel are input into the auxiliary neural network model.
[0074] S64: The auxiliary neural network model outputs the correction value C of the kth channel k (λ i ).
[0075] S65: The first neural network model outputs G out,k (λ i ) as the final prediction gain of the kth channel, G out,k (λ i )=G main,k (λ i )+C k (λ i), which represents the prediction gain G at the output of the main neural network model main,k (λ i ), based on the correction value C output by the auxiliary neural network model k (λ i ) is corrected to obtain the final prediction gain G of the kth channel after the link changes out,k (λ i ).
[0076] In a second aspect, an embodiment of the present application provides a fiber link gain prediction device, which includes a data set generation module, a training module and a prediction module.
[0077] The data set generation module generates a first data set based on the input optical power and output optical power of each channel before the optical fiber link changes, and generates a second data set based on the input optical power and output optical power of each channel after the optical fiber link changes.
[0078] The training module trains the main neural network model based on the first data set and fixes the weights, then attaches the auxiliary neural network model to the main neural network model to obtain the first neural network model, and trains the first neural network model based on the second data set until the first neural network model converges stably.
[0079] The prediction module is used to input the input optical power and target gain of the channel to be measured into the first neural network model, and then the first neural network model outputs a predicted value.
[0080] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0081] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0082] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0083] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0084] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0086] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for predicting optical fiber link gain, characterized in that: The method comprises: Generate a first data set based on the input optical power and the output optical power of each channel before the optical fiber link is changed; generating a second data set based on the input optical power and the output optical power of each channel after the optical fiber link is changed; Training a main neural network model based on the first data set and fixing the weights; Adding an auxiliary neural network model to the main neural network model to obtain a first neural network model; Training the first neural network model based on the second data set until the first neural network model converges stably; The input optical power and target gain of the channel to be measured are input into the first neural network model, and the first neural network model outputs a predicted value.
2. A method for predicting optical fiber link gain according to claim 1, characterized in that: Also includes: Collect full-band signal light before and after the optical fiber link changes; The full-band signal light is input into a spectrometer to obtain input optical power and output optical power corresponding to each channel before and after the optical fiber link changes.
3. A method for predicting optical fiber link gain according to claim 2, characterized in that: The fiber link changes are: Hardware replacement in fiber optic links; or the number of channels in the fiber link changes; Or a change in the target gain of any channel in a fiber link.
4. A method for predicting optical fiber link gain according to claim 3, characterized in that: The optical fiber link includes a plurality of cascaded optical fibers, optical amplifiers and filters.
5. A method for predicting optical fiber link gain according to claim 1, characterized in that: The main neural network model is a fully connected neural network model, which includes an input layer, a hidden layer and an output layer. Its input is the input optical power and target gain of each channel, and its output is the predicted gain and predicted output optical power of each channel.
6. A method for predicting optical fiber link gain according to claim 5, characterized in that: The fixed weights include: Calculating a first difference between the output optical power predicted by the main neural network model and the actual output optical power; When the first difference is less than a preset difference, the weight of the main neural network model is fixed.
7. A method for predicting optical fiber link gain according to claim 5, characterized in that: The auxiliary neural network model is a fully connected neural network model, and comprises an input layer, an output layer and two hidden layers, wherein the input is the predicted gain and the target gain of each channel, and the output is the corrected value of each channel.
8. A method for predicting optical fiber link gain according to claim 1, characterized in that: The loss function of the first neural network model is mean square error.
9. A method for predicting optical fiber link gain according to claim 1, characterized in that: The number of hidden layers and the number of hidden layer parameters of the first neural network model are both preset optimal values.
10. An optical fiber link gain prediction device based on the method according to any one of claims 1 to 9, characterized in that: The device comprises: A data set generation module, used to generate a first data set based on the input optical power and output optical power of each channel before the optical fiber link changes; and to generate a second data set based on the input optical power and output optical power of each channel after the optical fiber link changes; A training module, used for training a main neural network model based on the first data set and fixing the weights; attaching an auxiliary neural network model to the main neural network model to obtain a first neural network model; Training the first neural network model based on the second data set until the first neural network model converges stably; The prediction module is used to input the input optical power and target gain of the channel to be measured into the first neural network model, and the first neural network model outputs a predicted value.
Citation Information
Cited By
Raman spectrum automatic adjustment and reconstruction method based on neural network
CN119470390A
