A fiber grating sensor demodulation system based on dynamic peak-finding algorithm
By adopting dynamic peak search algorithm, sliding average filtering and weight calculation technology in the fiber grating sensor demodulation system, the problems of peak recognition accuracy and calculation complexity in the traditional demodulation method are solved, and high-precision and fast-responsive fiber grating sensor demodulation are achieved.
Patent Information
- Application Number
- CN202411755005.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2044-12-03
AI Technical Summary
Traditional peak-seeking algorithms are difficult to accurately identify spectral peaks during the demodulation of fiber grating sensors, resulting in limited measurement accuracy and reliability, and high computational complexity and processing time, limiting their applications in dynamic monitoring and high-frequency signal acquisition.
A fiber grating sensor demodulation system based on dynamic peak search algorithm is adopted to reduce noise and distortion by introducing sliding average filtering technology, select multiple peak candidate points, and accurately identify the peak position by setting the laser signal threshold and minimum peak number. The system also optimizes the processing flow of peak candidate points, adopts weight calculation and weighted average peak position determination technology, significantly shortening the understanding and adjustment time.
It improves the demodulation accuracy and dynamic response capabilities of fiber grating sensors, is suitable for rapidly changing monitoring environments, reduces the hardware requirements and costs of the system, and enhances the reliability and ease of use of the system.
Smart Images

