Optical signal correction method, device, equipment, electronic device and storage medium

CN122192547APending Publication Date: 2026-06-12ZHEJIANG DAHUA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Filing Date
2026-03-30
Publication Date
2026-06-12

Smart Images

  • Figure CN122192547A_ABST
    Figure CN122192547A_ABST
Patent Text Reader

Abstract

The application relates to an optical signal correction method, device, equipment, electronic device and storage medium, wherein the optical signal correction method comprises the following steps: acquiring an electric signal of Stokes light and an electric signal of anti-Stokes light to be corrected; after the two electric signals are respectively subjected to differential processing, the differential results of the two electric signals are used to determine a plurality of abnormal areas of the two signals respectively; the two electric signals are segmented according to the plurality of abnormal areas of the two signals respectively; the resampling interval of each segment of the electric signal of the anti-Stokes light to be corrected after segmentation is calculated according to each abnormal area of the electric signal of the anti-Stokes light to be corrected; and the electric signal of each segment of the anti-Stokes light to be corrected is resampled based on the electric signal of each segment of the Stokes light according to the resampling interval, so that the corrected anti-Stokes light signal is obtained. Through the application, the measurement accuracy of a distributed optical fiber Raman temperature measurement system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fiber optic sensing technology, and in particular to optical signal correction methods, apparatus, devices, electronic devices, and storage media. Background Technology

[0002] With the continuous expansion of infrastructure construction, the demand for safety inspection in various industries is also increasing. Temperature measurement, as a crucial part of safety inspection, plays an important role in fields such as electrical, chemical, energy, and fire protection. Traditional point-type temperature sensors have risks such as fixed sensing locations, limited spatial coverage, high costs for large-scale deployment and reuse, and blind spots in monitoring.

[0003] Distributed Temperature Sensing (DTS) technology overcomes the limitations of point-based systems by utilizing a single sensing fiber as the temperature sensor. The fiber's coverage length defines the sensing range, providing complete spatial temperature distribution information, enhancing state awareness, and reducing overall deployment costs. Furthermore, optical fibers are passive devices, offering advantages such as resistance to electromagnetic interference and corrosion, allowing them to be deployed in complex environments, including flammable and explosive ones. Therefore, DTS technology has been widely applied across various industries. Currently, DTS systems primarily employ optical time-domain reflectometry (OTDR) based on Raman scattering. Temperature measurement is achieved by measuring the change in backscattered Raman signal generated during the propagation of a light pulse along the fiber over time. Backscattered Raman light includes Stokes light (S-ray) and anti-Stokes light (AS-ray). Current Raman scattering-based DTS systems mainly employ a dual-channel acquisition scheme, demodulating the temperature by measuring the intensity ratio of the S-ray and AS-ray at each location.

[0004] However, during this process, due to the different wavelengths of the S-ray and AS-ray, the dispersion effect in the optical fiber causes the two lights to propagate at different speeds, resulting in a delay in the two optical signals detected by the receiver. This difference in propagation speed means that when two wavelengths are collected at a certain moment, they are not from the same location, leading to misalignment when calculating the ratio and affecting measurement accuracy. Currently, patent 201210526033.0 discloses a method to calculate the propagation speed of the two sets of lights in the optical fiber using the wavelengths of the S-ray and AS-ray, calculate the optical fiber position corresponding to when the S-ray and AS-ray begin to return using the propagation speed, and finally eliminate the error by comparing the two sets of signals and shifting them. However, different batches of sensing optical fibers have differences in the consistency of refractive index in the core / cladding, and directly using a fixed value of the speed of light for calibration will still lead to errors.

[0005] There is currently no effective solution to the problem of poor measurement accuracy in distributed fiber Raman temperature measurement systems. Summary of the Invention

[0006] This embodiment provides an optical signal correction method, apparatus, device, electronic device, and storage medium to solve the problem of poor measurement accuracy in distributed fiber optic Raman temperature measurement systems in related technologies.

[0007] Firstly, this embodiment provides an optical signal correction method for a distributed fiber optic Raman temperature measurement system, comprising:

[0008] Acquire the electrical signal of the Stokes beam and the electrical signal of the anti-Stokes beam to be corrected;

[0009] The electrical signals of the Stokes light and the anti-Stokes light to be corrected are subjected to differential processing to obtain the differential results of the electrical signals of the Stokes light and the anti-Stokes light to be corrected.

[0010] Based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected, the abnormal regions of the electrical signal of the Stokes light and the abnormal regions of the electrical signal of the anti-Stokes light to be corrected are determined.

[0011] Based on the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected, the Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected.

[0012] The resampling interval of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each anomalous region of the anti-Stokes light electrical signal to be corrected.

[0013] Based on the resampling interval of the electrical signal of each segment of anti-Stokes light to be corrected, and based on the electrical signal of the Stokes light corresponding to the electrical signal of each segment of anti-Stokes light to be corrected, the electrical signal of each segment of anti-Stokes light to be corrected is resampled to obtain the corrected anti-Stokes light signal.

[0014] In some embodiments, before performing differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, the method further includes:

[0015] Acquire several sets of electrical signals of the Stokes light to be processed and electrical signals of the anti-Stokes light to be corrected;

[0016] The signal amplitudes of the several sets of Stokes light electrical signals to be processed and the anti-Stokes light electrical signals to be corrected are respectively averaged to obtain the Stokes light electrical signals and the anti-Stokes light electrical signals to be corrected.

[0017] In some embodiments, determining the anomalous regions of the Stokes light's electrical signal and the anomalous regions of the anti-Stokes light's electrical signal based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected includes:

[0018] The signal points where the differential result value in the differential result of the Stokes light's electrical signal is greater than a preset differential threshold are determined as abnormal signal points of the Stokes light's electrical signal.

