A service-oriented architecture for ambient-assisted living