Aref Sepehr, Maciej Zaborowicz, Francesco Marinello, Lorenzo Guerrini
Walnuts are commercially important tree nuts whose moisture content (MC) influences quality, shelf life, and post-harvest processing. This study evaluated the potential of low-cost acoustic sensing combined with machine learning for non-destructive MC prediction. Sixty in-shell walnuts were subjected to controlled drying at 40 °C for 26 h, with acoustic recordings and physical measurements collected every two hours. Acoustic signals were processed using Wavelet Soft Threshold Denoising (WSTD), Short-Time Fourier Transform (STFT), and Variational Mode Decomposition (VMD), and features were extracted from the resulting signals. Predictive models included generalized linear models (GLM), random forests (RF), gradient boosting machines (GBM), and Partial Least Squares (PLS) approaches. Following grouped walnut-level validation, the highest MC prediction performance was achieved by the model combining dimensional and acoustic descriptors (RF: R2 = 0.836; GBM: R2 = 0.826), while the model combining drying time and acoustic descriptors achieved moderate predictive performance (RF: R2 = 0.762; GBM: R2 = 0.760). Overall, the results provide proof-of-concept evidence that acoustic descriptors may complement physical measurements for non-destructive walnut moisture-content prediction. However, substantially larger independent datasets collected across multiple cultivars, production batches, acquisition conditions, and external validation studies will be required before practical industrial implementation can be considered.