Text this: Chemical concentration calculation based on spectrogram