How is FTIR used for drug testing? Is it used to test for contamination based on the spectrum profile?
You can even measure the amounts of various chemicals in solution, but that would require complex calibration. In this case you are basically writing ML system that is trying to fit various peak heights/areas to amount of compound.
https://globalnews.ca/news/4540315/new-drug-checking-machine...
Raman spectroscopy[1] is one that I know of that is frequently used to determine chemical composition. Spectroscopy in general still amazes me.
[1] https://en.wikipedia.org/wiki/Raman_spectroscopy#Application...