Methodology for improving classification accuracy using ontologies. Application in the recognition of Activities of Daily Living