A sample evaluation method for pattern recognition in distributed fiber optic sensing technology
By using covariance calculation in a distributed optical fiber sensing system to evaluate the similarity and accuracy of sample features and assigning weights to the samples, the problem of false alarms caused by noise pollution is solved, and the identification accuracy and the actual value of the system are improved.
Patent Information
- Application Number
- CN202310514798.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-05-09
AI Technical Summary
In the distributed optical fiber sensing system based on the φ-OTDR principle, external natural environment interference causes background noise pollution, causing the overlap of intrusion signal characteristics and noise signal characteristics, reducing the accuracy of pattern recognition and increasing the false alarm rate.
The covariance-based sample evaluation method is used to calculate the similarity and accuracy evaluation of sample features to assign weights to the samples, reduce the interference of noise samples on the model, and improve the recognition accuracy.
It effectively reduces the impact of noise samples on the model, improves the recognition accuracy, significantly reduces the false alarm rate, and improves the recognition accuracy of distributed optical fiber sensors.
Smart Images

Figure CN116662877B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed optical fiber sensing technology, and in particular to a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology. Background Art
[0002] Distributed fiber optic sensing system is a new sensing technology developed in recent years. It measures the disturbance or temperature of all positions along the entire sensing fiber by sensing the differential response of the fiber itself due to external disturbance or temperature change. It has the advantages of small sensing volume, easy to carry and install, light weight, high sensitivity, strong anti-interference ability, corrosion resistance, electrical insulation, long distance, passive, good durability and matching, easy networking, etc. It can be used for long-distance real-time monitoring and precise positioning. As a dynamic non-destructive testing method, according to the optical signal received by the optical fiber, it can monitor multiple physical quantities such as temperature, vibration, deformation, etc. At the same time, the distributed fiber optic vibration sensing system based on phase-sensitive optical time domain reflectometer has the advantages of long sensing distance, high spatial resolution, no blind spots, low cost, high stability, etc. It prevents illegal intrusion, eliminates structural hidden dangers, and avoids the occurrence of various disasters and accidents through long-term online real-time monitoring of the intrusion status around important places and the vibration information of the internal structure of the building. It has been applied to many fields such as engineering structure health monitoring, perimeter protection and oil and gas pipeline safety detection.
[0003] During the operation of the distributed optical fiber sensing system based on the φ-OTDR principle, it is necessary to cooperate with an appropriate alarm algorithm to issue an alarm when an intrusion event occurs. Traditional alarm algorithms generally use a simple threshold judgment method to set a threshold in the time domain or frequency domain to achieve monitoring alarms. However, due to the large amount of environmental interference in the actual environment, the traditional threshold judgment method is very likely to produce false alarms. Therefore, it is necessary to make the alarm algorithm intelligent and reduce the false alarm rate to make the system have practical value. Therefore, in recent years, many systems have combined pattern recognition algorithms to realize the intelligence of alarm algorithms. In the process of establishing the recognition algorithm model, it is necessary to collect various signals generated in the actual environment and mark them, use the marked signals to train and learn the model, and finally use the trained model to identify and classify the signals generated during the operation of the system. However, external natural environment interference is easy to introduce background noise during data collection, causing artificial intrusion sample contamination, resulting in the overlap of intrusion signal characteristics and noise signal characteristics, which reduces the recognition accuracy and leads to a high false alarm rate.
[0004] The present invention provides a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology. A feature weighted optimization process is added to the pattern recognition process to reduce the weight of contaminated samples, effectively avoiding the influence of noise samples on the training network and improving the recognition accuracy. Summary of the invention
[0005] The purpose of the present invention is to improve the recognition accuracy of distributed optical fiber sensors, and a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology is proposed. The present invention uses covariance-based similarity evaluation and accuracy evaluation to evaluate sample features, and gives sample weights based on similarity evaluation and accuracy evaluation. The noise sample features are corrected by weights, which can effectively reduce interference with the model and achieve a higher recognition rate.
[0006] The present invention is implemented by the following technical solution. The present invention proposes a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology, and the method comprises the following steps:
[0007] Step 1: Arrange distributed optical fiber sensors in the area to be monitored;
[0008] Step 2: Use the distributed optical fiber sensors arranged in step 1 to obtain a sufficient number of sample signals of the monitored area, including various types of intrusion behaviors that need to be identified, with a total of A types of behaviors, and each type of intrusion behavior has a total of k samples;
[0009] Step 3: Label the various intrusion behavior sample signals obtained in step 2, indicate the intrusion behavior category to which each sample belongs, and obtain samples with intrusion behavior category labels;
[0010] Step 4: After preprocessing the samples marked in step 3, extract various features and obtain a 1*N feature vector for each sample;
[0011] Step 5: Perform covariance calculations on all feature vectors of each type of sample extracted in step 4 to obtain A k*k covariance matrices, marked as cov k ;
[0012] Step 6: According to the cov obtained in step 5 k Matrix, calculate the covariance mean between each sample and other samples in each category, and obtain the correlation evaluation value of k samples and their categories;
[0013] Step 7: The covariance matrix cov obtained in step 5 k Calculate the matrix mean and obtain the accuracy evaluation value of this type of samples;
[0014] Step 8: Calculate the corresponding weight of each sample according to the relevance evaluation value of each sample obtained in step 6 and the accuracy evaluation value of each type of sample population obtained in step 7;
[0015] Step 9: Send the weighted samples to the classifier for training. After the training is completed, a model with high-accuracy recognition function is obtained.
[0016] Furthermore, in step five, the feature similarity between similar signals is calculated using a covariance matrix, and the feature of each sample is calculated with the features of other samples of the same signal to obtain the covariance.
[0017] Furthermore, cov k Each row in the matrix represents the covariance value between one sample and other samples.
[0018] Furthermore, the correlation evaluation value in step 6 is a value of cov k The average value of each row is obtained, which represents the average correlation between a certain sample and all other samples in its category, which is used to characterize the correlation of the sample in its category.
[0019] Furthermore, in step 7, the covariance matrix cov of each type of sample is k The average is calculated to obtain the average similarity of all samples in each category, which represents the accuracy of the samples in that category.
[0020] Furthermore, in step eight, the weight is calculated based on the relevance evaluation value of the sample and the accuracy evaluation value of the total sample of each type. The calculation method is that when the similarity evaluation value of a sample is greater than the accuracy evaluation value of the sample to which it belongs, the weight of the sample is 1, otherwise the weight is set to the ratio of the relevance evaluation value to the accuracy evaluation value.
[0021] Furthermore, the various features extracted in step 4 include time domain features and frequency domain features.
[0022] Furthermore, in step nine, the bp network is selected as a classifier for identification.
[0023] The present invention proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology are implemented.
[0024] The present invention provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps of a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology are implemented.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] 1. Innovatively, the covariance calculation is proposed to evaluate the correlation and accuracy of sample features in the process of distributed fiber optic sensor signal pattern recognition.
[0027] 2. For the first time, it is proposed to give sample weights based on relevance evaluation and accuracy evaluation, giving low weights to noise samples in the sample set to reduce their impact on the model, thereby improving recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0029] Figure 1 This is a processing flow chart of a sample evaluation method for pattern recognition applied to distributed optical fiber sensing technology proposed by the present invention. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Combination Figure 1 The present invention proposes a sample evaluation method for pattern recognition of distributed optical fiber sensing technology, the method comprising the following steps:
[0032] Step 1: Arrange distributed optical fiber sensors in the area to be monitored;
[0033] Step 2: Use the distributed optical fiber sensors arranged in step 1 to obtain a sufficient number of sample signals of the monitored area, including various types of intrusion behaviors that need to be identified, with a total of A types of behaviors, and each type of intrusion behavior has a total of k samples;
[0034] Step 3: Label the various intrusion behavior sample signals obtained in step 2, indicate the intrusion behavior category to which each sample belongs, and obtain samples with intrusion behavior category labels;
[0035] Step 4: After preprocessing the samples marked in step 3, various features are extracted to obtain a 1*N feature vector for each sample; the various features extracted in step 4 include time domain features and frequency domain features.
[0036] Step 5: Perform covariance calculations on all feature vectors of each type of sample extracted in step 4 to obtain A k*k covariance matrices, marked as cov kIn step 5, the feature similarity between similar signals is calculated by the covariance matrix, and the features of each sample are calculated with the features of other samples of the same signal to obtain the covariance. k Each row in the matrix represents the covariance value between one sample and other samples.
[0037] Step 6: According to the cov obtained in step 5 k Matrix, in each category of samples, calculate the covariance mean between each sample and other samples, and obtain the correlation evaluation value of k samples and their categories; the correlation evaluation value in step 6 is the covariance evaluation value of cov k The average value of each row is obtained, which represents the average correlation between a certain sample and all other samples in its category, which is used to characterize the correlation of the sample in its category.
[0038] Step 7: The covariance matrix cov obtained in step 5 k Calculate the matrix mean to obtain the accuracy evaluation value of the sample class; in step 7, the covariance matrix cov of each class of samples k The average is calculated to obtain the average similarity of all samples in each category, which represents the accuracy of the samples in that category.
[0039] Step eight, according to the relevance evaluation value of each sample obtained in step six and the accuracy evaluation value of each type of sample population obtained in step seven, calculate the corresponding weight of each sample; in step eight, the weight is calculated according to the relevance evaluation value of the sample and the accuracy evaluation value of each type of sample population, and the calculation method is that when the similarity evaluation value of a sample is greater than the accuracy evaluation value of the sample to which it belongs, the weight of the sample is 1, otherwise the weight is set to the ratio of the relevance evaluation value to the accuracy evaluation value.
[0040] Step 9: Send the weighted samples to the classifier for training. After the training is completed, a model with high-accuracy recognition function is obtained. In step 9, the bp network is selected as the classifier for recognition.
[0041] The present invention proposes a sample evaluation method for pattern recognition of distributed fiber optic sensing technology. In view of the problem of high false alarm rate when using distributed fiber optic sensors in actual applications, a sample evaluation weighting method is cleverly designed. By weighting the samples after evaluating the relevance and accuracy of sample features, the interference of noise samples on the model is effectively reduced, and a higher recognition rate is achieved. Compared with traditional methods, this method effectively reduces the impact of background noise, thereby ensuring efficient performance on data sets with large noise interference and achieving high classification accuracy. The method first requires a similarity evaluation module; the evaluation value of the sample feature relevance and the accuracy evaluation value of the sample class are determined by calculating the covariance between the sample features, and different weights are assigned to different samples according to the two results, so that the interference of the noise samples processed by weight correction on the model is reduced, a higher recognition rate is achieved, and the false alarm rate is reduced.
[0042] Example
[0043] The embodiment of the present invention provides a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology, thereby improving recognition accuracy.
[0044] A distributed optical fiber sensing system is used to monitor the wire fence arranged in the wild. The distributed optical fiber sensing system includes a narrow line width laser that emits continuous laser, an acousto-optic modulator that modulates the narrow line width laser emitted by the laser into pulse light, an erbium-doped fiber amplifier that increases the power of the pulse light, a circulator, through which the pulse light enters the sensing optical fiber, and the back-scattered Rayleigh light generated by the pulse light in the sensing optical fiber is input through the 2 ports of the circulator and output through the 3 ports, a photoelectric detector that converts the optical signal into an electrical signal, and a host computer that demodulates the signal to obtain the actual detection signal. In the process of outdoor environmental monitoring, the collected events are classified into four types: climbing, collision, strong wind interference, and no disturbance, and are labeled accordingly to indicate the category.
[0045] First, the data is preprocessed, and after data normalization and reasonable division, wavelet packet decomposition is performed, which is conducive to the subsequent feature extraction process. Feature extraction is performed on the preprocessed signal, and a total of 22 time domain features and frequency domain features are extracted (peak value, minimum value, peak-to-peak value, mean value, rectified mean value, root mean square, variance, standard deviation, kurtosis, skewness, margin factor, waveform factor, peak factor, pulse factor, clearance factor, wavelet energy, wavelet singular entropy, second-order wavelet packet decomposition low-low frequency band, second-order wavelet packet decomposition low-high frequency band, second-order wavelet packet decomposition high-low frequency band, second-order wavelet packet decomposition high-high frequency band).
[0046] The features of all samples were evaluated for relevance and accuracy, and the corresponding weight values were calculated based on these two results to obtain weighted samples. The bp network was selected as the classifier for identification. The samples weighted by feature evaluation were used for training and identification, and the recognition accuracy was 99.54%. In comparison, the recognition accuracy of the original unweighted samples using the bp network was 96.77%, which significantly improved the recognition accuracy and greatly enhanced the practical application value of distributed optical fiber sensors.
[0047] In order to reflect the improvement of the noisy sample improvement rate of the feature weighted optimization network proposed in the present invention, a data set containing sample noise is made for the anti-noise test of the model. By extracting samples of climbing and strong wind events from the original data set, and then mixing the samples of climbing events into the samples of strong wind events, the labels of the strong wind event samples are marked as strong winds, and the samples of strong wind events are mixed into the samples of climbing events, and the labels of the climbing event samples are marked as climbing. Through such processing, there is a certain amount of artificially manufactured sample noise in the sample, and these samples are used to represent the noise samples that appear when data is collected in the actual scene. For the noise samples mixed with 2%, 4%, and 8% respectively, the recognition accuracy of the BP network using the original features is 94.52%, 94.38%, and 91.92%, and the recognition accuracy of the BP network using the optimized features is 98.78%, 98.80%, and 98.72%. It can be seen that the feature weighted optimization method proposed in the present invention has a significant improvement in recognition accuracy, especially for samples with unavoidable noise mixing.
[0048] The present invention proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology are implemented.
[0049] The present invention provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps of a sample evaluation method applied to pattern recognition of distributed optical fiber sensing technology are implemented.
[0050] The memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DRRAM). It should be noted that the memory of the method described in the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0051] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).
[0052] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0053] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0054] The above is a detailed introduction to a sample evaluation method for pattern recognition of distributed optical fiber sensing technology proposed in the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A sample evaluation method for pattern recognition in distributed optical fiber sensing technology, characterized in that: The method comprises the following steps: Step 1: Arrange distributed optical fiber sensors in the area to be monitored; Step 2: Use the distributed optical fiber sensors arranged in step 1 to obtain a sufficient number of sample signals of the monitored area, including various types of intrusion behaviors that need to be identified, with a total of A types of behaviors, and each type of intrusion behavior has a total of k samples; Step 3: Label the various intrusion behavior sample signals obtained in step 2, indicate the intrusion behavior category to which each sample belongs, and obtain samples with intrusion behavior category labels; Step 4: After preprocessing the samples marked in step 3, extract various features and obtain a 1*N feature vector for each sample; Step 5: Perform covariance calculations on all feature vectors of each type of sample extracted in step 4 to obtain A k*k covariance matrices, marked as cov k ; In step 5, the feature similarity between similar signals is calculated through the covariance matrix, and the feature of each sample is calculated with the features of other samples of the same signal to obtain the covariance; k Each row in the matrix represents the covariance value between one sample and other samples; Step 6: According to the cov obtained in step 5 k Matrix, calculate the covariance mean between each sample and other samples in each category, and obtain the correlation evaluation value of k samples and their categories; Step 7: The covariance matrix cov obtained in step 5 k Calculate the matrix mean and obtain the accuracy evaluation value of this type of samples; Step 8: Calculate the corresponding weight of each sample according to the relevance evaluation value of each sample obtained in step 6 and the accuracy evaluation value of each type of sample population obtained in step 7; Step 9: Send the weighted samples to the classifier for training. After the training is completed, a model with high-accuracy recognition function is obtained.
2. The method according to claim 1, characterized in that: The correlation evaluation value in step 6 is cov k The average value of each row is obtained, which represents the average correlation between a certain sample and all other samples in its category, which is used to characterize the correlation of the sample in its category.
3. The method according to claim 1, characterized in that: In step 7, the covariance matrix cov of each type of sample is k The average is calculated to obtain the average similarity of all samples in each category, which represents the accuracy of the samples in that category.
4. The method according to claim 1, characterized in that: In step eight, the weight is calculated based on the relevance evaluation value of the sample and the accuracy evaluation value of each type of sample. The calculation method is that when the similarity evaluation value of a sample is greater than the accuracy evaluation value of the sample to which it belongs, the weight of the sample is 1, otherwise the weight is set to the ratio of the relevance evaluation value to the accuracy evaluation value.
5. The method according to claim 1, characterized in that: The various features extracted in step 4 include time domain features and frequency domain features.
6. The method according to claim 1, characterized in that: In step nine, select bp network as the classifier for identification.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium for storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
