Hamza Jouichat, Lotfi Khiari
• Machine learning accurately reconstructs full soil titration curves using Ca(OH) 2 and standard soil inputs. • Models achieve R 2 > 0.92 and RMSE < 0.21 pH units, ensuring precision across soil types. • Dynamic lime prescriptions are derived from fitted titration curves and allow target-specific flexibility. • Spectral (SSM) and hybrid (HM) models offer rapid, reagent-free, and scalable alternatives to SMP. • A tiered deployment strategy enables labs to adopt models based on existing analytical capacities. Soil acidity management often relies on lime recommendation methods that are imprecise, time-consuming, or involve hazardous reagents like the SMP buffer solution. This study introduces an alternative approach by developing and evaluating machine learning (ML) models to predict the change in soil pH (ΔpH) following incremental applications of hydrated lime (Ca(OH) 2 ). A total of 418 soil samples from Eastern North America were analyzed for their chemical properties, mid-infrared (MIR) spectral signatures, and complete titration curves obtained through acid-base neutralization. Three ML models were tested: a Chemical Signature Model (CSM) based on routine soil analyses, a Spectral Signature Model (SSM) relying solely on MIR spectra, and a Hybrid Model (HM) combining both data sources. All models demonstrated high accuracy, achieving R 2 values above 92 % and RMSE values below 0.21 pH units. The HM achieved the highest performance (R 2 = 94 %, RMSE = 0.18), closely followed by the SSM, indicating the practical equivalence of the two approaches since converting ΔpH curves into absolute pH curves always requires the initial soil pH. SHapley Additive exPlanations ( SHAP) values were used to interpret variable importance in each model. In the CSM, lime dose and initial pH were dominant predictors, followed by organic matter, Mehlich-3 extractable Ca (Ca M3 ), and Al (Al M3 ). In the SSM and HM models, specific MIR spectral regions corresponding to hydroxyl, carboxylic, silicate, and organo-mineral functional groups were highly informative, confirming consistency with known soil chemistry principles. These findings enable the automated reconstruction of titration curves, paving the way for dynamic, accurate, and safe lime recommendation systems tailored to laboratory capabilities: CSM for immediate implementation and SSM or HM for laboratories adopting MIR spectroscopy. This approach aligns with precision agriculture principles, supporting sustainable and site-specific management of soil acidity.