A training method and device for a multi-span optical fiber transmission signal prediction system
Through the cascaded optical fiber transmission signal prediction model and neural network structure, the problem of difficult signal prediction in medium and long-distance optical fiber communication systems is solved, efficient signal prediction is achieved, the computational complexity is reduced, and it is suitable for long-distance optical fiber communication.
Patent Information
- Application Number
- CN202210228546.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-09
AI Technical Summary
Signal prediction is difficult in medium and long-distance optical fiber transmission systems. The traditional step-by-step Fourier algorithm takes a long time to calculate and is seriously affected by nonlinear and dispersion effects.
Using a multi-span optical fiber transmission signal prediction system, through the cascade optical fiber transmission signal prediction model, using the neural network structure to perform signal normalization processing, feature extraction and aggregation, combined with the residual structure and fully connected layer for information fusion, the signal is realized predict.
It improves the model training efficiency and prediction performance, reduces the computational complexity, and can quickly and accurately predict the signal evolution in medium and long-distance optical fiber communication systems, and is suitable for long-distance optical fiber communication systems.
Smart Images

Figure CN114647976B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of long-distance optical fiber communication and machine learning technology, and in particular to a training method, prediction method, device, electronic device, storage medium and program product for a multi-span optical fiber transmission signal prediction system. Background Art
[0002] Medium- and long-distance fiber transmission refers to fiber transmission systems with a transmission distance of 500 km or more. Research on long-distance fiber communication systems and their models is widely used in backbone communication lines of metropolitan area networks and wide area networks using optical fiber as the transmission medium, as well as ultra-long-distance transoceanic fiber communication lines. For a long time, due to the long transmission distance of medium- and long-distance fiber transmission systems, the accumulation of nonlinear and dispersion effects is very serious, making it difficult to predict transmission signals. In addition, the step-by-step Fourier algorithm used in traditional signal prediction models also makes it take a considerable amount of computing time to predict a transmission signal even once. Summary of the invention
[0003] In order to solve the problems existing in the prior art, the embodiments of the present invention provide a training method, prediction method, device, electronic device, storage medium and program product for a multi-span optical fiber transmission signal prediction system, which aims to solve the technical problems of improving model training efficiency and model prediction performance by combining a neural network structure.
[0004] A first aspect of the present disclosure provides a training method for a multi-span optical fiber transmission signal prediction system, which includes N cascaded optical fiber transmission signal prediction models, where N is greater than or equal to 2, and includes: obtaining an initial optical fiber signal and N label signals; normalizing the initial optical fiber signal and the N label signals to obtain a normalized model input signal and a normalized label signal; constructing a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal to obtain three-dimensional model input data and two-dimensional label data; and using part of the three-dimensional model input data and the two-dimensional label data as training data to sequentially train the N cascaded optical fiber transmission signal prediction models.
[0005] Furthermore, part of the three-dimensional model input data and the two-dimensional label data are used as training data to train N cascaded optical fiber transmission signal prediction models in sequence, including: setting initial training parameters of the N cascaded optical fiber transmission signal prediction models, wherein the initial training parameters include the number of preset models; wherein the number of preset models is N; inputting part of the three-dimensional model input data and the two-dimensional label data into the N cascaded optical fiber transmission signal prediction models for training; wherein the N cascaded optical fiber transmission signal prediction models are trained in sequence according to the cascade order, and the output signal of the k-th optical fiber transmission signal prediction model is used as the input signal of the k+1-th optical fiber transmission signal prediction model, where k is less than N; determining whether the number of trained modules in the N cascaded optical fiber transmission signal prediction models is equal to the number of preset models; if so, ending the training and fixing the model parameters of the N cascaded optical fiber transmission signal prediction models after training; otherwise, setting the maximum iteration parameter and the minimum loss function value of the unfinished training model in the N cascaded optical fiber transmission signal prediction models, and starting the training of the unfinished models in sequence.
[0006] Furthermore, the maximum iteration parameter and the minimum loss function value of the unfinished training model in the N cascaded optical fiber transmission signal prediction models are set, and the training of the unfinished models is started in sequence, including: setting the maximum iteration parameter and the minimum loss function value of the unfinished training model, and starting the training of the unfinished training model in sequence; judging whether the number of generations of the current iteration of the first-level optical fiber transmission signal prediction model in the unfinished training model is greater than the maximum iteration parameter or less than the minimum loss function value; if so, ending the iteration of the first-level optical fiber transmission signal prediction model, fixing the model parameters of the trained optical fiber transmission signal prediction model, and inputting the output signal of the first-level optical fiber transmission signal prediction model into the second-level optical fiber transmission signal prediction model connected thereto for model training after normalization and data format conversion; and so on, until the training of all models in the unfinished training models is completed.
[0007] Furthermore, the initial optical fiber signal and the N label signals are both complex signals, wherein the initial optical fiber signal and the N label signals are normalized to obtain a normalized model input signal and a normalized label signal, including: dividing the initial optical fiber signal and the N label signals by the maximum value of their corresponding modules, and respectively obtaining the real part and the imaginary part of the initial optical fiber signal and the N label signals to obtain the normalized model input signal and the normalized label signal.
[0008] Furthermore, the method also includes: using another part of the three-dimensional model input data and the two-dimensional label data as test data to test N cascaded optical fiber transmission signal prediction models to obtain N cascaded optical fiber transmission signal prediction models after testing; wherein the test data is data other than the training data in the three-dimensional model input data and the two-dimensional label data.
[0009] Furthermore, the method also includes: using a modulator to load the electrical signal onto an optical carrier to obtain a modulated initial optical fiber signal; using N cascaded optical fiber links to transmit the modulated initial optical fiber signal to obtain N label signals.
[0010] Furthermore, the optical fiber transmission signal prediction model includes: a first residual structure, used to copy the three-dimensional model input data into two identical data; a first data processing structure, used to extract features from one copy of the three-dimensional model input data, and aggregate the extracted feature data with another copy of the three-dimensional model input data to obtain first aggregated data; a second residual structure, used to copy the first aggregated data into two identical optical fiber data; a second data processing structure, used to perform secondary feature extraction on one copy of the data output by the first residual structure, and perform secondary feature aggregation on the extracted feature data with another copy of the data to obtain second aggregated data; a fully connected layer, used to perform information fusion and prediction on the second aggregated data to obtain a data prediction result.
[0011] A second aspect of the present disclosure provides a method for predicting an optical fiber transmission signal, comprising: acquiring at least one optical fiber signal; predicting at least one optical fiber signal using N cascaded optical fiber transmission signal prediction models, wherein the N cascaded optical fiber transmission signal prediction models are trained using the training method of the multi-span optical fiber transmission signal prediction system provided by the first aspect of the present disclosure.
[0012] The third aspect of the present disclosure provides a training device for a multi-span optical fiber transmission signal prediction model, comprising: a signal acquisition module, used to acquire an initial optical fiber signal and N label signals; wherein the N label signals respectively correspond to the signals of the initial optical fiber signal after being transmitted through each level of optical fiber links in N cascaded optical fiber links; a signal preprocessing module, used to normalize the initial optical fiber signal and the N label signals to obtain a normalized model input signal and a normalized label signal; a data construction module, used to construct a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal to obtain three-dimensional model input data and two-dimensional label data; and a model training module, used to use part of the three-dimensional model input data and the two-dimensional label data as training data to sequentially train N cascaded optical fiber transmission signal prediction models.
[0013] The fourth aspect of the present disclosure provides a prediction device for optical fiber transmission signals, comprising: a data acquisition module for acquiring at least one optical fiber signal; a data prediction module for predicting at least one optical fiber signal using N cascaded optical fiber transmission signal prediction models, wherein the N cascaded optical fiber transmission signal prediction models are trained using the training method for the optical fiber transmission signal prediction model provided by the first aspect of the present disclosure.
[0014] The fifth aspect of the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method provided in the first aspect of the present disclosure or the method provided in the second aspect of the present disclosure is implemented.
[0015] The sixth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method provided by the first aspect of the present disclosure or the method provided by the second aspect of the present disclosure is implemented.
[0016] The seventh aspect of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method provided by the first aspect of the present disclosure or the method provided by the second aspect of the present disclosure.
[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:
[0019] Figure 1 The schematic diagram of the structure of the midfield cross-fiber system is shown schematically;
[0020] Figure 2 A flowchart schematically shows a training method for a multi-span optical fiber transmission signal prediction system according to an embodiment of the present disclosure;
[0021] Figure 3 A schematic diagram schematically shows three-dimensional model input data according to an embodiment of the present disclosure;
[0022] Figure 4 A schematic diagram schematically shows two-dimensional tag data according to an embodiment of the present disclosure;
[0023] Figure 5 The structure diagram of the optical fiber transmission signal prediction model according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 6 The training flow chart of the optical fiber transmission signal prediction model according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 7 A block diagram schematically shows a training device of a multi-span optical fiber transmission signal prediction system according to an embodiment of the present disclosure;
[0026] Figure 8 A block diagram schematically shows a device for predicting optical fiber transmission signals according to an embodiment of the present disclosure;
[0027] Fig. 9 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0030] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0031] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0032] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.
[0033] Figure 1 The schematic diagram shows the structure of a multi-span optical fiber transmission system. The transmitter of the system consists of a signal source and an arbitrary waveform generator, and the corresponding signal modulation is transmitted on an optical carrier via an optical fiber link. The receiver consists of a photodetector and a signal processing module, and its function is to estimate and recover the information sent by the signal source as accurately as possible. Unlike traditional optical communication systems, the distance between the transmitter and the receiver in medium and long-distance transmission systems is often very far, so in order to ensure reliability during transmission, the system consists of multi-span transmission links.
[0034] The system shown in Figure 1 has a total of N transmission links, and the length of each transmission link is usually fixed. In a transmission link, the main components are optical fiber and relay amplifier. The function of the relay amplifier is to compensate for the loss during the transmission process and prevent the signal from being buried in noise during the transmission process.
[0035] Based on this, according to Figure 1The communication structure shown in the figure, the present disclosure proposes a cascade model, that is, the multi-span optical fiber transmission signal prediction system provided by the present disclosure is used to predict the signal transmission process of the corresponding single-span link. For a medium- and long-distance transmission system with N spans, it is necessary to cascade the model N times for prediction. Among them, for each span, the structure of the prediction model is isomorphic.
[0036] Figure 2 The flowchart of the training method of the multi-span optical fiber transmission signal prediction system according to the embodiment of the present disclosure is schematically shown. The multi-span optical fiber transmission signal prediction system includes: N cascaded optical fiber transmission signal prediction models, where N is greater than or equal to 2. Figure 2 As shown, the method includes: steps S201 to S204.
[0037] In operation S201, an initial optical fiber signal and N label signals are obtained; wherein the N label signals correspond to signals of the initial optical fiber signal after being transmitted through each level of optical fiber links in N cascaded optical fiber links.
[0038] In the embodiments of the present disclosure, according to Figure 1 The structure shown builds a fiber optic communication system with N transmission links. The transmission distance of each fiber optic link can be the same, such as 200km, 300km, and 500km. The symbol rate can be 10GBaud, 20GBaud, and 40GBaud, respectively. The sampling rate is K times the symbol rate, and the modulation format can be QAM, etc.
[0039] Furthermore, the initial optical fiber signal can be as follows Figure 1 The optical signal modulated by the modulator shown in the figure, the initial optical fiber signal is transmitted through each level of the optical fiber link in the N cascaded optical fiber links to obtain N label signals. Assuming that the transmission distance of each span is 250km, the N label signals can correspond to the signals after being transmitted through the optical fiber links of 250km, 500km, 750km, ..., 250×Nkm respectively. Specifically, each label signal carries distance information, which is used for comparison and analysis with the output data of each level of optical fiber transmission signal prediction model after training, to obtain error data, so as to achieve model optimization, etc.
[0040] In the embodiments of the present disclosure, the initial optical fiber signal is a signal that has not been transmitted through an optical fiber link. It serves as the data source of the model training data. The initial optical fiber signal can be multiple optical fiber signals. The multiple initial optical fiber signals are preprocessed, data converted, and model trained separately. The output results after model training are compared and analyzed with the corresponding label signals for subsequent model training and comparative analysis of training results.
[0041] It should be noted that the total transmission distances of 250km, 500km, 1000km and 2000km of the optical fiber link in the above embodiments are only exemplary descriptions and do not constitute limitations of the embodiments of the present disclosure. In actual application scenarios, when predicting signals in a long-distance optical communication system, the optical fiber link transmission distance can also be a larger transmission distance.
[0042] In operation S202, the initial optical fiber signal and the N label signals are normalized to obtain a normalized model input signal and a normalized label signal.
[0043] In the embodiments of the present disclosure, before the signal is input into the model training, the signal needs to be preprocessed, including normalizing the signal, to facilitate the subsequent construction of tensors for the signal and generation of a model training data set.
[0044] Specifically, the initial optical fiber signal and the N label signals are both complex signals. The initial optical fiber signal and the N label signals are normalized to obtain a normalized model input signal and a normalized label signal, including: dividing the initial optical fiber signal and the N label signals by the maximum value of their corresponding modules, and respectively obtaining the real part and the imaginary part of the initial optical fiber signal and the N label signals to obtain the normalized model input signal and the normalized label signal.
[0045] In operation S203 , a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal are constructed to obtain three-dimensional model input data and two-dimensional label data.
[0046] In the embodiment of the present disclosure, for the model input signal, a three-dimensional tensor is constructed to satisfy the data format of the model training input data. Figure 3 As shown, the model input data is a three-dimensional tensor of m×n×2k, which can be specifically regarded as an m×n storage of each communication symbol V ij An m×k two-dimensional matrix, where the elements V ij is a vector with 2k elements, such as Figure 3 a1, a2, ..., a k , b1, b2, ..., b k The matrix is a matrix of m rows and n columns, and the number of rows m and the number of columns n are determined by the scale of batch calculation of the model and the scale of neurons, respectively, which is not limited in the embodiments of the present disclosure.
[0047] like Figure 3 As shown, for each element V of the matrix ij, the signal waveform corresponding to the communication symbol represented by it is specifically described by a vector of 2k elements, and the length parameter k of the description vector is determined by the sampling rate of the communication signal. In this vector, the elements 1 to k describe the real part of the sampled signal value, such as: a1, a2, ..., a k ; (k+1)~2k elements describe the imaginary part of the sampled signal value, such as b1, b2, ..., b k .
[0048] In the embodiment of the present disclosure, for the label data, a two-dimensional tensor is constructed to obtain two-dimensional label data. The data format of the two-dimensional label data is as follows: Figure 4 It should be noted that the output data format of the three-dimensional tensor data after training with the model provided by the present disclosure is the same as Figure 4 The data format shown is consistent, so that the model output results can be compared and analyzed with the label data to obtain the training results or test results of the model, and then perform error analysis, etc.
[0049] Specifically, Figure 4 As shown, the data format can be regarded as the input data will represent V ij The vector of the specific sampling signal is flattened to form an m×2nk matrix. The 1st to 2kth data in the i-th row of the matrix represent V i1 The signal represented by . Among them, the data No. 1 to k represent the real part of the sampled signal data point (model prediction result), and the data No. (k+1) to 2k represent the imaginary part of the sampled signal data point (model prediction result).
[0050] It should be noted that in the above embodiments, m, n, k, i, and j are all any positive integers, and i is less than or equal to m, and j is less than or equal to n. In addition, the examples of the real part, imaginary part, etc. in the above embodiments are only exemplary descriptions and do not constitute limitations on the embodiments of the present disclosure.
[0051] In operation S204, N cascaded optical fiber transmission signal prediction models are trained in sequence using part of the three-dimensional model input data and the two-dimensional label data as training data.
[0052] In the embodiment of the present disclosure, the structure of the prediction model of each level of optical fiber transmission signal is constructed as follows: Figure 5 As shown, each level of optical fiber transmission signal prediction model has isomorphism, and specifically includes: a first residual structure, a first data processing structure, a second residual structure and a second data processing structure.
[0053] Specifically, the first residual structure is used to copy the three-dimensional model input data into two identical three-dimensional optical fiber data. The first data processing structure includes: a multi-head attention mechanism layer, an addition and normalization layer, wherein the multi-head attention mechanism layer is used to extract features from a piece of three-dimensional model input data, specifically extracting multi-dimensional features of aliasing effects caused by dispersion and nonlinearity in each cross-optical fiber transmission link; the first addition and normalization layer is used to aggregate the extracted feature data with another piece of three-dimensional model input data to obtain first aggregated data. The second residual structure is used to copy the first aggregated data into two identical optical fiber data. The second data processing structure includes: a forward calculation structure, an addition and normalization layer, wherein the forward calculation structure is used to perform secondary feature extraction on a piece of data output by the second residual structure, specifically for preliminary screening and compression of multi-dimensional features; the addition and normalization layer is used to perform secondary data aggregation on the extracted feature data with another piece of data to obtain second aggregated data. The fully connected layer is used to perform information fusion and prediction on the second aggregated data, output a more accurate prediction result, and obtain a data prediction result.
[0054] In the embodiment of the present disclosure, the residual structure used twice in each level of the optical fiber transmission signal prediction model is to use the signal copy to prevent the gradient vanishing phenomenon during the training process and improve the training efficiency. The two addition and normalization layers add and normalize the calculation data and information copies to facilitate the rapid convergence of the network.
[0055] In the embodiment of the present disclosure, the three-dimensional model input data obtained in step S203 is matched with the two-dimensional label data to establish a total data set for model training, and then a part of the data is selected from the total data set as the test set data to train the above-constructed model. Following the above embodiment, the total data set can be selected to be divided into a training set and a test set according to other ratios such as 8:2 or 7.5:2.5, the training set data is used to train the model, and the test set is used to test the model.
[0056] It should be noted that the above division of the data set is only an exemplary description, and it can be other forms of data selection, which is not limited in the embodiments of the present disclosure.
[0057] According to the embodiments of the present disclosure, Figure 6 As shown, part of the three-dimensional model input data and the two-dimensional label data are used as training data to sequentially train N cascaded optical fiber transmission signal prediction models, specifically including: steps S601 to S609.
[0058] In operation S601, the initial training parameters of each level of the model to be trained in the multi-span optical fiber transmission signal prediction system are set. The initial training parameters include at least the number of multiple heads and nonlinear activation function, model training optimizer, learning rate and the number of preset models. The number of preset models is N.
[0059] In the embodiments of the present disclosure, the initial training parameters of the model can be directly configured by the model default or manually set according to the data type and model accuracy requirements to meet the accuracy requirements of the data training results in the actual application needs.
[0060] In operation S602, part of the three-dimensional model input data and the two-dimensional label data are input into the optical fiber transmission signal prediction model for training. The N cascaded optical fiber transmission signal prediction models are trained in sequence according to the cascade order, and the output signal of the k-th optical fiber transmission signal prediction model is used as the input signal of the k+1-th optical fiber transmission signal prediction model, where k is less than N.
[0061] In an embodiment of the present disclosure, the total data set consisting of three-dimensional model input data and two-dimensional label data is divided into a training set and a data set in a ratio of 8:2 or 7.5:2.5, and the data in the training set is input into the optical fiber transmission signal prediction model for training.
[0062] In operation S603, it is determined whether the number of trained modules in the N cascaded optical fiber transmission signal prediction models is equal to the preset model N. If so, step S609 is executed; if not, step S604 is executed.
[0063] In operation S604, a maximum iteration parameter threshold and a minimum loss function threshold of an untrained model in the N cascaded optical fiber transmission signal prediction models are set.
[0064] In the embodiments of the present disclosure, for example, the maximum iteration parameter threshold can be set to 100, 500, 1000 or a larger / smaller value, etc., to prevent the model from overfitting or underfitting, so that the training results are as close to the actual results as possible.
[0065] In operation S605, it is determined whether the iteration number of the first-level optical fiber transmission signal prediction model (i.e., the current training model) in the unfinished training model is greater than the maximum iteration parameter threshold or less than the minimum loss function threshold. If not, step S606 is executed; if yes, step S608 is executed.
[0066] In operation S606, a portion of data is randomly extracted from the training data set and input into the current training model for training, and the loss function value and the mean square error of the label are calculated point by point.
[0067] In the embodiments of the present disclosure, some data are randomly selected from the training data set and input into the model for training again. The loss function value after model training and the mean square error of the label are calculated point by point. At this time, the results after model training are compared and analyzed with the selected label data, and the mean square error is calculated to determine the accuracy of the model calculation results, which is convenient for model optimization.
[0068] In operation S607, the gradient of the network trainable parameters is calculated according to the loss function value and the parameters such as the Q, K, V matrices in the Transformer encoding structure and the weights of the remaining structures in the current training model are updated according to the training optimizer algorithm. The number of iteration parameters is increased by 1, and the process returns to step S605 to determine whether the iteration number of the current model is greater than the maximum iteration parameter threshold or less than the minimum loss function threshold. If so, the current model training ends and step S608 is executed; otherwise, the current training model continues to iterate and step S606 is executed.
[0069] In operation S608, after the current model training is completed, the model parameters of the model training are fixed, and the output result of the model training is normalized and the two-dimensional tensor is converted into a three-dimensional tensor and then input into the next unfinished training model connected to it for training, and step S603 is executed, and so on, until the training of all models in the unfinished training models is completed.
[0070] In operation S609, the training is terminated, and the model parameters of the N cascaded optical fiber transmission signal prediction models after training are fixed.
[0071] In the embodiments of the present disclosure, the trained model is tested to determine the error rate of the trained model, which also includes a process of testing the model. Figure 6 As shown, in operation S610, after the model training is completed, the data in the test data is input into the model for testing, and the error between the final model and the traditional SSFM method is calculated, and the error result is output. Among them, the test data is the data other than the training data in the three-dimensional model input data and the two-dimensional label data.
[0072] It should be noted that the examples in the above embodiments are merely exemplary descriptions and do not constitute limitations of the embodiments of the present disclosure.
[0073] The training method of the multi-span optical fiber transmission signal prediction system provided by the embodiment of the present disclosure can realize the signal prediction of the medium and long distance communication system by cascading N optical fiber transmission signal predictions. The optical fiber transmission signal predictions at each level are isomorphic. The training method normalizes the modulated initial optical fiber signal and then constructs its three-dimensional tensor of the normalized optical fiber signal to make it suitable for input data of model training, so as to realize the training of the model.
[0074] For the whole multi-span optical fiber transmission signal prediction system, the method of training each span segment from the transmitting end to the receiving end is adopted until it reaches the receiving end. On the basis of the training of the previous span model, the output of the current span segment model is used as the input data of the next span model connected to it to train the next span model. For each span model in the multi-span optical fiber transmission signal prediction system, the small batch gradient descent method is used for training. By using the output data of the previous cross-link model and the output data of the current cross-link, the model can learn the evolution characteristics of the signal during the current cross-link transmission. After the training is completed, it is only necessary to cascade the trained span models to accurately and quickly predict the evolution of each span signal, that is, the overall output signal of the system. In the training of a large amount of data, the model can effectively learn the evolution law of the signal transmitted in the multi-span optical fiber link. Compared with the traditional optical fiber model based on the step-by-step Fourier algorithm, this model can effectively reduce the calculation speed, and its calculation complexity will not be affected by the length of the optical fiber link and the strength of the nonlinear effect.
[0075] Another embodiment of the present disclosure provides a method for predicting an optical fiber transmission signal, comprising: acquiring at least one optical fiber signal; predicting at least one optical fiber signal using an optical fiber transmission signal prediction model, wherein the optical fiber transmission signal prediction model is trained using the method provided in the above embodiment.
[0076] In the embodiments of the present disclosure, the model trained by the method provided in the above embodiments is applied to Figure 1 The optical fiber link is replaced in the medium- and long-distance transmission system with N spans as shown, thereby realizing rapid prediction of the optical fiber signal.
[0077] Specifically, the prediction result of each optical fiber signal includes at least: signal morphology information of the optical fiber signal after passing through any optical fiber transmission distance. The signal morphology information includes at least: optical signal loss parameter, optical signal dispersion parameter, nonlinear effect parameter, inter-symbol crosstalk parameter and waveform aliasing parameter.
[0078] In the embodiments of the present disclosure, the present disclosure provides a prediction method for optical fiber transmission signals, which can predict optical fiber transmission signals in different scenarios with high accuracy. In addition, based on the prediction results, an optimized N-span medium and long-distance transmission system is constructed in practical applications to achieve the purpose of improving optical communication efficiency, reducing communication costs, and long-distance communication.
[0079] Figure 7 A block diagram of a training device for an optical fiber transmission signal prediction model according to an embodiment of the present disclosure is schematically shown.
[0080] like Figure 7As shown, the training device of the optical fiber transmission signal prediction model includes: a signal acquisition module 710, a signal preprocessing module 720, a data construction module 730 and a model training module 740. The device 700 can be used to implement reference Figure 2 The described training method of the multi-span optical fiber transmission signal prediction model.
[0081] The signal acquisition module 710 is used to acquire the initial optical fiber signal and N label signals; wherein the N label signals correspond to the signals of the initial optical fiber signal after being transmitted through each level of the N cascaded optical fiber links. The signal acquisition module 710 can be used to execute the above reference Figure 2 The described step S201 will not be repeated here.
[0082] The signal preprocessing module 720 is used to normalize the initial optical fiber signal and the N label signals to obtain a normalized model input signal and a normalized label signal. The signal preprocessing module 720 can be used to perform the above reference Figure 2 The described step S202 will not be repeated here.
[0083] The data construction module 730 is used to construct a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal to obtain three-dimensional model input data and two-dimensional label data. The data construction module 73 can be used to execute the above reference Figure 2 The described step S203 will not be repeated here.
[0084] The model training module 740 is used to use part of the three-dimensional model input data and the two-dimensional label data as training data to train N cascaded optical fiber transmission signal prediction models in sequence. The model training module 740 can be used to perform the above reference Figure 2 The described step S204 will not be repeated here.
[0085] Figure 8 The block diagram schematically shows a device for predicting optical fiber transmission signals according to an embodiment of the present disclosure.
[0086] like Figure 8 As shown, the optical fiber transmission signal prediction device includes: a data acquisition module 810 and a data prediction module 820. The device 800 can be used to implement the optical fiber transmission signal prediction method described with reference to the above embodiments.
[0087] The data acquisition module 810 is used to acquire at least one optical fiber signal.
[0088] The data prediction module 820 is used to predict at least one optical fiber signal using N cascaded optical fiber transmission signal prediction models, wherein the N cascaded optical fiber transmission signal prediction models are trained using the method shown in the above embodiment.
[0089] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), on-chip devices, devices on substrates, devices on packages, application-specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0090] For example, any of the signal acquisition module 710, the signal preprocessing module 720, the data construction module 730 and the model training module 740 or the data acquisition module 810 and the data prediction module 820 can be combined in one module for implementation, or any of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the signal acquisition module 710, the signal preprocessing module 720, the data construction module 730 and the model training module 740 or the data acquisition module 810 and the data prediction module 820 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), an on-chip device, a device on a substrate, a device on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the signal acquisition module 710, the signal preprocessing module 720, the data construction module 730 and the model training module 740 or the data acquisition module 810 and the data prediction module 820 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.
[0091] Fig. 9 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0092] like Fig. 9 As shown, the electronic device 900 described in this embodiment includes: a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), and the like. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0093] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0094] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.
[0095] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above-mentioned functions defined in the device of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the apparatus, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0096] The embodiment of the present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / device described in the above embodiment; or may exist independently without being assembled into the device / apparatus / device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the training method of the multi-span optical fiber transmission signal prediction model or the optical fiber transmission signal prediction method according to the embodiment of the present disclosure is implemented.
[0097] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution device, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0098] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program product is run in a computer device, the program code is used to enable the computer device to implement the training method of the multi-span optical fiber transmission signal prediction model or the optical fiber transmission signal prediction method provided by the embodiment of the present disclosure.
[0099] The above functions defined in the apparatus / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the apparatus, means, modules, units, etc. described above can be implemented by computer program modules.
[0100] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0101] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the apparatus of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the apparatus, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0102] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0103] It should be noted that the functional modules in the various embodiments of the present disclosure may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention may essentially or in other words, the part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product.
[0104] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of boxes in the block diagram or flow chart, can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0106] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it should be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims
1. A training method for a multi-span optical fiber transmission signal prediction system, It is characterized in that The multi-span optical fiber transmission signal prediction system includes N cascaded optical fiber transmission signal prediction models, where N is greater than or equal to 2. The method includes: Acquire an initial optical fiber signal and N label signals; wherein the N label signals correspond to signals of the initial optical fiber signal after being transmitted through each level of the N cascaded optical fiber links; Normalizing the initial optical fiber signal and the N label signals to obtain a normalized model input signal and a normalized label signal; Constructing a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal to obtain three-dimensional model input data and two-dimensional label data; and Using part of the three-dimensional model input data and the two-dimensional label data as training data to sequentially train the N cascaded optical fiber transmission signal prediction models; The optical fiber transmission signal prediction model comprises: A first residual structure, used to copy the three-dimensional model input data into two identical data; A first data processing structure is used to extract features from one piece of three-dimensional model input data, and aggregate the extracted feature data with another piece of three-dimensional model input data to obtain first aggregated data; a second residual structure, used to copy the first aggregated data into two identical optical fiber data; A second data processing structure is used to perform secondary feature extraction on a portion of data output by the first residual structure, and perform secondary feature aggregation on the extracted feature data and another portion of data to obtain second aggregated data; The fully connected layer is used to perform information fusion and prediction on the second aggregated data to obtain a data prediction result.
2. The training method of the multi-span optical fiber transmission signal prediction system according to claim 1, It is characterized in that The using part of the three-dimensional model input data and the two-dimensional label data as training data to sequentially train the N cascaded optical fiber transmission signal prediction models includes: Setting initial training parameters of the N cascaded optical fiber transmission signal prediction models, wherein the initial training parameters include the number of preset models; wherein the number of preset models is N; Inputting part of the three-dimensional model input data and the two-dimensional label data into the N cascaded optical fiber transmission signal prediction models for training; wherein the N cascaded optical fiber transmission signal prediction models are trained in sequence according to the cascade order, and the output signal of the k-th optical fiber transmission signal prediction model is used as the input signal of the k+1-th optical fiber transmission signal prediction model, where k is less than N; Determining whether the number of trained modules in the N cascaded optical fiber transmission signal prediction models is equal to the number of preset models; If so, end the training and fix the model parameters of the N cascaded optical fiber transmission signal prediction models after training; otherwise, set the maximum iteration parameter and minimum loss function value of the unfinished training model in the N cascaded optical fiber transmission signal prediction models, and start the training of the unfinished models in sequence.
3. The training method of the multi-span optical fiber transmission signal prediction system according to claim 2, It is characterized in that The step of setting the maximum iteration parameter and the minimum loss function value of the unfinished training model in the N cascaded optical fiber transmission signal prediction models, and starting the training of the unfinished models in sequence, includes: Setting the maximum iteration parameter and the minimum loss function value of the unfinished training model, and starting the training of the unfinished training model in sequence; Determine whether the number of generations of the current iteration of the first-level optical fiber transmission signal prediction model in the unfinished training model is greater than the maximum iteration parameter or less than the minimum loss function value; If so, end the iteration of the first-level optical fiber transmission signal prediction model, fix the model parameters of the optical fiber transmission signal prediction model after training; and input the output signal of the first-level optical fiber transmission signal prediction model into the second-level optical fiber transmission signal prediction model connected thereto for model training after normalization and data format conversion; and so on, until the training of all models in the unfinished training models is completed.
4. The training method of the multi-span optical fiber transmission signal prediction system according to claim 1, It is characterized in that The initial optical fiber signal and the N label signals are both complex signals, wherein the initial optical fiber signal and the N label signals are normalized to obtain a normalized model input signal and a normalized label signal, including: The initial optical fiber signal and the N label signals are divided by the maximum value of the corresponding modules, and the real part and the imaginary part of the initial optical fiber signal and the N label signals are respectively calculated to obtain a normalized model input signal and a normalized label signal.
5. The training method of the multi-span optical fiber transmission signal prediction system according to claim 1, It is characterized in that The method further includes: Another part of the three-dimensional model input data and the two-dimensional label data are used as test data to test the N cascaded optical fiber transmission signal prediction models to obtain the N cascaded optical fiber transmission signal prediction models after testing; wherein the test data is data other than the training data in the three-dimensional model input data and the two-dimensional label data.
6. The training method of the multi-span optical fiber transmission signal prediction system according to claim 1, It is characterized in that The method further includes: Using a modulator to load the electrical signal onto an optical carrier to obtain the modulated initial optical fiber signal; The modulated initial optical fiber signal is transmitted using N cascaded optical fiber links to obtain the N label signals.
7. A method for predicting optical fiber transmission signals. It is characterized in that include: acquiring at least one optical fiber signal; The at least one optical fiber signal is predicted using N cascaded optical fiber transmission signal prediction models, wherein the N cascaded optical fiber transmission signal prediction models are trained using the method according to any one of claims 1 to 6.
8. A training device for a multi-span optical fiber transmission signal prediction model, It is characterized in that include: A signal acquisition module, used to acquire an initial optical fiber signal and N label signals; wherein the N label signals respectively correspond to signals of the initial optical fiber signal after being transmitted through each level of the N cascaded optical fiber links; A signal preprocessing module, used for normalizing the initial optical fiber signal and the N label signals to obtain a normalized model input signal and a normalized label signal; A data construction module, used to construct a three-dimensional tensor of the model input signal and a two-dimensional tensor of the normalized label signal to obtain three-dimensional model input data and two-dimensional label data; and A model training module, used to use part of the three-dimensional model input data and the two-dimensional label data as training data to train the N cascaded optical fiber transmission signal prediction models in sequence; The optical fiber transmission signal prediction model comprises: A first residual structure, used to copy the three-dimensional model input data into two identical data; A first data processing structure is used to extract features from one piece of three-dimensional model input data, and aggregate the extracted feature data with another piece of three-dimensional model input data to obtain first aggregated data; a second residual structure, used to copy the first aggregated data into two identical optical fiber data; A second data processing structure is used to perform secondary feature extraction on a portion of data output by the first residual structure, and perform secondary feature aggregation on the extracted feature data and another portion of data to obtain second aggregated data; The fully connected layer is used to perform information fusion and prediction on the second aggregated data to obtain a data prediction result.
9. A prediction device for optical fiber transmission signals, It is characterized in that include: A data acquisition module, used to acquire at least one optical fiber signal; A data prediction module, used to predict the at least one optical fiber signal using N cascaded optical fiber transmission signal prediction models, wherein the N cascaded optical fiber transmission signal prediction models are trained using the method according to any one of claims 1 to 6.
10. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
11. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Optical fiber channel model simulation method and device
CN110932809A
Optical fiber channel modeling method and device, electronic equipment and storage medium
CN113378467A
