Automatic Pose Recognition for Monitoring Dangerous Situations in Ambient-Assisted Living