Smart portable pen for continuous monitoring of anaesthetics in human serum with machine learning