[0019] Differential processing is performed on all abnormal signal points of the Stokes light electrical signal to obtain differential results of abnormal signal points of the Stokes light electrical signal. Based on the differential results of abnormal signal points of the Stokes light electrical signal, each abnormal region of the Stokes light electrical signal is determined.

[0020] The signal points where the differential result value is greater than the preset differential threshold in the differential result of the electrical signal of the anti-Stokes light to be corrected are determined as abnormal signal points of the electrical signal of the anti-Stokes light to be corrected.

[0021] Differential processing is performed on the abnormal signal points of all the anti-Stokes light electrical signals to be corrected to obtain the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected. Based on the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected, each abnormal region of the anti-Stokes light electrical signals to be corrected is determined.

[0022] In some embodiments, the step of segmenting the electrical signals of the Stokes light and the anti-Stokes light to be corrected according to the anomalous regions of the Stokes light electrical signal and the anomalous regions of the anti-Stokes light electrical signal to be corrected, to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected, includes:

[0023] Based on the differential results of the Stokes light's electrical signal, Gaussian fitting is performed on each abnormal region of the Stokes light's electrical signal to obtain the peak position of each abnormal region of the Stokes light's electrical signal.

[0024] The electrical signal of the Stokes light is segmented according to the peak position of each abnormal region of the electrical signal of the Stokes light to obtain the electrical signal of the Stokes light in several segments.

[0025] Based on the differential results of the electrical signal of the anti-Stokes light to be corrected, Gaussian fitting is performed on each abnormal region of the electrical signal of the anti-Stokes light to be corrected to obtain the peak position of each abnormal region of the electrical signal of the anti-Stokes light to be corrected.

[0026] The anti-Stokes light electrical signal to be corrected is segmented according to the peak position of each abnormal region of the electrical signal to be corrected, to obtain the several segments of anti-Stokes light electrical signal to be corrected.

[0027] In some embodiments, the step of performing Gaussian fitting on each anomalous region of the Stokes light's electrical signal based on the differential results of the Stokes light's electrical signal to obtain the peak positions of each anomalous region of the Stokes light's electrical signal includes:

[0028] For each abnormal region of the Stokes light's electrical signal, determine whether the abnormal region of the Stokes light's electrical signal is a strong reflection region;

[0029] If so, then based on the differential results of the Stokes light's electrical signal, Gaussian fitting is performed on the abnormal region of the Stokes light's electrical signal to obtain the peak position of the abnormal region of the Stokes light's electrical signal.

[0030] Otherwise, based on the absolute value of the differential result of the Stokes light's electrical signal, Gaussian fitting is performed on the abnormal region of the Stokes light's electrical signal to obtain the peak position of the abnormal region of the Stokes light's electrical signal.

[0031] Based on the differential electrical signal results of the anti-Stokes light to be corrected, Gaussian fitting is performed on the anomalous regions of the electrical signal of the anti-Stokes light to be corrected to obtain the peak positions of the anomalous regions of the electrical signal of the anti-Stokes light to be corrected, including:

[0032] For each abnormal region of the electrical signal of the anti-Stokes light to be corrected, determine whether the abnormal region of the electrical signal of the anti-Stokes light to be corrected is a strong reflection region.

[0033] If so, then based on the differential result of the electrical signal of the anti-Stokes light to be corrected, Gaussian fitting is performed on the abnormal region of the electrical signal of the anti-Stokes light to be corrected to obtain the peak position of the abnormal region of the electrical signal of the anti-Stokes light to be corrected.

[0034] Otherwise, based on the absolute value of the differential result of the anti-Stokes light's electrical signal to be corrected, Gaussian fitting is performed on the abnormal region of the anti-Stokes light's electrical signal to be corrected to obtain the peak position of the abnormal region of the anti-Stokes light's electrical signal to be corrected.

[0035] In some embodiments, calculating the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each anomalous region of the anti-Stokes light electrical signal to be corrected includes:

[0036] The sampling rate ratio of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each anomalous region of the anti-Stokes light electrical signal to be corrected.

[0037] The resampling interval of the electrical signal of the anti-Stokes light to be corrected is calculated based on the sampling rate ratio of the electrical signal of each segment of the anti-Stokes light to be corrected and the sampling rate of the analog-to-digital converter.

[0038] Secondly, this embodiment provides an optical signal correction device applied to a distributed fiber optic Raman temperature measurement system, comprising: an acquisition module, a differential processing module, an abnormal region determination module, a segmentation module, and a correction module. The acquisition module is used to acquire the electrical signal of Stokes light and the electrical signal of the anti-Stokes light to be corrected.

[0039] The differential processing module is used to perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected.

[0040] The abnormal region determination module is used to determine each abnormal region of the electrical signal of the Stokes light and each abnormal region of the electrical signal of the anti-Stokes light to be corrected based on the electrical signal differential result of the Stokes light and the electrical signal differential result of the anti-Stokes light to be corrected.

[0041] The segmentation module is used to segment the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected according to the abnormal regions of the electrical signal of the Stokes light and the abnormal regions of the electrical signal of the anti-Stokes light to be corrected, so as to obtain several segments of the electrical signal of the Stokes light and several segments of the electrical signal of the anti-Stokes light to be corrected.

[0042] The correction module is used to calculate the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected; and to resample each segment of the anti-Stokes light electrical signal to be corrected based on the resampling interval of each segment of the anti-Stokes light electrical signal and the corresponding Stokes light electrical signal to obtain the corrected anti-Stokes light signal.

[0043] Thirdly, this embodiment provides a computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in the first aspect above.

