A method for correcting the wavelength of an arrayed waveguide grating, an electronic device and a storage medium
By calculating the performance index and using the wavelength prediction model to preprocess the data, it is ensured that corrections are made only when the performance of the arrayed waveguide grating does deviate from the standard, solving the problem of unnecessary corrections in the existing technology and improving the accuracy of corrections and equipment life.
Patent Information
- Application Number
- CN202410977814.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The existing technology cannot effectively avoid unnecessary workload and equipment wear when correcting the wavelength of arrayed waveguide gratings, and inaccurate measurement results may lead to incorrect adjustments, affecting equipment performance and service life.
By calculating the performance index, monitoring the performance threshold, obtaining and preprocessing wavelength data, and using the pre-trained wavelength prediction model to predict the wavelength offset, it is ensured that the correction process is triggered only when the performance indeed deviates from the preset standard, reducing unnecessary correction operations, and Improve the reliability of measurement data.
It effectively avoids unnecessary correction operations, improves the wavelength adjustment effect of the arrayed waveguide grating, extends the service life of the equipment, enhances the user experience, and provides guarantee for the stable operation of the optical communication system.
Smart Images

Figure CN118519225B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and more specifically, to a method for correcting the wavelength of an array waveguide grating, an electronic device and a storage medium. Background Art
[0002] Arrayed Waveguide Grating (AWG) is a key optical device widely used in optical communication systems. It can effectively merge or separate multiple optical signals of different wavelengths to achieve multiplexing and demultiplexing of multi-channel optical signals. The core component of the arrayed waveguide grating is an array composed of multiple waveguides and one or more common input and output waveguides. Through the interference effect between waveguides, different wavelengths can generate interference maxima in different output waveguides, thereby achieving wavelength selection. AWG may experience wavelength deviation during actual use, affecting its performance and stability.
[0003] In the existing technology, the method of correcting the wavelength of the array waveguide grating generally includes measuring the wavelength offset and correcting the wavelength according to the measurement results. Specifically, these methods generally involve the following steps: measuring the output wavelength of the AWG by a measuring device, comparing it with the nominal center wavelength, and obtaining the wavelength offset; when the wavelength offset is detected, taking corrective measures immediately, such as adjusting the temperature of the AWG, the position and spacing of the output waveguide channel, etc., to restore its original performance. However, in practical applications, not all wavelength offsets will have a significant impact on the performance of the AWG. Some offsets may be temporarily caused by factors such as changes in ambient temperature, and may then recover on their own. If corrections are made in this case, not only will the performance of the optical array waveguide grating not be improved, but unnecessary workload may be increased and its service life may be reduced. At the same time, the existing wavelength offset measurement method does not fully consider the influence of instantaneous fluctuations and measurement equipment errors. These factors may lead to inaccurate measurement results, which in turn lead to incorrect adjustments. Incorrect adjustments not only fail to solve the problem of wavelength offset, but may lead to poor user experience and even irreversible damage to the AWG. Summary of the invention
[0004] In order to overcome the problem that the prior art cannot control the correction timing, resulting in unnecessary increase in workload and reduced service life, the present invention proposes a method for correcting the wavelength of an array waveguide grating, an electronic device and a storage medium to solve the above problems.
[0005] The present invention provides the following technical solutions:
[0006] A method for correcting the wavelength of an arrayed waveguide grating, comprising:
[0007] Obtaining a number of output waveguide channels in the arrayed waveguide grating as target waveguides, obtaining the nominal center wavelengths of all target waveguides to obtain a nominal wavelength set;
[0008] Prepare a number of monochromatic light sources, each of which has a wavelength corresponding to a nominal central wavelength of a target waveguide;
[0009] Control each monochromatic light source to pass through the array waveguide grating one by one, collect relevant power data corresponding to each monochromatic light source, calculate the performance index according to all the collected relevant power data, preset the performance threshold, and monitor the performance index;
[0010] When the performance index is less than the performance threshold, the relevant wavelength data is measured using a measuring device to obtain a reference wavelength set and a measured wavelength set;
[0011] Calculate the wavelength shift according to the nominal wavelength set, the measured wavelength set and the reference wavelength set;
[0012] A correction scheme is obtained according to the wavelength offset, and the array waveguide grating is corrected according to the correction scheme.
[0013] Preferably, the relevant power data includes initial power, output power and adjacent power, wherein the initial power is the power before the monochromatic light source enters the input waveguide, the output power is the power measured at the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating, and the adjacent power is the average power measured at the output waveguide channel adjacent to the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating;
[0014] The calculation steps of the performance index include:
[0015] Obtain relevant power data of all monochromatic light sources, and extract in sequence all initial power data to form an initial power set, all output powers to form an output power set, and all adjacent powers to form an adjacent power set;
[0016] Calculate the performance index. The calculation formula of the performance index is as follows:
[0017] ,
[0018] In the formula, represents the performance index, Indicates the initial power concentration data, Indicates the adjacent power concentration data, Indicates the output power concentration data, Represents the total number of elements in the initial power set.
[0019] Preferably, the step of acquiring the reference wavelength set and the measured wavelength set includes:
[0020] The wavelengths of all monochromatic light sources are directly measured using a measuring device to obtain a reference central wavelength corresponding to the nominal central wavelength to form a reference wavelength set;
[0021] Obtain the current time and the temperature of the arrayed waveguide grating as recorded information;
[0022] Each monochromatic light source is controlled to pass through the array waveguide grating one by one, and a measuring device is used to measure the output wavelength of the corresponding target waveguide, so that the measured center wavelength corresponding to the nominal center wavelength constitutes a measured wavelength set, and the measured center wavelength is associated with the recorded information.
[0023] Preferably, the step of calculating the wavelength offset according to the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises:
[0024] Preprocessing the nominal wavelength set, the measured wavelength set and the reference wavelength set;
[0025] The preprocessed nominal wavelength set is denoted as set , the measured wavelength set is recorded as set , the reference wavelength set is denoted as set ;
[0026] The corrected wavelength offset is calculated, and the calculation formula of the corrected wavelength offset is as follows:
[0027] ,
[0028] In the formula, Indicates the corrected wavelength offset, Representing a collection No. elements, Representing a collection No. elements, Representing a collection No. elements, Representing a collection The total number of elements.
[0029] Preferably, the preprocessing of the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises:
[0030] Aligning the data in the nominal wavelength set, the measured wavelength set, and the reference wavelength set according to the corresponding relationship with the nominal central wavelength;
[0031] Obtain any measured central wavelength in the measured wavelength set and record it as the wavelength to be tested;
[0032] Determine the output waveguide channel corresponding to the wavelength to be tested, obtain the corresponding output waveguide channel in history, record the most recent normal measured central wavelength as the comparison wavelength, and obtain the record information associated with the comparison wavelength;
[0033] Inputting the comparison wavelength, the recorded information associated with the comparison wavelength and the recorded information associated with the wavelength to be tested into a pre-trained wavelength prediction model to obtain a predicted wavelength;
[0034] Calculate and monitor the ratio of the wavelength to be tested and the predicted wavelength;
[0035] If the ratio of the wavelength to be detected to the predicted wavelength exceeds the preset ratio range, the wavelength to be detected is marked as abnormal; otherwise, the wavelength to be detected is marked as normal;
[0036] All data in the measured wavelength set are marked, all data marked as abnormal in the measured wavelength set are deleted, and the data aligned with the marked abnormal data in the nominal wavelength set and the reference wavelength set are deleted to complete the preprocessing.
[0037] Preferably, the training step of the wavelength prediction model includes:
[0038] Acquire historical data of the arrayed waveguide grating, and acquire a learning data set according to the historical data of the arrayed waveguide grating;
[0039] Use the deep learning framework to build a neural network model and initialize the neural network model structure;
[0040] Set the hyperparameters, optimizer, and loss function of the neural network model;
[0041] Divide the learning data set into a training set and a validation set according to a preset ratio;
[0042] Set the number of training rounds and batch size, and use the data in the training set for each round of training;
[0043] After each round of training, use the data in the validation set to validate the model and obtain the model performance in the current training round;
[0044] When the model performance does not improve within the preset number of consecutive rounds, the training process is stopped and the model with the highest performance is selected as the wavelength prediction model.
[0045] Preferably, the step of acquiring a learning data set based on historical data of the arrayed waveguide grating comprises:
[0046] Acquire multiple measured central wavelengths of any output waveguide channel in history and their associated recorded information to form an original data set;
[0047] In the original data set, two consecutive measured central wavelengths in the time series are selected as a pair of data points, and the measured central wavelength that is closer to the front in the time series is recorded as the preceding wavelength, and the measured central wavelength that is closer to the back in the time series is recorded as the succeeding wavelength;
[0048] For each pair of data points, the record information associated with the preceding wavelength, the subsequent wavelength and its associated record information are used as input data, the subsequent wavelength is used as output data, and the input data and the output data are combined into learning data;
[0049] Obtain several pieces of learning data to form a learning data set.
[0050] Preferably, acquiring a correction scheme according to the wavelength offset and correcting the arrayed waveguide grating according to the correction scheme comprises:
[0051] Obtaining a preset correction scheme library, wherein the correction scheme library stores wavelength offsets and corresponding correction schemes;
[0052] According to the wavelength offset, a corresponding correction scheme is retrieved from a correction scheme library;
[0053] Executing the retrieved correction scheme to correct the wavelength of the arrayed waveguide grating;
[0054] The correction scheme includes adjusting the temperature of the arrayed waveguide grating and adjusting the position and spacing of the output waveguide channels.
[0055] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method for correcting the wavelength of an arrayed waveguide grating is implemented.
[0056] A storage medium stores a computer program, and when the computer program is executed, a method for correcting the wavelength of an arrayed waveguide grating is implemented.
[0057] The present invention provides a method for correcting the wavelength of an arrayed waveguide grating, an electronic device and a storage medium, which have the following beneficial effects:
[0058] By introducing a performance index calculation and monitoring mechanism, the correction process is triggered only when the performance of the arrayed waveguide grating does deviate from the preset standard, thereby effectively avoiding unnecessary correction operations and reducing equipment wear and shortened life due to excessive intervention. In the wavelength measurement process, by introducing the association between the comparison wavelength and the recorded information, the wavelength is predicted using a pre-trained wavelength prediction model, and the ratio of the wavelength to be tested to the predicted wavelength is monitored. The measurement data is marked and pre-processed, and abnormal data is deleted to ensure the reliability of the measurement data; combined with the error of the measurement equipment, a higher accuracy wavelength offset is calculated. This improves the wavelength adjustment effect of the subsequent array waveguide grating, ensures the rapid recovery of equipment performance, enhances the user experience, extends the service life of the equipment, and provides a guarantee for the stable operation of the optical communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A schematic diagram of a module of a method for correcting the wavelength of an arrayed waveguide grating, an electronic device and a storage medium of the present invention;
[0060] Figure 2 is a schematic diagram of an electronic device of the present invention;
[0061] Figure 3 Schematic diagram of the storage medium of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] Example 1, please refer to Figure 1 In this embodiment, a method for correcting the wavelength of an arrayed waveguide grating includes:
[0064] S1, obtaining a number of output waveguide channels in the arrayed waveguide grating and recording them as target waveguides, obtaining the nominal center wavelengths of all target waveguides to obtain a nominal wavelength set;
[0065] In this embodiment, the target waveguide may be selected randomly or at intervals of a certain number. It should be noted that the arrayed waveguide grating, as a key optical component, usually integrates a plurality of precisely designed output waveguide channels. During the production design phase, each output waveguide channel is assigned a specific nominal wavelength, which is obtained through precise calculations and represents the center value of the wavelength range of the optical signal output by the waveguide channel under the optimal working conditions in theory.
[0066] S2. Prepare several monochromatic light sources, each of which has a wavelength corresponding to a nominal central wavelength of a target waveguide;
[0067] In this embodiment, each monochromatic light source may use a tunable laser, and the output wavelength of the laser may be adjusted one by one to the nominal central wavelength of each target waveguide.
[0068] S3, controlling each monochromatic light source to pass through the arrayed waveguide grating one by one, collecting relevant power data corresponding to each monochromatic light source, calculating the performance index according to all the collected relevant power data, presetting the performance threshold, and monitoring the performance index;
[0069] The relevant power data includes initial power, output power and adjacent power, wherein the initial power is the power of the monochromatic light source before entering the input waveguide, the output power is the power measured at the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating, and the adjacent power is the average power measured at the output waveguide channel adjacent to the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating;
[0070] The calculation steps of the performance index include:
[0071] Obtain relevant power data of all monochromatic light sources, and extract in sequence all initial power data to form an initial power set, all output powers to form an output power set, and all adjacent powers to form an adjacent power set;
[0072] Calculate the performance index. The calculation formula of the performance index is as follows:
[0073] ,
[0074] In the formula, represents the performance index, Indicates the initial power concentration data, Indicates the adjacent power concentration data, Indicates the output power concentration data, Represents the total number of elements in the initial power set.
[0075] In this embodiment, a high-precision instrument such as a power meter or a spectrum analyzer is used to accurately collect relevant power data during the array waveguide grating test process. The key observation point is that the difference between the initial power and the output power directly reflects the degree of loss of the optical signal during the transmission process. The larger the difference, the greater the loss experienced by the optical signal. On the other hand, the difference between the initial power and the adjacent power measured by the adjacent waveguide channel can be used as an indicator to evaluate the degree of crosstalk of the optical signal between adjacent channels. The larger the difference, the smaller the optical signal interference, i.e., crosstalk, between adjacent channels. Loss and crosstalk are the core indicators for measuring the performance of array waveguide gratings, and their optimization level directly determines the overall performance of the device. In theory, the smaller the loss and crosstalk, the higher the efficiency of the array waveguide grating in the process of optical signal transmission, and the smaller the mutual influence between adjacent channels, thereby ensuring higher signal quality and system stability. Therefore, a performance index calculation formula is designed, which comprehensively considers the initial power, output power and adjacent power. The performance index value obtained by calculation can intuitively reflect the performance of the array waveguide grating. Among them, the larger the performance index value, the more effectively the arrayed waveguide grating can transmit optical signals and reduce losses and crosstalk. Therefore, the larger the value, the better the performance of the arrayed waveguide grating. At the same time, a performance threshold needs to be set. This threshold can be obtained through a large amount of experimental data to ensure that the arrayed waveguide grating above the performance threshold can stably and reliably propagate optical signals.
[0076] S4. When the performance index is less than the performance threshold, use a measuring device to measure relevant wavelength data to obtain a reference wavelength set and a measured wavelength set, and calculate the wavelength offset according to the nominal wavelength set, the measured wavelength set and the reference wavelength set;
[0077] The steps of obtaining the reference wavelength set and the measured wavelength set include:
[0078] The wavelengths of all monochromatic light sources are directly measured using a measuring device to obtain a reference central wavelength corresponding to the nominal central wavelength to form a reference wavelength set;
[0079] Obtain the current time and the temperature of the arrayed waveguide grating as recorded information;
[0080] Each monochromatic light source is controlled to pass through the array waveguide grating one by one, and a measuring device is used to measure the output wavelength of the corresponding target waveguide, so that the measured center wavelength corresponding to the nominal center wavelength constitutes a measured wavelength set, and the measured center wavelength is associated with the recorded information.
[0081] In this embodiment, when it is detected that the performance index of the arrayed waveguide grating is lower than a preset performance threshold, it indicates that the performance of the current arrayed waveguide grating is poor. Generally, the performance degradation of the arrayed waveguide grating is often related to the wavelength offset. At this time, the current wavelength information is collected and recorded, wherein the collected wavelengths include a set of measured center wavelengths at the output waveguide channel after passing through the arrayed waveguide grating using equipment such as a spectrum analyzer, and a reference center wavelength collected directly, wherein the reference wavelength is used to calibrate the error of the measurement equipment itself.
[0082] The step of calculating the wavelength offset according to the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises:
[0083] Preprocessing the nominal wavelength set, the measured wavelength set and the reference wavelength set;
[0084] The preprocessed nominal wavelength set is denoted as set , the measured wavelength set is recorded as set , the reference wavelength set is denoted as set ;
[0085] The corrected wavelength offset is calculated, and the calculation formula of the corrected wavelength offset is as follows:
[0086] ,
[0087] In the formula, Indicates the corrected wavelength offset, Representing a collection No. elements, Representing a collection No. elements, Representing a collection No. elements, Representing a collection The total number of elements.
[0088] The preprocessing of the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises:
[0089] Aligning the data in the nominal wavelength set, the measured wavelength set, and the reference wavelength set according to the corresponding relationship with the nominal central wavelength;
[0090] Obtain any measured central wavelength in the measured wavelength set and record it as the wavelength to be tested;
[0091] Determine the output waveguide channel corresponding to the wavelength to be tested, obtain the corresponding output waveguide channel in history, record the most recent normal measured central wavelength as the comparison wavelength, and obtain the record information associated with the comparison wavelength;
[0092] Inputting the comparison wavelength, the recorded information associated with the comparison wavelength and the recorded information associated with the wavelength to be tested into a pre-trained wavelength prediction model to obtain a predicted wavelength;
[0093] Calculate and monitor the ratio of the wavelength to be tested and the predicted wavelength;
[0094] If the ratio of the wavelength to be detected to the predicted wavelength exceeds the preset ratio range, the wavelength to be detected is marked as abnormal; otherwise, the wavelength to be detected is marked as normal;
[0095] All data in the measured wavelength set are marked, all data marked as abnormal in the measured wavelength set are deleted, and the data aligned with the marked abnormal data in the nominal wavelength set and the reference wavelength set are deleted to complete the preprocessing.
[0096] In this embodiment, since electromagnetic interference, instantaneous fluctuations and other factors may cause significant deviations between the measured center wavelength and the true value, it is necessary to pre-process the collected measured center wavelength. Since the wavelength shift of the array waveguide grating is mainly affected by temperature and usage time, a prediction model is constructed to estimate the predicted value of the wavelength shift by using the correlation between historical measurement data and temperature and time changes. This step can be based on a machine learning algorithm, aiming to capture and quantify the specific effects of temperature and usage time on wavelength shift.
[0097] Subsequently, the measured central wavelength is compared with the predicted value. If the ratio of the measured value to the predicted value exceeds a certain range, such as between 0.9 and 1.1, it is regarded as an outlier and deleted. This step effectively reduces the impact of noise and interference on the final analysis results.
[0098] After removing the outliers, the remaining data is further accurately calculated. Specifically, the measured center wavelength is subtracted from the nominal center wavelength, and then the error of the device itself, that is, the difference between the reference center wavelength and the nominal center wavelength, is subtracted. This process is intended to measure the error of the device and ensure that the calculated wavelength offset is closer to the actual situation.
[0099] Through the above series of processing steps, a more accurate wavelength offset can be obtained, thereby providing more reliable data support for subsequent adjustment work. This helps to improve the performance stability of the arrayed waveguide grating wavelength and ensure that it can maintain excellent performance.
[0100] The training steps of the wavelength prediction model include:
[0101] Acquire historical data of the arrayed waveguide grating, and acquire a learning data set according to the historical data of the arrayed waveguide grating;
[0102] Use the deep learning framework to build a neural network model and initialize the neural network model structure;
[0103] Set the hyperparameters, optimizer, and loss function of the neural network model;
[0104] Divide the learning data set into a training set and a validation set according to a preset ratio;
[0105] Set the number of training rounds and batch size, and use the data in the training set for each round of training;
[0106] After each round of training, use the data in the validation set to validate the model and obtain the model performance in the current training round;
[0107] When the model performance does not improve within the preset number of consecutive rounds, the training process is stopped and the model with the highest performance is selected as the wavelength prediction model.
[0108] The step of acquiring a learning data set according to historical data of the arrayed waveguide grating comprises:
[0109] Acquire multiple measured central wavelengths of any output waveguide channel in history and their associated recorded information to form an original data set;
[0110] In the original data set, two consecutive measured central wavelengths in the time series are selected as a pair of data points, and the measured central wavelength that is closer to the front in the time series is recorded as the preceding wavelength, and the measured central wavelength that is closer to the back in the time series is recorded as the succeeding wavelength;
[0111] For each pair of data points, the record information associated with the preceding wavelength, the subsequent wavelength and its associated record information are used as input data, the subsequent wavelength is used as output data, and the input data and the output data are combined into learning data;
[0112] Obtain several pieces of learning data to form a learning data set.
[0113] In this embodiment, the wavelength prediction model can be constructed and trained according to actual needs. The following is one of the specific construction and methods: use the TensorFlow framework for model construction and training, select the long short-term memory network (LSTM) as the prediction model; the root design input layer dimension is 5, design 2 LSTM layers, each LSTM layer contains 64 neurons, and each layer of LSTM units is followed by a Dropout layer; the output layer is designed to be 1 neuron. Number of training rounds: set to 100 rounds; batch size: set to 32; learning rate: the initial learning rate is set to 0.001, and the learning rate decay strategy is used. Adam is selected as the optimizer, and the mean square error (MSE) is used as the loss function.
[0114] The learning data set is divided into a training set and a validation set in a ratio of 8:2; in each round of training, the model is trained using the training set data, the prediction value is calculated through forward propagation, and then the model parameters are updated through back propagation; after each round of training, the validation set is used for verification; the model performance on the validation set is monitored, and if the model performance does not improve after 10 consecutive rounds, the training is stopped; the model with the highest model performance is selected from the training process as the wavelength prediction model. It should be noted that the model performance is measured by the loss function, and the smaller the loss function value, the higher the model performance.
[0115] S5. Obtain a correction scheme according to the wavelength offset, and correct the arrayed waveguide grating according to the correction scheme.
[0116] The obtaining of a correction scheme according to the wavelength offset and correcting the arrayed waveguide grating according to the correction scheme comprises:
[0117] Obtaining a preset correction scheme library, wherein the correction scheme library stores wavelength offsets and corresponding correction schemes;
[0118] According to the wavelength offset, a corresponding correction scheme is retrieved from a correction scheme library;
[0119] Executing the retrieved correction scheme to correct the wavelength of the arrayed waveguide grating;
[0120] The correction scheme includes adjusting the temperature of the arrayed waveguide grating and adjusting the position and spacing of the output waveguide channels.
[0121] In this embodiment, the origin of the preset correction solution library can generally be based on a variety of ways and methods, including but not limited to: provided by the manufacturer, the manufacturer of the arrayed waveguide grating (AWG) will provide a set of preset correction solution libraries based on the characteristics and design of its products. These solution libraries may be based on a large amount of test data and product design experience, and contain the best correction strategies corresponding to different wavelength offsets. Experimental acquisition, the correction solution library can also be obtained through experiments. This usually involves testing the AWG in a laboratory environment. By recording and analyzing these test data, researchers can summarize effective correction solutions under different wavelength offsets and build a correction solution library. The experimental acquisition method is flexible and targeted, and correction solutions can be customized according to specific needs.
[0122] Example 2, please refer to Figure 2 As shown, the present application also provides an electronic device 500. The electronic device 500 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are run by one or more processors, a method for correcting the wavelength of an arrayed waveguide grating as described above may be executed.
[0123] like Figure 2 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, ROM 503, RAM 504, a communication port 505 connected to a network, an input / output 506, a hard disk 507, etc. The storage device in the electronic device 500, such as ROM 503 or hard disk 507, may store a method for correcting the wavelength of an arrayed waveguide grating provided in the present application. Furthermore, the electronic device 500 may also include a user interface 508. Of course, Figure 2 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 2 One or more components of an electronic device are shown.
[0124] Example 3, please refer to Figure 3 As shown, a storage medium 250 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the storage medium 250. When the computer-readable instructions are executed by the processor, a method for correcting the wavelength of an arrayed waveguide grating according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium 250 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache). Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0125] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0126] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0127] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0128] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for correcting the wavelength of an arrayed waveguide grating, characterized in that: include: Obtaining a number of output waveguide channels in the arrayed waveguide grating as target waveguides, obtaining the nominal center wavelengths of all target waveguides to obtain a nominal wavelength set; Prepare a number of monochromatic light sources, each of which has a wavelength corresponding to a nominal central wavelength of a target waveguide; Control each monochromatic light source to pass through the array waveguide grating one by one, collect relevant power data corresponding to each monochromatic light source, calculate the performance index according to all the collected relevant power data, preset the performance threshold, and monitor the performance index; When the performance index is less than the performance threshold, the relevant wavelength data is measured using a measuring device to obtain a reference wavelength set and a measured wavelength set; Calculate the wavelength shift according to the nominal wavelength set, the measured wavelength set and the reference wavelength set; Obtaining a correction scheme according to the wavelength offset, and correcting the arrayed waveguide grating according to the correction scheme; The relevant power data includes initial power, output power and adjacent power, wherein the initial power is the power of the monochromatic light source before entering the input waveguide, the output power is the power measured at the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating, and the adjacent power is the average power measured at the output waveguide channel adjacent to the corresponding target waveguide after the monochromatic light source passes through the arrayed waveguide grating; The calculation steps of the performance index include: Obtain relevant power data of all monochromatic light sources, and extract in sequence all initial power data to form an initial power set, all output powers to form an output power set, and all adjacent powers to form an adjacent power set; Calculate the performance index. The calculation formula of the performance index is as follows: , In the formula, represents the performance index, Indicates the initial power concentration data, Indicates the adjacent power concentration data, Indicates the output power concentration data, Represents the total number of elements in the initial power set.
2. A method for correcting the wavelength of an arrayed waveguide grating according to claim 1, characterized in that: The steps of obtaining the reference wavelength set and the measured wavelength set include: The wavelengths of all monochromatic light sources are directly measured using a measuring device to obtain a reference central wavelength corresponding to the nominal central wavelength to form a reference wavelength set; Obtain the current time and the temperature of the arrayed waveguide grating as recorded information; Each monochromatic light source is controlled to pass through the array waveguide grating one by one, and a measuring device is used to measure the output wavelength of the corresponding target waveguide, so that the measured center wavelength corresponding to the nominal center wavelength constitutes a measured wavelength set, and the measured center wavelength is associated with the recorded information.
3. A method for correcting the wavelength of an arrayed waveguide grating according to claim 2, characterized in that: The step of calculating the wavelength offset according to the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises: Preprocessing the nominal wavelength set, the measured wavelength set and the reference wavelength set; The preprocessed nominal wavelength set is denoted as set , the measured wavelength set is recorded as set , the reference wavelength set is denoted as set ; The corrected wavelength offset is calculated, and the calculation formula of the corrected wavelength offset is as follows: , In the formula, Indicates the corrected wavelength offset, Representing a collection No. elements, Representing a collection No. elements, Representing a collection No. elements, Representing a collection The total number of elements.
4. A method for correcting the wavelength of an arrayed waveguide grating according to claim 3, characterized in that: The preprocessing of the nominal wavelength set, the measured wavelength set and the reference wavelength set comprises: Aligning the data in the nominal wavelength set, the measured wavelength set, and the reference wavelength set according to the corresponding relationship with the nominal central wavelength; Obtain any measured central wavelength in the measured wavelength set and record it as the wavelength to be tested; Determine the output waveguide channel corresponding to the wavelength to be tested, obtain the corresponding output waveguide channel in history, record the most recent normal measured central wavelength as the comparison wavelength, and obtain the record information associated with the comparison wavelength; Inputting the comparison wavelength, the recorded information associated with the comparison wavelength and the recorded information associated with the wavelength to be tested into a pre-trained wavelength prediction model to obtain a predicted wavelength; Calculate and monitor the ratio of the wavelength to be tested and the predicted wavelength; If the ratio of the wavelength to be detected to the predicted wavelength exceeds the preset ratio range, the wavelength to be detected is marked as abnormal; otherwise, the wavelength to be detected is marked as normal; All data in the measured wavelength set are marked, all data marked as abnormal in the measured wavelength set are deleted, and the data aligned with the marked abnormal data in the nominal wavelength set and the reference wavelength set are deleted to complete the preprocessing.
5. A method for correcting the wavelength of an arrayed waveguide grating according to claim 4, characterized in that: The training steps of the wavelength prediction model include: Acquire historical data of the arrayed waveguide grating, and acquire a learning data set according to the historical data of the arrayed waveguide grating; Use the deep learning framework to build a neural network model and initialize the neural network model structure; Set the hyperparameters, optimizer, and loss function of the neural network model; Divide the learning data set into a training set and a validation set according to a preset ratio; Set the number of training rounds and batch size, and use the data in the training set for each round of training; After each round of training, use the data in the validation set to validate the model and obtain the model performance in the current training round; When the model performance does not improve within the preset number of consecutive rounds, the training process is stopped and the model with the highest performance is selected as the wavelength prediction model.
6. A method for correcting the wavelength of an arrayed waveguide grating according to claim 5, characterized in that: The step of acquiring a learning data set according to historical data of the arrayed waveguide grating comprises: Acquire multiple measured central wavelengths of any output waveguide channel in history and their associated recorded information to form an original data set; In the original data set, two consecutive measured central wavelengths in the time series are selected as a pair of data points, and the measured central wavelength that is closer to the front in the time series is recorded as the preceding wavelength, and the measured central wavelength that is closer to the back in the time series is recorded as the succeeding wavelength; For each pair of data points, the record information associated with the preceding wavelength, the subsequent wavelength and its associated record information are used as input data, the subsequent wavelength is used as output data, and the input data and the output data are combined into learning data; Obtain several pieces of learning data to form a learning data set.
7. A method for correcting the wavelength of an arrayed waveguide grating according to claim 6, characterized in that: The obtaining of a correction scheme according to the wavelength offset and correcting the arrayed waveguide grating according to the correction scheme comprises: Obtaining a preset correction scheme library, wherein the correction scheme library stores wavelength offsets and corresponding correction schemes; According to the wavelength offset, a corresponding correction scheme is retrieved from a correction scheme library; Executing the retrieved correction scheme to correct the wavelength of the arrayed waveguide grating; The correction scheme includes adjusting the temperature of the arrayed waveguide grating and adjusting the position and spacing of the output waveguide channels.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for correcting the wavelength of an arrayed waveguide grating according to any one of claims 1 to 7 is implemented.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed, the method for correcting the wavelength of an arrayed waveguide grating according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for correcting array waveguide grating center wavelength
CN110333573A
Array waveguide grating and calibration system and calibration method thereof
CN113093329A
Variable temperature demodulation system and method based on arrayed waveguide grating
CN117760472A
Array waveguide type diffraction grating and light transmitting centre wavelength correcting method
CN1392961A
Wavelength correction method and apparatus, wavelength check method and apparatus, arrayed waveguide diffration grating, and interleaver
US20020168146A1
