Water Content Detection of Red Sandstone Based on Shock Acoustic Sensing and Convolutional Neural Network
Abstract
1. Introduction
2. Materials and Methods
2.1. Detection Principle
- (1)
- Obtain a knocking sound signal: Use a knocking hammer to tap the side of the red sandstone sample, record the sound generated by the knocking through a microphone, and save the obtained sound signal in a laptop computer.
- (2)
- Extracting frequency domain features of knocking sound signals through MFCCs can be mainly divided into five steps: pre-processing, fast Fourier transform, power spectrum, filter bank, discrete cosine transform, etc.
- (3)
- Input the obtained MFCC features into CNN training: CNN extracts abstract features from the raw data through multi-layer convolution and pooling operations, and then uses the Adaptive Moment Estimation optimization algorithm to train the proposed model.
- (4)
- Using SVM for image classification: The SVM model incorporates the fully connected layer of CNN as its input, enhancing the training of feature vectors, classification, and decision-making processes.

2.2. MFCC
2.3. CNN-SVM
2.3.1. CNN
2.3.2. SVM
2.3.3. Fusion of CNN and SVM
2.4. CWT (Continuous Wavelet Transform)
3. Experimental Setup and Procedures
3.1. Water Content of Red Sandstone Samples
3.2. Data Collection Process
4. Result
5. Discussion
- (1)
- Acoustic feature comparison: We compared the training accuracy using two acoustic features, MFCCs and CWT. Utilizing MFCCs as features, our experiments achieved a validation accuracy of 94.4%, significantly higher than the 85.6% using CWT as features, this result can be attributed to the fact that MFCCs can better simulate the nonlinear perceptual characteristics of the human ear towards sound frequencies, thereby capturing the subtle sound differences caused by changes in the moisture content of red sandstone. In contrast, although CWT can provide detailed information about signals in both time and frequency domains, it may not effectively distinguish the subtle variations caused by moisture content when processing complex sound signals, indicating that MFCCs have higher accuracy in processing such sound signals.
- (2)
- Advantages of the proposed method: As a non-destructive testing technique, the knocking method, when combined with the MFCCs and CNN-SVM model, enables moisture content detection without damaging rock samples, achieving high-precision classification of moisture content and providing reliable technical support for engineering practice. Compared to traditional detection methods, the knocking method is easy to operate, requires no complex equipment, and is suitable for rapid on-site testing, which is particularly important for precious or non-renewable rock samples.
- (3)
- Limitations of practical application: Although our detection scheme has significant advantages, there are also some limitations in practical applications. Firstly, the shape, size, and geological characteristics of the sample may cause changes in the knocking sound, which in turn affects the reliability of the detection method. Secondly, this study was conducted in a relatively quiet environment, whereas noise present in real-world settings may interfere with the acquisition and processing of knocking sound signals, thereby affecting classification accuracy. Despite its excellent performance in laboratory conditions, the model’s generalization capability across different environments and rock types still requires further validation.
- (4)
- Future research direction: To enhance the accuracy and applicability of the detection scheme, we plan to make the following improvements in our future work. Firstly, we will increase the categories and quantity of samples to cover a broader range of red sandstone types and moisture content levels. Secondly, we will develop a noise reduction algorithm tailored for knocking sound signals and conduct experiments under various noise environments to evaluate the impact of different noise levels on detection results, thereby improving detection accuracy in noisy settings. Finally, we will further optimize the architecture of the CNN-SVM model to enhance the efficiency of feature extraction and classification and strengthen the model’s generalization capability. Through these measures, we aim to further refine and optimize the red sandstone moisture content detection scheme based on the knocking method. Additionally, we will extend this approach to other types of rocks or materials, such as sandstone, shale, concrete, etc., to assess its applicability across different materials.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Liao, Y.; Lv, Y.; Huang, G.; Ren, S.; Wang, X.Y.; Guo, R.; Tian, Y.; Deng, S.; Lin, R.S. Strength and microstructure analysis of subgrade materials containing red sandstone-limestone-cement composites and red sandstone gravel. Constr. Build. Mater. 2024, 416, 135190. [Google Scholar] [CrossRef]
- Guo, S.; Wen, S.; Guo, H.; Fu, H.; Chen, Q. The Creep Test Study and Macro-Detail Analysis of Argillaceous Red Sandstone in Different Water-Containing States. Adv. Civ. Eng. 2022, 2022, 9698675. [Google Scholar] [CrossRef]
- Li, Q.; Wang, Y.M.; Zhang, K.B.; Yu, H.; Tao, Z.Y. Field investigation and numerical study of a siltstone slope instability induced by excavation and rainfall. Landslides 2020, 17, 1485–1499. [Google Scholar] [CrossRef]
- Daraei, A.; Zare, S. Determination of critical saturation degree in rocks based on maximum loss of uniaxial compression strength and deformation modulus. Geomech. Geophys. Geo-Energy Geo-Resour. 2018, 4, 343–353. [Google Scholar] [CrossRef]
- Xu, J.; Pu, H.; Sha, Z. Dynamic mechanical behavior of the frozen red sandstone under coupling of saturation and impact loading. Appl. Sci. 2022, 12, 7767. [Google Scholar] [CrossRef]
- Er, S.; Yilmaz, M.; Ertin, A.; Tugrul, A.; Tokgöz, N. Assessment of excavatability, abrasivity and slope stability in a sandstone quarry in Istanbul, Turkey. J. Geol. Soc. India 2017, 89, 581–588. [Google Scholar] [CrossRef]
- Chen, K.; Zhou, W.; Pan, Y.; Zhuo, Y.; Zheng, G. Characterization of true triaxial rock bursts in sandstones with different water contents. Front. Earth Sci. 2023, 10, 1087849. [Google Scholar] [CrossRef]
- Cao, X.; Tang, X.; Chen, L.; Wang, D.; Jiang, Y. Study on Characteristics of Failure and Energy Evolution of Different Moisture-Containing Soft Rocks under Cyclic Disturbance Loading. Materials 2024, 17, 1770. [Google Scholar] [CrossRef]
- Wang, M.; Li, X.; Chen, L.; Hou, S.; Wu, G.; Deng, Z. A modified soil water content measurement technique using actively heated fiber optic sensor. J. Rock Mech. Geotech. Eng. 2020, 12, 608–619. [Google Scholar] [CrossRef]
- Cao, J.; Chung, D.D.L. Damage evolution during freeze–thaw cycling of cement mortar, studied by electrical resistivity measurement. Cem. Concr. Res. 2002, 32, 1657–1661. [Google Scholar] [CrossRef]
- ASTM D1125; Standard Test Methods for Electrical Conductivity and Resistivity of Water. ASTM: West Conshohocken, PA, USA, 2009.
- Yuan, H.; Abdu, A.Z.; Nielsen, L. Prediction of porosity and water saturation of chalks from combined refraction seismic and reflection ground-penetrating radar measurements. Geophysics 2023, 88, MR141–MR153. [Google Scholar] [CrossRef]
- Zheng, W.; Jiang, J.; Tao, K. A method based on musical-staff-inspired signal processing model for measuring rock moisture content. Measurement 2018, 125, 577–585. [Google Scholar] [CrossRef]
- Elsherif, M.; Salih, A.E.; Muñoz, M.G.; Alam, F.; AlQattan, B.; Antonysamy, D.S.; Zaki, M.F.; Yetisen, A.K.; Park, S.; Wilkinson, T.D.; et al. Optical fiber sensors: Working principle, applications, and limitations. Adv. Photonics Res. 2022, 3, 2100371. [Google Scholar] [CrossRef]
- Lee, L.T. Expansive Clay Suction Measurements Using Filter Paper and Polymer-Capacitance Sensor Methods. J. Test. Eval. 2013, 41, 905–913. [Google Scholar] [CrossRef]
- Léger, E.; Saintenoy, A.; Coquet, Y. Hydrodynamic parameters of a sandy soil determined by ground-penetrating radar inside a single ring infiltrometer. Water Resour. Res. 2014, 50, 5459–5474. [Google Scholar] [CrossRef]
- Doyle, C.T.; Chen, R.; Liu, T.; Zheng, G.; Fernando, G.F. Fiber optic acoustic emission sensor based on a fused tapered coupler. In Proceedings of the Smart Structures and Materials 2002: Smart Sensor Technology and Measurement Systems, San Diego, CA, USA, 27 June 2002; Volume 4694, pp. 28–35. [Google Scholar]
- Kasahara, J.Y.L.; Fujii, H.; Yamashita, A.; Asama, H. Fuzzy clustering of spatially relevant acoustic data for defect detection. IEEE Robot. Autom. Lett. 2018, 3, 2616–2623. [Google Scholar] [CrossRef]
- Yuan, C.; Zhang, J.; Chen, L.; Xu, J.; Kong, Q. Timber moisture detection using wavelet packet decomposition and convolutional neural network. Smart Mater. Struct. 2021, 30, 035022. [Google Scholar] [CrossRef]
- Cheng, H.; Wang, F.; Huo, L.; Song, G. Detection of sand deposition in pipeline using percussion, voice recognition, and support vector machine. Struct. Health Monit. 2020, 19, 2075–2090. [Google Scholar] [CrossRef]
- Chen, D.; Montano, V.; Huo, L.; Fan, S.; Song, G. Detection of subsurface voids in concrete-filled steel tubular (CFST) structure using percussion approach. Constr. Build. Mater. 2020, 262, 119761. [Google Scholar] [CrossRef]
- Yang, Z.; Huo, L.; Wang, J.; Zhou, J. Denoising low SNR percussion acoustic signal in the marine environment based on the LMS algorithm. Measurement 2022, 202, 111848. [Google Scholar] [CrossRef]
- Zheng, L.; Cheng, H.; Huo, L.; Song, G. Monitor concrete moisture level using percussion and machine learning. Constr. Build. Mater. 2019, 229, 117077. [Google Scholar] [CrossRef]
- Abdul, Z.K.; Al-Talabani, A.K. Mel frequency cepstral coefficient and its applications: A review. IEEE Access 2022, 10, 122136–122158. [Google Scholar] [CrossRef]
- Noda, K.; Yamaguchi, Y.; Nakadai, K.; Okuno, H.G.; Ogata, T. Audio-visual speech recognition using deep learning. Appl. Intell. 2015, 42, 722–737. [Google Scholar] [CrossRef]
- Kamarulafizam, I.; Salleh, S.H.; Najeb, J.M.; Ariff, A.K.; Chowdhury, A. Heart sound analysis using MFCC and time frequency distribution. In Proceedings of the World Congress on Medical Physics and Biomedical Engineering 2006, COEX “Imaging the Future Medicine”, Seoul, Republic of Korea, 27 August–1 September 2006; Springer: Berlin/Heidelberg, Germany, 2007; pp. 946–949. [Google Scholar]
- Quiceno-Manrique, A.F.; Godino-Llorente, J.I.; Blanco-Velasco, M.; Castellanos-Dominguez, G. Selection of dynamic features based on time–frequency representations for heart murmur detection from phonocardiographic signals. Ann. Biomed. Eng. 2010, 38, 118–137. [Google Scholar] [CrossRef] [PubMed]
- Gan, D.; Hu, W.; Zhao, B. A comparative study of pathological voice based on traditional acoustic characteristics and nonlinear features. J. Biomed. Eng. 2014, 31, 1149–1154. [Google Scholar]
- Kuresan, H.; Samiappan, D.; Masunda, S. Fusion of WPT and MFCC feature extraction in Parkinson’s disease diagnosis. Technol. Health Care 2019, 27, 363–372. [Google Scholar] [CrossRef]
- Mian Qaisar, S. Isolated speech recognition and its transformation in visual signs. J. Electr. Eng. Technol. 2019, 14, 955–964. [Google Scholar] [CrossRef]
- Milner, B.; Darch, J. Robust acoustic speech feature prediction from noisy mel-frequency cepstral coefficients. IEEE Trans. Audio Speech Lang. Process. 2010, 19, 338–347. [Google Scholar] [CrossRef]
- Jothilakshmi, S.; Ramalingam, V.; Palanivel, S. Unsupervised speaker segmentation with residual phase and MFCC features. Expert Syst. Appl. 2009, 36, 9799–9804. [Google Scholar] [CrossRef]
- Liu, Y.; Nie, Z.; Liu, Q.H. DIFFT: A fast and accurate algorithm for Fourier transform integrals of discontinuous functions. IEEE Microw. Wirel. Compon. Lett. 2008, 18, 716–718. [Google Scholar] [CrossRef]
- Guo, G.; Zhang, N. A survey on deep learning based face recognition. Comput. Vis. Image Underst. 2019, 189, 102805. [Google Scholar] [CrossRef]
- Jiang, P.; Fu, H.; Tao, H.; Lei, P.; Zhao, L. Parallelized convolutional recurrent neural network with spectral features for speech emotion recognition. IEEE Access 2019, 7, 90368–90377. [Google Scholar] [CrossRef]
- Ge, H.; Wang, L.; Liu, M.; Zhao, X.; Zhu, Y.; Pan, H.; Liu, Y. Pyramidal multiscale convolutional network with polarized self-attention for pixel-wise hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5504018. [Google Scholar] [CrossRef]
- Huang, S.-Y.; An, W.-J.; Zhang, D.-S.; Zhou, N.-R. Image classification and adversarial robustness analysis based on hybrid quantum–classical convolutional neural network. Opt. Commun. 2023, 533, 129287. [Google Scholar] [CrossRef]
- Zhu, Q.; Zu, X. Fully convolutional neural network structure and its loss function for image classification. IEEE Access 2022, 10, 35541–35549. [Google Scholar] [CrossRef]
- Hu, W.; Huang, Y.; Wei, L.; Zhang, F.; Li, H. Deep convolutional neural networks for hyperspectral image classification. J. Sens. 2015, 2015, 258619. [Google Scholar] [CrossRef]
- Huang, M.L.; Hung, Y.H.; Lee, W.M.; Li, R.K.; Jiang, B.R. SVM-RFE based feature selection and Taguchi parameters optimization for multiclass SVM classifier. Sci. World J. 2014, 2014, 795624. [Google Scholar] [CrossRef]
- Shen, L.; Chen, H.; Yu, Z.; Kang, W.; Zhang, B.; Li, H.; Yang, B.; Liu, D. Evolving support vector machines using fruit fly optimization for medical data classification. Knowl.-Based Syst. 2016, 96, 61–75. [Google Scholar] [CrossRef]
- Chauhan, V.K.; Dahiya, K.; Sharma, A. Problem formulations and solvers in linear SVM: A review. Artif. Intell. Rev. 2019, 52, 803–855. [Google Scholar] [CrossRef]
- Yang, X.; Yu, Q.; He, L.; Guo, T. The one-against-all partition based binary tree support vector machine algorithms for multi-class classification. Neurocomputing 2013, 113, 1–7. [Google Scholar] [CrossRef]
- Li, X.; Sun, Y. Stock intelligent investment strategy based on support vector machine parameter optimization algorithm. Neural Comput. Appl. 2020, 32, 1765–1775. [Google Scholar] [CrossRef]
- Pan, L. Comparison of Kernel Functions and Parameter Selection of SVM Classification Algorithms. Master’s Dissertation, University of California, Los Angeles, CA, USA, 2023. [Google Scholar]
- Kang, J.; Park, Y.-J.; Lee, J.; Wang, S.-H.; Eom, D.-S. Novel leakage detection by ensemble CNN-SVM and graph-based localization in water distribution systems. IEEE Trans. Ind. Electron. 2017, 65, 4279–4289. [Google Scholar] [CrossRef]
- Khairandish, M.O.; Sharma, M.; Jain, V.; Chatterjee, J.; Jhanjhi, N. A hybrid CNN-SVM threshold segmentation approach for tumor detection and classification of MRI brain images. IRBM 2022, 43, 290–299. [Google Scholar] [CrossRef]
- Kumar, T.; Mandal, U.K. Wavelet transform associated with linear canonical Hankel transform. Math. Methods Appl. Sci. 2019, 42, 3167–3178. [Google Scholar] [CrossRef]
- Yan, R.; Gao, R.X.; Chen, X. Wavelets for fault diagnosis of rotary machines: A review with applications. Signal Process. 2014, 96, 1–15. [Google Scholar] [CrossRef]