[0044] Fourthly, this embodiment provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the optical signal correction method described in the first aspect above.

[0045] Fifthly, this embodiment provides a storage medium storing a computer program that, when executed by a processor, implements the optical signal correction method described in the first aspect above.

[0046] Compared with related technologies, the optical signal correction provided in this embodiment involves acquiring the electrical signal of Stokes light and the electrical signal of the anti-Stokes light to be corrected; performing differential processing on the electrical signals of the Stokes light and the anti-Stokes light to be corrected to obtain the differential results of the Stokes light and the anti-Stokes light; determining the abnormal regions of the Stokes light and the anti-Stokes light based on the differential results of the Stokes light and the anti-Stokes light; and then, based on the abnormal regions of the Stokes light and the anti-Stokes light, correcting the Stokes light... The electrical signal and the electrical signal of the anti-Stokes light to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected. The resampling interval of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on the abnormal regions of each segment. Based on the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected, and based on the corresponding Stokes light electrical signal, each segment of the anti-Stokes light electrical signal to be corrected is resampled to obtain the corrected anti-Stokes light signal. This solves the problem of poor measurement accuracy in distributed fiber optic Raman temperature measurement systems and improves the measurement accuracy of distributed fiber optic Raman temperature measurement systems.

[0047] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0048] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0049] Figure 1 This is a hardware structure block diagram of the terminal of the optical signal correction method in this embodiment.

[0050] Figure 2 This is a flowchart of the optical signal correction method in this embodiment.

[0051] Figure 3 This is a schematic diagram of the distributed temperature sensing system structure of the optical signal correction method in this embodiment.

[0052] Figure 4 This is a flowchart of another optical signal correction method in this embodiment.

[0053] Figure 5This is a structural block diagram of the optical signal correction device in this embodiment. Detailed Implementation

[0054] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0055] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these” used in this application do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to these processes, methods, products, or devices. Words such as “connected,” “linked,” and “coupled” used in this application are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. Normally, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," "third," etc., used in this application are merely to distinguish similar objects and do not represent a specific order of objects.

[0056] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. For example, it can run on a terminal. Figure 1 This is a hardware structure block diagram of the terminal of the optical signal correction method in this embodiment. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1The different configurations shown are illustrated.

[0057] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the optical signal correction method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0058] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0059] This embodiment provides an optical signal correction method. Figure 2 This is a flowchart of the optical signal correction method in this embodiment, as follows: Figure 2 As shown, the process includes the following steps:

[0060] Step S201: Obtain the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected.

[0061] Specifically, in this embodiment, the Distributed Temperature Sensing (DTS) system adopts a dual-channel type. Figure 3 This is a schematic diagram of the distributed temperature sensing system structure of the optical signal correction method in this embodiment, as shown below. Figure 3As shown, a laser pulse is emitted by a pulsed laser 31 and sent to a wavelength division multiplexer (WDM) 32. The WDM 32 inputs the laser pulse into the optical fiber under test 33. During propagation within the optical fiber, the pulsed laser continuously generates backscattering. The backscattered light returns to the WDM 32, where it is filtered to separate the Stokes beam (S-beam) and the anti-Stokes beam (AS-beam). These are then detected by two avalanche photodetectors 34 (APD1 and APD2), and undergo photoelectric conversion. The output electrical signal is then converted by an analog-to-digital converter 35 (ADC) to obtain the Stokes beam electrical signal D. s And the electrical signal D of the anti-Stokes light to be corrected AS The electrical signal D of the Stokes light s And the electrical signal D of the anti-Stokes light to be corrected AS The signal is transmitted to terminal 36 (PC) for electrical signal analysis.

[0062] Step S202: Perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected.

[0063] Specifically, due to the different wavelengths of S-light and AS-light, the dispersion effect in the optical fiber causes the two lights to propagate at different speeds, resulting in a delay in the two optical signals detected at the receiver. This leads to misalignment when calculating the ratio, thus affecting measurement accuracy. Furthermore, the dispersion effect is related to the type of optical fiber used; different types of fibers produce different speed differences, which are not constant. Based on this, the electrical signal D of the acquired Stokes light of length n is analyzed separately. s And the electrical signal D of the anti-Stokes light to be corrected AS The signal amplitudes are differentially processed to identify anomalous regions. The differential processing procedure is as follows; for example, D... S By performing differential processing at intervals of m points, the electrical signal D of the Stokes light is obtained. S The difference result D S1 (x):

[0064] x = 1, 2, ..., (nm), m has a reference value of 5 to 20, D S1 D represents S1 The data for the xth site.

[0065] Or for D S1 (x) take the absolute value to obtain D S2(x):

[0066] .

[0067] Similarly, for D AS By performing differential processing at intervals of m points, the electrical signal D of the Stokes light is obtained. AS The difference result D AS1 (x):

[0068] x = 1, 2, ..., (nm), m has a reference value of 5 to 20, D AS1 D represents AS1 The data for the xth site.

[0069] Or for D AS1 (x) take the absolute value to obtain D AS2 (x):

[0070] .

[0071] Step S203: Based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected, determine the abnormal regions of the electrical signal of the Stokes light and the abnormal regions of the electrical signal of the anti-Stokes light to be corrected.

[0072] Specifically, based on the differential result D of the electrical signal of the Stokes light obtained through differential processing... S1 (x), and the differential result D of the electrical signal of the anti-Stokes light to be corrected. AS1 (x) Pre-set the differential threshold. The differential threshold can be determined based on the signal-to-noise ratio (SNR) of the acquired signal. Signals with high SNR can have a lower differential threshold, while signals with low SNR should have a relatively higher differential threshold. For example, the differential threshold for the Stokes light electrical signal can be set to five times the average value of the differential results. Similarly, the differential threshold for the anti-Stokes light electrical signal to be corrected can be set to five times the average value. Points in the differential results exceeding the set differential threshold are identified as outliers. These outliers are then aggregated, and consecutive outliers are grouped into anomaly regions. This yields the anomaly regions for both the Stokes light and the anti-Stokes light electrical signal to be corrected.

