journal article·2023-06-05Open access

Validating neural networks for spectroscopic classification on a universal synthetic dataset

Jan Schuetzke, Nathan J. Szymanski, Markus Reischl

npj Computational Materials· Volume 9· Issue 1

Abstract

Abstract To aid the development of machine learning models for automated spectroscopic data classification, we created a universal synthetic dataset for the validation of their performance. The dataset mimics the characteristic appearance of experimental measurements from techniques such as X-ray diffraction, nuclear magnetic resonance, and Raman spectroscopy among others. We applied eight neural network architectures to classify artificial spectra, evaluating their ability to handle common experimental artifacts. While all models achieved over 98% accuracy on the synthetic dataset, misclassifications occurred when spectra had overlapping peaks or intensities. We found that non-linear activation functions, specifically ReLU in the fully-connected layers, were crucial for distinguishing between these classes, while adding more sophisticated components, such as residual blocks or normalization layers, provided no performance benefit. Based on these findings, we summarize key design principles for neural networks in spectroscopic data classification and publicly share all scripts used in this study.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Spectroscopy and Chemometric Analyses · Spectroscopy Techniques in Biomedical and Chemical Research · Advanced Chemical Sensor Technologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (30)

Show source-provided references
1. Friedrich, W., Knipping, P. & Laue, M. Interferenzerscheinungen bei Röntgenstrahlen. Ann. Phys. 346, 971–988 (1913).10.1002/andp.19133461004 ↗
2. Ernst, R., Bodenhausen, G. & Wokaun, A. Principles of nuclear magnetic resonance in one and two dimensions (Oxford Science Publications, 1987).
3. Smith, E. & Dent, G. Modern Raman Spectroscopy: A Practical Approach (John Wiley & Sons, 2019).10.1002/9781119440598 ↗
4. Belsky, A., Hellenbrandt, M., Karen, V. L. & Luksch, P. New developments in the inorganic crystal structure database (ICSD): accessibility in support of materials research and design. Acta Crystallogr. B. 58, 364–369 (2002).10.1107/S0108768102006948 ↗
5. Lafuente, B., Downs, R. T., Yang, H. & Stone, N. The power of databases: The RRUFF project. In Highlights in mineralogical crystallography, 1–30 https://doi.org/10.1515/9783110417104 (De Gruyter (O), 2015).10.1515/9783110417104 ↗
6. Choudhary, K. et al. Recent advances and applications of deep learning methods in materials science. npj Comput. Mater. 8, 59 (2022).10.1038/s41524-022-00734-6 ↗
7. Szymanski, N. J. et al. Toward autonomous design and synthesis of novel inorganic materials. Mater. Horiz. 8, 2169–2198 (2021).10.1039/D1MH00495F ↗
8. McCulloch, W. S. & Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 5, 115–133 (1943).10.1007/BF02478259 ↗
9. Park, W. B. et al. Classification of crystal structure using a convolutional neural network. IUCrJ 4, 486–494 (2017).10.1107/S205225251700714X ↗
10. Wang, H. et al. Rapid identification of x-ray diffraction patterns based on very limited data by interpretable convolutional neural networks. J. Chem. Inf. Model 60, 2004–2011 (2020).10.1021/acs.jcim.0c00020 ↗
11. Lee, J.-W. et al. A deep-learning technique for phase identification in multiphase inorganic compounds using synthetic xrd powder patterns. Nat. Commun. 11, 86 (2020).10.1038/s41467-019-13749-3 ↗
12. Schuetzke, J., Benedix, A., Mikut, R. & Reischl, M. Enhancing deep-learning training for phase identification in powder x-ray diffractograms. IUCrJ 8, 408–420 (2021).10.1107/S2052252521002402 ↗
13. Szymanski, N. J. et al. Probabilistic deep learning approach to automate the interpretation of multi-phase diffraction spectra. Chem. Mater. 33, 4204–4215 (2021).10.1021/acs.chemmater.1c01071 ↗
14. Chen, D. et al. Review and prospect: Deep learning in nuclear magnetic resonance spectroscopy. Chem. Eur. J. 8, 10391–10401 (2020).10.1002/chem.202000246 ↗
15. Liu, J. et al. Deep convolutional neural networks for raman spectrum recognition: a unified solution. Analyst 142 21, 4067–4074 (2017).10.1039/C7AN01371J ↗
16. Ho, C.-S. et al. Rapid identification of pathogenic bacteria using raman spectroscopy and deep learning. Nat. Commun. 10, 4927 (2019).10.1038/s41467-019-12898-9 ↗
17. Kukula, K. et al. Rapid detection of bacteria using raman spectroscopy and deep learning. Proc. IEEE Annual Computing and Communication Workshop and Conference 796–799 (2021).10.1109/CCWC51732.2021.9375955 ↗
18. LeCun, Y. et al. Backpropagation applied to handwritten zip code recognition. Neural Comput. 1, 541–551 (1989).10.1162/neco.1989.1.4.541 ↗
19. Deng, J.et al. Imagenet: A large-scale hierarchical image database. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 248–255 (2009).10.1109/CVPR.2009.5206848 ↗
20. Krizhevsky, A., Sutskever, I. & Hinton, G. E. Imagenet classification with deep convolutional neural networks. Commun. ACM 60, 84–90 (2017).10.1145/3065386 ↗
21. Kuhn, S. & Schlörer, N. E. Facilitating quality control for spectra assignments of small organic molecules: nmrshiftdb2 - a free in-house nmr database with integrated lims for academic service laboratories. Magn. Reson. Chem. 53, 582–589 (2015).10.1002/mrc.4263 ↗
22. Jain, A. et al. Commentary: The materials project: a materials genome approach to accelerating materials innovation. APL Mater. 1, 012002 (2013).10.1063/1.4812323 ↗
23. Oviedo, F. et al. Fast and interpretable classification of small x-ray diffraction datasets using data augmentation and deep neural networks. npj Comput. Mater. 5, 1–9 (2018).
24. Maffettone, P. M. et al. Crystallography companion agent for high-throughput materials discovery. Nat. Comput. Sci. 1, 290–297 (2021).10.1038/s43588-021-00059-2 ↗
25. Liang, Q., Dwaraknath, S. & Persson, K. A. High-throughput computation and evaluation of raman spectra. Sci. Data 6, 135 (2019).10.1038/s41597-019-0138-y ↗
26. Bagno, A., Rastrelli, F. & Saielli, G. Predicting 13C nmr spectra by dft calculations. J. Phys. Chem. A 107, 9964–9973 (2003).10.1021/jp0353284 ↗
27. Xu, Y. & Goodacre, R. On splitting training and validation set: a comparative study of cross-validation, bootstrap and systematic sampling for estimating the generalization performance of supervised learning. J. Anal. Test. 2, 249–262 (2018).10.1007/s41664-018-0068-2 ↗
28. Zhang, R. et al. Transfer-learning-based raman spectra identification. J. Raman Spectrosc. 51, 176–186 (2020).10.1002/jrs.5750 ↗
29. Dong, H. et al. A deep convolutional neural network for real-time full profile analysis of big powder diffraction data. npj Comput. Mater. 7, 1–9 (2021).10.1038/s41524-021-00542-4 ↗
30. Davies, A. & Patiny, L. Nmrium browser-based nuclear magnetic resonance data processing. Spectrosc. Eur. 33, 21–24 (2021).10.1255/sew.2021.a18 ↗