A real-time raw data compression and transmission method for detector based on Internet of Things technology
Through the compression level classification model and lossless decompression technology of Internet of Things technology, the problems of high data transmission flow, high power consumption and stability in traditional earthquake monitoring systems are solved, and efficient and intelligent earthquake data compression and transmission are realized to ensure data integrity. and analytical value.
Patent Information
- Application Number
- CN202411045906.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-01
AI Technical Summary
In traditional earthquake monitoring systems, the real-time transmission of uncompressed raw seismic data results in high traffic consumption, high equipment power consumption, communication pressure and stability problems, and the existing compression technology has low efficiency and poor real-time performance, affecting data integrity and accurate analysis. sex.
Adopt a real-time raw data compression and transmission method based on Internet of Things technology, extract features through a compression level classification model, dynamically adjust the compression strategy, and use lossless decompression technology to generate compressed data and mark the transmission header to optimize the data transmission process.
Significantly reduce network traffic consumption, extend equipment deployment time, improve data transmission stability and reliability, reduce storage and processing pressure, ensure data integrity, and adapt to changing environments and data characteristics.
Smart Images

Figure CN118573208B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data compression transmission processing of Internet of Things, and in particular to a detector real-time raw data compression transmission method based on Internet of Things technology. Background Art
[0002] In traditional seismic monitoring systems, raw seismic data collected by geophones are usually transmitted directly in real time over wireless networks without compression. This raw data transmission method has the following key issues: High traffic consumption: The amount of raw seismic data is huge, especially in areas with frequent seismic activity, resulting in huge network traffic consumption. High traffic costs increase operating costs, especially in long-term monitoring projects. High device power consumption: The unoptimized data transmission process requires the device to maintain high power operation continuously, significantly shortening battery life and limiting the deployment time of the device in remote or difficult-to-reach areas. Communication pressure and stability issues: The real-time transmission of large amounts of data puts pressure on the network, especially in areas with unstable network coverage or weak signals, which may cause data loss or delay, affecting the reliability and real-time performance of the monitoring system. Storage and processing challenges: Uncompressed raw data takes up a lot of storage space, increasing the storage pressure on data centers, and placing higher requirements on data processing capabilities, increasing the complexity of data management and analysis. Although some initial attempts have used simple data compression techniques to alleviate the above problems, these methods often have the following limitations: Low compression efficiency: Traditional compression algorithms fail to fully consider the characteristics of seismic data, such as large dynamic range, changes in noise levels, and differences in data in different time periods, resulting in low compression ratios. Poor real-time and adaptability: Existing compression schemes may not be able to respond to changes in seismic activity in real time, and lack intelligent mechanisms to dynamically adjust compression strategies, making it difficult to adapt to changing environments and data characteristics. Data integrity risk: Some compression methods may sacrifice data quality, resulting in the loss of key information, affecting the accuracy and effectiveness of subsequent data analysis. In view of the above-mentioned defects, there is an urgent need for a more efficient and intelligent seismic data compression and transmission solution that can significantly reduce network traffic, reduce equipment power consumption, and improve the stability and reliability of data transmission, while ensuring data integrity and analytical value to support long-term seismic monitoring tasks. Summary of the invention
[0003] The present invention provides a method for compressing and transmitting real-time raw data of a detector based on the Internet of Things technology, comprising the following steps: step 1, acquiring raw data; extracting compression level classification model features; the raw data includes sampling point data of historical detectors, and extracting compression level classification model features from the raw data; step 2, acquiring real-time voltage amplitude group data of the detector; step 3, determining the compression type according to the compression level classification model features extracted from the raw data, the real-time voltage amplitude data of the detector and control parameters, wherein the control parameters are the levels of a compression mapping table; step 4, a server receives data compressed by the compression level classification model transmitted by the detector network, and performs reverse lossless decompression to restore the original data. The input parameter of the compression level classification model is to collect 3000 fixed sampling point data within the dynamic time window interval; after the compression level classification model performs DC removal and gain data removal processing, the absolute value of the sampling point data within the dynamic time window interval is obtained, and the absolute value is: a set of times less than 2 to the 8th to the 17th power; and the absolute value data is classified to obtain a minimum memory set level, and then the compression level classification model predicts the next time period threshold according to the minimum set level and determines whether to compress; the threshold includes the night quiet period threshold, the non-construction period threshold and the construction period threshold; the dynamic time window interval is: [250ms, 20s]; ms represents milliseconds, and s represents seconds.
[0004] The raw data includes the voltage amplitude of the detector raw data during the non-construction period when no fracturing is performed, the voltage amplitude of the detector raw data during the construction period when fracturing is performed, and the voltage amplitude of the detector raw data during the quiet period at night.
[0005] The sampling point range of the original data is a floating point number between [-2500, 2500] with a full scale of the detector; the compression level classification model performs data processing on the floating point numbers within this range with a full scale of the detector between [-2500, 2500]; the compression level classification model determines the binary output value of each sampling point, and then removes the redundant 0 or 1 to generate compressed data, and marks it in a mapping table, wherein the mapping table contains the level of compression of the original data, marking whether each sampling point in the mapping table needs to be compressed, 0 indicates no compression, and 1 indicates compression.
[0006] The control parameters dynamically determine the compression degree of data sampling points in three time periods: the nighttime quiet period, the construction period, and the non-construction period, based on the data processing results of the compression level classification model.
[0007] The compressed data generated by the compression level classification model includes a data header, a transmission header and compressed data of sampling points.
[0008] The data header records the GPS time, sampling rate and sampling point data of the sampling point; the transmission header includes a minimum set level and a mapping table; and the GPS is a global positioning system.
[0009] The voltage amplitude group data in step 2 is a data combination of 3000 sampling points; when the voltage amplitude group data is ≥2700 compressed data of sampling points, and the compressed data is the value of 8-bit original sampling points, it is classified as a high compression type and a high compression model is used; when the voltage amplitude group data is ≥2700 compressed data of sampling points; and the compressed data is the value of 8-16-bit original sampling points, it is classified as a general compression type and a normal compression model is used; when the voltage amplitude group data is <2700 compressed data of sampling points; it is classified as a normal type and a normal model is used.
[0010] The common compression model removes 8 bits of 0 or 8 bits of 1 from the original 32-bit binary length value of each sampling point.
[0011] The general compression type is a 24-bit binary value minus 1 to 8 bits of 0 or 1, resulting in a remaining 16-23-bit binary value.
[0012] The calculation formula of the raw data is: RawSize=(hnor+dnor)*(t[start, end])*1 / T.
[0013] The data calculation formula after compression by the compression level classification model is: NewSize=(hmin+map *(t[start, end])+dmax*E(f(tmax))+dnor * E(f(tnor))) * 1 / T; wherein: RawSize is the original data; NewSize is the data after compression by the compression level classification model. hnor is the data of the transmission channel header, dnor is the data of a sampling point, (t[start, end]) is the sum of the interval from the start acquisition time to the end acquisition time, 1 / T represents the sampling frequency of 1 second, T represents the period, hmin represents the use of 4 bytes to mark the time and the sampling point frame bit, map represents the mark bit of the mapping table of 1 bit size, marking whether to compress, and each sampling point requires a bit size as the mark bit; dmax represents the data of the high compression model to remove invalid data bytes; E(f(tmax)) is the sum of all sampling point times of the high compression model, and E(f(tnor)) is the sum of all sampling point times of the ordinary model.
[0014] The beneficial effects of the present invention: The present invention significantly reduces network traffic consumption. By compressing the original data of the detector, the data transmission volume is effectively reduced, thereby significantly reducing the network traffic consumption. The present invention improves the power consumption efficiency of the device: The compressed transmission method optimizes the data transmission process, reduces the power consumption of the device, and prolongs the deployment time of the device in remote or difficult-to-reach areas.
[0015] The present invention enhances the stability and reliability of data transmission: by classifying and compressing, data can be stably and quickly transmitted even in an environment with unstable network coverage or weak signal, thus avoiding the problem of data loss or delay. The present invention reduces storage and processing pressure: compressed data occupies less storage space, reduces the storage pressure of the data center, simplifies the data processing process, and improves the efficiency of data management and analysis.
[0016] The present invention maintains data integrity: the lossless decompression technology used ensures that the data remains intact after compression and transmission, does not affect the accuracy and effectiveness of subsequent data analysis, and provides high-quality data support for earthquake monitoring. The present invention adapts to changing environments and data characteristics: by dynamically adjusting the compression strategy, the method can respond to changes in seismic activity in real time, match different compression models, meet the needs of earthquake monitoring in different time periods and environments, and improve the flexibility and adaptability of monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The figure is a flow chart of a method for compressing and transmitting real-time raw data of a detector based on Internet of Things technology.
[0018] Figure 2 This is a schematic diagram of the voltage amplitude of the detector's raw data during the non-construction period when no fracturing is performed.
[0019] Figure 3 This is a schematic diagram of the voltage amplitude of the detector's raw data during the construction period of fracturing.
[0020] Figure 4 This is a schematic diagram of the voltage amplitude of the detector's raw data during the quiet period at night.
[0021] Figure 5 This is the structural diagram after the sampling point compressed data.
[0022] Figure numerals: 101: collecting raw data and extracting models; 102: detector collecting raw data; 103: different compression types corresponding to the characteristic values of the raw data collected in three different time periods contained in the raw data; 104: high compression method; 105: ordinary compression method; 106: ordinary method; 107: the server receives the data compressed by the compression level classification model transmitted by the detector network, and performs reverse lossless decompression to restore the original data; GPS: Global Positioning System; n: the nth natural number. DETAILED DESCRIPTION
[0023] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Among them, similar numbers are used in different embodiments. It is for the purpose that in the following embodiments, many detailed descriptions are for the purpose of making the present application better understood. However, those skilled in the art can easily realize that some of the features can be adjusted in different situations, or can be replaced by other conditions and methods. In some cases, some operations related to the present application are not shown or described in the specification, which is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the field. In addition, the characteristics or features described in the specification can be combined in any appropriate manner to form various embodiments. At the same time, the steps in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the accompanying drawings are only for the purpose of clearly describing a certain embodiment, and do not mean that they are necessary sequences, unless otherwise specified that a certain sequence must be followed.
[0024] like Figure 1 As shown, the present invention discloses a method for compressing and transmitting real-time raw data of a detector based on the Internet of Things technology, comprising the following steps: Step 1, acquiring raw data; extracting features of a compression level classification model; the raw data includes sampling point data of historical detectors, and extracting features of a compression level classification model from the raw data; classifying the raw data, mapping and generating compressed data; the compression level classification model decompresses and restores the data. Step 2, acquiring the real-time voltage amplitude group data of the detector. Step 3, determining the compression type based on the compression level classification model features extracted from the raw data, the real-time voltage amplitude data of the detector and the control parameters, wherein the control parameters are the levels of the compression mapping table. Step 4, the server receives the data compressed by the compression level classification model transmitted by the detector network, and performs reverse lossless decompression to restore the original data.
[0025] The raw data includes the voltage amplitude of the detector raw data during the non-construction period when no fracturing is performed, the voltage amplitude of the detector raw data during the construction period when fracturing is performed, and the voltage amplitude of the detector raw data during the quiet period at night.
[0026] The voltage amplitude of the detector raw data during the non-construction period without fracturing: There is no obvious fluctuation in the characteristic voltage feedback during the construction period without real-time fracturing, the energy is moderate, the change is not large, the noise is significantly reduced after the window sliding energy is superimposed, and the absolute value of the output voltage after extraction is greater than 0.6 mV and less than 10 mV, executing the normal compression model mode.
[0027] The voltage amplitude of the detector raw data during the construction period of fracturing: the characteristic voltage feedback change during the construction period of real-time fracturing has obvious fluctuations, large energy, and an absolute value greater than or equal to 10 millivolts, and the general compression model mode is executed.
[0028] The voltage amplitude of the raw data of the detector during the quiet period at night: The raw data amplitude of all detectors during the quiet period at night has small energy, stable output voltage, and extremely obvious periodic regularity characteristics of micro-motion data. The absolute value of the voltage is less than or equal to 0.6 mV, and the high compression model mode is implemented.
[0029] The sampling point range of the original data is a floating point number between the full scale of the detector [-2500, 2500]. The extraction model only processes the floating point numbers in this range. The original data extraction model determines the output value of each sampling point, and then removes the redundant 0 or 1 to generate a shorter data length. At the same time, the compression ratio of the sampling point is marked in the compression mapping table. The table contains the compression level and marks whether the sample points in each bit mark order in the table are to be compressed. 0 indicates no compression and 1 indicates compression.
[0030] The voltage amplitude of each sampling point is a floating point number. The corresponding formula for converting binary to floating point is: value=(((V<<23)1)*0xFFFFFF)*(V1<<16+V2<<8+V3) / ((0xFFFFFF) / 2). value represents the value converted from binary to floating point. (0xFFFFFF) represents 3 bytes of 24 bits, (V<<23) marks the positive and negative bits, V1, V2, and V3 represent the proportional values of the 24-bit display full scale; V1 is the integer value of the FF bit corresponding to 0xFF0000, V2 is the integer value of the FF bit corresponding to 0x00FF00, and V3 is the integer value of the FF bit corresponding to 0x0000FF.
[0031] V=(V1<<16+V2<<8+V3), V represents the sum of 24 binary bits. The full scale of the detector is [-2500,2500], and the sum of the 24 integer bits divided by 2 gives the correct floating point voltage amplitude.
[0032] Voltage amplitude calculation: For example, the binary value of the original data of the sampling point is: 111111111000001000000000; 11111111__10000010__00000000. V1=255; V2=130; V3=0; V=V1<<16 +V2<<8 +V3; V=16744960.
[0033] The highest bit is 1, so it represents a negative number. After the binary value is subtracted by 1, it is bitwise XORed with 0xFFFFFF (16777215).
[0034] (1111111111000001000000000 -1) ^ 0xFFFFFF = 32256. Then substitute the full scale [-2500, 2500] proportionally; 32256*(5000 / 0xFFFFFF) equals 9.613, and substitute a negative number equals -9.613; the voltage amplitude of the floating point number at this moment is -9.613.
[0035] Each sampling point of the original data is a floating-point voltage amplitude. For example, if the sampling point value extracted from the original data is 0.01 and it is judged to be greater than or less than 1.22, the 12 leading zeros of the 24 bits can be removed to shorten it to 12 bits. Then the bit corresponding to the compression mapping table position is modified to 1; 0 indicates no compression, and 1 indicates compression.
[0036] The control parameter is to determine how many 0 or 1 bits to remove from the sampling point by using the threshold value used in different time periods through the compression level classification model. For example, during the quiet period at night, 16 bits can be removed and 8 bits can be retained when calculating the compression level; during the non-construction period when no fracturing is performed and the construction period when fracturing is performed, the corresponding number of bits will be reduced due to the noise.
[0037] The control parameters dynamically determine the compression level of data sampling points during the night quiet period, non-construction period, and construction period based on the analysis results of the compression level classification model, including threshold setting and bit clipping. The control parameters are the level of compression mapping table, shortening 3 bytes to 1 byte (8 bits) and 2 bytes (16 bits), and the level of dynamic compression, ranging from 8 bits to 23 bits.
[0038] The input parameters of the compression level classification model are to collect the sampling point data in the dynamic time window interval, take the absolute value, and then remove the DC and gain to obtain the set of times within the time window sampling point where the absolute value of the data is less than 2 to the 8th to the 17th power, and classify them to obtain the level of a minimum memory set, and then predict the threshold of the next time period and select the compression level.
[0039] The calculation method for predicting the compression level using 10,000 sample points within a certain time period is as follows: there are 500 sample points within the 10,000 sample points whose absolute values are less than the sum of the binary values of 2 to the eighth power; the calculation method is as follows: 9500 * 24 +500 * 8 =1828000.
[0040] Among the 10,000 sample points, there are 4,400 sample points whose absolute values are less than the sum of the binary values of 2 to the 12th power; the calculation method is as follows: 5,600 * 24 + 4,400 * 12 = 1,665,600.
[0041] There are 6600 sampling points among 10000 sampling points whose absolute values are less than the sum of binary values of 2 to the power of 15; the calculation method is as follows: 3400 * 24 + 6600 * 15 = 1323000.
[0042] Among the 10,000 sample points, there are 6,800 sample points whose absolute values are less than the sum of the binary values of 2 to the 16th power; the calculation method is as follows: 3200 * 24 + 6800 * 16 = 1,337,600.
[0043] From the above calculation data analysis, it can be concluded that when the absolute value of 6600 sampling points is less than 2 to the 15th power, the sum of the binary values is the smallest, so the compression level classification model predicts that the compression level is 15.
[0044] The original data, detector data and control parameters are classified and the bytes at intervals are bound to a data header, and the transmission header is bound to transmit one data header at a time; in the working state, the default output range does not exceed the characteristic threshold, and the sampling point value is judged to be lower than the prediction threshold, and multiple invalid binary bits are removed, and the type is marked as compressible in the mapping table; the obtained bytes are sliced and connected to generate compressed data.
[0045] The data header mainly records the GPS time of the start sampling point, the sampling rate and the sampling point data, and the transmission header mainly stores the compression level and the compression mapping table data.
[0046] Assume that the number of data sampling points is 10,000. The calculation method of the memory size consumed by the original 10,000 sampling points is: 72 (data header) + 10,000*24 = 240,072.
[0047] The compression level classification model compresses 10,000 sample point data. Assuming that the compression level threshold is equal to 12, the calculation method of the memory size consumed after the compression level classification model compresses 10,000 sample point data is: 72 (data header) + 32 (control parameters) + 10,000 (compression mapping table) + the number of sample points less than the compression level threshold 12 * 12 + the number of sample points greater than or equal to the compression level threshold 12 * 24 = 156046.
[0048] 156046 / 240072=0.65, so the compression ratio is 0.65.
[0049] The voltage amplitude group data in step 2 is a data combination of 3000 sampling points.
[0050] When the voltage amplitude group data is ≥2700 compressed data of sampling points, and the compressed data is the value of the 8-bit original sampling point, it is classified as a high compression type and uses a high compression model.
[0051] When the voltage amplitude group data is ≥2700 compressed data of sampling points; and the compressed data is the value of 8-16 original sampling points, it is classified as a general compression type and uses a common compression model.
[0052] When the voltage amplitude group data is less than the compressed data of 2700 sampling points, it is classified as a normal type and uses a normal model.
[0053] The general compression type is to remove 8 bits of 0 or 1 from a 32-bit floating point number, leaving a 24-bit floating point number. The common compression method is to remove 1-8 bits of data length from the remaining 24-bit floating point number, leaving a floating point number with a length of 23-16 bits.
[0054] The calculation formula of the original data is: RawSize=(hnor +dnor)*(t[start, end])*1 / T. The calculation formula of the data compressed by the compression level classification model is NewSize=(hmin + map * (t[start, end]) +dmax * E(f(tmax))+ dnor * E(f(tnor))) * 1 / T. Wherein: RawSize is the original data; NewSize is the data compressed by the compression level classification model. hnor is the data of the transmission header, dnor is the data of a sampling point, (t[start, end]) is the sum of the interval from the start time of acquisition to the end time of acquisition, 1 / T represents the sampling frequency of 1 second, T represents the period, hmin represents the use of 4 bytes to mark the time and the sampling point frame bit, map represents the mark bit of the mapping table of 1 bit size, marking whether it is compressed, and each sampling point requires a bit size as a mark bit; dmax represents the data of removing invalid data bytes for the high compression model; E(f(tmax)) is the sum of the time of all sampling points of the high compression model, and E(f(tnor)) is the sum of the time of all sampling points of the ordinary model.
[0055] The sampled original data comes from the original data collected from multiple ground monitoring cases. The collected original data samples are three types of voltage amplitudes: the voltage amplitude of the detector original data in the non-construction period when no fracturing is performed; the voltage amplitude of the detector original data in the construction period when fracturing is performed and the voltage amplitude of the detector original data in the quiet period at night.
[0056] The voltage amplitude of the detector raw data during the non-construction period without fracturing is shown in Figure 2. Figure 2 The characteristic voltage feedback change during the non-construction period without real-time fracturing has no obvious fluctuation, the energy is moderate, the change is not big, the noise is significantly reduced after the form sliding energy is superimposed, the absolute value of the output voltage after extraction is greater than 0.6 mV and less than 10 mV, and the normal compression model mode is executed.
[0057] The voltage amplitude of the detector raw data during the construction period of fracturing, refer to Figure 3 The characteristic voltage feedback changes during the construction period of real-time fracturing have obvious fluctuations, large energy, and an absolute value greater than or equal to 10 millivolts, and the general compression model mode is executed.
[0058] The voltage amplitude of the detector raw data during the quiet period at night, refer to Figure 4The voltage amplitude of the detector's original data during the quiet period at night has small energy, stable output voltage, and extremely obvious periodic regularity of micro-motion data. After appropriately increasing the weight of time interval changes, the extraction result is obvious. The absolute value of the voltage is less than or equal to 0.6 mV, and the high compression model mode is executed.
[0059] After the compression level classification model training data is used, two features are generated: one is the time interval and the other is the threshold. The time interval includes the start and end time. The threshold marks the compression level. If the detector sampling start time belongs to the time interval within the compression level classification model training data, the threshold within the interval is selected. Figure 5 .
[0060] Said Figure 1 In step 102, the sensing data of the detector is obtained. After the detector is powered on for self-test, the output voltage amplitude of the detector can be obtained in real time.
[0061] Said Figure 1 The voltage amplitude group data in 103 is a data combination of 3000 sampling points.
[0062] When the voltage amplitude group data is ≥2700 compressed data of sampling points, and the compressed data is the value of the 8-bit original sampling point, it is classified as a high compression type and uses a high compression model.
[0063] When the voltage amplitude group data is ≥2700 compressed data of sampling points; and the compressed data is the value of 8-16 original sampling points, it is classified as a general compression type and uses a common compression model.
[0064] When the voltage amplitude group data is less than the compressed data of 2700 sampling points, it is classified as a normal type and uses a normal model.
[0065] Said Figure 1 101 represents sampling original data and extracting compression level classification model. Figure 1 104: high compression method; 105: normal compression method; 106: normal method; Since the actual construction environment requires long working hours, different data compression methods will be used for data compression and transmission in three different time periods: quiet night period, construction period, and non-construction period. The three compression methods are combined and run in a cycle. The compression level classification model sends the compressed data to the server. The structure diagram of the compressed data at the sampling point is shown in Figure 104. Figure 5 .
[0066] Said Figure 1 107 performs reverse lossless decompression to extract data. The server receives data compressed by the compression level classification model transmitted by the detector network, and then performs reverse lossless decompression to restore the original data.
[0067] Those skilled in the art can easily extract lossless detector data according to the above rules. The specific embodiments described above further explain the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A detector real-time raw data compression and transmission method based on Internet of Things technology, characterized in that: The method comprises the following steps: step 1, obtaining original data; extracting compression level classification model features; the original data comprises sampling point data of historical detectors, and extracting compression level classification model features from the original data; step 2, obtaining real-time voltage amplitude group data of the detector; step 3, determining the compression type according to the compression level classification model features extracted from the original data, the real-time voltage amplitude data of the detector and the control parameters, wherein the control parameters are the levels of the compression mapping table; step 4, the server receives the data compressed by the compression level classification model transmitted by the detector network, and performs reverse lossless decompression to restore the original data; the input parameters of the compression level classification model are the sampling point data of the historical detectors, and the compression level classification model is the sampling point data of the historical detectors; the compression level classification model is ... 3000 fixed sampling point data within the dynamic time window interval are collected; after the compression level classification model performs DC removal and gain data removal processing, the absolute value of the sampling point data within the dynamic time window interval is obtained, and the absolute value is: a set of times less than 2 to the 8th to the 17th power; and the absolute value data is classified to obtain a minimum memory set level, and then the compression level classification model predicts the next time period threshold according to the minimum set level and determines whether to compress; the threshold includes the night quiet period threshold, the non-construction period threshold and the construction period threshold; the dynamic time window interval is: [250ms, 20s]; ms represents milliseconds, and s represents seconds; The raw data includes the voltage amplitude of the raw data of the detector during the non-construction period when fracturing is not performed, the voltage amplitude of the raw data of the detector during the construction period when fracturing is performed, and the voltage amplitude of the raw data of the detector during the quiet period at night; The sampling point range of the original data is a floating point number between [-2500, 2500] with a full scale of the detector; the compression level classification model performs data processing on the floating point numbers within this range with a full scale of the detector between [-2500, 2500]; the compression level classification model determines the binary output value of each sampling point, and then removes the redundant 0 or 1 to generate compressed data, and marks it in a mapping table, wherein the mapping table contains the level of compression of the original data, marking whether each sampling point in the mapping table needs to be compressed, 0 indicates no compression, and 1 indicates compression.
2. The method for real-time raw data compression and transmission of a detector based on Internet of Things technology according to claim 1 is characterized in that: The control parameters dynamically determine the compression degree of data sampling points in three time periods: the nighttime quiet period, the construction period, and the non-construction period, based on the data processing results of the compression level classification model.
3. The method for real-time raw data compression and transmission of a detector based on Internet of Things technology according to claim 1 is characterized in that: The compressed data generated by the compression level classification model includes a data header, a transmission header and compressed data of sampling points.
4. The method for real-time original data compression and transmission of a detector based on Internet of Things technology according to claim 3 is characterized in that: The data header records the GPS time, sampling rate and sampling point data of the sampling point; the transmission header includes a minimum set level and a mapping table; and the GPS is a global positioning system.
5. The method for real-time original data compression and transmission of a detector based on Internet of Things technology according to claim 1 is characterized in that: The voltage amplitude group data in step 2 is a data combination of 3000 sampling points; when the voltage amplitude group data is ≥ the compressed data of 2700 sampling points, and the compressed data is the value of the 8-bit original sampling point, it is classified as a high compression type and a high compression model is used; When the voltage amplitude group data is ≥2700 sampling points of compressed data; and the compressed data is the value of the 8-16-bit original sampling point, it is classified as a general compression type and uses a common compression model; When the voltage amplitude group data is less than the compressed data of 2700 sampling points, it is classified as a normal type and uses a normal model; The common compression model is to remove 8 bits of 0 or 8 bits of 1 from the original 32-bit binary length value of each sampling point; the general compression type is to remove 1 to 8 bits of 0 or 1 from the 24-bit binary length value, and the remaining 16-23 bits of binary length value.
6. The method for real-time original data compression and transmission of a detector based on Internet of Things technology according to claim 1, characterized in that: The calculation method of the original data is as follows: RawSize=(hnor+dnor)*(t[start, end])*1 / T; the calculation formula of the data compressed by the compression level classification model is NewSize=(hmin+map*(t[start, end])+dmax*E(f(tmax))+dnor*E(f(tnor))) * 1 / T; where: RawSize is the original data; NewSize is the data compressed by the compression level classification model; hnor is the data of the transmission header, dnor is the data of a sampling point, (t[start, end]) is the sum of the interval from the start acquisition time to the end acquisition time, 1 / T represents a sampling frequency of 1 second, T represents the period, hmin represents the use of 4 bytes to mark the time and sampling point frame bit, map represents the mark bit of a mapping table of 1 bit size, marking whether it is compressed, and each sampling point requires a bit size as a mark bit; dmax represents the data of the high compression model to remove invalid data bytes; E(f(tmax)) is the sum of all sampling point times of the high compression model, and E(f(tnor)) is the sum of all sampling point times of the ordinary model.