[0073] Step S204: Based on the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected, the Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected.

[0074] Specifically, after detecting each abnormal region of the Stokes light electrical signal, each abnormal region divides the Stokes light electrical signal into multiple electrical signal segments. After detecting each abnormal region of the anti-Stokes light electrical signal, each abnormal region divides the anti-Stokes light electrical signal into multiple electrical signal segments. Thus, the segmented Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are obtained.

[0075] Step S205: Calculate the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected; based on the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected, resample each segment of the anti-Stokes light electrical signal to be corrected based on the corresponding Stokes light electrical signal to obtain the corrected anti-Stokes light signal.

[0076] Specifically, the ratio of the difference between the center points of two adjacent anomalous regions in the Stokes light electrical signal to the difference between the center points of two adjacent anomalous regions in the electrical signal of the anti-Stokes light at the same location is used as the sampling rate ratio of the anti-Stokes light. This sampling rate ratio is added to the sampling interval to obtain the resampling interval of the anti-Stokes light. Based on the electrical signal of each segment of Stokes light, i.e., based on the sampling time of each segment of Stokes light, each segment of anti-Stokes light is resampled according to the resampling interval of the anti-Stokes light, so that the length of the electrical signal of each segment of anti-Stokes light after resampling is equal to the length of the electrical signal of its corresponding segment of Stokes light, thus obtaining the corrected anti-Stokes light signal. Among them, the sampling point corresponding to the boundary point on the electrical signal of the anti-Stokes light is used as the reference for resampling the electrical signal of the segment of anti-Stokes light, thereby realizing the correction of the anti-Stokes light signal. Temperature measurement is achieved through the corrected anti-Stokes light signal, improving the measurement accuracy of temperature in the distributed fiber optic Raman temperature measurement system.

[0077] Through steps S201 to S205, the electrical signal of the Stokes beam and the electrical signal of the anti-Stokes beam to be corrected are obtained; the electrical signals of the Stokes beam and the anti-Stokes beam to be corrected are respectively subjected to differential processing to obtain the differential results of the Stokes beam and the anti-Stokes beam; based on the differential results of the Stokes beam and the anti-Stokes beam, the abnormal regions of the Stokes beam and the anti-Stokes beam are determined; based on the abnormal regions of the Stokes beam and the anti-Stokes beam, the abnormal regions of the Stokes beam and the anti-Stokes beam are determined. In each abnormal region of the signal, the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected are segmented to obtain several segments of the Stokes light electrical signal and several segments of the anti-Stokes light electrical signal to be corrected. The resampling interval of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each abnormal region of the anti-Stokes light electrical signal to be corrected. Based on the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected and the corresponding Stokes light electrical signal, each segment of the anti-Stokes light electrical signal to be corrected is resampled to obtain the corrected anti-Stokes light signal. Compared with existing technologies that eliminate errors by comparing two sets of signals and shifting them, this embodiment performs amplitude differential processing on the S-beam and AS-beam separately to detect abnormal regions. Based on the abnormal regions, the S-beam and AS-beam are segmented, and the resampling interval for each segment is determined based on the sampling rate ratio of each segment. Finally, based on each S-beam segment, the AS-beam is resampled according to the new resampling interval so that the electrical signal length of each sampled AS-beam segment is equal to the electrical signal length of the corresponding S-beam segment. This achieves correction of the AS-beam, and temperature measurement is achieved using the corrected AS-beam and S-beam, thus improving the detection accuracy of the distributed fiber optic Raman temperature measurement system.

[0078] In some embodiments, before performing differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, the method further includes:

[0079] Acquire several sets of electrical signals of Stokes light to be processed and electrical signals of anti-Stokes light to be corrected; perform average processing on the signal amplitudes of the several sets of electrical signals of Stokes light to be processed and electrical signals of anti-Stokes light to be corrected to obtain the electrical signals of Stokes light and anti-Stokes light to be corrected.

[0080] Specifically, to improve the signal-to-noise ratio of electrical signal processing, this embodiment obtains multiple electrical signals of Stokes light to be processed and anti-Stokes light to be corrected by sending multiple pulse signals. For example, a pulsed laser is controlled to send 10,000 pulse signals at a fixed frequency. Then, two avalanche photodetectors (APD1 and APD2) detect the corresponding K sets of S-light and AS-light of length n to be processed and corrected, respectively. The value of n is determined based on the length L of the fiber under test and the ADC sampling rate F. S Sure, The signal amplitudes of K groups of S-beams to be processed are averaged to obtain an averaged S-beam of length n. Similarly, the signal amplitudes of K groups of AS-beams to be processed and corrected are averaged to obtain an averaged AS-beam of length n. Both the averaged S-beams and the averaged AS-beams are converted into electrical signals, and then filtered through an identical low-pass filter to obtain the Stokes light electrical signal D. s And the electrical signal D of the anti-Stokes light to be corrected As By inputting multiple sets of pulse signals to obtain multiple sets of Stokes and anti-Stokes beams, and then taking the average signal amplitude of the multiple sets of Stokes and anti-Stokes beams as the amplitude value of the data to be processed, random noise can be suppressed, the signal-to-noise ratio of the data to be processed can be improved, thereby improving the accuracy of the anti-Stokes beam correction, and thus improving the detection accuracy of the distributed fiber optic Raman temperature measurement system.

