AI-based modular warning machine for risk identification in proximity healthcare