An Intelligent System for Prolonging Independent Living of Elderly