[0081] In another embodiment, based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected, the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected are determined, including:

[0082] The signal points where the differential result value is greater than the preset differential threshold in the differential result of the Stokes light electrical signal are identified as abnormal signal points of the Stokes light electrical signal; differential processing is performed on all abnormal signal points of the Stokes light electrical signal to obtain the differential result of the abnormal signal points of the Stokes light electrical signal; based on the differential result of the abnormal signal points of the Stokes light electrical signal, each abnormal region of the Stokes light electrical signal is determined.

[0083] The signal points where the differential result value is greater than the preset differential threshold in the differential result of the electrical signal of the anti-Stokes light to be corrected are determined as abnormal signal points of the electrical signal of the anti-Stokes light to be corrected.

[0084] Differential processing is performed on the abnormal signal points of all the anti-Stokes light electrical signals to be corrected to obtain the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected. Based on the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected, the abnormal regions of the anti-Stokes light electrical signals to be corrected are determined.

[0085] Specifically, when determining abnormal regions for Stokes light electrical signals, a differential threshold is first set. Abnormal signal points are then selected from the differential results of Stokes light electrical signals based on the differential threshold. For example, the average value of the differential results of Stokes light electrical signals can be taken first, and a differential threshold can be set to five times the average value of the differential results. The differential results of all Stokes light electrical signals are compared with the differential threshold, and the signal points corresponding to the differential results that are greater than the differential threshold are determined as abnormal signal points in the Stokes light electrical signals, thereby obtaining a set of all abnormal points in the Stokes light electrical signals.

[0086] Next, the anomalous signal points in the set of all anomalous points of the Stokes light's electrical signal are differentially processed. This process mainly involves partitioning the anomalous signal points, dividing consecutive anomalous signal points into a region, i.e., an anomalous region. If a jump occurs between two anomalous signal points, that jump is included in the next anomalous region. That is, the positional difference between two adjacent anomalous signal points within the same anomalous region is less than or equal to 2. The signal point with a positional difference greater than 2 between the first two detected adjacent anomalous signal points is taken as the starting position of the next anomalous region, and the signal point with a positional difference less than or equal to 2 between the last detected adjacent anomalous signal points is taken as the ending position of the current anomalous region. In this way, the anomalous signal points in the set of all anomalous points of the Stokes light's electrical signal are detected to obtain the various anomalous regions of the Stokes light's electrical signal.

[0087] Similarly, the abnormal signal points of all the anti-Stokes light electrical signals to be corrected are processed in the same way as above to obtain the abnormal regions of the anti-Stokes light electrical signals to be corrected.

[0088] In some embodiments, based on the anomalous regions of the Stokes light electrical signal and the anomalous regions of the anti-Stokes light electrical signal to be corrected, the Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected, including:

[0089] Based on the differential results of the Stokes light electrical signal, Gaussian fitting is performed on each abnormal region of the Stokes light electrical signal to obtain the peak position of each abnormal region of the Stokes light electrical signal; according to the peak position of each abnormal region of the Stokes light electrical signal, the Stokes light electrical signal is segmented to obtain several segments of the Stokes light electrical signal.

[0090] Based on the differential results of the anti-Stokes light electrical signal to be corrected, Gaussian fitting is performed on each anomalous region of the anti-Stokes light electrical signal to obtain the peak position of each anomalous region of the anti-Stokes light electrical signal to be corrected; according to the peak position of each anomalous region of the anti-Stokes light electrical signal to be corrected, the anti-Stokes light electrical signal to be corrected is segmented to obtain several segments of the anti-Stokes light electrical signal to be corrected.

[0091] Specifically, when segmenting the electrical signals of the Stokes light and the anti-Stokes light, Gaussian fitting is first performed on the electrical signal of each detected anomalous region to obtain the peak position of each anomalous region of the Stokes light electrical signal. Then, the electrical signal is segmented based on the obtained peak positions. In particular, before performing Gaussian fitting, for each anomalous region of the Stokes light electrical signal, it is determined whether the anomalous region is a strong reflection region. If so, Gaussian fitting is performed on the anomalous region of the Stokes light electrical signal based on the difference result of the Stokes light electrical signal to obtain the peak position of the anomalous region of the Stokes light electrical signal. Otherwise, Gaussian fitting is performed on the anomalous region of the Stokes light electrical signal based on the absolute value of the difference result of the Stokes light electrical signal to obtain the peak position of the anomalous region of the Stokes light electrical signal. For each anomalous region of the anti-Stokes light electrical signal to be corrected, determine whether the anomalous region is a strong reflection region. If so, perform Gaussian fitting on the anomalous region based on the difference result of the anti-Stokes light electrical signal to be corrected, and obtain the peak position of the anomalous region. Otherwise, perform Gaussian fitting on the anomalous region based on the absolute value of the difference result of the anti-Stokes light electrical signal to be corrected, and obtain the peak position of the anomalous region.

[0092] For example, firstly, the data points within each abnormal region are detected. If a signal point with data points smaller than a preset differential threshold is detected within the abnormal region, the abnormal region is determined to be a strong reflection region; if no signal point with data points smaller than the preset differential threshold is detected within the abnormal region, the abnormal region is determined to be a weak reflection region. For strong reflection regions, in this embodiment, the differential result D from the abnormal region is directly used. S1(x) or D AS1 (x) Perform Gaussian fitting. For the weak reflection region, in this embodiment, the absolute value D of the difference result in the abnormal region is used. S2 (x) or D AS2 (x) is fitted with Gaussian.

