| Journal of Smart Sensors and Computing
Received: 12 August 2026; Revised: 28 September 2026; Accepted: 29 September 2026; Published Online: 29 June 2026.
J. Smart Sens. Comput., 2026, 2(3), 26214 | Volume 2 Issue 3 (September 2026) | DOI: https://doi.org/10.64189/ssc.26214
© The Author(s) 2026
This article is licensed under Creative Commons Attribution NonCommercial 4.0 International (CC-BY-NC 4.0)
Leveraging Python for Potentiometric Titrations: An
AI-Enhanced Approach to Hydrochloric Acid
Detection
Shanthi Vunguturi
*
Department of Chemistry, Muffakham Jah College of Engineering and Technology Hyderabad, Telangana 500034, India
*Email: v.shanthi@mjcollege.ac.in (Shanthi Vunguturi)
Abstract
Potentiometric titration is a classical analytical method for determining the concentration of acids and bases
with high precision. Traditional titration techniques, however, often require manual interpretation of titration
curves, which may introduce errors and limit reproducibility. This study presents an AI-enhanced approach to
hydrochloric acid (HCl) detection through potentiometric titration using Python-based automation and
machine learning. The system integrates automated data acquisition, preprocessing, and curve fitting to identify
equivalence points with greater accuracy. By applying regression models and anomaly detection algorithms, the
proposed framework reduces subjectivity and improves consistency in endpoint determination. Experimental
trials using standard NaOH titrants demonstrated that the AI-assisted approach achieved higher precision in
detecting HCl concentrations compared to traditional manual methods. The Python framework also provides
visualization tools and real-time feedback, enabling a user-friendly interface for laboratory and educational
settings. This study highlights the potential of combining artificial intelligence and classical analytical chemistry
to advance modern titration practices.
Keywords: Potentiometric titration; Hydrochloric acid detection; Python automation; Artificial intelligence;
Chemometrics; Machine learning in chemistry.
1. Introduction



















               










          
            
        

 




             
            
          

          


.







i. 

ii. 
iii. 
iv. 









              






               



             

















               





         



                
               


 
 
 
 
 
 
 
 
 












Normality (N)

󰇛
󰇜

󰇛󰇜















              
               














            


               
  





              

             
             



   

 

















































































































                 






i. 
              


ii. 



iii. 
            













 



              





              

i.           

ii.     

iii.             

iv. 






             


























       





 
i. 

ii. 

iii. 

 
i.       

ii. 
           

iii.              

             
               


 
i. 
ii. 

iii.             































Note: RMSE and R² refer to held-out electrode-potential prediction, not to the chemical endpoint volume.





              




             




              


             



             

       

   




i. 
ii.       

iii.           

iv. 

v. 





            
            
               

                  

       



          







                










             

           




             
          
           



[1]
A. Kavde, T. Rinhayat, R. Mujariya, M. Singh, potentiometric titration in highly polar and nonaqueous
solvents: principles, solvent effects, instrumentation, and applications, International Journal of
Pharmaceutical Sciences, 2026, 4, 8044-8052, doi: 10.5281/zenodo.20458839.
[2]
D. A. Skoog, D. M. West, F. J. Holler, S. R. Crouch, Fundamentals of analytical chemistry, 9th edition,
Cengage Learning, 2013.
[3]
A. J. Bard, L. R. Faulkner, Electrochemical methods: Fundamentals and applications, 2nd edition, Wiley,
2001.
[4]
R. P. Buck Ion-selective electrodes, potentiometry, and potentiometric titrations, Analytical Chemistry,
1972, 44, 270295., doi: 10.1021/ac60313a011.
[5]
D. C. Harris, C. Lucy, Quantitative chemical analysis, 9th edition, W. H. Freeman, 2015.
[6]
J. C. Miller, J. N. Miller, Statistics and chemometrics for analytical chemistry, 7th edition, Pearson
Education, 2018.
[7]
Lucas B. Ayres, F. J. V. Gomez, J. R. Linton, M. F. Silva, C. D. Garcia, Taking the leap between analytical
chemistry and artificial intelligence: A tutorial review, Analytica Chimica Acta, 2021, 1161, 338403, doi:
10.1016/j.aca.2021.338403.
[8]
S. H. Elagamy, H. K. Chanduluru, R. H. Obaydo, H. M. Lotfy, The role of artificial intelligence in modern
analytical chemistry: current trends and future directions, International Journal of Analytical Chemistry,
2026, 2026, 2645726. doi: 10.1155/ianc/2645726.
[9]
C. Hill, Python for chemists, Cambridge University press, 2023.
[10]
R. A. Johnson, W. Wichern, Applied multivariate statistical analysis, Prentice Hall, 1992.
[11]
S. van der Walt, S. C. Colbert, G. Varoquaux, The NumPy array: A structure for efficient numerical
computation, Computing in Science & Engineering, 2011, 13, 2230, doi: 10.1109/MCSE.2011.37.
[12]
J. D. Hunter, Matplotlib: A 2D graphics environment, Computing in Science & Engineering, 2007, 9, 90-
95, doi: 10.1109/MCSE.2007.55.
[13]
M. Mousavizadegan, A. Firoozbakhtian, M. Hosseini, H. Ju, Machine learning in analytical chemistry:
From synthesis of nanostructures to their applications in luminescence sensing, TrAC Trends in
Analytical Chemistry, 2023, 168, 117216. doi: 10.1016/j.trac.2023.117216.
[14]
Titration Theory and Practice, Hach, 2014.
[15]
Vogel, A.I, Svehla, G., Sivasankar, B. Vogel's Qualitative Inorganic Analysis. 7th ed. Noida: Pearson
Education India; 2012.
[16]
P. Puthongkham, S. Wirojsaengthong, A. Suea-Ngam, Machine learning and chemometrics for
electrochemical sensors: moving forward to the future of analytical chemistry, Analyst, 2021, 146,
63516364, doi: 10.1039/D1AN01148K.
[17]
R. Houhou, T. Bocklitz, Trends in artificial intelligence, machine learning, and chemometrics applied to
chemical data, Analytical Science Advances, 2021, 2, 128141, doi: 10.1002/ansa.202000162.
[18]
X. Xue, H. Sun, M. Yang, X. Liu, H-Y. Hu, Y. Deng, X. Wang, Advances in the application of artificial
intelligence-based spectral data interpretation: a perspective, Analytical Chemistry, 2023, 95, 13733
13745, doi: 10.1021/acs.analchem.3c02540.
Publisher Note: The views, statements, and data in all publications solely belong to the authors and
contributors. GR Scholastic is not responsible for any injury resulting from the ideas, methods, or products
mentioned. GR Scholastic remains neutral regarding jurisdictional claims in published maps and institutional
affiliations.
Open Access
This article is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, which
permits the non-commercial use, sharing, adaptation, distribution and reproduction in any medium or format,
as long as appropriate credit to the original author(s) and the source is given by providing a link to the Creative
Commons License and changes need to be indicated if there are any. The images or other third-party material
in this article are included in the article's Creative Commons License, unless indicated otherwise in a credit line
to the material. If material is not included in the article's Creative Commons License and your intended use is
not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly
from the copyright holder. To view a copy of this License, visit: https://creativecommons.org/licenses/by-
nc/4.0/
© The Author(s) 2026