Data compression method for distributed optical fiber temperature measurement system based on implicit neural representation
Through the combination of implicit neural representation and stochastic Fourier feature mapping, the challenge of massive data storage in distributed optical fiber temperature sensing systems is solved, and efficient, low-cost lossy compression and accurate reconstruction are achieved, which is suitable for various distributions. Optical fiber temperature measurement data.
Patent Information
- Application Number
- CN202310274284.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-03-21
AI Technical Summary
How to efficiently and cost-effectively store the massive data generated by distributed optical fiber temperature sensing systems during long-distance real-time monitoring is a challenge, especially in the process of maintaining abnormal temperature information to avoid data loss.
Using a data compression method based on implicit neural representation, the input data is mapped from the original space to a low-dimensional feature space through random Fourier feature mapping, and an implicit neural network is used for data compression and decompression, combined with the ReLU activation function and Sigmoid output layer to achieve efficient compression and accurate reconstruction of data.
It achieves efficient and low-cost lossy compression storage, improves compression efficiency and reconstruction effect, reduces loss rate, is suitable for various distributed optical fiber temperature measurement data, and has high versatility and adaptability.
Smart Images

Figure CN116388766B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a time series data compression method, and in particular to a distributed optical fiber temperature measurement system data compression method based on implicit neural representation. Background Art
[0002] Distributed fiber optic temperature sensing system, also known as DTS, is widely used in industrial field temperature monitoring due to its advantages such as wide detection range and strong anti-electromagnetic interference ability. A single optical fiber can simultaneously realize temperature monitoring and signal transmission. However, the DTS system will generate a large amount of monitoring data during long-distance real-time monitoring. How to store the data efficiently and at a low cost is a challenge.
[0003] At present, data compression algorithms are divided into lossless compression and lossy compression. Among them, lossless data compression algorithms usually establish special dictionary tables and re-encode data using unequal length coding methods, such as Lempel-Ziv coding, Huffman coding, DEFLATE coding, etc. Common lossy compression algorithms include discrete cosine transform, wavelet transform, PCA, SVD, neural network-based predictive coding and decoding, etc. When compressing data with abnormal temperature storage, lossy compression can achieve a good compression rate, but it is easy to lose abnormal temperature information to a certain extent. Summary of the invention
[0004] The purpose of the present invention is to provide a method for solving the above-mentioned problems. For data of different length segments of DTS, different data compression methods with different decoding precisions are adopted. While compressing redundant information in the data, temperature abnormality data is retained to the greatest extent to avoid data loss, thereby realizing efficient and low-cost storage of massive monitoring data. A data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation is provided.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows: a data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation, comprising the following steps;
[0006] (1) The distributed optical fiber temperature measurement system is used to collect data T times, and each time an anti-Stokes data and a Stokes data are obtained, both of which are row vectors with a length of L;
[0007] (2) The T anti-Stokes data are used to form an anti-Stokes matrix with T rows and L columns, where the element in the i-th row and j-th column is the j-th element in the anti-Stokes data collected for the i-th time; i=1~T, j=1~L, and the T Stokes data are also used to form a Stokes matrix with T rows and L columns;
[0008] (3) Normalizing the data in the anti-Stokes matrix and the Stokes matrix to obtain a normalized anti-Stokes matrix and a normalized Stokes matrix, both of which are of size T × L;
[0009] (4) setting the number N of characteristic parameters in the random Fourier characteristic mapping, performing random Fourier characteristic mapping on the position coordinates of each element of the normalized anti-Stokes matrix or the normalized Stokes matrix to obtain a mapping value, and all the mapping values constitute a mapping matrix with T×L rows and 2×N columns;
[0010] (5) Data compression;
[0011] Construct an implicit neural network, take the mapping value as input, obtain the position coordinates corresponding to the mapping value, and take the two element values corresponding to the position coordinates in the normalized anti-Stokes matrix and the normalized Stokes matrix as output, train the implicit neural network to obtain a pre-trained model, and the pre-trained model is compressed data;
[0012] (6) Data decompression;
[0013] (61) sequentially sending the mapping values of the mapping matrix into the pre-trained model to obtain output, each mapping value corresponds to two element values, the element values of the corresponding normalized anti-Stokes matrix are sequentially arranged to obtain anti-Stokes reconstruction data, and the element values of the corresponding normalized Stokes matrix are sequentially arranged to obtain Stokes reconstruction data;
[0014] (62) The anti-Stokes reconstruction data and the Stokes reconstruction data are respectively denormalized to obtain anti-Stokes decompressed data and Stokes decompressed data.
[0015] As a preferred embodiment: step (1) specifically comprises using a distributed optical fiber temperature measurement system to collect the light intensity of the anti-Stokes optical signal and the Stokes optical signal, thereby obtaining anti-Stokes data and Stokes data.
[0016] Preferably, in step (3), the normalization method of the anti-Stokes matrix and the Stokes matrix is the same, and the anti-Stokes matrix is normalized using the following formula:
[0017]
[0018] Where data max and data minare the maximum and minimum values of all elements in the anti-Stokes matrix, respectively. i,j is the element in the i-th row and j-th column of the anti-Stokes matrix, x i,j ' is the element in the i-th row and j-th column of the normalized anti-Stokes matrix.
[0019] As a preferred embodiment: step (4) is specifically:
[0020] (a1) setting the number N of feature parameters in the random Fourier feature map, where N is a positive integer;
[0021] (a2) defining a data matrix B of size 2×N, wherein the element values in the data matrix B are random;
[0022] (a3) Construct a coordinate system with the number of acquisitions T and the length L, and select an anti-Stokes matrix or a Stokes matrix. The matrix has a total of T×L position coordinates, and the position coordinate of the element in the i-th row and j-th column is (i, j). The horizontal coordinates and vertical coordinates of all position coordinates are stored in a one-dimensional array with T×L rows and 1 column, respectively, and then spliced into a matrix V with T×L rows and 2 columns;
[0023] (a4) Map the matrix V to the function η(V) according to the following formula:
[0024] η(V)=[cos(2π×VB),sin(2π×VB)]
[0025] The η(V) is a matrix of T×L rows and 2×N columns.
[0026] Preferably, in step (5), the implicit neural network is composed of an input layer, three hidden layers, and an output layer;
[0027] The first layer is the input layer, the input data size is T×L rows, 2×N, the input feature dimension is 2×N, the output feature dimension is N, the bias parameter bias=True, and the activation function is set to ReLU;
[0028] The second layer is the first hidden layer, with an input feature dimension of N, an output feature dimension of N, a bias parameter of bias = True, and an activation function of ReLU;
[0029] The third layer is the second hidden layer, the input feature dimension is N, the output feature dimension is 1 / 2N, the bias parameter bias = True, and the activation function is ReLU;
[0030] The fourth layer is the third hidden layer, the input feature dimension is 1 / 2N, the output feature dimension is N, the bias parameter bias = True, and the activation function is ReLU;
[0031] The 5th layer is the output layer, the input feature dimension is N, the output feature dimension is 2, the bias parameter bias = True, the activation function is Sigmoid, and the output data size is (T×L)×2.
[0032] Preferably, in the step (62), the anti-Stokes reconstruction data and the Stokes reconstruction data are processed in the same manner for denormalization, wherein the anti-Stokes reconstruction data are denormalized using the following formula:
[0033] z i,i =z i,j '×(D max -D min )+D min
[0034] Where D max and D min are the maximum and minimum values of all elements in the anti-Stokes reconstruction data, respectively. i,j ' is the element in row i and column j in the anti-Stokes reconstruction data, z i,j Decompress the anti-Stokes data for the element at row i and column j.
[0035] Preferably, the length L is proportional to the number N of feature parameters in the leaf feature map.
[0036] The idea of the present invention is to collect anti-Stokes data and Stokes data on site for multiple times to form an anti-Stokes matrix and a Stokes matrix. Each element in the matrix corresponds to a position coordinate. Since the anti-Stokes matrix and the Stokes matrix have the same size, both of which are T rows and L columns, the same position coordinate corresponds to an element value in the anti-Stokes matrix and the Stokes matrix respectively; that is, one position coordinate corresponds to two element values;
[0037] After normalizing the anti-Stokes matrix and the Stokes matrix respectively, any normalized matrix is selected, which can be the normalized anti-Stokes matrix or the normalized Stokes matrix, and the position coordinates of each element therein are subjected to random Fourier feature mapping to obtain the mapping value, which is then sent to the implicit neural network for training.
[0038] Compared with the prior art, the advantages of the present invention are:
[0039] The present invention proposes a new data compression method, which is mainly used for lossy compression of massive continuous time series data generated by distributed optical fiber temperature measurement system during long-distance real-time monitoring. Among them, random Fourier feature mapping is used to map input data from original space to low-dimensional feature space, and the computational complexity is only linear. Compared with other kernel function methods such as radial basis function (RBF) and polynomial kernel function, it is faster, that is, it takes less time to compress the data collected by distributed optical fiber temperature measurement system. And the implementation of random Fourier feature mapping is relatively simple, only simple Fourier transform and matrix multiplication operations are required, and compared with other kernel function methods, it has stronger robustness to noise data and outliers. Using implicit neural network can process a large amount of continuous time series data generated by distributed optical fiber sensing technology, and the data generated by distributed optical fiber sensing technology usually has high-dimensional features, and implicit neural network can process these high-dimensional data, so that the inherent law of data can be better captured, and the temperature distribution information of distributed optical fiber sensing data can be accurately reconstructed while having high compression efficiency.
[0040] In summary, the present invention can perform efficient and low-cost lossy compression storage on the massive monitoring data generated by the distributed optical fiber temperature measurement system, and has the following advantages: (1) High compression efficiency: Through the optimization and training of the implicit neural network model, the inherent laws of the data can be captured, thereby improving the compression efficiency and reducing the storage space and transmission cost of the data. (2) Good reconstruction effect: Through the combination of random Fourier feature mapping and the implicit neural representation method based on the ReLU multi-layer perceptron (MLP), the temperature distribution information of the distributed optical fiber sensor data can be accurately reconstructed, which has a great similarity with the original data after visualization, and the deviation between the two is very small, which further verifies the fidelity of the reconstructed data. (3) Low loss rate: Compared with traditional compression methods, the compression process based on the implicit neural representation method is lossy, but under the premise of ensuring the reconstruction effect, the compression distortion rate can be reduced by adjusting the compression parameters to improve the data restoration accuracy. (4) Strong applicability: The implicit neural network model used in the present invention does not depend on the specific form and characteristics of the data, and is applicable to various types of distributed optical fiber temperature measurement data, with good versatility and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is the schematic diagram of the distributed optical fiber temperature measurement system;
[0042] Figure 2 It is a flow chart of the present invention;
[0043] Figure 3 When the optical fiber in Example 2 is calibrated, the anti-Stokes data of the same optical fiber are collected once at 19°C, 42°C, 60°C and 80°C and normalized;
[0044] Figure 4 Schematic diagram of the normalized anti-Stokes matrix obtained after steps (2) and (3) of the anti-Stokes data collected at 19° C. in Example 2;
[0045] Figure 5 It is the structural diagram of implicit neural network;
[0046] Figure 6 The comparison diagram of reconstructed data and original data when N=32;
[0047] Figure 7 The comparison diagram of reconstructed data and original data when N=128;
[0048] Figure 8 The comparison diagram of reconstructed data and original data when N=256;
[0049] Fig. 9 When N=256, the thermal comparison diagram of the original data, the reconstructed data and the difference between the two. DETAILED DESCRIPTION
[0050] The present invention will be further described below in conjunction with the accompanying drawings.
[0051] Example 1: See Figure 1 to Figure 2 ,A data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation, comprises the following steps;
[0052] (1) The distributed optical fiber temperature measurement system is used to collect data T times, and each time an anti-Stokes data and a Stokes data are obtained, both of which are row vectors with a length of L;
[0053] (2) The T anti-Stokes data are used to form an anti-Stokes matrix with T rows and L columns, where the element in the i-th row and j-th column is the j-th element in the anti-Stokes data collected for the i-th time; i=1~T, j=1~L, and the T Stokes data are also used to form a Stokes matrix with T rows and L columns;
[0054] (3) Normalizing the data in the anti-Stokes matrix and the Stokes matrix to obtain a normalized anti-Stokes matrix and a normalized Stokes matrix, both of which are of size T × L;
[0055] (4) setting the number N of characteristic parameters in the random Fourier characteristic mapping, performing random Fourier characteristic mapping on the position coordinates of each element of the normalized anti-Stokes matrix or the normalized Stokes matrix to obtain a mapping value, and all the mapping values constitute a mapping matrix with T×L rows and 2×N columns;
[0056] (5) Data compression;
[0057] Construct an implicit neural network, take the mapping value as input, obtain the position coordinates corresponding to the mapping value, and take the two element values corresponding to the position coordinates in the normalized anti-Stokes matrix and the normalized Stokes matrix as output, train the implicit neural network to obtain a pre-trained model, and the pre-trained model is compressed data;
[0058] (6) Data decompression;
[0059] (61) sequentially sending the mapping values of the mapping matrix into the pre-trained model to obtain output, each mapping value corresponds to two element values, the element values of the corresponding normalized anti-Stokes matrix are sequentially arranged to obtain anti-Stokes reconstruction data, and the element values of the corresponding normalized Stokes matrix are sequentially arranged to obtain Stokes reconstruction data;
[0060] (62) The anti-Stokes reconstruction data and the Stokes reconstruction data are respectively denormalized to obtain anti-Stokes decompressed data and Stokes decompressed data.
[0061] In this embodiment, step 2 (1) specifically includes using a distributed optical fiber temperature measurement system to collect the light intensity of the anti-Stokes optical signal and the Stokes optical signal, thereby obtaining anti-Stokes data and Stokes data.
[0062] In step (3), the normalization method of the anti-Stokes matrix and the Stokes matrix is the same, and the anti-Stokes matrix is normalized using the following formula:
[0063]
[0064] Where data max and data min are the maximum and minimum values of all elements in the anti-Stokes matrix, respectively. i,j is the element in the i-th row and j-th column of the anti-Stokes matrix, x i,j ' is the element in the i-th row and j-th column of the normalized anti-Stokes matrix.
[0065] Step (4) is specifically as follows:
[0066] (a1) setting the number N of feature parameters in the random Fourier feature map, where N is a positive integer;
[0067] (a2) defining a data matrix B of size 2×N, wherein the element values in the data matrix B are random;
[0068] (a3) Construct a coordinate system with the number of acquisitions T and the length L, and select an anti-Stokes matrix or a Stokes matrix. The matrix has a total of T×L position coordinates, and the position coordinate of the element in the i-th row and j-th column is (i, j). The horizontal coordinates and vertical coordinates of all position coordinates are stored in a one-dimensional array with T×L rows and 1 column, respectively, and then spliced into a matrix V with T×L rows and 2 columns;
[0069] (a4) Map the matrix V to the function η(V) according to the following formula:
[0070] η(V)=[cos(2π×VB),sin(2π×VB)]
[0071] The η(V) is a matrix of T×L rows and 2×N columns.
[0072] In step (5), the implicit neural network consists of an input layer, three hidden layers, and an output layer;
[0073] The first layer is the input layer, the input data size is T×L rows, 2×N, the input feature dimension is 2×N, the output feature dimension is N, the bias parameter bias=True, and the activation function is set to ReLU;
[0074] The second layer is the first hidden layer, with an input feature dimension of N, an output feature dimension of N, a bias parameter of bias = True, and an activation function of ReLU;
[0075] The third layer is the second hidden layer, the input feature dimension is N, the output feature dimension is 1 / 2N, the bias parameter bias = True, and the activation function is ReLU;
[0076] The fourth layer is the third hidden layer, the input feature dimension is 1 / 2N, the output feature dimension is N, the bias parameter bias = True, and the activation function is ReLU;
[0077] The 5th layer is the output layer, the input feature dimension is N, the output feature dimension is 2, the bias parameter bias = True, the activation function is Sigmoid, and the output data size is (T×L)×2.
[0078] In step (62), the anti-Stokes reconstruction data and the Stokes reconstruction data are processed in the same manner for denormalization, wherein the anti-Stokes reconstruction data is denormalized using the following formula:
[0079] z i,j =z i,j '×(D max -D min )+D min
[0080] Where D max and D min are the maximum and minimum values of all elements in the anti-Stokes reconstruction data, respectively. i,j ' is the element in row i and column j in the anti-Stokes reconstruction data, z i,j Decompress the anti-Stokes data for the element at row i and column j.
[0081] The length L is proportional to the number N of feature parameters in the leaf feature map.
[0082] Example 2: See Figure 1-Figure 9 In this embodiment, we simulate an industrial operation site and conduct simulation experiments using a distributed fiber optic temperature measurement system. We set up a distributed fiber optic temperature measurement system in a laboratory. The system can monitor the temperature distribution in the laboratory in real time, thereby helping researchers to better control and monitor experimental conditions. Specifically, we can lay out the sensing optical fiber at key locations in the laboratory, such as reactors, heaters, coolers and other equipment, as well as temperature stratified areas in the laboratory, such as heating areas and cooling areas. In this scenario, we set several key temperature points such as 19°C, 42°C, 60°C and 80°C, where the laboratory ambient temperature is 19°C, to monitor the temperature distribution in real time and detect any abnormalities in time for adjustment and control. By using distributed fiber optic sensing technology and data compression methods based on implicit neural representation, we can achieve efficient and reliable temperature monitoring and data processing, and improve the precision and accuracy of data acquisition during the experiment. Before the simulation experiment, we used the same optical fiber to collect anti-Stokes data and Stokes data at 19℃, 42℃, 60℃ and 80℃ respectively, and calibrated the optical fiber. Since multiple collections were performed at different temperatures, the amount of data was large and not intuitive. In order to better display and observe the data, we only visualized the anti-Stokes data collected and normalized once, see Figure 3 , Figure 3 In the example, the sampling length is the length L.
[0083] Regarding step (1): we collect data T=1035 times, L=2000, then for each collection, we obtain an anti-Stokes data containing 2000 elements and a Stokes data containing 2000 elements, both of which are row vectors; so after collecting data 1035 times, we obtain a total of 1035 rows of anti-Stokes data row vectors and 1035 rows of Stokes data row vectors.
[0084] Regarding step (2): 1035 anti-Stokes data constitute an anti-Stokes matrix with 1035 rows and 2000 columns. The data at the 1st row and 1st column is exactly the 1st data in the anti-Stokes data collected for the 1st time. Similarly, the data at the 1035th row and 2000th column is exactly the 2000th data in the anti-Stokes data collected for the 1035th time. The construction method of the Stokes matrix is the same as that of the anti-Stokes matrix, which will not be repeated here. Both matrices have 1035 rows and 2000 columns.
[0085] Regarding step (3): We perform normalization in order to speed up the gradient descent solution when the data is subsequently loaded into the implicit neural network, that is, to improve the convergence speed of the model and shorten the data compression time. After normalization, the values of the two matrix elements have changed, but the matrix size is still 1035 rows and 2000 columns.
[0086] Regarding step (4): Regarding the number N of feature parameters in the random Fourier feature mapping, in order to highlight the impact of different N values on the results of the present invention, we selected several different values for comparison, and let N be equal to 32, 128, and 256 respectively. In the random Fourier feature mapping, N is the n_feature value in the program. When performing random Fourier feature mapping, it is only necessary to randomly select a normalized anti-Stokes matrix or a normalized Stokes matrix, without selecting two, thereby reducing data redundancy and improving computing efficiency. Due to different N values, the size of the mapping matrix is also different.
[0087] When N = 32, the size of the mapping matrix is 2,070,000 rows and 64 columns;
[0088] When N = 128, the size of the mapping matrix is 2,070,000 rows and 256 columns;
[0089] When N=256, the size of the mapping matrix is 2,070,000 rows and 512 columns.
[0090] Taking N=256 as an example, the process of random Fourier feature mapping in the present invention is described in detail as follows:
[0091] (a1) setting the number of feature parameters in the random Fourier feature map N = 256;
[0092] (a2) defining a data matrix B of size 2×256, wherein the element values in the data matrix B are random. In this embodiment, the element values may be limited to no more than 20, but are not limited to these values;
[0093] (a3) With T as the ordinate and L as the abscissa, we construct a coordinate system. We choose the anti-Stokes matrix, which has 1035×2000 elements. Each element corresponds to 1 position coordinate. The position coordinate of the element in the first row and first column is (1,1), and the position coordinate of the element in the i-th row and j-th column is (i,j). Therefore, the matrix has 2070000 position coordinates, that is, 2070000 abscissas and 2070000 ordinates. The 2070000 abscissas are sequentially stored as a one-dimensional array of 2070000 rows and 1 column, and the 2070000 ordinates are sequentially stored as a one-dimensional array of 2070000 rows and 1 column, and the two are concatenated into a matrix V of 2070000 rows and 2 columns.
[0094] (a4) Map the matrix V to the function η(V) according to the following formula:
[0095] η(V)=[cos(2π×VB),sin(2π×VB)]
[0096] The final η(V) is a matrix with 2,070,000 rows and 512 columns.
[0097] Regarding step (5): In the pre-trained model, each mapping value corresponds to 2 element values, corresponding to anti-Stokes data and Stokes data respectively.
[0098] Regarding step (6): we define the anti-Stokes data and Stokes data collected in step (1) as the original data, and the data after decompression in step (6) as the reconstructed data. When N is equal to 32, 128, and 256, the comparison diagram between the reconstructed data and the original data is as follows: Figure 6 , Figure 7 , Figure 8 .
[0099] from Figure 6-Figure 8 It can be seen that the use of this method for time series signal data, especially the measured data of the distributed optical fiber temperature measurement system, can well realize data compression and reconstruction without losing temperature information, and for data of different length segments of DTS, data compression and reconstruction methods with different decoding accuracy can be used.
[0100] Figure 6The figure shows the reconstructed data, the original data, and the difference between the two when N = 32. The reconstructed data retains the general temperature range, but it is quite different from the original data. The difference between the original data and the reconstructed data fluctuates significantly, and the reconstruction effect is poor. Figure 7 When N=128, the reconstructed data, the original data, and the difference between the two are shown. The reconstructed data is roughly consistent with the original data, but there is still a large error in the temperature mutation area. Figure 8 When N=256, the reconstructed data is basically consistent with the original data, the error area and error value are reduced, and the reconstruction effect is good.
[0101] In this embodiment, when T=1035, L=2000, and N=256, the method of the present invention can compress 15.26MB of data to 1.26MB, with significant effect.
[0102] exist Fig. 9 In the figure, we show the thermal maps of the measured temperature data, the compressed reconstructed data, and the difference between the two when N=256. In the thermal maps of the original data and the reconstructed data, we can see that they are highly similar and show almost the same temperature distribution characteristics. Through the difference between the two, we further verified that the proposed compression method can achieve effective data compression while maintaining high fidelity, that is, the reconstructed data is almost indistinguishable from the original data. It is worth noting that in the difference between the two, only a small fluctuation occurs near the zero value, which shows that the proposed method can accurately reconstruct the temperature distribution information of distributed fiber optic sensing data while having a high compression efficiency. Therefore, this data compression method based on implicit neural representation can achieve reliable data reconstruction and processing in distributed fiber optic sensing applications.
[0103] Example 3: In order to illustrate the technical effect of the method of the present invention, we do not use the method of the present invention, but only use the continuous time series data obtained from the distributed optical fiber temperature sensing system. Using a multi-layer perceptron based on ReLU, it is impossible to accurately reconstruct the compressed time series data. Only by combining random Fourier feature mapping can it be done. The present invention uses data compression methods with different decoding precisions for data of different length segments of DTS, that is, the number of T×L and N is adjustable. While compressing redundant information in the data, the temperature anomaly data is retained to the greatest extent, so as to achieve efficient and low-cost storage of massive monitoring data.
[0104] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation, characterized in that: The steps include: (1) The distributed optical fiber temperature measurement system is used to collect data T times. Each time, an anti-Stokes data and a Stokes data are obtained, both of which are row vectors with a length of L. (2) The T anti-Stokes data are used to form an anti-Stokes matrix with T rows and L columns, where the element in the i-th row and j-th column is the j-th element in the i-th anti-Stokes data collected; i=1~T, j=1~L, and then the T-times Stokes data also form a Stokes matrix with T rows and L columns; (3) Normalize the data in the anti-Stokes matrix and the Stokes matrix to obtain the normalized anti-Stokes matrix and the normalized Stokes matrix, both of which are of size T × L; (4) Setting the number N of characteristic parameters in the random Fourier characteristic mapping, performing random Fourier characteristic mapping on the position coordinates of each element of the normalized anti-Stokes matrix or the normalized Stokes matrix to obtain a mapping value, and all the mapping values constitute a mapping matrix with T×L rows and 2×N columns; (5) Data compression; An implicit neural network is constructed, the mapping value is used as input, the position coordinates corresponding to the mapping value are obtained, and the two element values corresponding to the position coordinates in the normalized anti-Stokes matrix and the normalized Stokes matrix are used as outputs, and the implicit neural network is trained to obtain a pre-trained model, which is used to compress data; (6) Data decompression; (61) The mapping values of the mapping matrix are sequentially sent to the pre-trained model to obtain output, each mapping value corresponds to two element values, the element values of the corresponding normalized anti-Stokes matrix are sequentially arranged to obtain anti-Stokes reconstruction data, and the element values of the corresponding normalized Stokes matrix are sequentially arranged to obtain Stokes reconstruction data; (62) Denormalizing the anti-Stokes reconstruction data and the Stokes reconstruction data respectively to obtain anti-Stokes decompressed data and Stokes decompressed data; Step (4) is specifically as follows: (a1) Setting the number N of feature parameters in the random Fourier feature map, where N is a positive integer; (a2) defining a data matrix B of size 2×N, wherein the element values in the data matrix B are random; (a3) Construct a coordinate system with the number of acquisitions T and length L. Select an anti-Stokes matrix or a Stokes matrix. The matrix has T×L position coordinates. The position coordinate of the element in the i-th row and j-th column is (i, j). The horizontal and vertical coordinates of all position coordinates are stored in a one-dimensional array with T×L rows and 1 column, respectively, and then spliced into a matrix with T×L rows and 2 columns. V ; (a4) According to the following formula, the matrix V Mapping to functions η(V) middle; , Said η(V)is T×L rows, 2× N A matrix of columns; The length L is proportional to the number N of feature parameters in the random Fourier feature map.
2. The data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation according to claim 1 is characterized in that: Step (1) specifically includes using a distributed optical fiber temperature measurement system to collect the light intensity of the anti-Stokes optical signal and the Stokes optical signal, thereby obtaining anti-Stokes data and Stokes data.
3. The data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation according to claim 1 is characterized in that: In step (3), the normalization method of the anti-Stokes matrix and the Stokes matrix is the same. The anti-Stokes matrix is normalized using the following formula: , In the formula data max and data min are the maximum and minimum values of all elements in the anti-Stokes matrix, x i,j is the first i Line j The elements of the column, x i,j ’ is the normalized anti-Stokes matrix i Line j Elements of a column.
4. The data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation according to claim 1 is characterized in that: In step (5), the implicit neural network consists of an input layer, three hidden layers, and an output layer; The first layer is the input layer, the input data size is T×L rows, 2×N, the input feature dimension is 2×N, the output feature dimension is N, the bias parameter bias=True, and the activation function is set to ReLU; The second layer is the first hidden layer, with an input feature dimension of N, an output feature dimension of N, a bias parameter of bias=True, and an activation function of ReLU; The third layer is the second hidden layer, the input feature dimension is N, the output feature dimension is 1 / 2 N, the bias parameter bias=True, and the activation function is ReLU; The fourth layer is the third hidden layer, the input feature dimension is 1 / 2 N, the output feature dimension is N, the bias parameter bias=True, and the activation function is ReLU; The fifth layer is the output layer, with an input feature dimension of N, an output feature dimension of 2, a bias parameter of bias=True, an activation function of Sigmoid, and an output data size of (T×L)×2.
5. The data compression method for a distributed optical fiber temperature measurement system based on implicit neural representation according to claim 3 is characterized in that: In the step (62), the anti-Stokes reconstruction data and the Stokes reconstruction data are processed in the same manner for denormalization, wherein the anti-Stokes reconstruction data is denormalized using the following formula: , In the formula, D max and D min are the maximum and minimum values of all elements in the anti-Stokes reconstruction data, z i,j ’ For the anti-Stokes reconstruction data i Line j The elements of the column, z i,j For the anti-Stokes decompression data i Line j Elements of a column.
