Research on Two-Stage Data Compression at the Acquisition Node in Remote-Detection Acoustic Logging
Abstract
1. Introduction
2. Principle of Two-Stage Compression in Data Acquisition Node
3. Realization of Two-Stage Compression in FPGA
3.1. Hardware Design
3.2. Firmware Design
3.2.1. Realization of the First-Stage Compression
- (1)
- The rom_controller module controls the ROM output, ensuring that the original data are sent to the exetend_data module. The system operates using the 50 MHz system clock (clk) and reset signal (rst_n). When the read enable signal (rd_en) is high, the module reads 16-bit unsigned logging data from the ROM one by one and outputs it via rom_dout[15..0]. The exetend_data module can read the current output data when the valid signal (rom_valid) is high.
- (2)
- The exetend_data module is designed based on the state machine concept, which caches and boundary-extends the data received from the rom_controller module and prepares it for subsequent convolutional processing. When the input valid signal (valid_in) is high, the input data (data_in[15..0]) is cached in the internal RAM and then symmetrically mirrored and extended at both ends using the signal edges as reference points. The symmetric extension transforms the original 2048 data sequence into 2062 data (Equation (1)). Once the extension is completed, the processed data are output via data_out[15..0] after the output valid signal (valid_out) is pulled high.
- (3)
- The lowpass_filter module performs the convolutional computation based on db4 wavelets with a filter length of 8. As the sampling interval is 8 us, the cut-off frequency of the lowpass_filter is 31.25 kHz. This module uses an 8-level data shift register as the front-end caching unit for its convolutional pipeline. When the data valid signal (din_valid) is high, the extended input data (filter_din) are sequentially pushed into the registers in each clock cycle, thereby creating a dynamic sliding window. Once the register groups are filled, the cached data are convolved with integer-based low-pass filter coefficients in a three-stage pipeline. The first stage uses a parallel multiplier for the simultaneous multiplication of the eight data points with their coefficients. The second and third stages sequentially add the eight parallel multiplication results into the final convolutional sum using a two-stage addition pipeline. Combining FIFO storage and a modulo-2 cycle counter that uses conditional enable signals allows for half-extraction data compression reduction and downsampling. After downsampling, the approximate component calculation completion flag (ca_flag) goes high and enables the external modules to sequentially read the low-frequency component sequence cA through the filter_dout interface.
3.2.2. Realization of Second-Stage Compression
3.2.3. Simulation and Analysis
4. Testing and Analysis
4.1. Performance Testing
- (1)
- Compression rateThe storage size of the data was 2048 words. After one layer of wavelet transform compression, the size was reduced to 1027 words, resulting in a first-stage compression rate of 50.15%. Following the second-stage ADPCM compression, the data were further reduced to 1028 bytes, achieving an overall compression rate of 25.1%. Notably, the compression rate of this two-stage compression algorithm is independent of the hardware platform and is determined only by the algorithm itself.
- (2)
- DistortionThe distortion of the full waveform was evaluated from the global and local perspectives. Figure 8A compares the original data with the two-stage reconstructed waveforms. The black and blue curves represent the original and two-stage reconstructed waveform, respectively. The absolute error curve of the two-stage reconstructed waveforms is shown in Figure 8B. The overall restoration effect of the reconstructed waveform is good and well retains the morphology of the original waveform. The distortion was large only in the sliding waves with larger amplitudes, whereas it remained small in all the other positions. The maximum absolute error (407.9) occurred at 3.552 ms, where the original data was 445 and the reconstructed data was 852.9, with a relative error of approximately 90%. The mean square error (MSE) was 32.17.
- (3)
- Resource usageFigure 12 shows the FPGA resource utilization of the two-stage compression algorithm. The algorithm uses 16% of the memory resources and 12% of the multiplier resources in the FPGA, and all the other resources are relatively low. The multiplier resource is heavily used because of the numerous convolution operations in the wavelet-transform-based first-stage compression. The high memory usage stems from the algorithm compression of 2048 16-bit data in two stages, which involves several caching modules, such as the ROM, FIFO and RAM.
- (4)
- Execution timeThe execution time of the two-stage compression algorithm under the above conditions was evaluated using an oscilloscope. The results are shown in Figure 13. The time taken to run the algorithm in the FPGA was approximately 103 µs, which is the same as the simulation results.
4.2. Applications Analysis in Remote-Detection Acoustic Logging
5. Conclusions
- (1)
- The compression rate of the two-stage compression method based on the one-layer wavelet transform and the ADPCM algorithm was 25.1% for remote-detection acoustic logging data. The reconstructed waveforms well preserved the morphology of the original waveforms. Even with remarkable relative distortion in individual data points, the extraction of longitudinal, transverse and reflected waves remained unaffected.
- (2)
- The execution time of the two-stage compression for 2048 16-bit waveform data was approximately 100 µs in an FPGA with low resource usage and a light workload. The proposed compression performance considerably outperforms DSP-based compression methods.
- (3)
- The proposed data compression method can reduce the volume of data transmitted from the acquisition node to the master control node and then uploaded to the ground to 25% of the original amount. This substantially reduces the workload on the master control node, enhances the cable transmission efficiency and increases the logging speed to approximately 400%. This study provides a reference for designing next-generation remote-detection acoustic logging tools.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zhang, K.; Li, S.; Su, Y.; Tan, B. Subdivision gain control signal collection technology for remote acoustic logging. J. Geophys. Eng. 2025, 22, 1742–2132. [Google Scholar] [CrossRef]
- Lu, J.; Ju, X.; Men, B. Design of data acquisition and control software for azimuth remote detection acoustic logging instrument. Appl. Acoust. 2023, 42, 501–507. [Google Scholar]
- Zhang, K.; Tan, B.; Zhang, W.; Sun, Y.; Zheng, J.; Su, Y.; Liu, X.; Wu, G.; Xin, S. Design of a New Acoustic Logging While Drilling Tool. Sensors 2021, 21, 4385. [Google Scholar] [CrossRef] [PubMed]
- Hao, X.; Ju, X.; Lu, J.; Men, B.; Chen, Y. Rapid detection system and compensation method for acoustic logging storage modules. Appl. Acoust. 2019, 38, 782–787. [Google Scholar] [CrossRef]
- HAO, X.; JU, X.; LU, J.; Men, B.; Zhou, J. Intelligent fault diagnosis system for acoustic logging tool based on multi-techno logy fusion. Sensors 2019, 19, 3273. [Google Scholar] [CrossRef] [PubMed]
- Gao, G. Research on Downhole Compression Methods for Acoustic Reflection Logging Data. Master’s Thesis, Xi’an Shiyou University, Xi’an, China, 2024. [Google Scholar]
- Johnson, P.D.; Harris, G.A.; Hankerson, D.R. Introduction to Information Theory and Data Compression, 2nd ed.; CRC Press LLC.: New Jersey, NJ, USA, 2003. [Google Scholar] [CrossRef]
- Daubechies, I.; Lu, J.; Wu, H. Synchrosqueezed wavelet transforms: An empirical mode decomposition-like tool. Appl. Comput. Harmon. Anal. 2011, 30, 243–261. [Google Scholar] [CrossRef]
- Nithin, V.M.; Surender, K.S. Low complexity image compression algorithm based on hybrid DPCM for wireless capsule endoscopy. Biomed. Signal Process. Control 2019, 48, 197–204. [Google Scholar] [CrossRef]
- Antonini, M.; Barlaud, M.; Mathieu, P.; Daubechies, I. Image coding using wavelet transform. IEEE Trans. Image Process. 1992, 1, 205–220. [Google Scholar] [CrossRef] [PubMed]
- Fajardo, C.; Reyes, O.M.; Ramirez, A. Seismic data compression using 2D lifting-wavelet algorithms. Ing. Cienc. 2015, 11, 221–238. [Google Scholar] [CrossRef]
- Schlumberger, Limited. DigiScope Slimhole Measurements While Drilling. Available online: https://www.slb.com/-/media/files/drilling/brochure/digiscope-slimhole-mwd-br (accessed on 9 June 2025).
- Erdal, O.; Namitha, J.; Jafar, S. Ultrasonic signal compression using wavelet packet decomposition and adaptive thresholding Ultrasonics. In Proceedings of the IEEE Ultrasonics Symposium, Beijing, China, 2–5 November 2008; pp. 171–175. [Google Scholar] [CrossRef]
- Zhang, Y.; Xiong, K.; Qiu, Z.; Wang, S.; Sun, D. A new method for Real-Time LWD data compression. In Proceedings of the 2009 International Symposium on Information Processing, Huangshan, China, 21–23 August 2009. [Google Scholar]
- Li, C.; Mu, D.; Li, A.; Yao, G. Real-time compression algorithm for drilling acoustic logging data. J. Southwest Petrol. Univ. (Sci. Tech. Ed.) 2008, 30, 81–84. [Google Scholar] [CrossRef]
- Zhang, W. Research on the Development of Array Acoustic Logging Instruments and Logging Data Processing Methods. Ph.D. Dissertation, University of Electronic Science and Technology of China, Chengdu, China, 2010. [Google Scholar]
- Hao, X.; Gao, G.; Tan, H.; Yang, C.; Li, Y. Downhole compression algorithm for remote-detection acoustic logging data based on adaptive differential pulse code modulation. Pet. Drill. Tech. 2024, 52, 148–155. [Google Scholar] [CrossRef]
- Qin, Z.; Lu, J.; Men, B.; Wei, S.; Pan, J. Design of a multi-Node data acquisition system for log-ging-while-drilling acoustic logging instruments based on FPGA. Sensors 2025, 25, 808. [Google Scholar] [CrossRef] [PubMed]
- Zhang, K.; Ju, X.; Lu, J.; Men, B. Design of acoustic logging signal source of imitation based on field programmable gate array. J. Geophys. Eng. 2014, 11, 1742–2132. [Google Scholar] [CrossRef]
- Javadi, M.; Ghasemzadeh, H. Wavelet analysis for ground penetrating radar applications: A case study. J. Geophys. Eng. 2017, 14, 1189–1202. [Google Scholar] [CrossRef]
- Yamagiwa, S.; Ichinomiya, Y. Stream-Based Visually Lossless Data Compression Applying Variable Bit-Length ADPCM Encoding. Sensors 2021, 21, 4602. [Google Scholar] [CrossRef] [PubMed]
- Ni, W.; Li, X. Drilling Directional Imaging Resistivity Logging Technology; Science Press: Beijing, China, 2021. [Google Scholar]
- Qin, Z.; Lu, J.; Men, B.; Che, X. Design of a comprehensive test bench for acoustic logging tool based on FPGA. J. Geophys. Eng. 2025, 22, 417–427. [Google Scholar] [CrossRef]
- Ren, Y.; Wang, Y.; Wang, M.; Wu, S.; Wei, B. A measuring system for well logging attitude and a method of sensor calibration. Sensors 2014, 14, 9256–9270. [Google Scholar] [CrossRef]
- Wu, J. Data reduction processes using FPGA for MicroBooNE liquid argon time projection chamber. In Proceedings of the IEEE-NPSS Real Time Conference, Lisbon, Portugal, 24–28 May 2010; pp. 1–5. [Google Scholar] [CrossRef]
Range of Absolute Difference | Sign Code Field | Segment Code Field | Segment Value | Interval Code Field | Interval Value | Max Absolute Error | Max Relative Error (%) |
---|---|---|---|---|---|---|---|
0–7 | bit 7 | bit 6–3 | 8 | bit 2–0 | 0–7 | 0 | 0 |
8–15 | bit 7 | bit 6–3 | 9 | bit 2–0 | 0–7 | 0 | 0 |
16–23 | bit 7 | bit 6–3 | 10 | bit 2–0 | 0–7 | 0 | 0 |
24–31 | bit 7 | bit 6–3 | 11 | bit 2–0 | 0–7 | 0 | 0 |
32–47 | bit 7 | bit 6–3 | 12 | bit 2–0 | 0–7 | 1 | 3.125 |
48–63 | bit 7 | bit 6–3 | 13 | bit 2–0 | 0–7 | 1 | 2.083 |
64–95 | bit 7 | bit 6–3 | 14 | bit 2–0 | 0–7 | 2 | 3.125 |
96–127 | bit 7 | bit 6–3 | 15 | bit 2–0 | 0–7 | 2 | 2.083 |
128–255 | bit 7 | bit 6–4 | 0 | bit 3–0 | 0–15 | 4 | 3.125 |
256–511 | bit 7 | bit 6–4 | 1 | bit 3–0 | 0–15 | 8 | 3.125 |
512–1023 | bit 7 | bit 6–4 | 2 | bit 3–0 | 0–15 | 16 | 3.125 |
1024–2047 | bit 7 | bit 6–4 | 3 | bit 3–0 | 0–15 | 32 | 3.125 |
2048–4095 | bit 7 | bit 6–4 | 4 | bit 3–0 | 0–15 | 64 | 3.125 |
4096–8191 | bit 7 | bit 6–4 | 5 | bit 3–0 | 0–15 | 128 | 3.125 |
8192–16,383 | bit 7 | bit 6–4 | 6 | bit 3–0 | 0–15 | 256 | 3.125 |
16,384–32,767 | bit 7 | bit 6–4 | 7 | bit 3–0 | 0–15 | 512 | 3.125 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Hao, X.; Hu, Y.; Yan, B.; Hui, H.; Chen, Y.; Zhang, B. Research on Two-Stage Data Compression at the Acquisition Node in Remote-Detection Acoustic Logging. Sensors 2025, 25, 4512. https://doi.org/10.3390/s25144512
Hao X, Hu Y, Yan B, Hui H, Chen Y, Zhang B. Research on Two-Stage Data Compression at the Acquisition Node in Remote-Detection Acoustic Logging. Sensors. 2025; 25(14):4512. https://doi.org/10.3390/s25144512
Chicago/Turabian StyleHao, Xiaolong, Yangtao Hu, Bingnan Yan, Hang Hui, Yunxia Chen, and Bingqi Zhang. 2025. "Research on Two-Stage Data Compression at the Acquisition Node in Remote-Detection Acoustic Logging" Sensors 25, no. 14: 4512. https://doi.org/10.3390/s25144512
APA StyleHao, X., Hu, Y., Yan, B., Hui, H., Chen, Y., & Zhang, B. (2025). Research on Two-Stage Data Compression at the Acquisition Node in Remote-Detection Acoustic Logging. Sensors, 25(14), 4512. https://doi.org/10.3390/s25144512