[0093] In Gaussian fitting, a Gaussian function can be used: Gaussian fitting is applied to the anomalous regions, where 'a' is the amplitude, controlling the peak height; 'b' is the mean, determining the peak center position; and 'c' is the standard deviation, controlling the peak width. The peak positions of each anomalous region are obtained through Gaussian fitting. The points where the peak positions are located within each anomalous region are then segmented into several segments of the Stokes light electrical signal and several segments of the anti-Stokes light electrical signal to be corrected.

[0094] In another embodiment, the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each anomalous region of the anti-Stokes light electrical signal to be corrected, including:

[0095] Calculate the sampling rate ratio of each segment of the anti-Stokes light electrical signal after segmentation based on the abnormal regions of the anti-Stokes light electrical signal to be corrected; calculate the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected based on the sampling rate ratio of each segment of the anti-Stokes light electrical signal to be corrected and the sampling rate of the analog-to-digital converter.

[0096] Specifically, in calculating the resampling interval for each segment of the anti-Stokes light electrical signal to be corrected, the sampling rate ratio R of each segment of the anti-Stokes light electrical signal to be corrected is first calculated, which can be obtained through the following formula:

[0097] ;

[0098] in, The peak position of the electrical signal of the Stokes light at point y;

[0099] Let (y-1) be the peak position of the electrical signal of the Stokes light;

[0100] The peak position of the electrical signal of the anti-Stokes light to be corrected at point y;

[0101] The peak position of the electrical signal of the anti-Stokes light to be corrected is at point (y-1).

[0102] Then, based on the sampling rate ratio of the electrical signal of each segment of the anti-Stokes light to be corrected and the sampling rate of the analog-to-digital converter, the resampling interval Δt of the electrical signal of each segment of the anti-Stokes light to be corrected is calculated. The specific calculation formula is as follows:

[0103] Where R is the sampling rate ratio, and F S This represents the ADC sampling rate.

[0104] This embodiment also provides an optical signal correction method. Figure 4 This is a flowchart of another optical signal correction method in this embodiment, such as... Figure 4 As shown, the process includes the following steps:

[0105] Step S401: Acquire several sets of electrical signals of Stokes light to be processed and electrical signals of anti-Stokes light to be corrected; perform average processing on the signal amplitudes of the several sets of electrical signals of Stokes light to be processed and electrical signals of anti-Stokes light to be corrected to obtain electrical signals of Stokes light and anti-Stokes light to be corrected.

[0106] Step S402: Perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected; Steps S403 and S405 are executed simultaneously.

[0107] Step S403: The signal points where the differential result value is greater than the preset differential threshold in the differential result of the Stokes light electrical signal are identified as abnormal signal points of the Stokes light electrical signal; differential processing is performed on all abnormal signal points of the Stokes light electrical signal to obtain the differential result of the abnormal signal points of the Stokes light electrical signal; based on the differential result of the abnormal signal points of the Stokes light electrical signal, each abnormal region of the Stokes light electrical signal is determined.

[0108] Step S404: Based on the differential results of the Stokes light electrical signal, Gaussian fitting is performed on each abnormal region of the Stokes light electrical signal to obtain the peak position of each abnormal region of the Stokes light electrical signal; the Stokes light electrical signal is segmented according to the peak position of each abnormal region of the Stokes light electrical signal to obtain several segments of the Stokes light electrical signal; and step S407 is executed.

[0109] Step S405: The signal points where the differential result value is greater than the preset differential threshold in the differential result of the anti-Stokes light electrical signal to be corrected are identified as abnormal signal points of the anti-Stokes light electrical signal to be corrected; differential processing is performed on all abnormal signal points of the anti-Stokes light electrical signal to be corrected to obtain the differential result of the abnormal signal points of the anti-Stokes light electrical signal to be corrected; based on the differential result of the abnormal signal points of the anti-Stokes light electrical signal to be corrected, each abnormal region of the anti-Stokes light electrical signal to be corrected is determined.

[0110] Step S406: Based on the differential results of the electrical signal of the anti-Stokes light to be corrected, Gaussian fitting is performed on each abnormal region of the electrical signal of the anti-Stokes light to be corrected to obtain the peak position of each abnormal region of the electrical signal of the anti-Stokes light to be corrected; according to the peak position of each abnormal region of the electrical signal of the anti-Stokes light to be corrected, the electrical signal of the anti-Stokes light to be corrected is segmented to obtain several segments of the electrical signal of the anti-Stokes light to be corrected.

[0111] Step S407: Calculate the sampling rate ratio of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected; calculate the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected based on the sampling rate ratio of each segment of the anti-Stokes light electrical signal to be corrected and the sampling rate of the analog-to-digital converter.

[0112] Step S408: Based on the resampling interval of the electrical signal of each segment of anti-Stokes light to be corrected, and based on the electrical signal of the Stokes light corresponding to the electrical signal of each segment of anti-Stokes light to be corrected, resample the electrical signal of each segment of anti-Stokes light to be corrected to obtain the corrected anti-Stokes light signal.

[0113] Through steps S401 to S408, compared with the prior art which eliminates errors by comparing two sets of signals and shifting them, this embodiment detects abnormal regions by performing amplitude differential processing on the S-light and AS-light separately, obtains the peak position of each abnormal region through Gaussian fitting, segments the S-light and AS-light according to the peak position, determines the resampling interval of each AS-light segment based on the sampling rate ratio of each segment's electrical signal, and finally resamples the AS-light according to the new resampling interval based on each S-light segment, so that the electrical signal length of each sampled AS-light segment is equal to the electrical signal length of the corresponding S-light segment, thereby achieving correction of the AS-light. Temperature measurement is achieved through the corrected AS-light and S-light, improving the detection accuracy of the distributed fiber Raman temperature measurement system. Furthermore, this embodiment does not require the introduction of additional dispersion compensation fibers. It only needs to process the sampled optical signal in the algorithm to correct the misalignment caused by dispersion. In addition, by identifying abnormal regions in the optical signal through the algorithm and dividing the optical signal into different sensing fiber segments, and performing dispersion compensation processing on each segment of the optical signal, it is possible to eliminate the refractive index deviation existing in different batches of optical fibers, better compensate for dispersion misalignment, and further improve the detection accuracy of the distributed fiber Raman temperature measurement system.

