The sCGM sensor architecture comprises a commercial CGM sensor (black block) and three software modules for denoising, enhancement, and prediction applied in cascade and working in real time. The denoising module receives in input CGM data and returns in output a smoother CGM profile. The enhancement module receives in input the smoothed CGM data and returns in output more accurate CGM data. Finally, the prediction module receives in input denoised and enhanced CGM data and returns in output the prediction of future glucose value, on which “preventive” hypo- and hyperglycemic alerts can be generated.