| Kernel Function | Equation |
|---|---|
| Polynomial function | |
| Linear function | |
| Gaussian radial basis function | |
| Sigmoid ernel functions |
| Characteristic | Numeric Cange |
|---|---|
| Unit weight (kN/m3) | 22–25 |
| Uniaxial compressive strength (MPa) | 20–60 |
| Porosity (%) | 10–25 |
| Elastic modulus (GPa) | 5–20 |
| Poisson’s ratio (ν) | 0.2–0.35 |
| Sample | Immersion Time/min | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 10 | 20 | 30 | 40 | 60 | 80 | 100 | 120 | 160 | 200 | 240 |
| Measurement of Moisture Content(%) | Precision(%) | Recall(%) | F1-Score(%) | State |
|---|---|---|---|---|
| 0.00 | 100.00 | 92.00 | 95.83 | Dry state |
| 1.14 | 100.00 | 96.00 | 97.96 | Short-term water absorption |
| 1.67 | 92.00 | 92.00 | 92.00 | Mid-term water absorption |
| 2.31 | 92.59 | 100.00 | 96.15 | Approaching saturation |
| 3.27 | 96.15 | 100.00 | 98.04 | Approaching fully saturated |
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
Qiu, Z.; Liu, Y.; Zhang, Y.; Zhao, X.; Chen, D.; Tu, S. Water Content Detection of Red Sandstone Based on Shock Acoustic Sensing and Convolutional Neural Network. Sensors 2025, 25, 7164. https://doi.org/10.3390/s25237164
Qiu Z, Liu Y, Zhang Y, Zhao X, Chen D, Tu S. Water Content Detection of Red Sandstone Based on Shock Acoustic Sensing and Convolutional Neural Network. Sensors. 2025; 25(23):7164. https://doi.org/10.3390/s25237164
Chicago/Turabian StyleQiu, Zhaokang, Yang Liu, Yi Zhang, Xueqi Zhao, Dongdong Chen, and Shengwu Tu. 2025. "Water Content Detection of Red Sandstone Based on Shock Acoustic Sensing and Convolutional Neural Network" Sensors 25, no. 23: 7164. https://doi.org/10.3390/s25237164
APA StyleQiu, Z., Liu, Y., Zhang, Y., Zhao, X., Chen, D., & Tu, S. (2025). Water Content Detection of Red Sandstone Based on Shock Acoustic Sensing and Convolutional Neural Network. Sensors, 25(23), 7164. https://doi.org/10.3390/s25237164

