Biomedical signal processing and control