[0114] This embodiment also provides an optical signal correction device applied to a distributed fiber optic Raman temperature measurement system. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. The terms "module," "unit," "subunit," etc., used below refer to combinations of software and / or hardware that perform a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0115] Figure 5 This is a structural block diagram of the optical signal correction device in this embodiment, as shown below. Figure 5 As shown, the device 50 includes: an acquisition module 51, a differential processing module 52, an abnormal region determination module 53, a segmentation module 54, and a correction module 55. The acquisition module 51 is used to acquire the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected.

[0116] The differential processing module 52 is used to perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected.

[0117] The abnormal region determination module 53 is used to determine each abnormal region of the electrical signal of the Stokes light and each abnormal region of the electrical signal of the anti-Stokes light to be corrected based on the electrical signal differential result of the Stokes light and the electrical signal differential result of the anti-Stokes light to be corrected.

[0118] The segmentation module 54 is used to segment the electrical signal of Stokes light and the electrical signal of anti-Stokes light to be corrected according to the abnormal regions of the electrical signal of Stokes light and the abnormal regions of the electrical signal of anti-Stokes light to be corrected, so as to obtain several segments of electrical signal of Stokes light and several segments of electrical signal of anti-Stokes light to be corrected.

[0119] The correction module 55 is used to calculate the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected; based on the resampling interval of each segment of the anti-Stokes light electrical signal to be corrected, and based on the Stokes light electrical signal corresponding to each segment of the anti-Stokes light electrical signal to be corrected, the module resamples each segment of the anti-Stokes light electrical signal to be corrected to obtain the corrected anti-Stokes light signal.

[0120] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.

[0121] This embodiment also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the methods described in the above embodiments and preferred embodiments.

[0122] This embodiment also provides an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0123] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0124] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0125] S1, acquire the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected;

[0126] S2, perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected.

[0127] S3. Based on the differential results of the Stokes light electrical signal and the differential results of the anti-Stokes light electrical signal to be corrected, determine the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected.

[0128] S4. Based on the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected, the Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected.

[0129] S5, calculate the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected.

[0130] S6. Based on the resampling interval of the electrical signal of each segment of anti-Stokes light to be corrected, and based on the electrical signal of the Stokes light corresponding to the electrical signal of each segment of anti-Stokes light to be corrected, resample the electrical signal of each segment of anti-Stokes light to be corrected to obtain the corrected anti-Stokes light signal.

[0131] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.

[0132] Furthermore, in conjunction with the optical signal correction methods provided in the above embodiments, this embodiment can also provide a storage medium for implementation. The storage medium stores a computer program; when executed by a processor, the computer program implements any of the optical signal correction methods in the above embodiments.

[0133] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0134] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0135] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0136] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0137] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0138] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. An optical signal correction method for a distributed fiber optic Raman temperature measurement system, characterized in that, include: Acquire the electrical signal of the Stokes beam and the electrical signal of the anti-Stokes beam to be corrected; The electrical signals of the Stokes light and the anti-Stokes light to be corrected are subjected to differential processing to obtain the differential results of the electrical signals of the Stokes light and the anti-Stokes light to be corrected. Based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected, the abnormal regions of the electrical signal of the Stokes light and the abnormal regions of the electrical signal of the anti-Stokes light to be corrected are determined. Based on the abnormal regions of the Stokes light electrical signal and the abnormal regions of the anti-Stokes light electrical signal to be corrected, the Stokes light electrical signal and the anti-Stokes light electrical signal to be corrected are segmented to obtain several segments of Stokes light electrical signal and several segments of anti-Stokes light electrical signal to be corrected. The resampling interval of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each anomalous region of the anti-Stokes light electrical signal to be corrected. Based on the resampling interval of the electrical signal of each segment of anti-Stokes light to be corrected, and based on the electrical signal of the Stokes light corresponding to the electrical signal of each segment of anti-Stokes light to be corrected, the electrical signal of each segment of anti-Stokes light to be corrected is resampled to obtain the corrected anti-Stokes light signal.

2. The optical signal correction method according to claim 1, characterized in that, Before performing differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, the method further includes: Acquire several sets of electrical signals of the Stokes light to be processed and electrical signals of the anti-Stokes light to be corrected; The signal amplitudes of the several sets of Stokes light electrical signals to be processed and the anti-Stokes light electrical signals to be corrected are respectively averaged to obtain the Stokes light electrical signals and the anti-Stokes light electrical signals to be corrected.

3. The optical signal correction method according to claim 1, characterized in that, The step of determining the anomalous regions of the Stokes light's electrical signal and the anomalous regions of the anti-Stokes light's electrical signal based on the differential electrical signal results of the Stokes light and the differential electrical signal results of the anti-Stokes light to be corrected includes: The signal points where the differential result value in the differential result of the Stokes light's electrical signal is greater than a preset differential threshold are determined as abnormal signal points of the Stokes light's electrical signal. Differential processing is performed on all abnormal signal points of the Stokes light electrical signal to obtain differential results of abnormal signal points of the Stokes light electrical signal. Based on the differential results of abnormal signal points of the Stokes light electrical signal, each abnormal region of the Stokes light electrical signal is determined. The signal points where the differential result value is greater than the preset differential threshold in the differential result of the electrical signal of the anti-Stokes light to be corrected are determined as abnormal signal points of the electrical signal of the anti-Stokes light to be corrected. Differential processing is performed on the abnormal signal points of all the anti-Stokes light electrical signals to be corrected to obtain the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected. Based on the differential results of the abnormal signal points of the anti-Stokes light electrical signals to be corrected, each abnormal region of the anti-Stokes light electrical signals to be corrected is determined.

