An advanced bio-inspired photoplethysmography (PPG) and ECG pattern recognition system for medical assessment