Quantitative Analysis of Major Compounds in Coffee Using Raman Spectroscopy Technique Combined with Data Analysis and Machine Learning
Main Article Content
Abstract
This article presents a method for analyzing caffeine, which is a primary compound in coffee, by quantitatively analyzing standard chemical substances using Raman Spectroscopy technique together with data analysis using Machine Learning. In this experiment, standard caffeine samples were prepared at concentrations of 500 ppm, 1000 ppm, 1500 ppm, 2000 ppm, 3000 ppm, and 4000 ppm. Subsequently, these samples were measured using Raman Spectroscopy technique to obtain a set of Raman spectra data. However, the quality of the Raman spectra data was found to be insufficient, necessitating enhancement of the data quality through preprocessing techniques such as Baseline Removal, Cosmic ray Removal, Smoothing Signal, Outlier Removal, Amplitude and Normalization Following this, the dataset containing 80% of the total data (Training Dataset), was used to train model, while the remaining 20% (Validation Dataset) was used for testing and parameter adjustment to improve the model’s prediction efficiency for caffeine quantitates. This research compared the performance of all 18 models using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Coefficient of Multiple Determination (R-Square) as performance indicators. The model with highest performance according to these indicators was the Extra Tree Regressor, with MAE, RMSE, and R-square values of 710 ppm, 914,05 ppm, and 0.34 respectively. The methods and experimental results from this study can be further developed for determining caffeine quantities in coffee.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
Geekabit. (25 August 2022). 5 Benefits of Wireless Network Monitoring for Your Business. [Online] Available: https://geekabit.co.uk/2019/06/11/5-benefits-wireless-network-monitoring-business/
7signal. (25 August 2022). Why Monitor a Wireless Network from the End-User’s Perspective?. [Online] Available: https://www.7signal.com/ news/blog/why-monitor-a-wireless-network-from-the-end-users-perspective
R. B. Johnson. Evaluating the use of SNMP as a wireless network monitoring tool for IEEE 802.11 wireless networks. Ph.D.thesis. Clemson University, 2009.
J. Yeo, M. Youssef, T. Henderson, and A. Agrawala, “An accurate technique for measuring the wireless side of wireless networks,” International Conference On Mobile Systems, Applications And Services: Papers presented at the 2005 workshop on Wireless traffic measurements and modeling, Vol. 5, No. 5, pp. 13–18, 2005.
I. P. Mohottige, T. Sutjarittham, N. Raju, H. H. Gharakheili and V. Sivaraman, "Role of Campus WiFi Infrastructure for Occupancy Monitoring in a Large University," 2018 IEEE International Conference on Information and Automation for Sustainability (ICIAfS), Colombo, Sri Lanka, 2018, pp. 1-5, doi: 10.1109/ICIAFS.2018.8913341.
L. Chen, R. Wu and W. -K. Jia, "Exploring the Optimal Intercept Access Point Placement Problem in Software-Defined Networks," 2021 IEEE 18th Annual Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA, 2021, pp. 1-6, doi: 10.1109/CCNC49032.2021.9369594.
Y. Z. Jian, N. Ismail and M. S. Nabi, "Wireless Access Point Mapper (WAP-MAP): An Automated Wireless Access Point Plotting Web Application," 2022 International Conference on Advancements in Smart, Secure and Intelligent Computing (ASSIC), Bhubaneswar, India, 2022, pp. 1-7, doi: 10.1109/ASSIC55218.2022.10088395.
A. Thitinaruemit, S. Sitjongsatapom and S. Prongnuch, "Capacity Planning of Access Point Deployment for Indoor Positioning System," 2021 International Conference on Power, Energy and Innovations (ICPEI), Nakhon Ratchasima, Thailand, 2021, pp. 167-170, doi: 10.1109/ICPEI52436.2021.9690679.
Y. Liu, F. R. Yu, X. Li, H. Ji, H. Zhang and V. C. M. Leung, "Self-optimizing interference management for non-orthogonal multiple access in ultra-dense networks," 2018 IEEE Wireless Communications and Networking Conference (WCNC), Barcelona, Spain, 2018, pp. 1-6, doi: 10.1109/WCNC.2018.8377038.
Hu, Q., Sellers, C., Kwon, J.S., & Wu, H. (2022). Integration of surface-enhanced Raman spectroscopy (SERS) and machine learning tools for coffee beverage classification. Digital Chemical Engineering, Vol. 3, 2020, doi: 10.1016/j.dche. 2022.100020.
Chen, Long-Qi and Wenhua Huang. “153. APPLICATION OF RAMAN SPECTROSCOPY AND MACHINE LEARNING IN THE CLASSIFICATION OF ESOPHAGEAL SQUAMOUS CARCINOMA.” Diseases of the Esophagus: Vol 35, 2022.
Schulze, G., Jirasek, A., Yu, M. M. L., Lim, A., Turner, R. F. B., & Blades, M. W. “Investigation of Selected Baseline Removal Techniques as Candidates for Automated Implementation” Applied spectroscopy. 59, 545-74, Vol. 59, 2005.
Whitaker, D. A., & Hayes, K. “A Simple Algorithm for Despiking Raman Spectra” Chemometrics and Intelligent Laboratory Systems. Vol. 179, 2018.