4. The optical signal correction method according to claim 1, characterized in that, The process involves segmenting the electrical signals of the Stokes light and the anti-Stokes light to be corrected into several segments based on the anomalous regions of the Stokes light's electrical signal and the anomalous regions of the anti-Stokes light's electrical signal to be corrected, resulting in several segments of the Stokes light's electrical signal and several segments of the anti-Stokes light's electrical signal to be corrected. Based on the differential results of the Stokes light's electrical signal, Gaussian fitting is performed on each abnormal region of the Stokes light's electrical signal to obtain the peak position of each abnormal region of the Stokes light's electrical signal. The electrical signal of the Stokes light is segmented according to the peak position of each abnormal region of the electrical signal of the Stokes light to obtain the electrical signal of the Stokes light in several segments. Based on the differential results of the electrical signal of the anti-Stokes light to be corrected, Gaussian fitting is performed on each abnormal region of the electrical signal of the anti-Stokes light to be corrected to obtain the peak position of each abnormal region of the electrical signal of the anti-Stokes light to be corrected. The anti-Stokes light electrical signal to be corrected is segmented according to the peak position of each abnormal region of the electrical signal to be corrected, to obtain the several segments of anti-Stokes light electrical signal to be corrected.

5. The optical signal correction method according to claim 4, characterized in that, Based on the differential results of the Stokes light's electrical signal, Gaussian fitting is performed on each anomalous region of the Stokes light's electrical signal to obtain the peak positions of each anomalous region, including: For each abnormal region of the Stokes light's electrical signal, determine whether the abnormal region of the Stokes light's electrical signal is a strong reflection region; If so, then based on the differential results of the Stokes light's electrical signal, Gaussian fitting is performed on the abnormal region of the Stokes light's electrical signal to obtain the peak position of the abnormal region of the Stokes light's electrical signal. Otherwise, based on the absolute value of the differential result of the Stokes light's electrical signal, Gaussian fitting is performed on the abnormal region of the Stokes light's electrical signal to obtain the peak position of the abnormal region of the Stokes light's electrical signal. Based on the differential electrical signal results of the anti-Stokes light to be corrected, Gaussian fitting is performed on the anomalous regions of the electrical signal of the anti-Stokes light to be corrected to obtain the peak positions of the anomalous regions of the electrical signal of the anti-Stokes light to be corrected, including: For each abnormal region of the electrical signal of the anti-Stokes light to be corrected, determine whether the abnormal region of the electrical signal of the anti-Stokes light to be corrected is a strong reflection region. If so, then based on the differential result of the electrical signal of the anti-Stokes light to be corrected, Gaussian fitting is performed on the abnormal region of the electrical signal of the anti-Stokes light to be corrected to obtain the peak position of the abnormal region of the electrical signal of the anti-Stokes light to be corrected. Otherwise, based on the absolute value of the differential result of the anti-Stokes light's electrical signal to be corrected, Gaussian fitting is performed on the abnormal region of the anti-Stokes light's electrical signal to be corrected to obtain the peak position of the abnormal region of the anti-Stokes light's electrical signal to be corrected.

6. The optical signal correction method according to claim 4, characterized in that, The step of calculating the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each anomalous region of the anti-Stokes light electrical signal to be corrected includes: The sampling rate ratio of each segment of the anti-Stokes light electrical signal to be corrected is calculated based on each anomalous region of the anti-Stokes light electrical signal to be corrected. The resampling interval of the electrical signal of the anti-Stokes light to be corrected is calculated based on the sampling rate ratio of the electrical signal of each segment of the anti-Stokes light to be corrected and the sampling rate of the analog-to-digital converter.

7. An optical signal correction device, applied in a distributed fiber optic Raman temperature measurement system, characterized in that, include: The system includes an acquisition module, a differential processing module, an abnormal region determination module, a segmentation module, and a correction module. The acquisition module is used to acquire the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected. The differential processing module is used to perform differential processing on the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected, respectively, to obtain the differential result of the electrical signal of the Stokes light and the differential result of the electrical signal of the anti-Stokes light to be corrected. The abnormal region determination module is used to determine each abnormal region of the electrical signal of the Stokes light and each abnormal region of the electrical signal of the anti-Stokes light to be corrected based on the electrical signal differential result of the Stokes light and the electrical signal differential result of the anti-Stokes light to be corrected. The segmentation module is used to segment the electrical signal of the Stokes light and the electrical signal of the anti-Stokes light to be corrected according to the abnormal regions of the electrical signal of the Stokes light and the abnormal regions of the electrical signal of the anti-Stokes light to be corrected, so as to obtain several segments of the electrical signal of the Stokes light and several segments of the electrical signal of the anti-Stokes light to be corrected. The correction module is used to calculate the resampling interval of each segment of the anti-Stokes light electrical signal after segmentation based on each abnormal region of the anti-Stokes light electrical signal to be corrected. Based on the resampling interval of the electrical signal of each segment of anti-Stokes light to be corrected, and based on the electrical signal of the Stokes light corresponding to the electrical signal of each segment of anti-Stokes light to be corrected, the electrical signal of each segment of anti-Stokes light to be corrected is resampled to obtain the corrected anti-Stokes light signal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the optical signal correction method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the optical signal correction method according to any one of claims 1 to 6.