Figure CN119223883B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of laser signal processing, and in particular to a fiber grating sensor demodulation system based on a dynamic peak-finding algorithm. Background Art
[0002] With the continuous development of science and technology, fiber Bragg grating sensors have been widely used in many fields such as petrochemical industry, material structure, and environmental testing due to their significant advantages such as anti-electromagnetic interference, corrosion resistance, light weight and flexibility. In a complete fiber Bragg grating sensor system, signal demodulation is a key technical link, mainly to accurately identify the peak in the reflection spectrum, so as to determine the reflection wavelength of the grating. Therefore, accurately detecting the peak of the fiber Bragg grating reflection spectrum is the key to achieve high-precision sensing. In demodulation applications with high-precision requirements, the peak-finding algorithm requires higher computational complexity and processing time, which conflicts with the need for fast response, which limits the application of demodulators in dynamic monitoring or high-frequency signal acquisition. Because the spectral signal may be noisy, distorted or overlapped, traditional peak-finding algorithms are difficult to accurately identify the spectral peak, which affects the accuracy and reliability of the measurement.
[0003] Therefore, how to accurately find the peak of the laser signal during the demodulation process of the fiber grating sensor has become a technical problem that technical personnel in this field need to solve urgently. Summary of the invention
[0004] Based on the above problems, the present application provides a fiber Bragg grating sensor demodulation system based on a dynamic peak-finding algorithm, which accurately searches for the peak of the laser signal during the fiber Bragg grating sensor demodulation process.
[0005] The present application provides a fiber grating sensor demodulation system based on a dynamic peak-finding algorithm, the system comprising:
[0006] Tunable semiconductor lasers, couplers, circulators, grating sensors, gas cells, multi-channel photodiodes, processors;
[0007] The tunable semiconductor laser is used to emit a laser signal, the tunable semiconductor laser is connected to the coupler, and the tunable semiconductor laser is connected to the processor;
[0008] The coupler is used to divide one laser signal into multiple laser signals, the coupler is connected to the circulator, and the circulator is used to transmit the laser signal output by the coupler to the grating sensor;
[0009] The coupler is connected to the air chamber, and the air chamber is used to provide a scale for the fiber grating sensor demodulation system;
[0010] The air chamber is connected to the multi-channel photodiode, the multi-channel photodiode is used to collect the laser signal output by the air chamber, and the multi-channel photodiode is used to transmit the laser signal output by the air chamber to a processor.
[0011] In a possible implementation, the system further includes:
[0012] Analog-to-digital conversion module and digital-to-analog conversion module;
[0013] The analog-to-digital conversion module is located between the multi-channel photodiode and the processor, and the digital-to-analog conversion module is located between the tunable semiconductor laser and the processor.
[0014] The present application also provides a fiber Bragg grating sensor demodulation method based on a dynamic peak-finding algorithm, which is applied to the above system, and the method includes:
[0015] receiving a laser signal to be demodulated sent by the multi-channel photodiode, wherein the laser signal to be demodulated is output through the gas chamber;
[0016] Setting a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber;
[0017] Performing sliding average filtering on the laser signal to be demodulated to obtain a filtered laser signal;
[0018] Selecting multiple peak candidate points in the filtered laser signal;
[0019] Determine whether there is a peak candidate point greater than the laser signal threshold among the plurality of peak candidate points;
[0020] If there is a peak candidate point greater than the laser signal threshold among the plurality of peak candidate points, the peak candidate points greater than the laser signal threshold are taken as the first set;
[0021] Determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight;
[0022] Accumulating a plurality of the first intermediate values to obtain a peak position of the laser signal to be demodulated;
[0023] If there is no peak candidate point greater than the laser signal threshold among the plurality of peak candidate points, determining whether the number of the peak candidate points is greater than the minimum number of peaks;
[0024] If the number of the peak candidate points is greater than the minimum number of peaks, calculating a second weight of each peak candidate point;
[0025] Determine a weighted average peak position based on the plurality of peak candidate points and a second weight corresponding to each peak candidate point, and use the weighted average peak position as the peak position of the laser signal to be demodulated;
[0026] The fiber Bragg grating sensor is demodulated based on the peak position.
[0027] In a possible implementation, the sliding average filtering is performed using the following formula:
[0028] ;
[0029] in, represents the value corresponding to the laser signal after filtering, N represents the number of sampling points, i represents the i-th sampling point among N sampling points, Indicates the sampling value of the sampling point at the current moment.
[0030] In a possible implementation manner, the second weight is calculated by the following formula:
[0031] );
[0032] in, represents the second weight of the i-th peak candidate point, c represents the value of the filtered laser signal at the current moment, Represents the standard deviation of the Gaussian distribution.
[0033] In a possible implementation, the weighted average peak position is determined by the following formula:
[0034] ;
[0035] in, Indicates that the laser signal after filtering is The value of the moment, represents the second weight of the i-th peak candidate point, represents the weighted average peak position.
[0036] In a possible implementation, the method further includes:
[0037] The processor controls the tunable semiconductor laser to output a standard laser signal;
[0038] After the standard laser signal is input into the air chamber, the air chamber outputs the laser signal to be calibrated;
[0039] The processor obtains a wavelength reference of the laser signal to be demodulated according to a difference between the laser signal to be calibrated and the standard laser signal;
[0040] The processor controls the tunable semiconductor laser to output the laser signal to be demodulated based on a wavelength reference of the laser signal to be demodulated.
[0041] The present application also provides a fiber grating sensor demodulation device based on a dynamic peak-finding algorithm, the device comprising:
[0042] A receiving module, used for receiving the laser signal to be demodulated sent by the multi-channel photodiode, wherein the laser signal to be demodulated is output through the gas chamber;
[0043] A first determination module, used for setting a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber;
[0044] A filtering module, used for performing a sliding average filter on the laser signal to be demodulated to obtain a filtered laser signal;
[0045] A first selection module is used to select multiple peak candidate points in the filtered laser signal;
[0046] A first judgment module is used to judge whether there is a peak candidate point greater than the laser signal threshold among the multiple peak candidate points;
[0047] A second selection module is used for taking the peak candidate points greater than the laser signal threshold as the first set if there are peak candidate points greater than the laser signal threshold among the plurality of peak candidate points;
[0048] A second determination module, configured to determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight;
[0049] An accumulation module, used for accumulating a plurality of the first intermediate values to obtain a peak position of the laser signal to be demodulated;
[0050] A second judgment module is used to judge whether the number of the peak candidate points is greater than the minimum peak number if there is no peak candidate point greater than the laser signal threshold among the multiple peak candidate points;
[0051] a second weight determination module, configured to calculate a second weight of each peak candidate point if the number of the peak candidate points is greater than the minimum number of peak points;
[0052] A third determination module is used to determine a weighted average peak position based on the plurality of peak candidate points and a second weight corresponding to each peak candidate point, and use the weighted average peak position as the peak position of the laser signal to be demodulated;
[0053] A demodulation module is used to demodulate the fiber grating sensor based on the peak position.
[0054] The present application also provides an electronic device, the electronic device comprising a processor and a memory:
[0055] The memory is used to store a computer program and transmit the computer program to the processor;
[0056] The processor is used to execute the steps of the above-mentioned fiber grating sensor demodulation method based on the dynamic peak-finding algorithm according to the instructions in the computer program.
[0057] The present application also provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, and when the computer program is executed by an electronic device, the steps of the fiber grating sensor demodulation method based on the dynamic peak-finding algorithm are implemented.
[0058] Compared with the prior art, this application has the following beneficial effects:
[0059] The method provided by the present application effectively reduces the noise and distortion in the spectral signal and improves the accuracy of peak detection by introducing the sliding average filtering technology. Multiple peak candidate points are selected in the filtered signal, and the effective peak position is accurately identified by setting the laser signal threshold and the minimum number of peaks. This method can accurately judge the peak in a complex spectral environment and improve the demodulation accuracy of the fiber grating sensor. Traditional high-precision demodulation schemes usually require complex calculations and long-term processing, which limits its application in dynamic monitoring and high-frequency signal acquisition. The present application significantly shortens the demodulation time and enhances the dynamic response capability of the system by optimizing the processing flow of the peak candidate points and introducing weight calculation and weighted average peak position determination technology, and is suitable for rapidly changing monitoring environments. The present application reduces the reliance on complex hardware equipment and expensive optical components by using sliding average filtering and weighted average technology. Compared with traditional solutions, the present application does not require a large amount of data processing and calculation, which reduces the hardware requirements and costs of the system. This simplified demodulation method not only reduces the manufacturing and maintenance costs of the system, but also improves the reliability and ease of use of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0061] Figure 1 A schematic diagram of the structure of a fiber grating sensor demodulation system based on a dynamic peak-finding algorithm provided in an embodiment of the present application;
[0062] Figure 2 A flow chart of a fiber grating sensor demodulation method based on a dynamic peak-finding algorithm provided in an embodiment of the present application;
[0063] Figure 3 A schematic structural diagram of a fiber grating sensor demodulation device based on a dynamic peak-finding algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] As described above, in a complete fiber Bragg grating sensor system, signal demodulation is a key technical link, mainly to accurately identify the peak in the reflection spectrum, so as to determine the reflection wavelength of the grating. Therefore, accurately detecting the peak of the fiber Bragg grating reflection spectrum is the key to achieve high-precision sensing. In demodulation applications with high-precision requirements, the peak-finding algorithm requires higher computational complexity and processing time, which conflicts with the need for fast response, which limits the application of demodulators in dynamic monitoring or high-frequency signal acquisition. Because the spectral signal may be noisy, distorted or overlapped, traditional peak-finding algorithms have difficulty in accurately identifying the spectral peak, which affects the accuracy and reliability of the measurement.
[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] It is understandable that the method provided in the present application can be applied to a processing device, which is a processing device that can perform dynamic peak search, such as a terminal device, server or processor that can perform dynamic peak search. The method provided in the present application can be executed independently by a terminal device or a server, or it can be applied to a network scenario where a terminal device and a server communicate, and is executed by the cooperation of a terminal device and a server. Among them, the terminal device can be a computer, a mobile phone and other devices. The server can be understood as an application server or a Web server. In actual deployment, the server can be a stand-alone server or a cluster server.
[0067] Figure 1 A schematic diagram of the structure of a fiber Bragg grating sensor demodulation system based on a dynamic peak-finding algorithm provided in an embodiment of the present application, wherein the fiber Bragg grating sensor demodulation system based on a dynamic peak-finding algorithm comprises the following modules:
[0068] Tunable semiconductor laser, coupler, circulator, grating sensor, gas chamber, multi-channel photodiode (PD1, PD2...), processor;
[0069] The tunable semiconductor laser is used to emit a laser signal, the tunable semiconductor laser is connected to the coupler, and the tunable semiconductor laser is connected to the processor;
[0070] The coupler is used to divide one laser signal into multiple laser signals, the coupler is connected to the circulator, and the circulator is used to transmit the laser signal output by the coupler to the grating sensor;
[0071] The coupler is connected to the air chamber, and the air chamber is used to provide a scale for the fiber grating sensor demodulation system;
[0072] The air chamber is connected to the multi-channel photodiode, the multi-channel photodiode is used to collect the laser signal output by the air chamber, and the multi-channel photodiode is used to transmit the laser signal output by the air chamber to the processor.
[0073] In a possible implementation, the fiber Bragg grating sensor demodulation system based on the dynamic peak-finding algorithm further includes an analog-to-digital conversion module and a digital-to-analog conversion module. The analog-to-digital conversion module is located between the multi-channel photodiode and the processor, and the digital-to-analog conversion module is located between the tunable semiconductor laser and the processor.
[0074] The processor controls the output wavelength of the tunable semiconductor laser by adjusting the three-phase current through a high-precision DAC to provide a stable light source for the fiber grating sensor. The high-precision ADC receives the optical signal reflected by the fiber grating sensor. The signal is processed in the early stage and then reaches the processor, where it is dynamically searched for peaks. In the process of dynamic peak search, it is first determined whether it is a gas chamber channel, and then the input signal is processed by moving average filtering to reduce noise interference and smooth the signal. The window size of the moving average filter can be adjusted according to the characteristics of the signal. Local maximum points are detected in the filtered signal, which may be candidate points for peaks. The candidate peak points are weighted averaged, and the areas with larger signal change rates are given greater weights to improve the accuracy of peak positioning.
[0075] In a possible implementation, the tunable semiconductor laser of the fiber Bragg grating sensor demodulation system based on the dynamic peak-finding algorithm can be automatically temperature-controlled by an automatic temperature control circuit, which can be a strain gauge circuit, for example. The error of the output signal can be reduced by the automatic temperature control circuit.
[0076] The gas filled in the air chamber is determined according to actual needs. In a possible implementation, the gas filled in the air chamber may be HCN.
[0077] Figure 2A flowchart of a fiber Bragg grating sensor demodulation method based on a dynamic peak-finding algorithm provided in an embodiment of the present application is provided. The fiber Bragg grating sensor demodulation method based on a dynamic peak-finding algorithm is applied to the fiber Bragg grating sensor demodulation system based on a dynamic peak-finding algorithm. The method comprises the following steps:
[0078] S201: receiving a laser signal to be demodulated sent by a multi-channel photodiode.
[0079] The processor receives the laser signal to be demodulated sent by the multi-channel photodiode, and the laser signal to be demodulated is output through the gas chamber.
[0080] It is understandable that in the fiber Bragg grating sensor demodulation system based on the dynamic peak-finding algorithm, errors will inevitably occur before the laser light emitted by the tunable semiconductor laser is processed by the processor. Therefore, the laser signal can be calibrated by the air chamber in the fiber Bragg grating sensor demodulation system based on the dynamic peak-finding algorithm.
[0081] In a possible implementation, the processor controls the tunable semiconductor laser to output a standard laser signal. After the standard laser signal is input into the gas chamber, the gas chamber outputs the laser signal to be calibrated. The processor obtains a wavelength reference of the laser signal to be demodulated based on the difference between the laser signal to be calibrated and the standard laser signal. The processor controls the tunable semiconductor laser to output the laser signal to be demodulated based on the wavelength reference of the laser signal to be demodulated.
[0082] S202: Setting a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber.
[0083] The processor sets the laser signal threshold and the minimum number of peaks corresponding to the air chamber according to the parameters of the air chamber. In different application scenarios, the air chamber can be filled with different gases, such as HCN gas. The laser signal threshold and the minimum number of peaks are also set according to the actual application situation. In one possible implementation, for example, the wavelength of the laser signal to be demodulated is determined. At this time, multiple tests can be performed based on the wavelength of the laser signal to be demodulated and the parameters of the air chamber to determine the most appropriate laser signal threshold and minimum number of peaks through experiments.
[0084] S203: Perform sliding average filtering on the laser signal to be demodulated to obtain a filtered laser signal.
[0085] The processor performs sliding average filtering on the laser signal to be demodulated to obtain a filtered laser signal.
[0086] In one possible implementation, the sliding average filter can be performed using the following formula:
[0087] ;
[0088] in, represents the value corresponding to the laser signal after filtering, N represents the number of sampling points, i represents the i-th sampling point among N sampling points, Indicates the sampling value of the sampling point at the current moment.
[0089] S204: Select multiple peak candidate points in the filtered laser signal.
[0090] The processor selects a plurality of peak candidate points in the filtered laser signal.
[0091] In a possible implementation, the processor may select multiple peak candidate points in the filtered laser signal based on the local maximum. Considering the actual application scenario, there may be a sudden bump in the spectrum of the filtered laser signal. For example, to avoid the sudden bump for peak finding, the processor may select multiple peak candidate points in the filtered laser signal based on the local maximum.
[0092] S205: Determine whether there is a peak candidate point with a value greater than the laser signal threshold among the multiple peak candidate points.
[0093] The processor determines whether there is a peak candidate point greater than the laser signal threshold among the multiple peak candidate points, and if so, executes S206, and if not, executes S209.
[0094] S206: If there is a peak candidate point whose value is greater than the laser signal threshold value among the multiple peak candidate points, the peak candidate points whose value is greater than the laser signal threshold value are taken as the first set.
[0095] The processing device takes the peak candidate points whose signal value is greater than the laser signal threshold as a first set.
[0096] S207: Determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight.
[0097] The processor determines a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight. In a possible implementation, the processor may determine the first weight based on the following formula:
[0098] );
[0099] in, represents the first weight of the i-th peak candidate point, c represents the value of the laser signal after filtering at the current moment, Represents the standard deviation of the Gaussian distribution.
[0100] S208: Accumulate a plurality of first intermediate values to obtain a peak position of the laser signal to be demodulated.
[0101] The processor accumulates a plurality of first intermediate values to obtain a peak position of the laser signal to be demodulated.
[0102] S209: If there is no peak candidate point with a value greater than the laser signal threshold among the multiple peak candidate points, it is determined whether the number of peak candidate points is greater than the minimum number of peaks.
[0103] If there is no peak candidate point greater than the laser signal threshold value among the multiple peak candidate points, the processor determines whether the number of peak candidate points is greater than the minimum peak number. If so, S210 is executed; if not, the laser signal threshold value and the minimum peak number corresponding to the gas chamber are re-determined.
[0104] S210: If the number of peak candidate points is greater than the minimum number of peak points, calculate a second weight of each peak candidate point.
[0105] The processor calculates a second weight for each peak candidate point. In a possible implementation, the second weight may be the same as the first weight, and the processor may determine the second weight based on the following formula:
[0106] );
[0107] in, represents the second weight of the i-th peak candidate point, c represents the value of the laser signal after filtering at the current moment, Represents the standard deviation of the Gaussian distribution.
[0108] S211: determining a weighted average peak position based on multiple peak candidate points and a second weight corresponding to each peak candidate point, and using the weighted average peak position as the peak position of the laser signal to be demodulated.
[0109] The processor determines a weighted average peak position based on multiple peak candidate points and a second weight corresponding to each peak candidate point, and uses the weighted average peak position as the peak position of the laser signal to be demodulated. In a possible implementation, the processor can determine the weighted average peak position by the following formula:
[0110] ;
[0111] in, Indicates that the filtered laser signal is The value of the moment, represents the second weight of the i-th peak candidate point, represents the weighted average peak position.
[0112] x(n+i) is the laser signal after filtering The value at the moment; w(i) is the second weight calculated by the Gaussian distribution function. The values of Multiply by the corresponding weight w(i), and then add up these weighted values. This summation process takes into account the value of the signal at different points in time, and each value is weighted according to its importance. The result of the weighted sum is divided by the sum of the weights This step is to ensure that the filtering process does not change the total energy or amplitude of the signal even if the value of the weight w(i) changes greatly. In summary, the output signal By The signal is obtained by weighted averaging, which can reduce the impact of noise, highlight the important features of the signal, and keep the overall amplitude of the signal unchanged.
[0113] S212: Demodulate the fiber Bragg grating sensor based on the peak position.
[0114] The processor demodulates the fiber Bragg grating sensor based on the peak position.
[0115] The method provided by the present application effectively reduces the noise and distortion in the spectral signal and improves the accuracy of peak detection by introducing the sliding average filtering technology. Multiple peak candidate points are selected in the filtered signal, and the effective peak position is accurately identified by setting the laser signal threshold and the minimum number of peaks. This method can accurately judge the peak in a complex spectral environment and improve the demodulation accuracy of the fiber grating sensor. Traditional high-precision demodulation schemes usually require complex calculations and long-term processing, which limits its application in dynamic monitoring and high-frequency signal acquisition. The present application significantly shortens the demodulation time and enhances the dynamic response capability of the system by optimizing the processing flow of the peak candidate points and introducing weight calculation and weighted average peak position determination technology, and is suitable for rapidly changing monitoring environments. The present application reduces the reliance on complex hardware equipment and expensive optical components by using sliding average filtering and weighted average technology. Compared with traditional solutions, the present application does not require a large amount of data processing and calculation, which reduces the hardware requirements and costs of the system. This simplified demodulation method not only reduces the manufacturing and maintenance costs of the system, but also improves the reliability and ease of use of the system.
[0116] The present application also provides a Figure 3 The structure diagram of the fiber Bragg grating sensor demodulation device based on the dynamic peak-finding algorithm is shown in FIG. The fiber Bragg grating sensor demodulation device based on the dynamic peak-finding algorithm 300 comprises:
[0117] A receiving module 301 is used to receive the laser signal to be demodulated sent by the multi-channel photodiode, where the laser signal to be demodulated is output through the gas chamber;
[0118] A first determination module 302, configured to set a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber;
[0119] A filtering module 303 is used to perform a sliding average filter on the laser signal to be demodulated to obtain a filtered laser signal;
[0120] A first selection module 304 is used to select a plurality of peak candidate points in the filtered laser signal;
[0121] A first judgment module 305 is used to judge whether there is a peak candidate point greater than the laser signal threshold among the multiple peak candidate points;
[0122] A second selection module 306 is configured to select the peak candidate points greater than the laser signal threshold as a first set if there are peak candidate points greater than the laser signal threshold among the plurality of peak candidate points;
[0123] A second determination module 307, configured to determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight;
[0124] An accumulation module 308 is used to accumulate a plurality of the first intermediate values to obtain a peak position of the laser signal to be demodulated;
[0125] A second judgment module 309 is configured to judge whether the number of the peak candidate points is greater than the minimum number of peaks if there is no peak candidate point greater than the laser signal threshold among the plurality of peak candidate points;
[0126] A second weight determination module 310, configured to calculate a second weight of each peak candidate point if the number of the peak candidate points is greater than the minimum number of peak points;
[0127] A third determination module 311 is used to determine a weighted average peak position based on the plurality of peak candidate points and a second weight corresponding to each peak candidate point, and use the weighted average peak position as the peak position of the laser signal to be demodulated;
[0128] The demodulation module 312 is used to demodulate the fiber Bragg grating sensor based on the peak position.
[0129] The device provided by the present application effectively reduces the noise and distortion in the spectral signal and improves the accuracy of peak detection by introducing the sliding average filtering technology. Multiple peak candidate points are selected in the filtered signal, and the effective peak position is accurately identified by setting the laser signal threshold and the minimum number of peaks. This method can accurately judge the peak in a complex spectral environment and improve the demodulation accuracy of the fiber grating sensor. Traditional high-precision demodulation schemes usually require complex calculations and long-term processing, which limits its application in dynamic monitoring and high-frequency signal acquisition. The present application significantly shortens the demodulation time and enhances the dynamic response capability of the system by optimizing the processing flow of the peak candidate points and introducing weight calculation and weighted average peak position determination technology, and is suitable for rapidly changing monitoring environments. The present application reduces the dependence on complex hardware equipment and expensive optical components by using sliding average filtering and weighted average technology. Compared with traditional solutions, the present application does not require a large amount of data processing and calculation, which reduces the hardware requirements and costs of the system. This simplified demodulation method not only reduces the manufacturing and maintenance costs of the system, but also improves the reliability and ease of use of the system.
[0130] An embodiment of the present application also provides a fiber Bragg grating sensor demodulation device based on a dynamic peak-finding algorithm, wherein the device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device performs the steps of the fiber Bragg grating sensor demodulation method based on a dynamic peak-finding algorithm described in any embodiment of the present application.
[0131] In practical applications, the computer-readable storage medium may be any combination of one or more computer-readable media, which may be a computer-readable signal medium or a computer-readable storage medium.
[0132] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0133] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0134] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0135] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0136] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A fiber Bragg grating sensor demodulation method based on a dynamic peak-finding algorithm, applied to a fiber Bragg grating sensor demodulation system based on a dynamic peak-finding algorithm, characterized in that: The system comprises: Tunable semiconductor lasers, couplers, circulators, grating sensors, gas cells, multi-channel photodiodes, processors; The tunable semiconductor laser is used to emit a laser signal, the tunable semiconductor laser is connected to the coupler, and the tunable semiconductor laser is connected to the processor; The coupler is used to divide one laser signal into multiple laser signals, the coupler is connected to the circulator, and the circulator is used to transmit the laser signal output by the coupler to the grating sensor; The coupler is connected to the air chamber, and the air chamber is used to provide a scale for the fiber grating sensor demodulation system; The air chamber is connected to the multi-channel photodiode, the multi-channel photodiode is used to collect the laser signal output by the air chamber, and the multi-channel photodiode is used to transmit the laser signal output by the air chamber to a processor; The method comprises: receiving a laser signal to be demodulated sent by the multi-channel photodiode, wherein the laser signal to be demodulated is output through the gas chamber; Setting a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber; Performing sliding average filtering on the laser signal to be demodulated to obtain a filtered laser signal; Selecting multiple peak candidate points in the filtered laser signal; Determine whether there is a peak candidate point greater than the laser signal threshold among the plurality of peak candidate points; If there is a peak candidate point greater than the laser signal threshold among the plurality of peak candidate points, the peak candidate points greater than the laser signal threshold are taken as the first set; Determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight; Accumulating a plurality of the first intermediate values to obtain a peak position of the laser signal to be demodulated; If there is no peak candidate point greater than the laser signal threshold among the plurality of peak candidate points, determining whether the number of the peak candidate points is greater than the minimum number of peaks; If the number of the peak candidate points is greater than the minimum number of peaks, calculating a second weight of each peak candidate point; Determine a weighted average peak position based on the plurality of peak candidate points and a second weight corresponding to each peak candidate point, and use the weighted average peak position as the peak position of the laser signal to be demodulated; The fiber Bragg grating sensor is demodulated based on the peak position.
2. The method according to claim 1, characterized in that The system further comprises: Analog-to-digital conversion module and digital-to-analog conversion module; The analog-to-digital conversion module is located between the multi-channel photodiode and the processor, and the digital-to-analog conversion module is located between the tunable semiconductor laser and the processor.
3. The method according to claim 1, characterized in that: The sliding average filtering is performed by the following formula: ; in, represents the value corresponding to the laser signal after filtering, N represents the number of sampling points, i represents the i-th sampling point among N sampling points, Indicates the sampling value of the sampling point at the current moment.
4. The method according to claim 1, characterized in that: The second weight is calculated by the following formula: ); in, represents the second weight of the i-th peak candidate point, c represents the value of the filtered laser signal at the current moment, Represents the standard deviation of the Gaussian distribution.
5. The method according to claim 4, characterized in that The weighted average peak position is determined by the following formula: ; in, Indicates that the laser signal after filtering is The value of the moment, represents the second weight of the i-th peak candidate point, represents the weighted average peak position.
6. The method according to claim 1, characterized in that The method further comprises: The processor controls the tunable semiconductor laser to output a standard laser signal; After the standard laser signal is input into the air chamber, the air chamber outputs the laser signal to be calibrated; The processor obtains a wavelength reference of the laser signal to be demodulated according to a difference between the laser signal to be calibrated and the standard laser signal; The processor controls the tunable semiconductor laser to output the laser signal to be demodulated based on a wavelength reference of the laser signal to be demodulated.
7. A fiber Bragg grating sensor demodulation device based on a dynamic peak-finding algorithm, applied to the method of claim 1, characterized in that: include: A receiving module, used for receiving the laser signal to be demodulated sent by the multi-channel photodiode, wherein the laser signal to be demodulated is output through the gas chamber; A first determination module, used for setting a laser signal threshold and a minimum peak number corresponding to the air chamber according to the parameters of the air chamber; A filtering module, used for performing a sliding average filter on the laser signal to be demodulated to obtain a filtered laser signal; A first selection module is used to select multiple peak candidate points in the filtered laser signal; A first judgment module is used to judge whether there is a peak candidate point greater than the laser signal threshold among the multiple peak candidate points; A second selection module is used for taking the peak candidate points greater than the laser signal threshold as the first set if there are peak candidate points greater than the laser signal threshold among the plurality of peak candidate points; A second determination module, configured to determine a plurality of first intermediate values based on each peak candidate point in the first set and the corresponding first weight; An accumulation module, used for accumulating a plurality of the first intermediate values to obtain a peak position of the laser signal to be demodulated; A second judgment module is used to judge whether the number of the peak candidate points is greater than the minimum peak number if there is no peak candidate point greater than the laser signal threshold among the multiple peak candidate points; a second weight determination module, configured to calculate a second weight of each peak candidate point if the number of the peak candidate points is greater than the minimum number of peak points; A third determination module is used to determine a weighted average peak position based on the plurality of peak candidate points and a second weight corresponding to each peak candidate point, and use the weighted average peak position as the peak position of the laser signal to be demodulated; A demodulation module is used to demodulate the fiber grating sensor based on the peak position.
8. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store the computer program; The processor is used to execute the computer program to implement the fiber grating sensor demodulation method based on the dynamic peak-finding algorithm as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the fiber grating sensor demodulation method based on a dynamic peak-finding algorithm as claimed in any one of claims 1 to 6 is implemented.