scieee AI-readable full text Open interactive document viewer

Fall risk assessment: towards real-time and continuous estimation

Martins, Luís Miguel Marques

Abstract

Falls are a common cause of injuries and deaths in the senior population. Due to population ageing, more falls occur. As a result, the expense of treating fall-related injuries is rising as well. Thus, the development of strategies with the capability of real-time fall risk monitoring without user restriction is imperative. Due to their advantages, daily life items, such as waist straps, smart watches and smartphones, can be a solution to integrate fall-risk assessment systems. Summing up, it is crucial the development of strategies that can in real time evaluate and recognize risky situations based on several fall risk factors, in order to prevent falls, also allowing timely assistance to reduce its harmful consequences. This thesis aims to idealize a tool capable of assessing the fall risk of a subject in real time, taking into account several existing fall risk factors, focusing on continuous fall risk assessment (FRA) and recognition of daily activities performed by the elderly. The strategy regarding the FRA consisted of a three-part modular architecture that allows real-time fall risk assessment using only a waist strap fitted with an inertial sensor and an eHealth platform. Each module must examine risk factors such as biological data, environmental changes, and even geriatric behavioral matters such as daily activities. The activity recognition module was validated in this dissertation. For the recognition of 20 different daily activities and falls, a machine learning study was completed involving 10 feature selection methods and 5 different machine learning classifiers. Results have shown that the Ensemble Learning with the 65 first features ranked by PCA presented the best results with 96.53% of overall accuracy, while maintaining a low classification time, leaving the possibility of its usage in real time scenarios open in the future. The same problem was also addressed via Deep Learning algorithms and 4 basic Neural Networks architectures were tested. Despite its outcomes not being as good as in the prior procedure, their potential was demonstrated (overall accuracy of 92.55% for BiLSTM), indicating that they could be a good option in the future with some changes and new testing.

Full text

Universidade do Minho Escola de Engenharia Luís Miguel Marques Martins Fall Risk Assessment: Towards Real-Time and Continuous Estimation Universidade do Minho Escola de Engenharia Luís Miguel Marques Martins Fall Risk Assessment: Towards Real-Time and Continuous Estimation Master’s Dissertation Master’s Degree in Biomedical Engineering Medical Electronics Work supervised by: Professora Doutora Cristina P. Santos ii COPYRIGHT AND TERMS OF USE OF THIS WORK BY A THIRD PARTY This is academic work that can be used by third parties as long as internationally accepted rules and good practices regarding copyright and related rights are respected. Accordingly, this work may be used under the license provided below. If the user needs permission to make use of the work under conditions not provided for in the indicated licensing, they should contact the author through the RepositóriUM of Universidade do Minho. License granted to the users of this work Creative Commons Atribuição-NãoComercial-CompartilhaIgual 4.0 Internacional CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/deed.pt iii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the Universidade do Minho. [en] Acknowledgements All the work done over the last year would not have been possible without the assistance, understanding, and support of many people who deserve to be here recognized. First and foremost, I want to express my gratitude to my supervisor, Prof. Cristina Santos, who created a wonderful learning environment for me, providing me with several possibilities to broaden my horizons through significant research contacts. I am thankful to her for her support, and motivation. I’m also grateful to Nuno, who was always there, willing to help and discuss the study, as well as make recommendations that aided in the development of this achievement. Thank you also for your encouragement and understanding at difficult times, and for always keeping me on track to achieve my best and beyond. I’d also like to express my gratitude to everyone in the BiRDLab for the pleasant working environment they’ve built, specially to Raquel, Cristiana and Rafael for helping me with the waistband. Thank you as well to all of my fellow classmates and friends I’ve made. I also can’t forget to thank all the unicorns and other mythological beings who, without a doubt, had a significant influence on me in order for me to complete this stage in the most pleasurable way possible, listening to all my prayers and concerns. I hope I left a positive impression on you, because you surely did that on me. Maya, my girlfriend, deserves a heartfelt thank you for her unwavering support, devotion, and patience throughout the past year. She both inspired me to finish my dissertation while provided much-needed distractions. Even though she was far away, she accompanied me on this journey and is a big part of this success as well. Finally, but certainly not least, I want to express my gratitude to my family, particularly my mother, father, and brother, for all their love and support, not only during my dissertation but throughout my entire life. Without them, none of this would be possible. I’m grateful to all of you. With love and the utmost appreciation, Luís Martins iv Abstract Fall Risk Assessment: Towards Real-Time and Continuous Estimation Falls are a common cause of injuries and deaths in the senior population. Due to population ageing, more falls occur. As a result, the expense of treating fall-related injuries is rising as well. Thus, the development of strategies with the capability of real-time fall risk monitoring without user restriction is imperative. Due to their advantages, daily life items, such as waist straps, smart watches and smartphones, can be a solution to integrate fall-risk assessment systems. Summing up, it is crucial the development of strategies that can in real time evaluate and recognize risky situations based on several fall risk factors, in order to prevent falls, also allowing timely assistance to reduce its harmful consequences. This thesis aims to idealize a tool capable of assessing the fall risk of a subject in real time, taking into account several existing fall risk factors, focusing on continuous fall risk assessment (FRA) and recognition of daily activities performed by the elderly. The strategy regarding the FRA consisted of a three-part modular architecture that allows real-time fall risk assessment using only a waist strap fitted with an inertial sensor and an eHealth platform. Each module must examine risk factors such as biological data, environmental changes, and even geriatric behavioral matters such as daily activities. The activity recognition module was validated in this dissertation. For the recognition of 20 different daily activities and falls, a machine learning study was completed involving 10 feature selection methods and 5 different machine learning classifiers. Results have shown that the Ensemble Learning with the 65 first features ranked by PCA presented the best results with 96.53% of overall accuracy, while maintaining a low classification time, leaving the possibility of its usage in realtime scenarios open in the future. The same problem was also addressed via Deep Learning algorithms and 4 basic Neural Networks architectures were tested. Despite its outcomes not being as good as in the prior procedure, their potential was demonstrated (overall accuracy of 92.55% for BiLSTM), indicating that they could be a good option in the future with some changes and new testing. Keywords: Fall, Fall Risk Assessment, Activities of the Daily Living, Machine Learning, Deep Learning. v Resumo Análise de risco de queda: em direção a uma estimativa em tempo real Quedas são uma das causa mais comuns de lesões na população idosa. Como resultado, custos com o tratamento destas têm também aumentado. Assim, é imperativo o desenvolvimento de ferramentas de Análise do Risco de Queda (ARQ) em tempo real, sem restrições para os utilizadores. Dispositivos como cintas e smartphones, podem hoje em dia ser uma solução para integrar sistemas de avaliação de risco de queda. Em suma, é fundamental o desenvolvimento de estratégias que possam avaliar e reconhecer situações de risco de queda com base em vários fatores, a fim de as prevenir, permitindo ainda uma assistência atempada por forma a reduzir as suas consequências. Assim, esta dissertação pretende dar os primeiros passos em direção a uma ferramenta de ARQ, tendo em conta diversos fatores de risco, com foco principal na ARQ e reconhecimento de atividades diárias realizadas por idosos. A estratégia de ARQ consistiu em uma arquitetura modular de três partes para a avaliação do risco de queda em tempo real, usando uma cinta equipada com um sensor inercial e uma plataforma de eHealth. Cada módulo examina fatores de risco, como dados biológicos, mudanças ambientais e até mesmo questões comportamentais dos idosos, como as suas atividades diárias. O módulo de reconhecimento de atividades foi validado nesta dissertação. Para o reconhecimento de 20 diferentes atividades diárias e quedas, foi realizado um estudo de Machine Learning envolvendo 10 métodos de seleção de features e 5 classificadores diferentes. O Ensemble Learning com as primeiras 65 features selecionadas pelo PCA apresentou os resultados mais promissores, com 96,53% de accuracy, mantendo um tempo de classificação baixo, deixando em aberto a possibilidade de seu uso em tempo real no futuro. O mesmo problema foi ainda solucionado através de algoritmos de Deep Learning, e 4 arquiteturas básicas de Redes Neurais foram testadas. Apesar de seus resultados não serem tão bons quanto no procedimento anterior (accuracy de 92,55% para BiLSTM), seu potencial foi demonstrado, indicando que podem ser uma solução de futuro, após modificações e novos testes. Palavras-chave: Queda, Análise de risco de queda, Atividades Diárias, Machine Learning, Deep Learning. vi Contents List of Figures x List of Tables xiii Acronyms xvii 1 Introduction 1 1.1 Motivation ..................................... 2 1.2 Problem Statement and Scope ........................... 3 1.3 Objectives and Research Questions ......................... 4 1.4 Solution Requirements ............................... 6 1.5 Contributions to Knowledge ............................. 7 1.6 Thesis Outline ................................... 7 2 Falls and Fall Risk Assessment: A State-of-the-Art 9 2.1 Falls: Definition and Epidemiological Studies ..................... 9 2.1.1 Risk Factors ................................ 10 2.1.2 Consequences ............................... 11 2.1.3 Fall Prevention ............................... 12 2.2 Fall Risk Assessment: A State-of-the-Art on Automatic Approaches .......... 13 2.2.1 Research Strategy and Eligibility Criteria ................... 13 2.2.2 Reviews Analysis .............................. 14 2.2.3 Prospective Vs Immediate Fall Risk Assessment ............... 15 2.2.4 Prospective Fall Risk Assessment ...................... 16 2.2.5 Immediate Fall Risk Assessment ...................... 22 2.2.6 Multifactorial Fall risk Assessment ..................... 27 2.3 Discussion ..................................... 28 2.3.1 Prospective Fall risk Assessment ...................... 29 2.3.2 Immediate Fall risk Assessment ....................... 29 vii CONTENTS 2.3.3 Multifactorial Fall risk Assessment ..................... 30 3 Daily Activity Recognition: Literature Review 31 3.1 Review’s Analysis .................................. 31 3.2 Machine Learning-Based Approaches ........................ 32 3.2.1 Data Acquisition Methods .......................... 32 3.2.2 ADL Recognition Algorithms and Results .................. 33 3.3 Deep Learning ADL and Fall Recognition Approaches ................. 36 3.3.1 Data Acquisition Methods .......................... 36 3.3.2 ADL Recognition Algorithms and Results .................. 37 3.4 Discussion ..................................... 39 4 Fall Risk Assessment Tool - Architecture Conceptualization 42 4.1 Requirements .................................... 43 4.2 Architecture Overview ................................ 44 4.3 Data Acquisition .................................. 46 4.4 Baseline Risk Module ................................ 47 4.5 Activity Recognition Module ............................. 48 4.6 Gait Abnormalities Module ............................. 49 4.7 Fall Risk Assessment and Feedback ......................... 52 4.8 Data Acquisition in Nursing Homes ......................... 53 4.8.1 Waistband enhacement ........................... 54 4.8.2 Data Acquisition Protocol .......................... 55 4.9 Discussion ..................................... 58 5 Activities of Daily Living Recognition - Methods 61 5.1 Requirements and Data Flow Overview ........................ 61 5.1.1 Data Flow Overview ............................ 63 5.2 Dataset Acquisition and Fusion Process ....................... 63 5.2.1 Acquisition and Description ......................... 64 5.2.2 Dataset Normalization Process ....................... 67 5.2.3 Labeling .................................. 68 5.3 AI-based classifiers: Comparative Analysis ...................... 69 5.3.1 Feature Extraction ............................. 70 5.3.2 Feature Selection .............................. 73 5.3.3 Classification Models ............................ 74 5.3.4 Validation Methods Description ....................... 78 viii LIST OF TABLES 24 Classification time for the training and testing of the two best combinations of Machine Learning (ML) model and Feature Selection Method (FSM), for each of the selected windows for the window size study. ................................. 90 25 Machine Learning literature approaches for ADL recognition and benchmark ....... 91 26 Deep Learning literature approaches for ADL recognition and benchmark ......... 92 27 Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the K-NN machine learning classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) . . . . . 119 28 Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the DA Linear classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) ............ 120 29 Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the DA Quadratic classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) ........ 120 30 Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the Decision Trees classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) ........ 121 31 Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the Ensemble Learning classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) . . . . . . 121 32 Final test Results per class for Ensemble Learning classifier with the first 65 features ranked by PCA for a 0,5s window ................................ 123 33 Final test Results per class for K-NN classifier with the first 85 features ranked by Relief-F for a 0,5s window ..................................... 124 34 Final test Results per class for Ensemble Learning classifier with the first 65 features ranked by PCA - 0,5s window .................................. 126 35 Complete list of the first 85 ranked features selected by the feature selection method Relief- F, wich produced the best results for K-NN classifier in Chapter 6, with feature label, its description and the corresponding reference. ...................... 127 36 Complete list of the first 65 ranked features selected by the feature selection method PCA, wich produced the best results for the Ensemble Learning classifier in Chapter 6, with feature label, its description and the corresponding reference. .................. 131 xv LIST OF TABLES 37 Results for the computation time of the 4 Deep Learning architectures with both feature subsets ranked by Relief-f and PCA ........................... 140 xvi Acronyms ADL Activities of Daily Living BBS Berg Balance Scale CNN Convolutional Neural Networks DL Deep Learning DTs Decision Trees FRA Fall Risk Assessment KNN K-Nearest Neighbours LDA Linear Discriminant Analysis LSTM Long Short-Term Memory ML Machine Learning NN Neural Networks PCA Principal Component Analysis POMA Performance Oriented Mobility Assessment QDA Quadratic Discriminant Analysis TUG Timed Up and Go xvii Chapter 1 Introduction This dissertation presents the research carried out in the scope of my Masters Degree in Biomedical Engineering, branch of Medical Electronics, at the Biomedical Robotic Devices Lab (BirdLab) included in the Center for Micro-Electro-Mechanical Systems (CMEMS), a research center of the Department of Industrial Electronics (DEI) in the University of Minho. The focus of this dissertation centers around the idealization of an eHealth platform-based Fall Risk Assessment (FRA) strategy which, in a continuous and multifactorial manner, performs the FRA of an individual, through the provision of several types of data. This data types may be: real-time accelerometry and angular velocity data collected by an inertial sensor located in his lumbar region; clinical information such as age, weight, medications or diseases collected in medical appointments; and data regarding the surrounding ambient, such as temperature, humidity level or the brightness of the place where a subject is. This strategy aims to help seniors improve their quality of life (QoL), ensuring a feedback process that communicates with caregivers or health professionals in the event of a fall to provide timely support. The project was divided into 3 main phases, namely: i) research and design of a modular strategy for multifactorial real-time FRA; and ii) research, development and validation of AI-based, Machine Learning (ML) and Deep Learning (DL) models, for the recognition of 16 Activities of the Daily Living (ADL) and 4 types of fall events, using information gathered from several public datasets; and iii) Enhacement of an adjustable waistband and delineation of data acquisition protocols of relevant ADLs in nursing home environments. 1 CHAPTER 1. INTRODUCTION 1.1 Motivation People all over the world can now expect to live longer lives, with the majority living into their sixties and beyond. According to a World Health Organization (WHO) study, every country in the world is experiencing an increase in the size and proportion of older people within the population. By 2030, one in every six people on the planet will will have 60 years old or more, with the number of people aged 80 or older expected to triple between 2020 and 2050, reaching 426 million [1]. The aging process is accompanied by the rise of a number of health conditions known as geriatric syndromes, which are often the result of a number of underlying problems, such as weakness and falls [1]. Falls are among the most serious clinical issues that the elderly confront, and they are considered a public health concern, causing substantial rates of mortality, morbidity, immobility and reduced QoL, as well as their impact on the health system services [2–4]. It is estimated that at least one third of the population over the age of 65 years fall at least once per year and this proportion tends to increase strongly with age [5]. In 2006, falls constituted two-thirds of unintentional injuries, which was the fifth leading cause of death in older adults (after cardiovascular disease, cancer, stroke and pulmonary disorders) [4]. The high incidence together with a high susceptibility to injury of the elderly, make falls in this age group more dangerous than in others, where even a relatively mild fall can be particularly dangerous, because of a high prevalence of clinical diseases and age-related physiological changes in the older adults [4]. Fractures, joint dislocations, and head trauma are some of the serious injuries that can be caused by a fall. Moreover, psychological trauma such as fear of falling is another consequence of falls which may lead to self-imposed restrictions in activity and, consequently, loss of independence [6,7]. Despite not being one of the European countries with the highest number of deaths caused by falls, according to WHO studies from 2014, there were 618 deaths in Portugal as a result of unintentional falls. This number has been increasing, with 815 deaths recorded in 2018 [8]. As a consequence of the current problem of falls among the elderly community, and its propensity to cause severe harm, the health care costs associated with falls from the elderly and fall-related injuries are high, as well as its social burden [2,9–11]. According to WHO, for the elderly, the average health system cost per fall injury in Australia can be higher than US$ 1000 [2,11]. In Finland, the average health-care expenditure for a single fall injury episode for adults 65 and older was US$ 3611 [12,13]. Furthermore, the average cost of hospitalization for a fall-related injury ranges from US$ 6646 in Ireland to US$ 17 483 in the United States for those 65 and older [14,15]. This expenditure is expected to rise to US$ 240 billion by 2040 [16]. Summarising, with an increasingly aging population, and the risks that it entails in terms of the probability of falls, as well as its consequences, research in fall prevention methods and FRA becomes imperative. The application of an adequate FRA method can thus prevent a fall and avoid its harmful outcomes, both those which affect the population at a physical and psychological level, as well as the negative social and 2 CHAPTER 1. INTRODUCTION economic impacts [2,10,11,17]. 1.2 Problem Statement and Scope Until today, the FRA in the elderly has been performed through occasional medical consultations, and it depends mostly on analysis of fall risk specific and functional mobility assessment tools, in the form of questionnaires, physical tests, gait analysis, and physical activity measurements, such as the Timed Up and Go (TUG) [18], Berg Balance Scale (BBS) [19], Tinetti Performance Oriented Mobility Assessment (POMA) [20], or the 5 times sit-to-stand (STS) [21], among others [10,17]. ADLs are not addressed in these approaches, which solely evaluate motions that frequently do not correlate to those conducted in an aged person’s daily life, making this sort of evaluation particularly prone to error. Furthermore, these occasional consultations may also occur on periods when a subject may be unprepared or overly prepared for the assessment of his fall risk. Despite being the most used today, the referred tests can be influenced by other several factors, such as the subjectivity of the evaluation, the ambient conditions where the tests are carried, or even the physical and psychological state of the individuals when performing the tests [22]. Moreover, these types of testing can be time consuming [23] and require a team of professionals for their preparation and execution, which may become cumbersome for the elderly [24]. In addition, the results are usually not the most understandable by the persons being tested [25]. Clinical FRA tools have also not taken into account hazards found in the normal daily living environment of the elderly, which may also explain why the actual clinical tests fail at giving the fall risk a score with satisfying results [22,26,27]. In recent years, with advances in sensing with wearable technology, as well as the emergence of Artificial Intelligence (AI)-based algorithms, studies have attempted to make FRA less subjective and prone to error, by investigating the potential use of instrumented FRA tools based on features extracted from inertial sensors (i.e. accelerometers and gyroscopes) attached to the subject’s body. FRA based on wearable sensors can be performed in a prospective way, i.e., the risk of a subject to fall in a long-term future (usually 6 to 12 months), in which sensor data is used to predict subject’s long-term fall risk based on clinical scale scores or to automatically distinguish between Fallers (F) and Non-Fallers (NF) [17,22,28]. Wearable sensor-based FRA can also be performed from a short-term or even immediate approach, where the acquired data is used to detect pre-fall/unbalanced situations in real-time and consequently identify fall risk events [29,30], however, there is still a very limited number of works which perform this type of FRA [22,31]. The first approach is significant since it assesses a subject’s overall physical and psychic abilities and places these assessments in a fall risk context to better understand an aged person’s behavior in future fall risk scenarios. The second approach, is also very crucial because of its ability to analyze in real-time risk situations, which can be triggered by slips or trips 3 CHAPTER 1. INTRODUCTION caused by environmental hazards, or even the inherent fall risk that a given activity presents to the elderly, such as walking up or downstairs. In order to design effective interventions for wearable-based fall prevention and FRA, it is crucial to identify the optimal combination of three factors: i) where to place the sensor(s); ii) which task(s) to be performed; and iii) which features should be extracted and analyzed [17,27]. Also, falls happen at specific times and contexts [32], so, in order to prevent falls from happening, when assessing fall risk, the current context such as time of day, current health status, location, and other relevant context information needs to be included in the FRA as well [22,27]. Likewise, the analysis of ADL reveals an extreme importance for the FRA, whether it is performed in an immediate or prospective manner. According to Lord et al. [33], the number of falls in the elderly is also linked to the activity that was being performed immediately before the fall, such as walking, climbing up or downstairs, or getting up from bed. As a result, real-time ADL identification will provide information regarding the performance of certain activities that may raise the risk of falling in a short-term/immediate perspective. This ADL recognition also allow for researchers to assess activity performance, see how it changes over larger periods of time, and see how gait characteristics and other health-related aspects get better or worse, allowing for correlations between the elderly’s everyday activities and fluctuations in their risk of falling in the long term. In light of the foregoing, it should be highlighted that there is still a long way to go regarding improvements in the way the FRA is conducted in the elderly. It is apparent that nowadays both prospective and immediate perspectives of FRA should be assessed, achieving the most accurate and least subjective assessment possible. Furthermore, for this purpose, it is crucial for FRA to have a context-aware property influenced by multiple fall risk factors, such as environment hazards that surround the elderly, as well as their physiological and psychological state. Finally, due importance must be given to the ADL that the subjects perform, as well as to the way they carry out said activities, studying characteristics such as the speed and the balance presented in order to be used in both prospective and immediate FRA approaches. The combination of this several factors is a problematic that has not been adequately addressed by existing wearable-based FRA strategies [22]. 1.3 Objectives and Research Questions From the scope shown in Section 1.2, in order to surpass the current drawbacks of FRA strategies, the present work aims to, together with the strong technological evolution of AI and wearable sensor technology, design a multifactorial tool capable of continuously assess the fall risk of elderly subjects, taking into account both prospective an immediate FRA considerations, and focusing on the recognition of daily activities performed by the elderly population, thus avoiding possible falls and its consequences. In order to achieve this final objective, other objectives will have to be achieved, among which: 4 CHAPTER 1. INTRODUCTION •Goal 1: Gather knowledge on methods used currently to fall risk assessment, by performing a state-of-the-art review on different methods. This will be resumed on Section 2.2. •Goal 2: Gather knowledge on methods used currently for ADL recognition, by performing a literature review, focusing on Machine Learning and Neural Networks based approaches, and list the ADL that have to be considered for fall risk assessment. This will be resumed on Chapter 3. •Goal 3: Design a custom strategy architecture for a multi-factorial fall risk assessment tool, to attain a fall risk from diverse types of subject (inertial, biological, psychological, etc) and ambient (temperature, humidity, luminosity, etc) data. This strategy will be described on chapter 4. •Goal 4: Create a custom and dataset with inertial and demographic data by joining several teamowned and public datasets with data acquired from multiple healthy and unhealthy subjects in real and simulated domiciliary settings, while performing several ADLs using waist-located intertial sensors, in order to train and evaluate different ADL recognition algorithms offline - Chapter 5. •Goal 5: Exploit Machine Learning and Neural Network models capable of recognising several ADLs with a big dataset made from diverse public datasets. The explored approaches should lead to, at least, 95% of accuracy for recognition of 20 classes of ADL, since literature analyzed shows a detecting a maximum of 14 ADL (in this case, with 80% accuracy) [34] for ML-based approaches and 96.7% accuracy for the recognition of 6 ADL with DL-based approaches. These steps will be described on chapter 5. Chapter 6shows the obtained results. •Goal 6: Delineate protocols with clinicians and caregivers to obtain inertial and demographic data, as well as data from clinical FRA tests, from multiple elderly subjects in multiple real homecare settings and domiciliary, while performing several ADLs using the waistband (Section 4.8). These will be used to train and evaluate the best framework in the medium term. •Goal 7: Run experiments with the identified elders and start creating a custom dataset with multimodal sensory information, including inertial data from ADL, as well as physiological data, that will be used to evaluate and train the best framework in the medium term (Section 4.8). Consequently, in this dissertation the following Research Questions are expected to be answered: •RQ 1: What is the best strategy to perform FRA in real-time and in a multi-factorial way? •RQ 2: What is the best Machine Learning and Deep Learning-based strategy to implement for real-time ADL and fall events recognition? •RQ 3: What are the most suitable features for recognizing ADL and fall events from Machine Learning models? 5 CHAPTER 1. INTRODUCTION •RQ 4: Which inclusion and exclusion criteria, ADL and circuits should be included in a protocol to collect relevant, variable data for training Machine Learning models to recognize ADL and fall events from elderly in real-life environments? 1.4 Solution Requirements To be effectively used as a daily FRA tool on the on community dwelling people and elderly in nurse homes, this FRA solution has to: • Function properly using light and small-sized technological components, in order to be comfortable and able to be used for several days by the target audience; • Obtain the fall risk in real-time and in a multi-factorial way, taking into account fall risk factors of different natures; • Display the fall risk clearly to the target audience (elderly and health professionals) and activate feedback measures in scenarios whenever there is a high risk of falling. In order to introduce ADL and fall events recognition into the FRA strategy, this recognition needs to: • Detect a wide set of daily activities and fall events from the smallest possible number of sensors. With the analyzed state-of-the-art detecting a maximum of 14 ADL [34], this dissertation aims for the recognition of 20 different ADL from the data of a single waist-located inertial sensor; • Be well validated using a large dataset and multiple validation processes, such as Hold-Out (HO) and k-folds Cross-Validation (CV), in line with what is most commonly used in the literature; • Present the highest possible accuracy, sensitivity, specificity, precision, F1 Score and MCC, with the literature showing performances of 96.70%, 96.83%, 96.83%, for accuracy, precision, and sensitivity, respectively, in 6 class classification problems using deep learning algorithms [35]; • Run in real-time. Since in this dissertation ADL recognition will be performed offline, it is important that the selected model classifies in a short time considering the window size and overlap used, i.e., classification time should be lower than the time between to consecutive classification windows. 6 CHAPTER 1. INTRODUCTION 1.5 Contributions to Knowledge The main contributions of this dissertation to the actual knowledge in this field are: • The proposal of a FRA tool architecture capable of using several fall risk factors to compute the risk of falling in real-time. • A dataset creation from the fusion and normalization of diverse public and non-public datasets, which allows a more robust and validated training and testing of Machine and Deep Learning models. • Machine Learning classification models and Neural Networks tool which are able to recognise 16 Daily activities and postural events, as well as 4 types of falls. • The enhacement of a team-owned instrumented waistband for lower trunk inertial data acquisition. • Development of user-friendly smartphone applications, for automatic Bluetooth data acquisition and data labeling. • Establish contacts and data acquisition protocols in nurse homes using the developed software and waistband. 1.6 Thesis Outline The remainder of this dissertation is organized in 6 chapters: Chapter 2contains an introduction to the problem of falls, with its definition of falls as well as some epidemiological knowledge (Section 2.1). This is followed by a review of the literature regarding different FRA techniques, such as Prospective FRA, Immediate FRA and Multi-factorial FRA (Section 2.2). Finally, in Section 2.3, conclusions are drawn about the research carried out. Chapter 3shows the most recent Machine Learning and Neural Networks trends for the recognition of daily activities, followed by general conclusions regarding the results and limitations of what is currently done in the literature. In Chapter 4, proposals for solutions to the drawbacks encountered in the literature are presented, idealizing the architecture of a multifactorial FRA strategy. Moreover, This chapter also shows the enhancement process of a team-own instrumented waistband for inertial data collection and the respective data acquisition protocols applied in nursing homes. The Chapter 5demonstrates the process of developing and evaluating ML and DL-based models for ADL and fall recognition, as well as selecting the classifier that best fits the ADL recognition topic and determining the most relevant set of features for this task. Furthermore, studies regarding window size 7 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART After a preliminary search of these combinations, a total of 574 articles were found, as shown in Figure 5. Then, a screening and selection process was carried out until reaching the articles that will be analyzed in this Section. Before the screening process, a search for duplicate articles was made, after which 114 articles were excluded. Of the remaining 460, 427 were excluded based on the title and abstract, during the screening process. The remaining 33 articles were analyzed in full to proceed with a new, more refined filtering of articles, according to some eligibility criteria, such as: i) The use of elderly people in the tests performed; ii) Validation/Benchmarking method well defined; and iii) Information about the sensing system and protocol of tests performed. With the performance of this analysis, 16 articles were removed, and the rest of which are analyzed in the following sections of this document. Figure 5: Adopted methodology for Fall Risk Assessment articles research. The flow chart illustrates the steps of the selection procedure. 2.2.2 Reviews Analysis At an early stage, several reviews on the subject were analyzed. This study has two key objectives: The first step was to place the topic in perspective with the FRA problem. The second goal concerned the many stages that should be examined in the chosen papers in order to identify current trends and constraints. Several studies assessed the state of the art in terms of the most widely used wearable sensor technologies and their combinations of locations on the human body [17,27,28]. Among them, accelerometers and gyroscopes are the most widespread technologies. Regarding sensor positioning, the trunk is the most used segment [10,27,28], yet, other approaches were also investigated as feasible locations, making finding a general rule a difficult task [17,28]. 14 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART For assessing fall risk or subject classification as a Faller or Non-Faller, several tasks and tests are performed. Quiet standing, Walking tasks and a sit-to-stand tests are usually adopted for static and dynamic evaluations, respectively [17,28]. However, findings suggest the need for the definition of gold standards in terms of tasks to be performed to face the extremely high variety of proposed approaches [28,45]. In general, these task give a good information regarding the subjects balance capabilities. However, due to the large number of different factors that can cause falls, FRA requires a multifactorial analysis, where both intrinsic and extrinsic factors must be considered to develop more reliable systems (Figure 3) [45]. Sensor-based features and algorithm investigations were also performed to determine which ones were most effective in distinguishing between Fallers and Non-Fallers [10,17]. The results demonstrated that there are several factors which affect the choice of a machine learning algorithm, because of its task dependency. In addition, the best algorithms for a particular task depends on several factors, such as the feature set and dataset characteristics [10,17,28]. According to [10], different Threshold-based and Machine Learning algorithms (SVM, Decision Trees and Fuzzy Logic) have been employed for FRA, where Tilt features in combination with a decision tree algorithm present the best performance . In short, from this initial analysis, it was concluded that the most relevant steps for creating a FRA method are: i) The data acquisition protocol - which includes the type, number and location of the sensors used; as well as the participants, the tasks performed and conditions of the tests; and ii) The algorithms used and results obtained - either for collected signals processing, collected features, validation methods and models used. Thus, in the next sections, each of the selected articles will be analyzed in relation to these three steps. 2.2.3 Prospective Vs Immediate Fall Risk Assessment FRA can be performed for the long-term prevention of falls or for a more urgent prevention of falls. In the first one, in general, through clinical tests accompanied by health professionals (such as the Tinetti POMA [20], or TUG [18] tests), or fall history related questionnaires, people are classified as having a high or low risk of falling in a long-term perspective, such as 6 months or 1 year [22]. When the risk of falling is assessed in the short term, it is generally done by a qualitative or quantitative examination of changes in gait and balance characteristics [22,31]. There is also the potential of determining the fall risk in a multifactorial manner, i.e., computing the fall risk analysis using information about numerous risk variables, such as environmental dangers, gait or balance problems, or even information received from surveys (history of falls, poly-pharmacy, fear of falling, etc.). As a result, the studied articles were classified into three categories based on the criteria listed above (Figure 6). The first group of articles refers to FRA in a prospective way, the second group of articles refers to FRA in real-time, and the third group of articles refers to papers whose goal is the simultaneous 15 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART integration of both prospective and immediate FRA. 8 7 2 Fall Risk Assessment Methods Implemented Prospective FRA Immediate FRA Multifatorial FRA (a) Author (Year) FRA Method Rivolta (2015) Prospective FRA Methods Rivolta (2019) Tang (2019) Shahzad (2017) Yang (2019) Saporito (2019) Buisseret (2020) Silva (2016) Rescio (2015) Immediate FRA Methods Parvaneh (2017) Cola (2015) Di Rosa (2017) Sansrimahachai (2017) Gagnon (2013) Mehmood (2021) Annese (2015) Multifatorial FRA Methods Greene (2019) (b) Figure 6: (a) Number of studies from each fall risk assessment methods identified. (b) Fall risk assessment method adopted by each study. 2.2.4 Prospective Fall Risk Assessment 2.2.4.1 Sensor System Characteristics and Data Acquisition Protocols Regarding the sensing methodology, Rivolta et al. [46,47] proposed an automatic method of determining the Tinetti POMA test score (Figure 7), using a wearable accelerometer located in the subjects’ 16 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART sternum. The sensor was positioned so that the 3 acceleration components corresponded with the vertical (V), mediolateral (ML) and anterior-posterior (AP) axes of the subject and data were acquired at a frequency of 50 Hz. With regard to the testing protocol performed on each article, it is possible to find some resemblances. In [46], the tests were performed under controlled conditions by group of 13 individuals over 60 years of age. The data acquisition in [47] was done in a similar form, where 90 participants were requested to participate, with an average age of 69.33 ± 16.76 years. Figure 7: Items performed during the Tinetti POMA test in [46]. Taken from [46]. An objective approach to assess the Berg Balance Scale (BBS) and Mini Balance Evaluation System Test (miniBEST) using wearable sensors was proposed by Tang et al. [48]. This work used a shoe-based wearable sensor system (SmartShoe), which incorporates a total of 3 pressure sensors and 1 accelerometer in each shoe and a last accelerometer placed on the right side of the subject’s hip, making a total of 9 sensors. The pressure and acceleration data of the various sensors were sampled at 400 Hz. Thirty elderly subjects were required for the data acquisition protocol. In controlled conditions, subject were asked to perform the BBS and miniBEST assessments with the wearable sensors attached. BBS and miniBEST tests were administered by two trained clinicians and subjects’ performances were expressed as numeric scores according to the current clinical guidelines. A similar approach was provided by Shahzad et al. [49], where an objective and unsupervised method to obtain functional balance and mobility assessment-based fall-risk of older adults was proposed. For data acquisition, a 3-axis accelerometer placed in the lower back of the subjects was used and these accelerations were collected at a rate of 41 Hz. Twenty three elderly volunteers carried out, under controlled conditions, the BBS assessment. Then, all the subjects were required to perform directed doutine tasks twice, which included TUG test, Five Times Sit-to-Stand test (FTSS) and Alternate Step Test (AST). It should 17 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART be noted that while the subjects performed these tests, an observer inserted the markers in the data stream to note important sections of the tests. A smart insole placed at the subjects’ feet, equipped with the 1 Inertial Measurment Unit (IMU) and a 16 pressure sensors array for data collection was developed by Yang et al. [50], who proposed four environment-adapting TUGs, designed to assess subjects’ ability to adapt gait in complex environments. The sampling frequency for data acquisition from each sensor was 100 Hz. Data were collected from 10 healthy young adults. These subjects, under controlled conditions, were requested to perform several versions of the TUG clinical scale, which were: the Extended TUG; Incline TUG; Bypass TUG and Overpass TUG. Each of these activities was filmed to make a division of the different stages of each test and make a ground truth reference for the algorithms used. A novel method to estimate TUG from activities recorded in 3-days free-living was also proposed by Saporito et al. [51], using for that a wearable pendant. The method was used to monitor changes in mobility following total hip arthroplasty. A Senior Mobility Monitor (SMM) containing a 3-axis accelerometers and a barometer was used on the chest of the individuals for the acquisition of data. The acquisition of the accelerometer data were made at a frequency of 50 Hz and the barometer at 25 Hz. Data collection was made to 239 community dwelling. All 239 participants underwent a standardized TUG test at baseline before being supplied with an SMM, which was used as a Benchmark validation. Following that, the 239 subjects wore the device for 7 days, and 15 study participants followed a 12-week home-based exercise program with video instructions on a tablet. In the follow-up period, participants were required to wear the senior mobility monitor (SMM) in their usual environment during their normal ADLs, with no restriction for indoor or outdoor activities. The main goal of Buisseret et al. [52] was to show the possibility of designing a test which identified nursing home residents presenting fall risk, the test’s accuracy was assessed by comparison to their actual falls during a six months period after the test. A secondary objective was to present three different ways of FRA: a standard clinical test (TUG), a standard clinical test augmented by sensor measurements (TUG+), and an AI algorithm based on sensor measurements only. The data acquisition stage was achieved through 3-axis accelerometer, gyroscope and magnetometer sensors. These were placed in the lumbar region of the individuals and the data of each sensor were collected at a sampling frequency of 100 Hz. A total of 73 healthy elderly people were classified as fallers and non-fallers, based on fall events in a 6-month period follow-up. Two tests were performed, separated for a period of 6 months (t1 and t2, respectively). At t1, with controlled conditions, the TUG test was performed in all participants. Participants then performed the six-minute walking test with the right to take short pauses as required. Finally, Silva et al. [53] also proposed a methodology for a wearable inertial sensors-based analysis to the TUG test. The IMU of a smartphone was placed in the pocket, waist or leg of the subjects and collected acceleration and angular velocity data at a rate of 200 Hz. A total of 18 healthy dwelling subjects performed the tests, and were classified as high or low fall risk based on the standard FRA tools of Tinetti 18 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART POMA and TUG time. A medical history questionnaire was given to evaluate chronic conditions, audition and vision problems, other relevant medical conditions, and exercise habits. In contrast to the traditional TUG test, in this project, instead of keeping the walking distance of 3 meters fixed, auditory cues were used to instruct the person to stand up and walk forward and then turn, walk back, and sit down. Table 2 depicts the sensor characteristics and tasks adopted in the studies that performed FRA based on clinical scales analysis. Table 2: Adopted sensor and task specifications for data acquisition in propective FRA studies, where: FS = sampling frequency, A= accelerometer, G= gyroscope, M= magnetometer, P= pressure sensors, B= barometer and NA = Not Available Work Sensors Number Location FS Participants Tasks Rivolta et al. [46]A 1 Chest 50 Hz 13 subjects >65 years POMA Rivolta et al. [47]A 1 Chest 50 Hz 90 subjects >65 years POMA Tang et al. [48]A,P 3,6 Feet, Waist 400 Hz 30 Subjects >65 years BBS miniBEST Shahzad et al. [49]A 1 Waist 41 Hz 23 subjects >65 years TUG, AST FTSS Yang et al. [50]A,G,M,P 2,2,2,32 Feet 100 Hz 10 subjects TUG Saporito et al. [51]A,B 1,1 Chest 50 and 25 Hz 15 subjects >65 years TUG Free Living Buisseret et al. [52]A,G,M 1,1,1 Waist 100 Hz 73 subjects >65 years TUG Silva et al. [53]A,G 1,1 Waist,Pocket, Leg 200 Hz 18 subjects >65 years TUG POMA 2.2.4.2 Algorithms for Fall Risk Determination For the automatic determination of the Tinetti test score, Rivolta et al. [46] calculated 8 features: i) tilt angle, ii) sit to stand time, iii) SampEN Eye Closed, iv) Romberg VM Power, v) SampEN Eye Opened, vi) SampEN 360º rotation, vii) Stand to Sit time, viii) Walking PSD Area. The extracted features were used with linear regressions to establish a relationship between them and the test results. LOO approach was used for validation of the algorithm and the results suggested that the automatic method might be a promising tool to assess the falling risk of older individuals. Rivolta et al. [47] processed the acquired data using an High-Pass Filter (Butterworth, 3rd-order, 0.5 Hz cut-off frequency), to filter out the effect of respiration. Next, 21 features were extracted and used in standard linear regression (LM) and single hidden layer Artificial Neural Network (ANN) models after Least Absolute Shrinkage and Selection Operator (LASSO) feature selection, in order to classify subjects 19 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART with high or low risk of fall, according to Tinetti’s clinical scale score. Results showed that the Pearson’s correlation between the Tinetti score and a subset of 9 features was 0,71. The misclassification error of high-risk patient was 0,21 and 0,11, for LM and ANN models, respectively. Validation was done using the Hold-Out (HO) method, as well as the gold standard classification provided by health professionals in [47] as well as in [46]. The pressure and acceleration data acquired by Tang et al. [48] were firstly downsampled to 25 Hz. Two types of features were then determined: i) common features like standard deviation, entropy, number of mean crossings, mean absolute deviation, root mean square, etc; and ii) Activity Specific Features (ASFs), such as placing alternate foot on stool, walking, sit-to-stand posture transitions, retrieving objects from the ground, and standing. Some of these features were selected and used in an Support Vector Regression (SVR) algorithm, with a linear kernel, to determine the BBS and miniBEST scores. A Leave- One-Out (LOO) cross validation was used to evaluate the performance of the SVR. The evaluation of the algorithm’s performance was made from the error between the actual scores to BBS and miniBEST tests from health professionals and the score predicted by the model. The results show that the wearable sensor system has a capability to estimate the BBS and miniBEST scores with absolute mean errors and standard deviations of 6.07±3.76 and 5.45±3.65, respectively, demonstrating high agreement with fall history-based risk assessment. A total of 173 features were determined from the data acquired by Shahzad et al. [49], and several Machine Learning models tested to obtain the BBS score values: multiple linear regression (Linear Least Square - LLS), LASSO regularized linear regression, DTs and DTs ensemble models. Root-Mean-Square Error (RMSE), mean and standard deviation of absolute error, Pearson’s correlation coefficient and p-value were used to evaluate the results obtained, which showed that the average of two BBS estimates based on test and retest yielded a strong correlation p = 0.86 with the standard BBS score. Also, high correlation (p = 0.90) and low RMSE (1.66) was observed. Regarding the algorithms implemented by Yang et al. [50] for the segmentation and automatic analysis of the various TUG tests, the denoising of the pressure values obtained was done first, followed by the calibration and filtering of the data. Three types of gait features were extracted: spatiotemporal features (such as threshold, forefoot contact time, rear foot contact time, full contact time, gait cycle time, TUG time, stride length, etc), spatial feature (pitch, roll, and yaw angles), and pressure features (sole average pressure, COP location, etc). These enabled to make TUG phase recognition, without any information regarding the use of any regression or ML method. The proposed algorithm was capable of extracting gait related spatial-temporal features with all mean accuracies over 92%. The system also achieves a mean accuracy of 92.23% in segmenting the five TUG phases. Regularized linear models were used to classify TUG test scores in the work developed by Saporito et al. [51]. These were trained with 6 mobility indicators, including the categories of walking quantity, walking quality, chair rise quality, and the duration of active and inactive periods. This algorithm was tested and 20 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART validated with a LOO approach. The results were evaluated with Spearman’s correlation coefficient, AUCROC curve, and p-values. A strong correlation was observed between the remote TUG and the standardized TUG with Spearman’s correlation coefficient (p=0.70), while the mean absolute error was 2.1 s. The remote TUG demonstrated high test-retest reliability in the model development population (ICC=0.94). The AUCROC curve for the classification of the participants with standardized TUG>10s was 0.89. For the classification of subjects into 2 classes (high risk or low risk), Buisseret et al. [52] used two methodologies: threshold-based and AI-based methods. Features such as TUG time, standard deviation and fractal dimension obtained from the six-minute walking test were used in these algorithms. The validation method of this project was the ground-truth status assigned after the 6-month follow-up period. In the work carried out by Silva et al. [53], duration and the number of steps of each phase of TUG, statistical measures (number of times the magnitude signal crosses the mean value, energy, entropy, standard deviation, mean value, median deviation, Root Mean Square, etc) and frequency-based features obtained using the Fast Fourier Transform (FFT) of the accelerometer signals, were calculated. P-values were used to differentiate between the high and low fall risk classes. Results show that only features belonging to the component of first walking phase and first turning phase of TUG showed significant differences between the mean of high and low risk groups. Although the TUG test is used, it is not used as a benchmark to evaluate the performance of the wearable system. Table 3depicts the methods and validation approaches implemented by the works whose main goal was to assess subjects risk of falling through the automatic analysis of clinical scales. 21 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART Table 3: Methods and validation approaches adopted by the 8 selected articles, where FRA is made in a prospective, through clinical scales. In this table: ML = machine learning, Th = threshold-based, Acc = accuracy, Sens = sensitivity, Spec = specificity, CV = cross-validation, LLS = Linear Least Square Regression and LASSO = Least Absolute Shrinkage and Selection Operator regression and N\A = Not Available Work Model Used Validation Method Clinical Score Results Rivolta et al. [46] Linear Regression Model Leave-one-out CV Tinetti POMA Acc = 84.6% Sens = 85.7%; Spec = 83.3% Rivolta et al. [47] (ML) Linear Regression Model; (DL) Single Hidden Layer ANN Holdout (60% training; 40% testing) Tinetti POMA Sens (ML) = 71% Spec (ML) = 81% Sens (DL) = 86%; Spec (DL) = 90% Tang et al. [48] (ML) Linear Kernel SVR Leave-one-out CV BBS miniBEST Mean error: 6.07±3.76 (BBS); 5.45±3.65 (MiniBEST) Shahzad et al. [49] LLS and LASSO models 10-fold CV BBS Mean error: 1.9 ± 2.53 (LLS); 1.44 ± 1.98 (LASSO) Yang et al. [50]N\A N\AVideo recordings from TUG Acc (gait cycle count) = 100% Accu(segment TUG phases) = 92.23% Accu(spatial—temporal features) = 92% Saporito et al. [51] LLS and LASSO models 10-fold CV TUG Mean error: 1.9 ± 2.53 (LLS); 1.44 ± 1.98 (LASSO) Buisseret et al. [52] Regularised Linear Model Leave-one-out CV Tinetti POMA Mean error: 2.1 ± 1.7s 2.2.5 Immediate Fall Risk Assessment 2.2.5.1 Sensor System Characteristics and Data Acquisition Protocols The feasibility of a system for the detection of the fall risk was studied by Rescio et al. [54]. Aiming for the detection of a fall before the impact, EMG sensors were placed on the subject’s lower limbs (tibialis and gastrocnemius muscles groups), making a total of 4 EMG sensor that acquired at a sampling frequency of 1000 Hz. Seven healthy subjects simulated, under controlled conditions, the following events: 1) idle in normal condition and in the presence of deviant auditory stimuli; 2) walking in normal condition and in the presence of deviant auditory stimuli; 3) ADLs (sitting down, standing up, bending and lying down); 4) situations of instability (typical of a fall event), using a tilting platform to bring the individuals beyond their 22 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART limits of stability, like in a fall event. A postural transition quantifier using a chest-worn wearable sensor to identify frailty in communitydwelling older adults was explored by Parvaneh et al. [55]. A validated software package was used to identify body postures and postural transition between each activity since it was hypothesized that qualitative data from postural transitions could distinguish non-frail from frail elders. Each of the 120 healthy elderly subjects, 43 non-frail and 76 pre-frail/frail (according to Fried’s criteria), worn the IMU for 48 hours in free-living conditions and the IMU data were acquired at sample rate of 50 Hz. The method proposed by Cola et al. [56] was designed to achieve continuous monitoring of gait in a completely unsupervised fashion. The sensorization was achieved through the use of a 3-axis accelerometer (Shimmer 2R device) mounted on the waist of the subjects. The frequency of data collection was 51.2 Hz. The tests were performed on 30 healthy subjects and are ilustrated in Figure 8. The participants were asked to wrap Neo-G thigh support straps around their knees and performed gait-related experiments in a corridor 4 times. Four types of gait were collected - normal, mild knee condition, severe knee condition, and mild condition in both knees, using the support straps. Four users were also involved in uncontrolled experiments during 48 hours. Figure 8: Three different types of impaired gait simulated in Cola et al. [56] data acquisition protocol: mild knee condition, severe knee condition, and mild condition in both knees. Taken from [56]. A Fall Risk Index based on gait pattern recognition was proposed by Di Rosa et al. [57], where a pair of electronic insoles was used to assess fall risk. The insoles contained 14 thin-film resistive pressure sensors, integrated with one accelerometer and gyroscope. No information was given regarding the acquisition frequency. Thirty-nine healthy elderly volunteers were enrolled across three research centres. Subjects used the insole system for two weeks during daily life and no instruction was provided for specific tasks. Participants completed a detailed diary reporting the hours of use and also underwent functional performance-based assessments of fall risk: Tinetti POMA; TUG; and Dynamic Gait Index (DGI), supervised and evaluated by trained physicians. 23 CHAPTER 2. FALLS AND FALL RISK ASSESSMENT: A STATE-OF-THE-ART 4). In addition, other drawbacks, such as the aforementioned use of a reduced dataset and the lack of information regarding validation and benchmarking methods were found in these group of articles. 2.3.3 Multifactorial Fall risk Assessment The amount of articles found that determine the risk of falling in real-time in a multifactorial way shows the novelty of this theme, as well as its margin of progression and need for investment in improvements in the near future. The addition of questionnaires on risk factors for falls, such as the subjects’ medication, vision problems, or psychological disorders, appears to be the most adopted path for a more complete risk analysis, adding its results to other assessment methods, such as frailty or balance clinical scales, or the assessment of gait abnormalities, based on the analysis of the articles that perform a multifactorial FRA. Inertial and EMG data were still used to quantify fall risk. Furthermore, ambient data enabling a more in-depth investigation of additional fall risk factors unrelated to individuals was mentioned in these types of studies. Another difference between this type of article and those that calculate risk levels solely through clinical tests or gait quality analysis is weight attribution for the various risk calculation approaches. 30 C h a p t e r 3 Daily Activity Recognition: Literature Review Despite the progress toward real-time and multifactorial analysis of the risk of falling, as discussed in Chapter 2, there is still a need for further enhancements so that the fall risk analysis takes into account as many information as possible. One of the fall risk variables stated in Section 2.2 that was not found during the literature search is the awareness regarding the daily activities which are being conducted at the time of a fall event. Since this is an important factor to consider when developing a FRA system, the following sections will show and discuss the research made on the most recent trends in automatic recognition of ADLs and fall events based on wearable sensors use and the employment of AI-based models. Initially, several reviews on activity recognition were initially analyzed with the purpose of having a general overview over the topic and answer the following questions: i) What types, number, and location of wearable sensors are most adopted?; ii) Which ADLs are performed in experimental protocols for data acquisition?; and iii) Which algorithms are being implemented for ADL recognition? Following that, various ML and DL-based ADL recognition works were analyzed in order to have a better understanding of the most recent trends in automatic recognition of ADLs and fall occurrences using wearable sensors. 3.1 Review’s Analysis Offline activity recognition is the most basic method of activity recognition [64]. Sensors are placed in the surroundings or directly on the subject in most applications, and data is gathered, labeled, and supplied to classification algorithms for activity recognition [64–66]. Plenty of studies on activity recognition used wearable sensing technologies [66]. Simpler wearable systems rely on a single accelerometer sensor, and others combine different sets of sensors on different parts of the body to fully capture the subject’s movements [64,65]. Moreover, researchers have created various benchmark datasets to evaluate human 31 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW activity recognition algorithms freely [65]. Once the raw data has been collected, must be labelled correctly in accordance wit the performed activities. Then, time and frequency-domain features are extracted from the acquired data [64]. Most offline approaches rely on supervised machine learning models for activity recognition, such as SVM, Decision Trees (DTs) and K-NN [64]. However, on several benchmark datasets used by machine learning-based solutions, conventional (CNN and LSTM) and hybrid (CNN-LSTM) deep learning models have lately shown improved and promising performances, cutting down on the time spent on data processing and feature extraction [64,65]. Class imbalance of the datasets and the lack of postural transitions recognition were some of the limitations which should be addressed in the future [65,67]. Furthermore, the datasets generated are person, time and sensor dependent. These factors lead to challenges when training and testing with person independent data [65,68]. Also, concerns involving the validation methodologies that have been employed across literature were addressed by Shany et al. [69]. Future improvements were also given, namely: i) recruit a large enough dataset to ensure the training and test data is sufficient; ii) collect data strategically, specifically to manoeuvre around the issue; or iii) external validation across completely different samples of the same cohort of interest. As a result of the initial review articles analysis, and also in accordance with what was done in Chapter 2, each of the selected ADL recognition papers was analyzed regarding three phases: i) data acquisition - which includes the type, number and location of the sensors used, as well as the participants, activities performed and its conditions; and ii) algorithms and results - either for signal processing, feature extraction, validation and evaluation models used. 3.2 Machine Learning-Based Approaches 3.2.1 Data Acquisition Methods A framework for fall event detection was created by Kambhampati et al. [70] with the main goal of finding suitable classifiers to effectively classifying different types of fall and non-fall events. The data acquisition protocol was performed in 6 healthy subjects, where they performed several activities, such as sitting, standing, walking, bending, and running, with consecutive falls in different orientations, using a waist-mounted accelerometer with a sampling frequency of 40 Hz. The same sensor and location was also used by Gupta et al. [71], to classify six ADLs and transitional events, namely walking, jumping, running, sit-to-stand/stand-to-sit, stand-to-kneel-to-stand, and standing. Seven healthy young individuals (22-28 years old) were asked to wear the device and perform the activities for about 2–3 min each in controlled conditions. The subjects’ data were collected at a sample rate of 126 Hz 32 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW A smart watch was used in the work carried out by Gomaa et al. [34] to collect data and classify 14 ADLs with different combinations of sensory data and a random-forest-based classifier. Data were acquired from female and male young adults at a sampling frequency of 50 Hz from accelerometer and gyroscope sensors, while the volunteers repeated each activity several times while wearing the smart watch on the right wrist. Instrumented shoes capable of recording movement and foot loading data for devise an activity classification algorithm were introduced by Moufawad et al. [72]. Three different types of sensors were used in this design. An IMU, a barometer and a force sensing insole with 8 sensors, were used in the instrumented shoe, making it a total of 10 sensors, whose signals were acquired at a frequency of 200 Hz. The data acquisition protocol was performed in 10 elderly subjects. Each participant wore the instrumented shoes and, in semi-controlled conditions, a predefined track was followed to mimic ADLs, included walking, sit-to-stand and stand-to-sit transfers, sitting and standing bouts, uphill/downhill and upstairs/downstairs walking, and elevator use. An observer followed the participants and marked each period of activity. Nguyen et al. [73] used an IGS-180 motion capture suit for data acquisition, and it was equipped with 17 IMUs with a sampling frequency of 60 Hz. Objects were strategically placed at different locations and heights, to induce a cleaning task. Participants were asked to navigate the apartment and collect and place these objects. Nine community dwelling older adults who were diagnosed with early stages of PD, including two females and seven males, were recruited for 3, 4, and 5 minutes trials, and perform the tasks in a simulated free-living environment. An inertial sensors-based physical activity classification system was developed by Awais et al. [74], with older adults as the target population. In this project, 3 types of different sensors were used and placed in the chest (uSense, GoPro), wrist (Shimmer), lower back, and thigh (uSense) of the subjects, making a total of 5 sensors. Each of them acquired data at a frequency of 100 Hz. The dataset was collected in free-living conditions without placing constraints on the way and order that 16 elderly subjects performed their daily activities. A synchronization between the sensors and the camera unit was accomplished for labeling purposes, before attaching the sensors to the subjects. 3.2.2 ADL Recognition Algorithms and Results Noise reduction and median filters were used by Kambhampati et al. [70] to process the acceleration data. The segementation of the processed signals into small windows came next and 2nd to 5th order cumulants were determined for each window. These features were used in a hierarchical Decision Trees (DTs) structure which implemented classification models such as DTs and SVMs in a sequential manner considering the complexity of activities. First distinguishes fall from non-fall activities. In the second level, the detected falls are classified into four classes. In the third level, the acceleration windows are used for determining different activities of daily living. The main results showed that 2nd and 5th order cumulants 33 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW and SVM classifier can achieve optimal accuracies of above 95%, as well as the lowest false positive rate of 1.03%. SVM-based methods had an overall computation time required for executing all the three levels of the system of 54.05 ms. Auto-correlation functions were applied to the raw acceleration, rotation, and angular velocity signals in the work developed by Gomaa et al. [34], for feature extraction, making it a 33-dimensional feature space per signal as the input to a Random Forest (RF) classification algorithm. Hold-out data splitting (65% for the training Phase and the other 35% for the testing phase) and 5-fold cross-validation with five repetitions were used for the models validation and hyperparameters optimization. These authors showed that combining acceleration with angular velocity allow higher performances. In this work, accuracy reaches about 80% for the whole set of 14 activities. The smallest average sensitivity and specificity achieved by the algorithms proposed are 81% and 98%, respectively. Two ML algorithms were implemented by Gupta et al. [71] for the classification of 6 classes of daily activities - Naive Bayes (NB) and k-NN. In these algorithms, the acquired signals were segmented in 6 second windows with 3 seconds of overlap, and a total of 31 time and frequency-domain features were extracted, such as Energy, Entropy, Mean, Variance, etc. Feature selection was performed using Relief-F and the wrapper-based method sequential forward floating search (SFFS). The LOO validation strategy was used to train and test the models. Therefore, data collected on six individuals was used to train the system and then the system was tested by classifying the data of the seventh individual accordingly. This was repeated seven times until data from all the individuals was classified. The overall accuracy of the system was 98% from both the classifiers and showed accuracies superior to 95% for all activities. Regarding data processing, Moufawad et al. [72], low-pass filtered the elevation data (Butterworth order 10 filter, 0.1 Hz cut-off frequency) to remove high frequency noise, and gait cycles shorter than 0.75 s were removed and consecutive gait cycles less than 3 s apart were aggregated to form locomotion periods. From the collected and processed data, features such as angular velocity, body weight, elevation range and the ground slope were determined. These were then used in a Decision Trees (DT) ML algorithm to differentiate 9 classes (Figure 11) with an overall accuracy of 97% across all activities. Non-linear transform and adaptive threshold algorithms were developed by Nguyen et al. [73] for ADL classification. Five 5-minute trials were randomly selected and used to train the algorithm to find the optimal set of sensor signals and parameters to accurately detect and segment activities during an unstructured cleaning task. The optimization process was used to determine the cutoff frequency, the adaptive threshold parameters, and the IMU signals needed to accurately detect and segment each activity. The optimal parameters were found with respect to the training data set. The algorithms were then validated using the 3- and 4-minute trials from all nine participants. Across all activities, classification was about 90% accurate (sensitivity=89.8%, specificity=97.9%). The segmentation of these activities was made within 350 ms of the ”gold standard”manual segmentation. Several time and frequency-domain features were extracted by Awais et al. [74] from acceleration, 34 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW Figure 11: Algorithm flowchart for the DTs activity recognition algorithm from instrumented shoe signals used in [72]. angular velocity, and signals correlation, across a time window of 5 seconds with a 50% overlap. Correlationbased feature selection (CFS), fast correlation-based filter (FCBF), and Relief-F were feature selection methods implemented to eliminate redundant features. The selected features were inserted in an SVM classifier with RBF kernel to classify the 4 activity classes. The effect of class imbalance was compensated by using the weighted SVM, setting the weights of the different classes to the inverse ratio of the training classes sizes. To overcome bias in the training process, the leave-one-subject-out cross validation procedure was used to split the data in training and testing datasets. F-measure was analysed to evaluate the proposed algorithm’s performance, and among all single-sensor solutions, the best result was accomplished by the sensor at the lower back (L5), with an F-measure of above 80%. It was noticed an improvement in the performance of 7.3% from single-sensor solution (L5) to two-sensor solution (Thigh+L5). Furthermore, improvement in the performance is almost negligible by increasing number of sensors from two to four. Table 5presents a summary of the approaches employed by the several articles which investigated the ADL and fall recognition using ML-based algorithms. 35 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW Table 5: Algorithm characteristics adopted by the 6 selected articles who perform ML-based algorithms for fall and activity recognition, where: ML = machine learning, Th = threshold, Acc = accuracy, Sens = sensitivity, Spec = specificity, LOO = Leave-One-Out, CV = cross-validation, NB = Naive Bayes , K-NN = K Nearest Neighbours, RBF-SVM = Radial Kernel Support Vector Machine Work Model Used Validation Method Type of Classification Results Kambhampati [70]DT, SVM, NB N\A Fall vs Non-Fall Fall Class ADLs Acc: 95%; FPR: 1.03% Gomaa [34]Random Forest Hold-out CV 5-fold CV 14 ADL Recognition Acc: 80%; Sens: 81% Gupta [71]NB K-NN LOO CV 6 ADL Recognition Acc: 98% Moufawad [72]ML Decision Trees N\A9 ADL Recognition Acc: 97% Nguyen [73]Th-Based Model Hold-out CV 7 ADL Recognition Acc: 90% Sens: 90.8% Spec: 97.8% Awais [74]Weighted RBF-SVM LOO CV 4 ADL Recognition F1-Score: 80%; (1 sensor modality) 3.3 Deep Learning ADL and Fall Recognition Approaches 3.3.1 Data Acquisition Methods The majority of data gathering and validation of Deep Learning-based algorithms for falls and ADL recognition is done using publicly available datasets, which is significant for benchmarking and comparing algorithm performance. The recognition of six human activities was carried out by Altuve et al. [75]. Inertial signals available at the UCI-HAR public Machine Learning Repository from 30 subjects were used on bidirectional LSTM networks, without manually extracting features from the signals. UCI-HAR was also employed in the work developed by Murad et al. [35], where data from miscellaneous benchmark datasets were used in several types of Deep Recurrent Neural Networks for human activity recognition. Accelerometers, gyroscopes and magnetometers were the sensors used for data acquisition in these datasets. In the work proposed by Wang et al. [67], different types of lightweight neural networks were explored to improve the fall detection results. Lower trunk acceleration data from SisFall, a large public dataset, was used in this work. With the same goal, Gil-Martín et al. [76] used the Physical Activity Monitoring Data Set (PAMAP2) for physical activity monitoring. This database contains recordings of 12 different physical activities, performed by 9 subjects wearing three IMUs. 36 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW Unlike previous DL-based ADL recognition works, Chung et al. [77] created a testbed with eight bodyworn IMU sensors in various locations, as well as an Android mobile device for collecting activity data, in order to perform a sensor positioning and data acquisition study in 9 human activities. Data were acquired from 5 adult subjects in both real-world and controlled environments. The properties of the data obtained by this group of articles are summarized in Table 6. Table 6: Public datasets used by Deep Learning-based ADL recognition works, with description regarding sensing methods and location, sample frequency, participants and activities recorded. In this table: A = accelerometer, G = Gyroscope, M = magnetometer and PD = Parkinson’s Disease DataSet Work(s) Sensors Location Sample Frequency Participants ADLs Falls Private Dataset [77] 8 A,G,M Various Locations 100 Hz 5 Subjects 9 ADL SisFall [78] [67] A,G Waist 200 Hz 23 subjects<30 years 15 subjects>60 years 19 ADL 15 Falls PAMAP2 [79] [76] 3 A,G,M Wrist, Chest Ankle 9Hz 9 subjects 18 ADL UCI HAR [80] [35,75] A,G Waist 50 Hz 30 subjects [19-48 years] 12 ADL USC-HAD [81] [35] A,G Front Right Hips 100 Hz 14 subjects (5 sessions) 18 ADL Opportunity [82] [35] 7 A,G,M Various Locations 30 Hz 4 subjects (5 sessions) 18 ADL Daphnet FOG [83][35] 3 A Shank, Thigh Waist 64 Hz 10 subjects With PD 2 ADL (Normal vs Freeze Gait) Skoda [84] [35] A Rigth Hand 98 Hz 1 subjects (19 sessions) 11 ADL 3.3.2 ADL Recognition Algorithms and Results A slinding window technique was applied by Altuve et al. [75] to produce segments of 1,28s and 12.5% overlap. These were introduced to a first network to identify three dynamic activities and the static ones as a single class, with 98.86% accuracy. Then, the statics class data were introduced to a second network to classify three more ADLs, with an accuracy of 88.46%. In total, a 92.91% accuracy was obtained to classify the six human activities. A two-fold cross-validation strategy was conducted by Wang et al. [67] on the SisFall dataset, which ensured that subjects data were always assessed with classifiers trained on different people, allowing for a realistic assessment. CNN, MLP, DAE and CAE were the neural networks explored in this work. Experiment results show that lightweight neural networks have obtained better results than machine learning methods previously used. The best result was attained with the supervised CNN, which achieved an accuracy beyond 99%. Sensitivity and specificity were other metrics used to evaluate the networks performance. 37 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW A Many-to-one LSTM network architecture (Figure 12) was used by Chung et al. [77] for activity recognition with nine classes. A 10-fold cross-validation was applied on the data to generalize the result to an independent dataset. Moreover data augmentation was used to perform LOO validation. From the experiment results, the authors found that activity data with sampling rate as low as 10 Hz from four sensors is sufficient for recognizing human daily activities with 93% of accuracy. Furthermore, classifier-level sensor fusion is a technique that can improve the classification performance. In the work carried out by Murad et al. [35], unidirectional, bidirectional, and cascaded architectures based on long short-term memory (LSTM) DRNNs were created and their effectiveness was evaluated on several benchmark datasets (Figure 12a), where each one was split in two subsets, using 80% of the data for training and 20% for testing. Experimental results show that the proposed models outperformed conventional machine learning methods, as well as other deep learning techniques, such as CNNs. Overall accuracies over 92% were attained for every dataset, which proved the efficiency of the created models for a broad range of activity recognition tasks. a Many-to-one Long LSTM architecture used in [77] for activity classification. b The proposed HAR architecture in [35]. Figure 12: Exemplifications of how to use LSTM to recognize daily activities. Taken from [77] and [35]. 38 CHAPTER 3. DAILY ACTIVITY RECOGNITION: LITERATURE REVIEW The first phase from the 3-part modular system proposed by Gil-Martín et al. [76] segments the acceleration signals into overlapped windows, extracting information in the frequency domain. The second module detects the performed activity at each window using CNN architectures. The third module integrates the window-level decision in longer periods of time. A LOO cross validation was used, which aims to increase generalization across subjects who are not present in the training set. When applying post-processing techniques in this work over the score vector sequence, isolated classification errors were reduced, improving the accuracy from 89.83% to 96.62%. Table 7presents a summary of the approaches employed by the several articles which investigated the detection of falls and daily activities using algorithms based on deep learning algorithms. Table 7: Validation characteristics adopted by the 5 selected articles who perform DL-based algorithms for fall and activity recognition, where: Acc = accuracy, Sens = sensitivity, Spec = specificity, LOO = Leave- One-Out, CV = cross-validation, CNN = Convolutional Neural Networks, MLP = multi-layer perceptron, DAE = dense autoencoder, CAE = convolutional autoencoder and LSTM = Long Short-Term Memory Neural Networks Work Model Used Validation Method Type of Classification Results Altuve [75]Bidirectional LSTM N\A4 ADL Recognition Acc: 92.91% Wang [67]CNN, MLP, DAE and CAE 2-fold CV FallL Detection Acc: >99% Chung [77]Many-to-One LSTM 10-fold CV LOO CV 9 ADL recognition Acc: 93% Murad [35] Uni, Bidirectional and cascade LSTM Hold-out CV ADL recognition Several Datasets Acc: >92% For all datasets Gíl-Martin [76]CNN LOO CV 12 ADL recognition Acc: 89.83%; Acc: 96.62 (w/ postprocessing) 3.4 Discussion Several papers that use Machine and Deep Learning approaches were studied in the previous Sections for three essential phases in automatic strategies for classifying ADLs and a wealth of information was found. As in the analysis of the FRA works, it is confirmed the existence of some common points in the various studies analyzed, however, there is still a great variability of techniques that are used in each of the phases of ADL recognition. Despite the positive results, there are still a few areas that should be addressed. 39 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION Figure 15: Smartwach eHealth app example for continuous fall risk assessment. 4.3 Data Acquisition One of the requirements of the tool presented in the previous section, is to carry out a FRA using several different fall risk sources, in order to have a better idea of all the risk factors that can influence and give rise to a fall event. As verified in the literature review, to perform FRA automatically, wearable sensors are the most common for data acquisition, such as inertial sensors, usually located on the subjects’ waist [17,22,27]. To analyze the kinematics of the subjects’ movement, inertial data of acceleration and angular velocity will be collected from a waistband placed on the subjects’ lower trunk. Thus, it will be possible to obtain information regarding the movement and behavior of the subjects throughout the day. This data will help in monitoring the movements of the elderly in real time and identify potential risk circumstances linked with their behavior, such as doing high-risk activities (e.g., climbing stairs) or situations of lack of balance, in the immediate future. In order to have access to information regarding the clinical situation of each user of this tool, the acquisitions of this type of data should be made from questionnaires, clinical tests and medical consultations, in order to be assessed as needed to perform a FRA that is more focused on the long-term future (prospective), knowing a subject’s current physical and psychic skills and what this implies for their long-term fall risk. It is also suggested in this tool the use of temperature, humidity and light intensity sensors to acquire data related to the environment that surrounds the subjects, thus covering some of the risk factors associated with external parameters or ambient hazards as described in Chapter 2, and not related with the individual. These 3 acquisition modes should generate a wide range of data from different sources, thus allowing for a multifactorial fall risk analysis. To make this FRA tool as comfortable as possible, this acquisition must be made by coupling the aforementioned sensors to devices already used in everyday life by the elderly (waistbands, canes, walkers, etc.), and other small devices used by both the elderly and health professionals (smartphones, tablets, 46 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION smartwatches, etc.), which allow for storage and embedded data processing and risk calculation, making this tool easy to use and comfortable for all users, whether they are an elderly subject or a caregiver. These devices would be connected by the aforementioned eHealth platform, which would be in charge of the communication between the devices used by the elderly which perform the FRA, and the ones used by the caregivers, in order to have an efficient feedback as soon as the devices used by the elderly detect a high risk of falling. Also, it would store data received from the elderly and making it available to caregivers, as well as the various results obtained from the FRA algorithms in a continuous manner. 4.4 Baseline Risk Module As noted in Chapter 1and Section 2.1, the major goal of the first module is to offer a baseline fall risk value based on patients’ clinical (physical and psychological) and demographic data, test results related with medical fall risk scales, or even external factors such as location and weather conditions. Some of the factors intended to be used in this module can be seen in Table 8. Table 8: List of several Baseline risk factors which can be used in the Baseline module of the FRA tool Risk Factor Group Factor Value Age WeightDemographic Height Numeric TUG POMA FES-I Numeric/Binary Fall History Clinical Other Conditions Psychological Depression Location Binary TemperatureAmbiental Humidity Numeric The first phase of this block is the acquisition and storage of data, where, using simple clinical tests and questionnaires, most of the data relating to the subjects can be acquired. Data related to the environment and the location of individuals can be acquired using temperature, humidity or GPS sensors, which can be coupled to support devices used daily by the elderly, such as smartwatches, waistbands, canes or walkers. This data can be stored in databases or in electronic devices such as smartphone apps in order to be used later in the second phase of this FRA tool. As can be seen in the second column of Table 8, there is a wide variety of indicators of the physical and psychological state of an elderly person, as well as the characteristics related to the environment that 47 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION surrounds them. Therefore, there is a need of a second stage of this module, to convert and normalize the data from the diverse types into numeric or binary values, so that it can be interpreted by mathematical models. Taking into account the aforementioned different types and magnitudes of data and its conversion, the third and final step of this module should be the calculation of the fall risk value from the converted and normalized data. Following the line of thought found in the literature, this value should be calculated using regression methods, such as Logistic Regression [63,87,88]. The result obtained should remain constant, constituting a baseline fall risk value appropriate to the characteristics of each individual and to the environmental conditions to which each one is subject at a given moment, until some of the parameters undergo changes, such as changes in the user’s weight, new clinical tests results or even changes on the location or temperature during the day. Thus, this block serves the purpose of presenting a fall risk linked with a prospective approach of FRA, evaluating the likelihood of an aged person falling in the long term, given their skills. Figure 16 summarizes the data flow and the aforementioned steps for the correct functioning of this module. Figure 16: Baseline Fall Risk module Data flow overview. 4.5 Activity Recognition Module As mentioned in chapter 2.1, it was shown that the increase in the probability of occurrence of a fall may be, alongside with other factors, associated with certain activities. Also, [32] reports that the effective number of falls reported per location and activity also differs, showing that the issue of daily activities recognition may be a central point of study in order to improve FRA tools. With that scope in mind, an ADL classification module will be in constant operation, which will allow the decoding of what activities the subjects is practicing throughout the day. This activity recognition module, which will from this point on be referred as ADL Module, is inserted in the second phase of the proposed 48 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION FRA tool and it will be the central focus point of this dissertation, given that it is the least worked point in the literature regarding the integration of the recognition of daily activities with the risk of falling, and it is one of the first points that need to be addressed. As mentioned in Chapters 1,2and 3, for the automatic assessment of the risk of falling in the elderly, as well as for the recognition of daily activities, the most used type of sensing in recent years it has been wearable sensors. The most commonly used data types for activity recognition are inertial, acceleration (from accelerometers) and angular velocity data (from gyroscopes). Thus, in a first phase of this block, it is intended that a waistband equipped with these inertial sensors makes a continuous collection of acceleration and angular velocity data from the lower trunk of the subjects as they freely carry out their daily activities. The second phase should process the inertial data obtained from wearable sensors in the first phase, computing many features that would then be employed with AI-based models to identify several postural ADLs. Fall events, as well as their direction (forward, backward, or sideways), must be identified in addition to the daily activities that this module must recognize. After recognizing which activity is being carried out at a given moment, this will be used in a next step, where, alongside with some of the demographic data from the Baseline module, a fall risk level will be assigned to each activity, based on the results found in [32], regarding the probability of falling according to the activity and place of the fall, as well as according to gender and age. A summary of the data flow of these modules is presented in Figure 17. The ADL recognition module of the FRA strategy proves to be the centerpiece of the tool and what will bring advances to research on this topic, since, to the best of our knowledge, no works were found whose techniques make use of the recognition of ADLs in the fall risk analysis. Despite the potential displayed by this module, it is necessary to validate the data collection methods, and which are the best features and classification models to use, so that the recognition of ADLs can be made with the shortest possible delay between the start of the activity and the classification and with low classification error rates. In addition to this aspect, and although there are already studies that show that the probability of a fall varies with the activity [32], it depends on the combination of several other factors, making further research on this topic necessary, with extensive prospective work and large datasets of elderly subjects, their falls and its causes, in order to make a statistical association between a daily activity and the respective risk of falling. 4.6 Gait Abnormalities Module The second phase of this FRA tool presents a final classification module, which will be referred to as Gait Abnormalities Module, with the aim of detecting gait abnormalities in a timely manner. The analysis of the quality of human gait has been one of the most discussed topics in the analysis of the risk of falling [56, 57,89], therefore, a thorough and real-time analysis of the user’s gait is of great importance to determine 49 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION Figure 17: ADL recognition module data flow. the fall risk of an individual. The work flow of this module will be addressed in the following paragraphs, and a quick summary of its functioning is shown on Figure 18.Gait abnormalities module’s operation will take place according to the results attained from ADL Module. Thus, this module will be activated when the ADL Module classifies a walking activity, being only in standby while other activities are being detected. The general functioning of this Gait abnormalities module for the detection of gait abnormalities will be very similar to the workflow presented in the ADL Module. Once again, the waistband equipped with the inertial sensors would be used to make a continuous collection of acceleration and angular velocity data from the lower trunk of the subjects. As in the previous module, AI-based methods will be applied for the analysis of the users’ gait, and it is expected that these models can make a binary classification of the quality of the gait. It should be classified as normal, in case the subject is walking within a certain range of normality, or abnormal, in case the user has a walking pattern related to some disability or momentary lack of balance, such as a slip or trip [56,89,90]. In case the gait is considered normal, this module is not activated and keeps its collection and classification of the gait until the activity to be performed by the subject changes. In this case, the risk level 50 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION Figure 18: Gait abnormalities module data flow. calculation is provided by the modules Baseline and ADL (See Section 4.7). On the other hand, in case the subject’s gait is classified as abnormal, this block will override the aforementioned risk level calculation, raising it to a maximum value, and activating feedback processes, whether for the subject himself or for family members or health service providers. The eHealth platform would be responsible for the communication between the classification algorithms (and its results) and the devices used by the caregivers. Finally, it should be noted that the presented choice of processes was due to the use of the smallest possible number of sensors and devices for FRA, allowing risk analysis using only a waistband, however, this block should be improved in the future to not only make a binary classification but a deeper analysis, for example, to the location of the center of mass (COM) and pressure (COP), perhaps with the addition of the use of instrumented shoes [57,72,91], or other devices and wearable sensors. 51 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION 4.7 Fall Risk Assessment and Feedback The last phase of this architecture has the main function of joining the results obtained in the 3 modules of the previous phase and calculate a fall risk level within a fall risk scale. Subsequently, and taking into account the risk value obtained, due feedback should also be provided to the users, as well as to health professionals, in case the fall risk is considered too high or a fall event is detected (Figure 14). For the presented tool, the strategies proposed in [62] and [63] for the determination of a fall risk level served as a reference, where weights were assigned to each of the existing blocks for the analysis of fall risk. Thus, a weight of 60% (W1) was assigned to the Baseline module, and a weight of 40% (W2) to the ADL recognition module, which assesses the risk of falling according to the activity being classified. The Gait abnormalities module is not included in the fall risk calculations, however, as stated before, it is placed as a priority module, so that when an abnormal gait is detected, the module is prioritized above the others, causing the fall risk level to rise to its maximum. Thus, in a continuous manner, and from the results of the Baseline and ADL recognition modules that are used to calculate the risk of falling taking into account both prospective and immediate FRA approaches, respectively, the global fall risk value will be computed as a function of the following Equation: Fall Risk =(Baseline Fall Risk ×𝑊1)+(ADL Fall Risk ×𝑊2)(1) This equation represents the weighted average (Fall Risk) between the Baseline (Baseline Fall Risk) and ADL (ADL Fall Risk) modules, taking into account the percentage weights W1 and W2 assigned to these blocks, respectively. It should be remembered that the detection of any imbalance during the subjects’ gait phase is not included in the calculation, however, as mentioned in Section 4.6 this block overrides this calculation in case any normality is detected, raising the risk of falling to its maximum. If a fall is detected by the ADL Module, or if any gait abnormality is detected by the Gait abnormalities module, or even if the risk level calculated by Equation 1exceeds a given threshold, a set of feedback processes must be triggered, which are exemplified in Figure 19. Devices such as smartphones or smartwatches or other instrumented support devices can automatically communicate with other devices. Thus, as can be seen in Figure 19, in the event of a fall or a high fall risk situation, these devices must be activated to provide feedback in a timely manner in order to prevent falls or minimize its consequences. Feedback must inform the subject of his current fall risk at all times and give warning signals in the event of a high risk situation (such as a walking in an area with low light, loss of balance, etc), for example through graphic or numerical scales, color codes or other sensory warnings, such as vibrations or warning sounds (Figure 19), light gray area. In the same situations, the referred devices must be able to come into contact with family members and health professionals so that the necessary assistance is provided as soon as possible, in order to avoid or reduce the possible consequences of falls [22]. This feedback should be 52 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION done through automatic messages, email, or even through notifications in possible apps for smartphones or other electronic devices, as shown in the dark gray area of Figure 19. Fall or Fall Risk Situation Assistance Feedback Assistance Feedback Health Services Family FRA Tool Figure 19: Warning signals and feedback processes implemented in case of a fall event or a high fall risk situation. 4.8 Data Acquisition in Nursing Homes The first steps towards the implementation of the previously envisioned FRA strategy were taken. An initial version of the data acquisition stage (Section 4.3) was implemented offline, with the development of a waistband instrumented with an inertial sensor, as well as smartphone applications to be used in inertial data collection sessions with elderly subjects at nursing homes. This proof of concept is an essential first step for the development of the remaining blocks of the FRA tool, since this block is shared by all fall risk assessment modules. Thus, this section will address the process of enhancement of a previous team-own instrumented waistband and smartphone applications for data acquisition, as well as an ADL inertial data acquisition protocol, which was carried out at a partner nursing home, the Fundo Social de Braga. The materials used to the construction of the waistband will be identified (Subsection 4.8.1). An overview of how the collection protocol took place will also be addressed (Subsection 4.8.2). 53 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION 4.8.1 Waistband enhacement The waistband used to gather data in nursing homes was based on a version previously developed by BirdLab members, and instrumented with several electronic components in order to collect gait data from parkinsonic subjects [90]. For the enhancement of the initial waistband version, for waist-located inertial data acquisition from ADL performed by elderly people in nursing homes, the previous sensing system (MPU-6050) was changed for an inertial sensor (LSM6DSOX), miniaturized (15x20x2 mm) and light (10 g), integrating a 3-axis MEMS accelerometer (±16 g ) and gyroscope (±2000 º/s). An ultra-low- power high-performance three-axis magnetic sensor (LIS3MDL) was also added. As can be seen from Figure 20, the sensing system is located in a central region of the outer part of the waistband, connected by a cable to the remaining components. Control Unity Inertial Sensor Figure 20: The instrumented waistband developed for data collection in nursing homes. Regarding the remaining components connected to the sensing unit, a control unit, which includes the STM32F4 Discovery as a processor, allows for the communication between all the components, sending the necessary commands for the sensory units to start and stop the data collection, and saving the collected data in a file once the acquisition is finished. The inertial acquisition takes place at a sampling frequency of 100 Hz, sufficient for the acquisition of human movement, without loss of information [77]. The files containing the inertial data acquired by the sensory unit are stored on a USB pen drive with a capacity of 32G. To power the system, the power-bank Turbo 3000 (5 V; 2 A; 3000 mAh; 75 g) is used. The system has an autonomy of eight hours to enable daily monitoring sessions for long and continuous periods. Furthermore, a new Bluetooth module (HC06 Bluetooth module) was also included 54 CHAPTER 4. FALL RISK ASSESSMENT TOOL - ARCHITECTURE CONCEPTUALIZATION to allow a better connection between the waistband and external devices, such as smartphones. The last improvement implemented in this waistband was related to its fabric, which was modified in order to be more easily adjustable to the subjects’ abdominal circumference, since the previous version of the waistband, despite being elastic, was one-size-fits-all and could cause discomfort. All the referred components are depicted in the diagram presented in Figure 21. Verbantim USB OTG Flash Drive Pen Power Supply Android Apk LSM6DSOX+LIS3MDL HC06 Bluetooth Module Figure 21: The waistband component’s system overview, illustrating the central systems with the respective components and interfaces between them. In order to configure a wireless data collection by the device, and to facilitate the data acquisition and subsequent processing regarding the labeling of the acquired data, two graphic applications for smartphones, which communicate with the control unit via Bluetooth, were created using Kotlin code in Android Studio (Figure 22). The first smartphone application (22a), developed in an Android environment firstly for the previous version of the waistband, was altered and allows the intuitive configuration of the beginning and end of the acquisition, as well as saving the file containing the inertial data from ADLs. The second application (Figure 22b), also developed in an Android environment, and collects the start and end times of the various activities performed during the acquisition, through simple clicks, saving them in a file. Moreover, it has an integrated timer so that the person responsible for data collection can time the duration of each collection 4.8.2 Data Acquisition Protocol The data acquisition experimental protocol was elaborated in collaboration with several personnel specialized in the field of geriatrics, such as Doctor Gorjão Clara, and Marta Sousa, administrative and caregiver of the Fundo Social de Braga nursing home, in order to define several inclusion and exclusion 55 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Table 11 resumes the group of ADLs, postural transitions and fall events commonly found in the literature, as well as the label assigned to each one of the events mentioned (Chapter 3). Table 11: Static postures and locomotion ADLs, postural transitions and Fall events selected to be recognised by the Machine and Deep Learning models. Periodic Activities and Static Postures (Class Number) Transitions (Class Number) Falls (Class Number) Walking (1) Lying to Stand (13) Forwards (9) Standing (2) Stand to Sit (14) Backwards (10) Sitting (3) Sit to Stand (15) Lateral (11) Lying (4) Stand to Pick to Stand (16) Syncope (12) Upstairs (5) Stand to Lying (17) Downstairs (6) Change Position (Lying) (18) Jumping (7) Turning (19) Jogging (8) Bending (20) According to the requirements of the FRA tool specified in Chapter 4, it must be user-friendly for the elderly, and activity recognition must be accomplished with as few sensors attached to the users as possible [22]. Thus, the ADL recognition in this Chapter was accomplished using only data from 1 inertial sensor (accelerometer and gyroscope), located at the waist, according to what is most frequently found in the literature (See Chapters 2and 3). ADL recognition should be as accurate as possible, with the literature showing performances of 96.70%, 96.83%, 96.83%, for accuracy, precision, and sensitivity, respectively, in 6 class classification problems using deep learning algorithms, and onde waist-located accelerometer and gyroscope [35]. Thus, taking into account the high number of activities to be classified (Table 11) and the same number of sensors used (just one inertial sensor at the waist), performances over 95% for accuracy will be considered an excellent result. Another key requirement is related to a strong algorithm validation, which shows to be a potentially lengthy process and rarely done in the most correctly way in the analyzed works in Chapter 3. One of the ways to obtain well-validated results in ML systems is through training the models with a vast dataset, and with various validation techniques, such as hold-out data split, k-folds cross-validation or leave-one-out validation, among others [68,69]. To fulfill this requirement, this module aims to build a vast dataset from the fusion and normalization of several different public and team-owned datasets (Section 5.2). From the research carried out in Chapter 3, this process has not been carried out before in other works of ADL recognition, despite its importance being already mentioned in several papers [68,69]. Furthermore, given 62 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS the higher amount and variability of data, both at the subject and sensor levels, a big and diverse dataset enables for the development of more robust models. Finally, the recognition of activities should be done in with the shortest possible delay between the start of the activity and its recognition [64,65]. During this dissertation, a comparative analysis will be performed offline to study which AI-based method is preferable, as well as to find the most relevant features in ADL and fall events recognition. Despite this analysis will be performed offline, the models will be trained and tested from a future perspective of real-time practical use. In addition to seeking accurate recognition, it is important that the selected model classifies in a short time considering the window size and overlap used. 5.1.1 Data Flow Overview The implemented ADL recognition strategy in this dissertation tries to uncover which classification algorithm is best suited to recognise 20 classes, including ADL and fall events. Furthermore, the determination of which information is most suited to this classification problem is also carried out in the proposed algorithm. To achieve these goals, a comparative analysis was carried out with different classification models and different Feature Selection Methods (FSM). Figure 25 presents a data flow overview of the ADL recognition strategy, since raw data acquired from public and team-owned datasets, to the performance evaluation of several classification models. The acquisition of the data used in this strategy is explained in Section 5.2. All the steps taken to perform the comparative analysis: feature extraction, feature selection, window Labeling and AI-based models validation and evaluation process (Grey areas in Figure 25), are covered in Section 5.3. All the mentioned steps related with the development of Machine Learning and Neural Networks models, validation and evaluation of these ADL recognition algorithms were implemented offline using the Matlab 2021b version, on a Lenovo Legion Y540: processor - intel core i5, 9th Gen; graphics card - NVIDIA® GeForce® GTX 1650; memory - 8 GB DDR4 at 2666 MHz and SSD PCIe of 512 GB. 5.2 Dataset Acquisition and Fusion Process A research was carried out on public datasets of ADL and fall events. The selected datasets were further combined and normalized into a single dataset for a generalised classification of these events. The use of different and large datasets within the same topic makes validation and test of classification models more robust [68,69] In addition to the aforementioned advantage, fusion and normalization of public datasets for activity recognition is a process that, according to the knowledge acquired during the research carried out in this dissertation, has not been completed by anyone else yet. 63 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Figure 25: Dataflow diagram for the complete evaluation process of different Machine Learning and Deep Learning models for ADL recognition, alongside the best feature set selected by diverse FSM, since raw data acquired to the performance evaluation. 5.2.1 Acquisition and Description Considering the most common information collected for activity recognition with wearable sensors, public datasets were selected if they met the following requirements: i) Be publicly available online for download; ii) Contain inertial data collected from the lower trunk (back); and iii) Contain postural daily activities and/or fall events. Therefore, the following keywords were used in several search engines: ”Dataset”, ”Public”, ”ADL”, ”Falls”, ”IMU”, ”Lower Trunk”, and datasets which did not met to the stipulated eligibility criteria were not considered for this dissertation. The research carried resulted in the gathering of six public datasets and three team-own datasets. The gathered public datasets were as follows. 1. Sisfall [78]: Data acquired with 23 healthy young adults (19-30 years, 149-183 cm, 42-81 kg) and 15 healthy elderly participants (60-75 years, 150-171 cm, 50-102 kg) with a device composed of two types of accelerometer and one gyroscope fixed to the waist of the participants, who performed 19 ADL and 15 fall types. 2. FallAllD [92]: Data acquired from 15 healthy subjects (21-53 years, 158-187 cm, 48-85 kg) who used 3 devices equipped with an accelerometer, a gyroscope, a magnetometer and a barometer. A total of 44 classes of ADLs and 35 classes of falls were performed. 64 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS 3. FARSEEING [93]: Large-scale collaborative database to collect and share sensor signals from realworld falls. Real fall’s data is acquired from either 2 locations: waist or thigh, and the acquisition devices are equipped with up to 3 sensors, namely accelerometer, gyroscope and magnetometer. 4. UCI HAR [80]: Dataset recorded from 30 healthy subjects (19-48 years) by using a waist-mounted smartphone with an embedded 3-axis accelerometer, gyroscope, and magnetometer. This dataset contains six classes of ADLs: walking, ascending stairs, descending stairs, sitting, standing, and laying. 5. Cotechini et al. [94]: Dataset acquired from 8 healthy subjects (22-29 years old, 173-187 cm, 60-94 kg) using a wearable device containing a 3-axis accelerometer and gyroscope, tied to the subject’s waist, that recorded subject’s acceleration and orientation. Subjects simulated 13 typologies of falls and 5 types of ADL. 6. UMAFall [95]: A dataset acquired from a total of 17 healthy subjects (18-55 years, 50-93 kg, 155-195 cm). Accelerometer, gyroscope and magnetometer data were colected from five wearable sensing devices, located on the subject’s chest, waist, wrist, ankle and pocket. The participants performed 8 different ADL and 3 different typologies of falls (except by those older than 50 years, who did not perform falls). The used team-owned datasets were as follows. 1. +Sense [90]: Dataset with data acquired from 10 healthy subjects (44.02 ± 16.42 years, 67.5 ± 16.06 kg, 172 ± 7.93 cm) and 40 subjects with Parkinson’s disease (64.00 ± 10.60 years, 69.93 ± 11.41 kg, 165.93 ± 8.65 cm). A waist-mounted waistband, equipped with an accelerometer, a gyroscope and a magnetometer recorded subject’s data in walking activity protocols. 2. SafeWalk [96]: Dataset acquired with 12 healthy subjects (25.33±6.33 years old, 66.92±10.07 kg, 1.74±0.11 m). Five IMUs were attached to the lower back, both back thighs, and to both feet of the subjects, who performed walking trials and front fall events. 3. InertialLab [97]: Dataset which includes data from 11 able-bodied subjects (24.53 ± 2.09 years old, 171 ± 10 cm, 65.29 ± 9.02 kg). Gyroscopes and accelerometers were attached to six lower limbs and trunk segments. Walking in varying speed and terrain (flat, ramp, and stairs) and including turns were the activities carried out by the subjects. Table 12 resumes the public datasets found and their most relevant characteristics. The three teamown datasets added with gait and fall events data collected by the BiRDLab laboratory, are described in Table 13. Thus, after this survey, a total of 9 datasets were acquired, which make up a total dataset with inertial data of ADLs and falls from 180 subjects. All the acquired datasets were divided into several folders, 65 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS which represented the different subjects and activities. Each file in these folders represented a trial for a given activity or group of ADLs. Table 12: Researched public datasets regarding sensing methods and location, sample frequency, participants and activities recorded. In this table: Acc = Accelerometer, GYR = Gyroscope, MAG = Magnetometer and Baro = Barometer DataSet Sensors Location Sample Frequency Participants ADLs Falls SisFall [78]* ACC & GYR Waist 200 Hz 23 subjects<30 years 15 subjects>60 years 19 ADL 15 Falls FALLALLD [92]* ACC,GYR, MAG & Baro Chest,Waist, Wrist 238 Hz 15 subjects [21–53 years] 44 ADL 35 falls FARSEEING [93]* ACC,GYR, MAG Waist,Thigh 20 Hz 100 Hz 20 subjects** Real falls UCI HAR [80] ACC,GYR Waist 50 Hz 30 subjects [19-48 years] 12 ADL Cotechini [94]* ACC,GYR Waist 33,33 Hz 8 subjects 5 ADL 13 Falls UMAFall [95]ACC,GYR, MAG Waist,Chest, Wrists,Ankle 20 Hz 17 subjects [18-55 years] 8 ADL 3 Falls * Several activities in these datasets were grouped into one single class of basic activities. ** Only data from 3 subjects were suitable to use. Table 13: BiRDLab datasets description regarding sensing methods and location, sample frequency, participants and activities recorded. In this table: Acc = Accelerometer, GYR = Gyroscope and MAG = Magnetometer DataSet Sensors Location Sample Frequency Participants ADLs Falls +Sense [90] ACC, GYR, MAG Waist 100 Hz 10 Healthy 40 Pathological 1 ADL SafeWalk [96]Waist,Thighs, Feet 30 Hz 12 subjects 25.33±6.33 years 1 ADL 1 Fall InertialLab [97] Waist 100 Hz 7 subjects [23-26 years] 5 ADL After the acquisition, a generalized statistical study was carried out on the subjects of all datasets, where demographic information was collected from each subject, such as gender, age, weight and height, and the mean values and respective standard deviations of each of these parameters were determined (Table 14). It should be noted that this study does not cover all subjects, since not every dataset presented this demographic information or it was incomplete. UCI HAR dataset was excluded based on this principle. 66 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Due to this fact, only demographic data from 150 out of the 180 subjects of the global dataset were used in this study. Table 14: Demographic information regarding 150 of the 180 subjects of the total dataset, with maximum, minimum, mean and standard deviation computation for each factor Age (Years) Weight (kg) Height (cm) Gender (%) Maximum 85 102 195 Minimum 18 50 149 Mean 33.6 69.98 168.99 Standard Deviation ±16.84 ±10.99 ±9.42 M = 54% F = 46% As can be seen in Table 14, the global dataset presents a balanced distribution regarding to the subject’s gender, containing also data from both young adults and elderly people. However, despite the presence of elderly data in the dataset, the average and standard deviation values show that the global dataset is still made up mostly of young adults, with the percentage of people over 65 years old being just over 20% of the total dataset (37/180 subjects). In short, a large dataset of 6702 files covering the numerous trials conducted by the 180 subjects was generated after the datasets’ fusion process. This vast amount of data is crucial since it is far larger than any other dataset used in the research reviewed in Chapter 3. 5.2.2 Dataset Normalization Process Due to the great variability found between datasets, regarding both the location and orientation of the sensors, and the frequencies at which the signals were acquired (Tables 12 and 13), in order to be merged, it was necessary to pass the data from all datasets by a normalization process. The different steps of this process, which can be seen in Figure 26, will be explained below. First, from each dataset, only the data corresponding to the acceleration (accelerometer) and angular velocities (gyroscope) of the sensors located in the subjects’ lumbar region were selected to be used. Data referring to other sensory information in addition to these were discarded. Then, the data were reorganized so that the orientation of the sensors corresponded to the desired one, as shown in Figure 27. Finally, all datasets underwent a resampling process so that the sampling frequency was set to 50 Hz, which is one of the most common sample frequency within activity recognition literature (See Chapter 3). Thus, after this normalization process, tables of inertial acceleration and angular velocity data similar to the one sampled in Figure 28 were obtained. 67 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Figure 26: Normalization process steps implemented in order to build a vast dataset for ADLs recognition. 5.2.3 Labeling The step that followed the acquisition and standardization process was the labeling, i.e., the process where to each acquired sample is assigned a “label” that identifies which ADL or type of fall event was happening at that moment. Due to the lack of information regarding the labeling of the data, this process was carried out manually or semi-automatically, depending on the information provided by the respective public dataset selected. Video and article information, descriptions of the tests carried out and the graphics of the signals themselves were used so the labeling process was as rigorous as possible. Thus, for this manual procedure, Python code was written to plot the signals present in each file, allowing easy clicks to select the start and end samples of each activity identified, labeling all samples in-between with the associated ADL value (see table 11). As previously mentioned in Table 12, not all datasets contained the same ADLs, and some were considered two different activities despite representing the same static positions or similar activities (e.g., the standing in a room and standing in an elevator ADLs found in the SisFall dataset were considered as standing in this dissertation [78]). Thus, the labeling of all datasets was performed in order to find the most basic locomotion activities, static postures, transitions between those, and falls, as presented in the Table 11. After the labeling process, a study was carried out on how the labels were distributed by the global dataset, in order to assess the the balancing of the different classes (activities) to be classified. Figure 29 shows the percentage amounts of each activity present in the created dataset. As can be seen, the dataset has a greater tendency towards cyclical activities, such as walking or lying (1 - 29.73% and 4 - 18.52%, respectively), with only a small percentage of transitions between activities and fall events, such 68 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Figure 27: Desired sensor’s orientation. The inertial sensors should be located on the lower trunk of the users. The arrows and letters x, y and z point in the positive direction of the Anteroposterior, Mediolateral and Longitudinal axes, respectively. Figure 28: Normalized inertial data table of each dataset after applying the normalization process of Figure 26. as the fall by syncope , which is the activity with the least amount of data in the global dataset (0.27%). 5.3 AI-based classifiers: Comparative Analysis We performed a comparative analysis, whose strategy is illustrated in Figure 25, to determine the most suitable AI-based classification model for ADL and fall events recognition, and the subset of features which attains the best performance. It should be noted that all operations were performed on the global dataset without the use of any noise filters or other sorts of processing, i.e., the raw inertial data was directly 69 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Walking: 29,74% Standing: 13,35% Sitting: 7,9% Laying: 18,52% Upstairs: 4,53% Downstairs: 4,44% Jumpingg: 7,8% Others(13 ADLs): 13,72% Figure 29: Percentage of each activity present in the total dataset. The activities are named according to Table 11. implemented in the referred procedures. The following subsections will describe all the processes taken to conduct this comparative analysis, as well as theoretical definitions of the mainconcepts employed. 5.3.1 Feature Extraction The first step of this block concerned the extraction of features from the raw inertial data in the global dataset (Section 5.2). These metrics were selected and calculated according to the research carried out in Chapter 3. The extraction was achieved through the sliding window method, the most used method for data segmentation and feature extraction, where a signal is segmented into several windows (subgroups) of equal size, on which different features can be calculated [64,65]. The resolution of activity recognition can be understood as the size of the sliding window. A stream of activity data can be processed as one to observe long-term activity trends by leveraging a large window size, but if numerous actions are contained in one window, it fails to distinguish each activity. A smaller window size, may be more fitting when addressing ADLs that occur in a very short period [77]. According to the researched literature in Chapter 3, the most used sliding windows generally have a size corresponding to approximately 1 second for this type of activity classification, and the overlap between consecutive windows can vary from 50% to 87% [64,65]. Within the scope of this project, an initial one-second window was selected to perform the comparative analysis, which corresponds to a window that contains 50 samples, with an overlap between two consecutive windows of 40 samples (80%), corresponding to an “advance” of the window of 200 ms (Figure 30). In addition to the initial window size, for the best classifier found in the comparative analysis, various 70 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS sizes were explored to investigate the impact of the window size used for feature acquisition on classification performance. Thus, windows with 4 different sizes were tested: 0.5 seconds;1 second;1.5 seconds; and 2 seconds. These were limited to 2s in order to maintain the possibility of recognizing ADLs in real-time [98,99], in addition to allowing a good classification of transitional activities and falls, which have shorter execution times [100]. It should be noted that, due to time constrains relative to the time required to run the models for the different size and window overlaps combinations, in this dissertation the percentage of overlap between consecutive windows was kept at 80% for all tests performed, despite literature suggesting that overlap can also have high impact on the classification performance and computational cost for real-time applications [98,99]. In Chapter 6, the results of a comparative analysis between these four window sizes will be presented. Figure 30: Signal segmentation with the sliding window technique example for feature extraction. In the image, 1, 2 and 3 represent 3 consecutive 1-sencond windows, spaced by 200ms. At the top of the graph an example is given of how samples were labeled. The segmentation in 1s window with 80% overlap, and feature extraction resulted in a total set of 666660 windows. Similarly, for 0.5s, 1.5s and 2s window sizes, 1366289, 435111 and 318516 windows were obtained, respectively. Thus, for each one, several feature values were extracted, such as the averages, maximums, minimums and standard deviations of each of the acceleration and angular velocity axis, among other metrics, making a total of 199 features calculated. A summary of the selected features can be seen in Table 15. 71 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS obtained may not be optimal, hence efforts to improve their design should be included in future works, in order to identify how deep learning methods work best in the context of recognizing ADLs and fall events. 5.3.4 Validation Methods Description 5.3.4.1 Hold-Out Method The hold-out method is one of the simplest methods to evaluate a classifier, and is widely used in classification problems, where the total dataset is divided into two distinct groups: one group to train the models, and another to test them and evaluate their performance (Figure 33) [124]. When a particular model is trained and tested with the same dataset, it ends up overfitting, i.e., it becomes overly familiar to a certain type of data, losing its ability to generalize and make a good classification when receiving new data to recognize. Thus, this step is extremely important to avoid overfitting problems in relation to the training data, since it causes the created model to be trained with a certain set of data, and to be tested with data that it has never observed before [69]. Figure 33: Test and training set separation with the hold out method. Taken from [125] . 5.3.4.2 K-Folds Cross-Validation K-Folds CV is a statistical method used to estimate the generalization power of machine learning models. It is important since observing the average error among k folds, a good projection of the expected error for a model built on the full dataset is made. It is commonly used to compare and select models for a given predictive model because it is easy to understand, easy to implement, and results in estimates that generally have a lower bias than other methods [124,126]. The Figure 34 shows the cross-validation process, from the data split to the performance evaluation metrics. 78 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS Figure 34: A general example of a k-Folds cross-validation process. Adapted from [127] . 5.3.5 Classification Models Building and Evaluation The first step taken for the model’s building and evaluation in the comparative analysis was an initial data split. For this division, HO method was used, where the created feature windows were divided into 70% for model training data and 30% for test data. Due to the existence of an unbalanced dataset, this data split was done randomly, in order to maintain the same proportion of labels, i.e., 70% of the windows of each activity were assigned to a training set, and 30% were chosen for a test set, in order to test the trained models. With this splitting methodology, it is expected to avoid that all windows of certain activities are placed entirely either in the training data group or in the test data group, causing no activity to be only trained or only tested. To analyze which would be the most suitable Machine Learning model (Table 17) and best subset of featuresv(Table 16) for the classification of ADLs and fall events, two steps of k-folds crossvalidation were performed to the training data from the HO method. In the first step, the training data was divided into 5 folds and one repetition of this method was performed. In addition to the performance analysis of the aforementioned combinations, the subset of features which presented best results was also investigated, in order to allow the creation of faster models with a lower computational weight, while still obtaining the ideal performance [103,112,113]. The two classifiers which presented the best performance were selected for the second CV stage. In the second stage, with the classifiers which presented better results, the training data were divided again in 5 folds, and 10 repetitions of the CV 79 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS process were performed. In this step, no progressive analysis was performed, using the ideal feature subset obtained from the first phase in the CV process. From the results of this 5-10-Fold CV, the two best combinations of classifier and feature selection method were chosen according to their performance results. Finally, for the two best classifier obtained after the cross-validation phase, the classification models were trained with all training data and tested with all test data from the HO method. Using a gridsearch technique [128], the hyperparameters of each classification model were optimized and the models were tested before and after the hyperparameter optimization process, in order to ascertain the influence that this process had on improving the performance results of ADL recognition. Furthermore, at this stage the two window labeling methods presented in Section 5.3.1 were compared. Thus, the optimized classifiers were trained and tested with windows labeled by the two processes and it was verified which one presented the best performance. In order to understand if deep-learning methods can be a viable alternative to Machine Learning methods, the classification of ADLs and fall events was also carried out using the four Neural Networks architectures presented in Figure 32. As a result, the two best feature subsets acquired from the validation steps were used as input to train and evaluate these deep learning models. The performance of neural networks with the two best set of features was analyzed and from the performance results obtained, achoice between the machine learning-based and deep learning-based models was made, for the most suitable classification model for ADL recognition. 5.3.6 Window Studies and Classification Time As is widely verified in the literature, the impact which the window size used for feature extraction has on the performance of classification models was analyzed. Starting from the initial window of 1s (50 samples), the features of Table 15 were recalculated in windows whose size was described in Section 5.3.1. Thus, the models which performed better in Section 5.3.5 were tested for the different windows created. Finally, the training and classification times for the classifiers were computed and assessed as well during this study. Based on this analysis, the classifier with the best potential to recognize ADL and fall events in real-time was chosen, taking into account the performance outcomes of the various models as well as the corresponding training and classification times. 5.3.7 Model Evaluation Metrics The evaluation process of AI-based algorithms is an essential part of any project, since it is the way in which the quality of the developed model can be quantified [129]. There are several ways to analyze the performance of Machine and Deep Learning classification models, and depending on number of classes, the type and balancing of the data used to train and test the models, these may or may not be the most 80 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS appropriate [130]. The evaluation of classifiers is critical in the learning process because it allows access to the performance of multiple algorithms that cannot be compared in any other way. During the comparative analysis, the following list of performance evaluation metrics was used to assess the classification models performance (Table 19) [67,75,76]. Table 19: Performance metrics used to evaluate the different AI-based models Performance Evaluation Metric Reference Accuracy (ACC) [67,76,114] Sensitivity (Sens) [35] Specificity (Spec) [35] Precision (Prec) [35] F1 Score (F1S) [76] Mathews Correlation Coefficient (MCC) [131] Since the acquired dataset is unbalanced, i.e. certain activities appear in much greater quantity than others (For example, Walking vs Fall Forward), a bigger importance was given to the last 5 performance metrics, although accuracy was also calculated. Usually, the results are stored in a confusion matrix, as seen in Figure 35, which allows visualising the performance of the classifier. Figure 35: Confusion Matrix example. The proper and incorrect classifications in a Confusion Matrix are typically referred to by a variety of names. True Positive (TP), True Negative (TN), False Negative (FN), and False Positive (FP) are the four types of classification found. The parameters TP, TN, FN, and PF are used to determine the several aforementioned performance evaluation metrics, such as precision (Prec), sensitivity (Sens), specificity (Spec), and accuracy (ACC). 81 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS 5.3.7.1 Accuracy Equation 2shows that accuracy (ACC) is an evaluation metric that reflects the percentage of correct outcomes obtained by the classifier. The main disadvantages of ACC are that it ignores the differences between types of errors and their reliance on the data class distribution, despite the fact that the distinction between them is generally relevant in actual applications. 𝐴𝑐𝑐𝑢𝑟𝑎𝑐𝑦 = 𝑇𝑃 +𝑇 𝑁 𝑇𝑃 +𝑇 𝑁 +𝐹𝑃 +𝐹𝑁 (2) Although this metric is one of the first to examine when evaluating a classifier, it cannot accurately characterize the efficacy of the classifier when the number of class windows is not balanced. As a result, alternative measures that reflect the more particular features of the evaluation must be calculated. 5.3.7.2 Sensitivity Sensitivity, presented in equation 3, measures the proportion of current positives that are correctly identified. 𝑆𝑒𝑛𝑠𝑖𝑡𝑖𝑣𝑖𝑡𝑦 = 𝑇𝑃 𝑇𝑃 +𝐹𝑁 (3) 5.3.7.3 Specificity Specificity displays the proportion of negatives that are correctly identified, and this metric is presented in equation 4. 𝑆𝑝𝑒𝑐𝑖𝑓 𝑖𝑐𝑖𝑡𝑦 = 𝑇 𝑁 𝑁+𝐹𝑃 (4) 5.3.7.4 Precision Precision, is the metric that indicates the percentage of correct positive results of all positive results obtained by the classifier, given by equation 5. 𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛 = 𝑇𝑃 𝑇𝑃 +𝐹𝑃 (5) 5.3.7.5 F1 Score Precision and Sensitivity are combined to form the F1 Score (F1S). It can be seen from equation 6 that the TN number is not taken into account in the calculation method, thus we can have the same value of this metric whether the TN value in the categorization results is high or low. 82 CHAPTER 5. ACTIVITIES OF DAILY LIVING RECOGNITION - METHODS 𝐹1𝑆𝑐𝑜𝑟𝑒 = 2× (𝑆𝑒𝑛𝑠 +𝑃𝑟𝑒𝑐) 𝑆𝑒𝑛𝑠 +𝑃𝑟𝑒𝑐 (6) 5.3.7.6 Mathews Correlation Coefficient The Matthews Correlation Coefficient (MCC) is a metric used in Machine Learning for evaluating the quality of binary classifications, i.e., when there are only two classes. If there are more than two classes, the classification is done by joining several classes with respect to one another, this process being iterative until there are no more possible combinations - Equation 7. 𝑀𝐶𝐶 = 𝑇𝑃 ×𝑇 𝑁 −𝐹𝑃 ×𝐹𝑁 √(𝑇𝑃 +𝐹𝑃)(𝑇𝑃 +𝐹𝑁 )(𝑇 𝑁 +𝐹𝑃)(𝑇 𝑁 +𝐹 𝑁 ) (7) 5.4 Discussion In this Chapter, an AI-based algorithm for the recognition of 16 ADLs and four fall events was provided with the goal of filling several gaps in the literature, especially the lack of large and varied datasets to increase the robustness of the algorithms. A survey of the most relevant features for ADL recognition was also conducted, and approaches to reduce the computational cost of this recognition were offered through a comparative analysis. The process of merging several public datasets containing ADLs and falls should mitigate the insufficiency of data for validation of ADL recognition models, since for a segmentation in windows of 1s and with an overlap of 80%, 666660 windows were obtained to be used in the construction and evaluation of the classifiers. With the application of two validation methods, the hold-out method as well as two phases of cross-validation, in addition to the large amount of data used, the classification models compared in this algorithm will be trained and tested with different data sets, allowing its robust validation. The use of PCA as a feature number limiter in comparative analysis should allow for a reduction in computing cost. Furthermore, it is expected that the applied feature selection procedures would be able to locate the most relevant feature combinations for the classification of activities, providing good results without the need to employ the entire set of extracted features. Furthermore, studies on the size of the window and classification time should provide insights into the potential use of the better performing classifiers in real-time applications, such as FRA. All of these strategies were combined to create a robust procedure for choosing and validating the best algorithm for ADL and fall events recognition. 83 C h a p t e r 6 Activities of Daily Living Recognition - Results and Discussion In the following subsections, the main results concerning the PCA application (Section 6.1), comparative analysis (Section 6.2) carried out for the choice of the two best combinations of AI-based classification Model and subset of features ranked by different FSM, considering the recognition of 16 ADLs and 4 fall events, will be shown and analyzed. Furthermore, the main results obtained in the evaluation process of the different Neural Networks architectures explained in Chapter 5are also exposed in this Chapter (Section 6.2.3). Results regarding the other mentioned studies (window size study and classification time analysis) carried out on the said best combinations will also be exhibited (Section 6.3). Finally, Section 6.5 presents a discussion regarding the results obtained, highlighting the positive aspects and recognizing possible limitations. Other intermediate results are shown from Appendix Ato E. 6.1 PCA Outcomes The application of PCA as a limiter on the number of features used in comparative analysis gave rise to the graph illustrated in Figure 36. As can be seen, more than 70% of the variation present in the dataset is covered by 11 PCs, which correspond to 55 of the 199 extracted features. Thus, the limit applied in the comparative analysis was 110 features, according to Ribeiro et al. [113]. 84 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION Figure 36: Scree plot for the first application of PCA to the dataset. As it can be observed, 11 Principal Components corresponded to more than 70% of the variation present in the dataset, which correspond to 55 of the 199 extracted features. 6.2 Comparative Analysis Results 6.2.1 Cross-Validation Outcomes First, when evaluating the best ML algorithm and the best feature set, through the first step of the five-fold CV (one repetition), it was possible to identify that the best performance results, regardless of the feature selection model used, were obtained for the K-NN classifier, with a squared inverse distance weighting function (Accuracy: 93.63%, Sensitivity: 84.17%, Specificity: 99.64%, Precision: 86.80%, F1-Score: 85.43%, MCC: 85.10%) and Ensemble Learning classification model (Accuracy: 94.59%, Sensitivity: 82.22%, Specificity: 99.68%, Precision: 90.54%, F1-Score: 85.80%, MCC: 85.78%). In the opposite direction, the lowest performance was achieved when using the Discriminant Analysis Classification with quadratic function with the first 109 best features ranked by UFSOL (Accuracy: 30.14%, Sensitivity: 33.85%, Specificity: 96.35%, Precision: 32.24%, F1-Score: 25.04%, MCC: 25.72%). The complete results comparing the different feature selection methods and classifiers can be encountered from Tables 27 to 31 in Appendix A. It is imperative to disclose that the performance evaluation metrics presented in this first stage are the mean values between the twenty different classes. The four best combinations were chosen based on two criteria: the best overall performance amongst all computed evaluation metrics and the number of features used to train the classifiers. From the performance results obtained in the first stage of CV (Table 20), the following four classifiers and respective feature subset were chosen for the next CV step: 85 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION •K-NN (squared inverse distance weighting function) – 85 features ranked by Relief-F; •K-NN (squared inverse distance weighting function) – 85 features ranked by PCA; •K-NN (squared inverse distance weighting function) – 70 features ranked by FSASL; •Ensemble Learning – 65 features ranked by PCA; As can be seen from the Tables presented in appendix A, for the best classifiers (K-NN and Ensemble Learning), it is noted that for certain feature selection methods, the best performance results are obtained for a subset of features smaller than 110 features, which was the limit established when performing the initial PCA process. With the four best performing models, the number of iterations of the five-fold CV process was increased to ten in the second iteration of this method. The results obtained in this last validation step are also described in Table 20. Comparing the results obtained, from the first to the second iteration of CV there was a decrease of 0.01% in terms of ACC and of 0.05% of MCC for the K-NN classifier with the first 85 features ranked by Relief-F. In the case of the Ensemble Learning classification model with the 65 best features ranked by the PCA, no changes were observed in the ACC, with an increase of 0.01% in the MCC from the first to the second iteration. Table 20: Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), attained after the second stage 5-10 k-fold cross-validation step) CV Method ML Model FSM Nº of Features ACC (%) Sens (%) Spec (%) Prec (%) F1S (%) MCC (%) Five-Fold (1 rep.) K-NN Relief-F 85 93.63 84.17 99.64 86.80 85.43 85.10 PCA 85 92.99 84.08 99.60 86.01 85.01 84.63 FSASL 70 91.49 81.39 99.51 83.66 82.48 82.02 Ensemble PCA 65 94.59 82.22 99.68 90.54 85.80 85.78 Five-Fold (10 rep.) K-NN Relief-F 85 93.62 84,12 99,64 86,75 85,38 85,05 PCA 85 92.95 83.91 99.60 85.88 84.86 84.48 FSASL 70 91.48 81.40 99.51 83.59 82.45 81.99 Ensemble PCA 65 94.59 82.18 99.68 90.64 85.79 85.79 The Ensemble Learning model with a subset of 65 features selected by PCA (Accuracy: 94.59%, Sensitivity: 82.18%, Specificity: 99.68%, Precision: 90.64%, F1-Score: 85.79%, MCC: 85.79%) presented the best performance results. In addition, it was the case that used the smallest number of features. The model with the best performance is then selected and moves on to the next phase where it will be intensively tested to improve its performance. Despite getting worse results in 5 of the 6 performance evaluation metrics, when compared to the best performance result, the K-NN with the first 85 features ranked by Relief-F was also selected for further tests. This particular classification model presented a 86 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION higher sensitivity. The remaining ranked feature subsets presented in the table, were not taken into account for the next phases. 6.2.2 Hold-Out Outcomes The two best models of the CV process were selected to be trained with all the training data obtained by the HO method and tested with the test set created by the same method. The results obtained for the performance of these models, before and after the hyperparameter optimization process, are presented in Table 21. The results obtained in this phase show an inversion of what happened in the CV process, since for the test of these two classifiers with unseen data, the performance of K-NN (Accuracy: 95.17% and MCC: 89.50%) was superior to that of Ensemble Learning (Accuracy: 68.93% and MCC: NaN%). After the optimization process described in Chapter 5, the KNN hyperparameters were: (i) distance — minkowski; (ii) distance weight - squared inverse; (iii) exponent — 0.5; and (iv) number of neighbours — 1, and Ensemble learning hyperparameters were: (i) Method - Bag; and ii) number of learning cycles - 37. The optimization process led to improvements in the performance of both classifiers, as evidenced by Table 21. Regarding K-NN, this process led to an increase in Accuracy values from 95.17% to 97.27%, as well as increases in other performance evaluation metrics. As for Ensemble Learning, the optimization of its hyperparameters also resulted in significant improvements in all metrics, with Accuracy rising from 68.93% to 95.44%, reaching performance results closer to the ones observed for K-NN classifier. Table 21: Final test results for the K-NN Model with 85 features ranked by the Relief-f and the Ensemble Learning classifier with the first 65 features ranked by PCA. The tests were made on the test data from the hold-out phase, before and after the models’ hyperparameters optimization ML Model FSM Nº of Features Optimization ACC (%) Sens (%) Spec (%) Prec (%) F1S (%) MCC (%) K-NN Relief-F 85 No 95.17 89.28 99.72 90.28 89.76 89.50 Yes 97.27 92.90 99.84 93.79 93.34 93.19 Ensemble Learning PCA 65 No 68.93 28.72 98.04 NaN NaN NaN Yes 95.44 85.97 99.73 91.67 88.43 88.36 The results obtained when testing the optimized version of the two selected classifiers with the different window labeling methods show that labeling method can impact the performance of the models (Figure 37). By analyzing the graph, it is clear that the use of the Mode Labeling Method originates better performance results for both classifiers, when compared to the Last Sample Labeling Method. 87 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION Figure 38: Comparison between the ground truth (orange line) with the classification output of the chosen chosen model with unseen data (blue line). depth the influence that a balanced dataset may have in mitigating these misclassifications [77]. Postclassification post-processing techniques such as filters or majority voting can help eliminate other sporadic misclassifications that can arise due to unexpected changes in the movement patterns of a given activity. Moreover, activity transition diagrams can help in reducing the number of classes for a given classification based in the last classification that was made [100] (Figure 40). In short, the process carried out for the classification of sixteen ADL and four types of fall events proved to be successful, taking into account the general results of the performance evaluation metrics achieved for the K-NN and Ensemble Learning classifiers. Another positive aspect was the fact that the window classification time (0.039ms) for Ensemble Learning is much lower than the selected window advance (100ms advance for a 500ms window), allowing in theory the deployment of this model in real-time. In addition, for the ensemble learning classifier, the comparative analysis of the set of features extracted by the different feature selection models provided a reduction in the number of features by more than 65% from the 199 initial features, to a subset of 65 features, also supporting the possibility of applying this type of models in real-time systems. Furthermore, it enables the identification of a group of features which produce superior results in the recognition of various ADL and fall occurrences, even when compared with results of similar works found in the literature (Section 6.4, Table 25). 94 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION Figure 39: Comparison between the ground truth (orange line) and the classification output of the chosen best Machine Learning model with unseen data (blue line). Blue boxes represent model misclassifications when transitioning between two activities. Orange boxes represent model misclassifications during the execution of certain cyclic activities. A direct comparison between the two best results obtained in tests performed with neural networks (Table 22) and with the process developed for Machine Learning Classifiers (Table 23) shows that the use of different architectures with the same features ranked by the best feature selection methods found in Section 6.2 as inputs, did not produce as good results as when using the K-NN and Ensemble Learning classifiers. The tested LSTM and BiLSTM achieved the best results in terms of performance metrics, as well as in relation to the computation time of training and testing them. As mentioned in the literature, LSTM have a more suitable architecture for classifying sequential data [77], and this better behavior is expected compared to other architectures, such as CNN [35]. Moreover, as investigated in the literature, the results achieved by BiLSTM were slightly superior to the basic LSTM [65,121]. The feature selection method had little influence on the results obtained for the performance of neural networks, however the 85 features ranked by Relief-f returned results regarding performance metrics slightly higher than the 65 features ranked by the PCA, as what happened in the studies carried out on Machine Learning models. 95 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION Figure 40: An example of an Activity transition diagram. Adapted from [100] CNNs are generally more used in problems involving image inputs and in this process the implemented CNN architecture received as input 1D arrays of features extracted from sequential data. This method of use may justify the poor results obtained with the CNNs in terms of performance metrics, given that the convolution processes applied to extract features from the arrays used were not carried out in the most effective way. Despite these poor performance results, other architectures involving this type of networks should continue to be tested, with different type of inputs, such as the raw inertial data, since several studies claim to obtain positive results in the recognition of activities with the use of this type of neural networks [64,67,76]. Thus, this initial study of the behavior of several neural networks showed that, despite positive results in some of the cases tested, it did not reach the desired potential, when compared to the results obtained with the machine learning classifiers and other deep learning-based studies found in literature (Section 6.4, Table 26). This fact raises the need to carry out several studies and some changes in the future, in order to obtain performance results higher than those found in the literature. The architectures used must be improved in the search for better results in order to be comparable with the studies currently carried out in the literature. Furthermore, ablation studies should be carried out in order to better understand the influence that different parameters have on the performance of these networks. Finally, and as mentioned in most of the works analyzed in the literature, new tests should be carried out in the future with windows segmented from raw inertial data as inputs, rather than features, given the ability of neural networks to carry out a process extraction of features [76]. Despite the generalized positive results achieved by the different processes applied with machine learning and deep learning-based classifiers, questions regarding the data split method must still be investigated. The data division was done randomly and restricted by the data imbalance and the fact 96 CHAPTER 6. ACTIVITIES OF DAILY LIVING RECOGNITION - RESULTS AND DISCUSSION that not all subjects realized the same 20 activity classes, so that all activities were trained and tested in the same proportion (70% of the data for training and 30% for the classifier test). This fact suggests the possibility of the existence of very similar data in the two sets, which may lead to overfitting of the models when testing with new subjects’ data features, even though they were tested with windows that were not included in their training. Thus, new data split methods should be tested, such as dividing the data by the subjects or by the trials that make up the dataset [133], still trying to guarantee the balance of the labels in the two sets. 97 C h a p t e r 7 Conclusions This dissertation confirms the state-of-the art concern that falls among the elderly are a serious risk that can result in deadly or other non-fatal consequences, as well as with high societal and economic impact to families and society. As a result, efficient approaches to combat the stated problem are critical, and any endeavor to minimize or prevent a fall can save numerous lives. As a result, real-time fall risk analysis techniques are critical in combating the problem of geriatric falls. Despite the fact that several steps have already been taken in this direction, one of the conclusions reached in this dissertation is that these tools still require improvements to make them easier and more comfortable to use for stakeholders, and to allow them to freely execute their movements while being clearly presented with a level of risk of falling. The design of a Fall risk assessment strategy, which resulted in a three-part modular architecture through an eHealth platform that allows real-time FRA using only a waistband equipped with one inertial sensor and electronic gadgets readily available these days, was discussed in Chapter 4. The inclusion of few wearable sensors enables for a more comfortable use of this equipment. Furthermore, the proposed modular strategy should allow for a multifactorial risk assessment, which encompasses numerous risk elements, making it more thorough and dependable. It also enables the the combination of both prospective and immediate FRA approaches to provide a single fall risk level, using AI-based technologies. Concerning the ADL recognition discussed in Chapter 5, this topic was chosen since it is critical for assessing fall risk, despite being rarely used in the FRA methodologies studied in this dissertation. According to studies, it is statistically necessary to consider the activities that a person undertakes, since the number of falls varies based on the activity that was being carried out at the time of the fall [32]. Machine and Deep Learning-based methodologies were analyzed in a 20 class (between ADLs and fall events) classification problem. A procedure of fusion and normalization of public datasets was carried out 98 CHAPTER 7. CONCLUSIONS in order to generate a big enough dataset, larger than any existent in the researched state-of-the-art, to validate the activity classification models. Further, other relevant datasets of the team, including data from parkinsonic and healthy subjects, with different ages, weights and heights were included, which allows a high variability that brings robustness to the developed methods. These aspects were intended to address major concerns reported in the literature related to the lack of useful data for the validation of activity recognition algorithms, specially considering the targeted population. Regarding the machine learning results attained in this dissertation for the ADL recognition problem, a comparative analysis was performed by using different machine learning models and feature selection methods, which allowed the author to find the most relevant features to classify 20 distinct activity classes (Appendix D). The selected classification algorithm for building the final machine learning model was the Ensemble Learning classifier with the first 65 features ranked the PCA feature selection method. The performance obtained for this algorithm was: Accuracy- 96.53%; Sensitivity- 88.94%; Specificity- 99.79%; Precision- 94.09%; F1-Score- 91.29%; and MCC- 91.21%. Furthermore, the classification time per window for this combination of classifier and subset of features was lower than 4.5e-5s for every window size tested, which is also lower than the time between 2 consecutive classification windows for every window size tested at a sampling frequency of 50 Hz for the machine used in these tests, which shows the potential of using this procedure in real-time ADL recognition and FRA applications. Although the deep learning outcomes for the same classification problem were not as good as in the prior procedure, their potential was demonstrated, indicating that they could be a good option in the future with appropriate modifications and new testing. In short, the work herein presented enables to answer the RQs outlined in Chapter 1. •RQ 1:What is the best strategy to perform FRA in real-time and in a multi-factorial way? This RQ is addressed in Chapter 4. The best FRA strategy that can be implemented to perform in real-time and in a multi-factorial way is still a much discussed topic and without a definitive answer. However, through the research work carried out, it is concluded that a modular FRA tool will be the most suitable, where each module will work for the fall risk assessment of a certain set of risk factors (multifactorial), whether related to the movement and balance of users (real-time FRA), whether related to other demographic or environmental characteristics (prospective FRA). With the development of sensor technology and AI, it is concluded that the application of these in each of the modules will be the ideal way to carry out a better Fall Risk Assessment, providing relevant information to clinical caregivers and even the elderly through an eHealth platform. A module based on prospective approaches to FRA is essential in order to provide a general characterization of an elderly person’s abilities in the face of possible fall situations in the long term future, based on information such as clinical scale results, demographic information, physical and 99 CHAPTER 7. CONCLUSIONS psychological aspects of the elderly, as well as information regarding their surroundings. On this type of data, regression algorithms can be used to calculate a baseline fall risk value. Immediate FRA approaches should also be evaluated in another module in order to provide insights into the elderly person’s current moment, ie, information regarding the activities that the elderly practices in real time, as well as the manner in which they practice these ADLs, enabling the analysis of the current moment and detecting situations of imbalance or near fall, such as slips or trips, in addition to the activity to be carried out. The analysis of waist-mounted intertial data using AI-based classification algorithms is the best solution for this module. Furthermore, activity recognition has extra weight since the gathered inertial signals can be used to evaluate the evolution of the efficiency of performance of various activities in the medium/long term, allowing diagnoses regarding the evolution of the elderly’s physical capacity. These blocks can be combined to assign a single fall risk value, simplifying analysis by caretakers or the elderly themselves, who, as the tool’s target demographic, must clearly understand when they are in situations where they are at high risk of falling, in order to avoid them. eHealth systems embedded in devices such as smartphones are the best approach for calculating and displaying the risk level, enabling communication between the elderly and carers easier in the event of a high fall risk or even a fall event. •RQ 2:What is the best ML and DL-based strategy to implement for real-time ADL and fall events recognition? This RQ is addressed in Chapters 5and 6. From the work results presented in Chapter 6, the best Machine Learning algorithm for ADL and fall events recognition is the Ensemble Learning classifier, which achieved an ACC, Sens, Spec, Prec, F1S and MCC of 96.53%, 88.94%, 99.79%, 94.09%, 91.29% and 91.21%, respectively, for a 0.5s window and the use of the first 65 features ranked by PCA. Moreover, this classification model combination presented the smallest test time per window (< 4.5e-5s), a value much lower than the time between two consecutive classifications for every window size tested, thus being the method which presented a higher potential for real-time applications when compared with the K-NN classifier. This classifier, despite having achieved better performance results, has a classification time for each window size tested greater than the time between two consecutive classifications, making it impossible to use it in real-time with the equipment used: a Lenovo Legion Y540: processor - intel core i5, 9th Gen; graphics card - NVIDIA® GeForce® GTX 1650; memory - 8 GB DDR4 at 2666 MHz and SSD PCIe of 512 GB. From the work results presented in Chapter 6, the best Deep Learning algorithm for ADL and fall events recognition was the bidirectional LSTM architecture described in Figure 32, Chapter 5, combined with the 85 most important features ranked by Relief-F. When testing the trained model 100 CHAPTER 7. CONCLUSIONS with unseen data it was achieved an ACC, SENS, SPEC, PREC, F1S and MCC of 92.06%, 79.58%, 99.55%, 84.25%, 81.02% and 81.01%, respectively. Finally, it should be noted that these two results were obtained using data that already included a portion of the desired target audience, the elderly, in order to ensure a good performance when using these models in the future for the purpose of this dissertation, the FRA in a continuous and multifactorial manner in the elderly population. •RQ 3:What are the most suitable features for recognizing ADL and fall events from Machine Learning models? This RQ is addressed in Chapters 5and 6. To unveil which were the most suitable features for recognizing ADL and fall events, a progressive analysis was made to a set of 199 features in order to discover which number and which subset of features gave the best result in terms of performance evaluation metrics. The 65 most important features ranked by PCA combined with the Ensemble Machine Learning classifier achieved the highest overall performance amongst all combinations tested - Appendix D, Table 36. With a 10-5-Fold Cross-Validation during the progressive analysis, it was achieved 99.08%, 99.39%, 97.72%, 99.47%, 99.43%, and 97.00% for ACC, SENS, SPEC, PREC, F1S and MCC, respectively, for a 1s window. When testing the trained model with unseen data it was achieved an ACC, SENS, SPEC, PREC, F1S and MCC of 99.65%, 100%, 84.44%,99.64%, 99.82% and 91.73%, sequentially. The 85 most significant features resulting from the Relief-F combined with the K-NN machine learning classifier achieved the second highest overall performance amongst all combinations tested - Appendix D, Table 35. With a 10-5-Fold Cross-Validation during the progressive analysis, it was achieved 93.62%, 84.12%, 99.64%, 86.75%, 85.38%, and 85.05% for ACC, Sens, Spec, Prec, F1S and MCC, respectively, and a 1s window. When testing the trained model with unseen data, for the same window size, it was achieved an ACC, Sens, Spec, Prec, F1S and MCC of 97.27%, 92.90%, 99.84%, 93.79%, 93.34% and 93.19%, respectively, after the model optimization. •RQ 4:Which inclusion and exclusion criteria, ADL and circuits should be included in a protocol to collect relevant, variable data for training Machine Learning models to recognize ADL and fall events from elderly in real-life environments? This RQ is addressed in Chapter 4. In order to collect relevant, variable data for training Machine Learning models to recognize ADL and fall events from elderly in real-life environments, inclusion and exclusion criteria must first be applied, in order to decide on which subjects the collection protocols should be applied. From the elaboration of a collection protocol together with doctors and caregivers from nursing homes, it was concluded that seniors with dementia (MMSE≤15); severe depression (EDG ≥ 11); physical disabilities (unable to walk without walking aid, FAC < 4); orthopedic, cardiac, or respiratory diseases 101 CHAPTER 7. CONCLUSIONS that affect locomotion; Morbid obesity (BMI ≥ 30); and Fear of falling moderate-high (Short FES-I ≥ 14) should be excluded from ADL data acquisition protocols. The ADL addressed in acquisition protocols must take into account the target audience, which in this dissertation are the elderly, and be as close as possible to those that they can perform in a free-living context. In this way, the basic movements of locomotion (such as walking, running or walking up or downstairs), static postures (such as standing or siting) and the transitory activities (e.g., sit-to-stand and stand-to-sit transitions) presented in Tables 11 and 9are essential in any protocol for collecting inertial data. Finally, these activities must be carried out in the form of a circuit, integrating numerous ADL in a sequential manner, in order to ensure a more natural and continuous execution by the subjects, best emulating the free-living contexts of the elderly. 7.1 Future Work The Fall Risk Assessment tool and eHealth platform idealized in Chapter 4, comprising all its individual modules and their integration, must be validated as future work. To begin, the systems that make up each of its modules must be built and tested in accordance with the guidelines outlined in Chapters 2and 3, using a large amount of data, ideally from the elderly or high-risk users, to match the tool to its target users as closely as possible. After validation, other methods for assessing other risk variables, as well as various types of sensors for obtaining more information, particularly in connection to the surrounding environment, should be included. Moreover, despite the fact that a waistband has been enhanced to begin collecting inertial data in nursing homes, and that this collection has already commenced, future work must be carried out in order to be able to miniaturize all components of the waistband, making it even more comfortable to use. Although the constructed dataset contains a large amount of successfully normalized data for the validation of activity recognition algorithms, it still requires the application of several strategies for its improvement, such as the addition of more data from elderly people, and the use of data balancing techniques, such as class weights, in order to balance the quantity of samples of activities represented on a smaller scale. Furthermore, data augmentation processes can be used in order to obtain an even more diversified dataset. Key stakeholders such as older individuals and healthcare experts should be involved in any future work on building these datasets [85]. These concerns were already considered in this work (Section 4.8) and will continue to be addressed. Despite the excellent results of the proposed ADL and fall event detection algorithms using Machine Learning, new methods must be verified during the data splitting process for validation in the future, to guarantee that the great results attained in this dissertation were not due to the usage of extremely comparable data during the train and test stages of the model. Adaptive windows can be a good alternative in order to avoid the lower performances of the classifier for fall events and shorter activities. Another critical 102 CHAPTER 7. CONCLUSIONS aspect in the validation of classification models that should be addressed in more depth in the near future is the collection of inertial data from a large number of older subjects, since they are the target audience of this dissertation, with a wide range of ADL performed. The creation of a dataset of this kind will be a valuable asset to validate future ADL recognition models, in order to be implemented in the design FRA tool. Furthermore, future validations should be performed in real time from data gathering techniques used in nursing homes. As mentioned in this dissertation, despite comparable results with the literature, continued development of the tested neural networks and the usage of raw inertial data as input to the networks should be processes to be implemented. Ablation studies should be conducted to determine the impact of the various stages of each architecture on ADL and fall events recognition. 103 BIBLIOGRAPHY [60] A. Mehmood, A. Nadeem, M. Ashraf, M. S. Siddiqui, K. Rizwan, and K. Ahsan. “A Fall Risk Assessment Mechanism for Elderly People Through Muscle Fatigue Analysis on Data From Body Area Sensor Network.” In: IEEE Sensors Journal 21.5 (2021), pp. 6679–6690. issn: 1558-1748. doi: 10.1109/JSEN.2020.3043285. [61] H. Chandra. An intuitive approach to DTW — Dynamic Time Warping. en. June 2020. url: https: / / towardsdatascience . com / an - intuitive - approach - to - dtw - dynamic - time - warping-f660ccb77ff4 (visited on 03/13/2022). [62] V. Annese and D. De Venuto. “FPGA based architecture for fall-risk assessment during gait monitoring by synchronous EEG/EMG.” In: 2015 6th International Workshop on Advances in Sensors and Interfaces (IWASI). 2015 6th International Workshop on Advances in Sensors and Interfaces (IWASI). 2015, pp. 116–121. doi: 10.1109/IWASI.2015.7184953. [63] B. R. Greene, K. McManus, S. J. Redmond, B. Caulfield, and C. C. Quinn. “Digital assessment of falls risk, frailty, and mobility impairment using wearable sensors.” en. In: npj Digital Medicine 2.1 (Dec. 2019), pp. 1–7. issn: 2398-6352. doi: 10.1038/s41746-019-0204-z. [64] R. Baghezza, K. Bouchard, A. Bouzouane, and C. Gouin-Vallerand. “From Offline to Real-Time Distributed Activity Recognition in Wireless Sensor Networks for Healthcare: A Review.” In: Sensors 21.8 (2021). issn: 1424-8220. doi: 10.3390/s21082786. [65] R. Elangovan, T. Perumal, and s Padmavathi. “Human Activity Recognition With Smartphone and Wearable Sensors Using Deep Learning Techniques: A Review.” In: IEEE Sensors Journal PP (Mar. 2021), pp. 1–1. doi: 10.1109/JSEN.2021.3069927. [66] Q. Wang, H. Luo, J. Wang, L. Sun, Z. Ma, C. Zhang, M. Fu, and F. Zhao. “Recent Advances in Pedestrian Navigation Activity Recognition: A Review.” In: IEEE Sensors Journal (Jan. 2022), pp. 1–1. doi: 10.1109/JSEN.2022.3153610. [67] G. Wang, Q. Li, L. Wang, Y. Zhang, and Z. Liu. “Elderly Fall Detection with an Accelerometer Using Lightweight Neural Networks.” en. In: Electronics 8.11 (Nov. 2019), p. 1354. issn: 2079-9292. doi: 10.3390/electronics8111354. [68] A. Ferrari, D. Micucci, M. Mobilio, and P. Napoletano. “Trends in human activity recognition using smartphones.” In: Journal of Reliable Intelligent Environments 7.3 (Sept. 2021), pp. 189–213. issn: 2199-4676. doi: 10.1007/s40860-021-00147-0. [69] T. Shany, K. Wang, Y. Liu, N. H. Lovell, and S. J. Redmond. “Review: Are we stumbling in our quest to find the best predictor? Over-optimism in sensor-based models for predicting falls in older adults.” In: Healthcare Technology Letters 2.4 (2015), pp. 79–88. issn: 2053-3713. doi: https: //doi.org/10.1049/htl.2015.0019. 110 BIBLIOGRAPHY [70] S. S. Kambhampati, V. Singh, M. S. Manikandan, and B. Ramkumar. “Unified framework for triaxial accelerometer-based fall event detection and classification using cumulants and hierarchical decision tree classifier.” In: Healthcare Technology Letters 2.4 (2015), pp. 101–107. doi: https://doi.org/10.1049/htl.2015.0018. [71] P. Gupta and T. Dallas. “Feature selection and activity recognition system using a single triaxial accelerometer.” In: IEEE transactions on bio-medical engineering 61.6 (2014), pp. 1780–1786. issn: 1558-2531. doi: 10.1109/TBME.2014.2307069. [72] C. Moufawad el Achkar, C. Lenoble-Hoskovec, A. Paraschiv-Ionescu, K. Major, C. Büla, and K. Aminian. “Instrumented shoes for activity classification in the elderly.” In: Gait & Posture 44 (2016), pp. 12–17. issn: 0966-6362. doi: 10.1016/j.gaitpost.2015.10.016. [73] H. Nguyen, K. Lebel, S. Bogard, E. Goubault, P. Boissy, and C. Duval. “Using Inertial Sensors to Automatically Detect and Segment Activities of Daily Living in People With Parkinson’s Disease.” In: IEEE transactions on neural systems and rehabilitation engineering: a publication of the IEEE Engineering in Medicine and Biology Society 26.1 (2018), pp. 197–204. issn: 1558-0210. doi: 10.1109/TNSRE.2017.2745418. [74] M. Awais, L. Chiari, E. A. F. Ihlen, J. L. Helbostad, and L. Palmerini. “Physical Activity Classification for Elderly People in Free-Living Conditions.” In: IEEE Journal of Biomedical and Health Informatics 23.1 (2019). Conference Name: IEEE Journal of Biomedical and Health Informatics, pp. 197–207. issn: 2168-2208. doi: 10.1109/JBHI.2018.2820179. [75] M. Altuve, P. Lizarazo, and J. Villamizar. “Human activity recognition using improved complete ensemble EMD with adaptive noise and long short-term memory neural networks.” In: Biocybernetics and Biomedical Engineering 40.3 (2020), pp. 901–909. issn: 0208-5216. doi: https: //doi.org/10.1016/j.bbe.2020.04.007. [76] M. Gil-Martín, R. San-Segundo, F. Fernández-Martínez, and J. Ferreiros-López. “Improving physical activity recognition using a new deep learning architecture and post-processing techniques.” In: Engineering Applications of Artificial Intelligence 92 (2020), p. 103679. issn: 0952-1976. doi: https://doi.org/10.1016/j.engappai.2020.103679. [77] S. Chung, J. Lim, K. J. Noh, G. Kim, and H. Jeong. “Sensor Data Acquisition and Multimodal Sensor Fusion for Human Activity Recognition Using Deep Learning.” In: Sensors 19.7 (2019). issn: 1424-8220. doi: 10.3390/s19071716. [78] A. Sucerquia, J. D. López, and J. F. Vargas-Bonilla. “SisFall: A Fall and Movement Dataset.” In: Sensors 17.1 (2017). issn: 1424-8220. doi: 10.3390/s17010198. 111 BIBLIOGRAPHY [79] UCI Machine Learning Repository: PAMAP2 Physical Activity Monitoring Data Set. url: https: //archive.ics.uci.edu/ml/datasets/pamap2+physical+activity+monitoring (visited on 03/16/2022). [80] D. Anguita, A. Ghio, L. Oneto, X. Parra, and J. L. Reyes-Ortiz. “A Public Domain Dataset for Human Activity Recognition Using Smartphones.” In: 21th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning (2013). [81] M. Zhang and A. A. Sawchuk. “USC-HAD: A Daily Activity Dataset for Ubiquitous Activity Recognition Using Wearable Sensors.” In: Proceedings of the 2012 ACM Conference on Ubiquitous Computing. UbiComp ’12. Association for Computing Machinery, 2012, pp. 1036–1043. isbn: 9781450312240. doi: 10.1145/2370216.2370438. [82] R. Chavarriaga, H. Sagha, A. Calatroni, S. T. Digumarti, G. Tröster, J. del R. Millán, and D. Roggen. “The Opportunity challenge: A benchmark database for on-body sensor-based activity recognition.” In: Pattern Recognition Letters 34.15 (2013). Smart Approaches for Human Action Recognition, pp. 2033–2042. issn: 0167-8655. doi: https://doi.org/10.1016/j.patrec.2012.12. 014. [83] M. Bachlin, M. Plotnik, D. Roggen, I. Maidan, J. M. Hausdorff, N. Giladi, and G. Troster. “Wearable Assistant for Parkinson’s Disease Patients With the Freezing of Gait Symptom.” In: IEEE Transactions on Information Technology in Biomedicine 14.2 (2010), pp. 436–446. doi: 10.1109/TITB. 2009.2036165. [84] P. Zappi, C. Lombriser, T. Stiefmeier, E. Farella, D. Roggen, L. Benini, and G. Tröster. “Activity Recognition from On-Body Sensors: Accuracy-Power Trade-Off by Dynamic Sensor Selection.” In: Wireless Sensor Networks. Ed. by R. Verdone. Berlin, Heidelberg: Springer Berlin Heidelberg, 2008, pp. 17–33. isbn: 978-3-540-77690-1. [85] J. Sumner, L. Chong, A. Bundele, and Y. WeiLim. “Co-Designing Technology for Aging in Place: A Systematic Review.” In: The Gerontologist 61.7 (June 2020), e395–e409. issn: 0016-9013. doi: 10.1093/geront/gnaa064. [86] M. A. Habib, M. S. Mohktar, S. B. Kamaruzzaman, K. S. Lim, T. M. Pin, and F. Ibrahim. “Smartphone- Based Solutions for Fall Detection and Prevention: Challenges and Open Issues.” In: Sensors 14.4 (2014), pp. 7181–7208. issn: 1424-8220. doi: 10.3390/s140407181. [87] C.-L. Chan, Y.-J. Chen, K.-P. Chen, and S.-J. Chiu. “Elderly inpatient fall risk factors: A study of decision tree and logistic regression.” In: The 40th International Conference on Computers Indutrial Engineering. 2010, pp. 1–6. doi: 10.1109/ICCIE.2010.5668424. 112 BIBLIOGRAPHY [88] P.-L. Chen, H.-Y. Lin, J. R. Ong, and H.-P. Ma. “Development of a fall-risk assessment profile for community-dwelling older adults by using the National Health Interview Survey in Taiwan.” In: BMC Public Health 20.1 (2020), p. 234. issn: 1471-2458. doi: 10.1186/s12889-020-8286-8. (Visited on 02/28/2022). [89] W. Sansrimahachai and M. Toahchoodee. “Mobile-phone based immobility tracking system for elderly care.” In: 2016 IEEE Region 10 Conference (TENCON). 2016 IEEE Region 10 Conference (TENCON). 2016, pp. 3550–3553. doi: 10.1109/TENCON.2016.7848718. [90] H. Gonçalves, R. Moreira, A. Rodrigues, and C. Santos. “Finding Parameters around the Abdomen for a Vibrotactile System: Healthy and Patients with Parkinson’s Disease.” en. In: Journal of Medical Systems 42.11 (Oct. 2018), p. 232. issn: 1573-689X. doi: 10.1007/s10916- 018- 1087- 2. (Visited on 03/22/2022). [91] H. Arndt, S. Burkard, G. Talavera, J. Garcia, D. Castells, M. Codina, J. Hausdorff, A. Mirelman, R. Harte, M. Casey, L. Glynn, M. Di Rosa, L. Rossi, V. Stara, J. Rösevall, C. Rusu, C. Carenas, F. Breuil, E. Reixach, and J. Carrabina. “Real-Time Constant Monitoring of Fall Risk Index by Means of Fully- Wireless Insoles.” eng. In: Studies in Health Technology and Informatics 237 (2017), pp. 193–197. issn: 1879-8365. [92] M. Saleh, M. Abbas, and R. B. Le Jeannès. “FallAllD: An Open Dataset of Human Falls and Activities of Daily Living for Classical and Deep Learning Applications.” In: IEEE Sensors Journal 21.2 (2021), pp. 1849–1858. doi: 10.1109/JSEN.2020.3018335. [93] J. Klenk, L. Schwickert, L. Palmerini, S. Mellone, A. Bourke, E. A. F. Ihlen, N. Kerse, K. Hauer, M. Pijnappels, M. Synofzik, K. Srulijes, W. Maetzler, J. L. Helbostad, W. Zijlstra, K. Aminian, C. Todd, L. Chiari, C. Becker, and for the FARSEEING Consortium. “The FARSEEING real-world fall repository: a large-scale collaborative database to collect and share sensor signals from real-world falls.” In: European Review of Aging and Physical Activity 13.1 (2016), p. 8. issn: 1861-6909. doi: 10.1186/s11556-016-0168-9. [94] V. Cotechini, A. Belli, L. Palma, M. Morettini, L. Burattini, and P. Pierleoni. “A dataset for the development and optimization of fall detection algorithms based on wearable sensors.” In: Data in Brief 23 (2019), p. 103839. issn: 2352-3409. doi: https://doi.org/10.1016/j.dib. 2019.103839. [95] E. Casilari, J. A. Santoyo-Ramón, and J. M. Cano-García. “UMAFall: A Multisensor Dataset for the Research on Automatic Fall Detection.” In: Procedia Computer Science 110 (2017). 14th International Conference on Mobile Systems and Pervasive Computing (MobiSPC 2017) / 12th International Conference on Future Networks and Communications (FNC 2017) / Affiliated Workshops, pp. 32–39. issn: 1877-0509. doi: https://doi.org/10.1016/j.procs.2017.06.110. 113 BIBLIOGRAPHY [96] N. F. Ribeiro, J. André, L. Costa, and C. P. Santos. “Development of a Strategy to Predict and Detect Falls Using Wearable Sensors.” en. In: Journal of Medical Systems 43.5 (Apr. 2019), p. 134. issn: 1573-689X. doi: 10.1007/s10916-019-1252-2. (Visited on 03/22/2022). [97] J. Figueiredo, S. P. Carvalho, J. P. Vilas-Boas, L. M. Gonçalves, J. C. Moreno, and C. P. Santos. “Wearable Inertial Sensor System towards Daily Human Kinematic Gait Analysis: Benchmarking Analysis to MVN BIOMECH.” In: Sensors 20.8 (2020). issn: 1424-8220. doi: 10 . 3390 / s20082185. [98] B. Fida, I. Bernabucci, D. Bibbo, S. Conforto, and M. Schmid. “Varying behavior of different window sizes on the classification of static and dynamic physical activities from a single accelerometer.” In: Medical Engineering & Physics 37.7 (2015), pp. 705–711. issn: 1350-4533. doi: https : //doi.org/10.1016/j.medengphy.2015.04.005. [99] O. Banos, J.-M. Galvez, M. Damas, H. Pomares, and I. Rojas. “Window Size Impact in Human Activity Recognition.” In: Sensors 14.4 (2014), pp. 6474–6499. issn: 1424-8220. doi: 10.3390/ s140406474. [100] M. H. M. Noor, Z. Salcic, and K. I.-K. Wang. “Adaptive sliding window segmentation for physical activity recognition using a single tri-axial accelerometer.” In: Pervasive and Mobile Computing 38 (2017), pp. 41–59. issn: 1574-1192. doi: https://doi.org/10.1016/j.pmcj.2016.09. 009. [101] J. Zhang, T. E. Lockhart, and R. Soangra. “Classifying Lower Extremity Muscle Fatigue During Walking Using Machine Learning and Inertial Sensors.” en. In: Annals of Biomedical Engineering 42.3 (Mar. 2014), pp. 600–612. issn: 1573-9686. doi: 10.1007/s10439-013-0917-0. (Visited on 02/21/2022). [102] J. Bins and B. Draper. “Feature selection from huge feature sets.” In: Proceedings Eighth IEEE International Conference on Computer Vision. ICCV 2001. Vol. 2. 2001, 159–165 vol.2. doi: 10. 1109/ICCV.2001.937619. [103] G. Roffo, S. Melzi, U. Castellani, and A. Vinciarelli. “Infinite Latent Feature Selection: A Probabilistic Latent Graph-Based Ranking Approach.” In: (2017), pp. 1407–1415. doi: 10.1109/ICCV.2017. 156. [104] G. Roffo. Feature Selection Library (MATLAB Toolbox). 2016. [105] J. Guo, Y. Guo, X. Kong, and R. He. “Unsupervised feature selection with ordinal locality.” In: 2017 IEEE International Conference on Multimedia and Expo (ICME) (2017), pp. 1213–1218. [106] L. Du and Y.-D. Shen. “Unsupervised Feature Selection with Adaptive Structure Learning.” In: arXiv:1504.00736 [cs] (Apr. 2015). arXiv: 1504.00736. url: http://arxiv.org/abs/1504. 00736 (visited on 02/21/2022). 114 BIBLIOGRAPHY [107] H. Peng, F. Long, and C. Ding. “Feature selection based on mutual information criteria of maxdependency, max-relevance, and min-redundancy.” In: IEEE Transactions on Pattern Analysis and Machine Intelligence 27.8 (2005), pp. 1226–1238. doi: 10.1109/TPAMI.2005.159. [108] Computational Methods of Feature Selection. en. [109] M. Zaffalon and M. Hutter. “Robust Feature Selection by Mutual Information Distributions.” In: Proceedings of the Eighteenth Conference on Uncertainty in Artificial Intelligence. UAI’02. Morgan Kaufmann Publishers Inc., 2002, pp. 577–584. isbn: 1558608974. [110] P. Bradley and O. L. Mangasarian. “Feature Selection via Concave Minimization and Support Vector Machines.” In: Machine Learning Proceedings of the Fifteenth International Conference(ICML ’98. Morgan Kaufmann, 1998, pp. 82–90. [111] G. Roffo and S. Melzi. “Ranking to Learn: Feature Ranking and Selection via Eigenvector Centrality.” In: arXiv:1704.05409 [cs, stat] (Apr. 2017). (Visited on 02/21/2022). [112] “Introduction.” en. In: Principal Component Analysis. Ed. by I. T. Jolliffe. Springer Series in Statistics. New York, NY: Springer, 2002, pp. 1–9. isbn: 9780387224404. doi: 10.1007/0- 387- 22440-8_1. (Visited on 02/21/2022). [113] N. F. Ribeiro, P. Mouta, and C. P. Santos. “Two kinematic data-based approaches for cane event detection.” en. In: Journal of Ambient Intelligence and Humanized Computing (May 2021). issn: 1868-5145. doi: 10.1007/s12652-021-03313-7. (Visited on 02/21/2022). [114] J. Suto, S. Oniga, C. Lung, and I. Orha. “Comparison of offline and real-time human activity recognition results using machine learning techniques.” en. In: Neural Computing and Applications 32.20 (Oct. 2020), pp. 15673–15686. issn: 1433-3058. doi: 10.1007/s00521-018-3437-x. [115] O. D. Lara and M. A. Labrador. “A Survey on Human Activity Recognition using Wearable Sensors.” In: IEEE Communications Surveys Tutorials 15.3 (2013), pp. 1192–1209. doi: 10.1109/SURV. 2012.110112.00192. [116] Ensemble Machine Learning Explained in Simple Terms. en. July 2020. url: https : / / jpt . spe.org / twa / ensemble - machine - learning - explained - simpleterms (visited on 03/05/2022). [117] R. A. Fisher. “138: The Use of Multiple Measurements in Taxonomic Problems.” en. In: (1936). [118] H. A. Abu Alfeilat, A. B. Hassanat, O. Lasassmeh, A. S. Tarawneh, M. B. Alhasanat, H. S. Eyal Salman, and V. S. Prasath. “Effects of Distance Measure Choice on K-Nearest Neighbor Classifier Performance: A Review.” In: Big Data 7.4 (2019), pp. 221–248. doi: 10.1089/big.2018.0175. 115 BIBLIOGRAPHY [119] C. Kingsford and S. L. Salzberg. “What are decision trees?” en. In: Nature Biotechnology 26.9 (Sept. 2008), pp. 1011–1013. issn: 1546-1696. doi: 10 . 1038 / nbt0908 - 1011. (Visited on 03/18/2022). [120] A. P. D. Silva and A. Stam. “Discriminant analysis.” In: Reading and understanding multivariate statistics. Washington, DC, US: American Psychological Association, 1995, pp. 277–318. isbn: 9781557982735. [121] S. Ashry, T. Ogawa, and W. Gomaa. “CHARM-Deep: Continuous Human Activity Recognition Model Based on Deep Neural Network Using IMU Sensors of Smartwatch.” English. In: IEEE Sensors Journal 20.15 (Aug. 2020), pp. 8757–8770. issn: 1530-437X. doi: 10 . 1109 / JSEN . 2020 . 2985374. [122] A. E. Frank, A. Kubota, and L. D. Riek. “Wearable activity recognition for robust human-robot teaming in safety-critical environments via hybrid neural networks.” In: 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). 2019, pp. 449–454. doi: 10.1109/ IROS40897.2019.8968615. [123] I. Goodfellow, Y. Bengio, and A. Courville. Deep Learning. en. Ed. by F. Bach. Adaptive Computation and Machine Learning series. Cambridge, MA, USA: MIT Press, Nov. 2016. isbn: 9780262035613. [124] E. Allibhai. Holdout vs. Cross-validation in Machine Learning. en. Oct. 2018. url: https : / / medium . com / @eijaz / holdout - vs - cross - validation - in - machine - learning - 7637112d3f8f (visited on 03/25/2022). [125] F. Kayaalp and M. Başarslan. “Open Source Data Mining Programs: A Case Study on R.” In: Duzce University Journal of Science and Technolgy 6 (Apr. 2018), pp. 455–468. [126] J. Brownlee. A Gentle Introduction to k-fold Cross-Validation. en-US. May 2018. url: https:// machinelearningmastery.com/k-fold-cross-validation/ (visited on 02/22/2022). [127] J. Ashfaque and A. Iqbal. “Introduction to Support Vector Machines and Kernel Methods.” In: (2019). [128] T. Agrawal. “Hyperparameter Optimization Using Scikit-Learn.” en. In: Hyperparameter Optimization in Machine Learning: Make Your Machine Learning and Deep Learning Models More Efficient. Ed. by T. Agrawal. Berkeley, CA: Apress, 2021, pp. 31–51. isbn: 9781484265796. doi: 10.1007/978-1-4842-6579-6_2. [129] A. Mishra. Metrics to Evaluate your Machine Learning Algorithm. en. May 2020. url: https : / / towardsdatascience . com / metrics - to - evaluate - your - machine - learning - algorithm-f10ba6e38234 (visited on 02/23/2022). [130] M. Sunasra. Performance Metrics for Classification problems in Machine Learning. en. Feb. 2019. 116 BIBLIOGRAPHY [131] D. Chicco and G. Jurman. “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation.” In: BMC Genomics 21.1 (Jan. 2020), p. 6. issn: 1471-2164. doi: 10.1186/s12864-019-6413-7. [132] T. Althobaiti, S. Katsigiannis, and N. Ramzan. “Triaxial Accelerometer-Based Falls and Activities of Daily Life Detection Using Machine Learning.” In: Sensors 20.13 (2020). issn: 1424-8220. doi: 10.3390/s20133777. [133] A. Ignatov. “Real-time human activity recognition from accelerometer data using Convolutional Neural Networks.” In: Applied Soft Computing 62 (2018), pp. 915–922. issn: 1568-4946. doi: https://doi.org/10.1016/j.asoc.2017.09.027. [134] B. Cates, T. Sim, H. M. Heo, B. Kim, H. Kim, and J. H. Mun. “A Novel Detection Model and Its Optimal Features to Classify Falls from Low- and High-Acceleration Activities of Daily Life Using an Insole Sensor System.” In: Sensors 18.4 (2018). issn: 1424-8220. doi: 10.3390/s18041227. url: https://www.mdpi.com/1424-8220/18/4/1227. [135] S. Ranakoti, S. Arora, S. Chaudhary, S. Beetan, A. Sandhu, P. Khandnor, and P. Saini. “Human Fall Detection System over IMU Sensors Using Triaxial Accelerometer: ICCI-2017.” In: Jan. 2019, pp. 495–507. isbn: 978-981-13-1131-4. doi: 10.1007/978-981-13-1132-1_39. [136] S. Zhao, W. Li, W. Niu, R. Gravina, and G. Fortino. “Recognition of human fall events based on single tri-axial gyroscope.” In: Mar. 2018, pp. 1–6. doi: 10.1109/ICNSC.2018.8361365. [137] M. Iosa, T. Marro, S. Paolucci, and D. Morelli. “Stability and harmony of gait in children with cerebral palsy.” English. In: Research in Developmental Disabilities 33.1 (Jan. 2012), pp. 129– 135. issn: 0891-4222. doi: 10.1016/j.ridd.2011.08.031. [138] A. T. Özdemir and B. Barshan. “Detecting Falls with Wearable Sensors Using Machine Learning Techniques.” In: Sensors 14.6 (2014), pp. 10691–10708. issn: 1424-8220. doi: 10.3390/ s140610691. [139] F. Bianchi, S. J. Redmond, M. R. Narayanan, S. Cerutti, and N. H. Lovell. “Barometric Pressure and Triaxial Accelerometry-Based Falls Event Detection.” In: IEEE Transactions on Neural Systems and Rehabilitation Engineering 18.6 (2010), pp. 619–627. doi: 10.1109/TNSRE.2010.2070807. [140] M. Kangas, A. Konttila, I. Winblad, and T. Jämsä. “Determination of simple thresholds for accelerometrybased parameters for fall detection.” In: Conference proceedings : ... Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE Engineering in Medicine and Biology Society. Conference 2007 (Feb. 2007), pp. 1367–70. doi: 10.1109/IEMBS.2007. 4352552. 117 BIBLIOGRAPHY [141] I. P. E. S. Putra, J. Brusey, E. Gaura, and R. Vesilo. “An Event-Triggered Machine Learning Approach for Accelerometer-Based Fall Detection.” In: Sensors 18.1 (2018). issn: 1424-8220. doi: 10.3390/ s18010020. url: https://www.mdpi.com/1424-8220/18/1/20. 118 Appendix A 5 fold - 1 repetition Cross-Validation Results In this appendix, the complete results regarding the 5-1 Cross-Validation step explained in chapter 6 are presented. Table 27: Comparison of the best classification results (ACC, Sens, Spec, Prec, F1S, MCC), selected by the highest MCC, for the K-NN machine learning classifier trained with the features ranked by the various feature selection method (fist stage 5-1 k-fold cross-validation step) FSM Nº of Features ACC (%) Sens (%) Spec (%) Precision (%) F1S (%) MCC (%) ILFS 193 93,25 84,05 99,61 86,52 85,23 84,88 UFSOL 85 92,62 81,24 99,58 83,86 82,49 82,11 FSASL 70 91,49 81,39 99,51 83,66 82,48 82.02 MRMR 97 93,03 84,40 99,60 86,27 85,30 84,93 Relief-F 85 93,63 84,17 99,64 86,80 85,43 85,10 MutInfFS 56 88,05 74,79 99,32 78,08 76,36 75,72 FSV 55 88,28 75,00 99,33 78,33 76,58 75,97 CFS 110 91,61 80,79 99,52 83,69 82,16 81,73 LASSO 70 89,99 77,16 99,43 80,83 78,88 78.37 PCA 85 92,99 84,08 99,60 86,01 85,01 84,63 119 APPENDIX C. ENSEMBLE LEARNING BEST WINDOW: RESULTS PER CLASS AND CONFUSION MATRIX Table 34: Final test Results per class for Ensemble Learning classifier with the first 65 features ranked by PCA - 0,5s window Class ACC (%) Sens (%) Spec (%) Prec (%) F1S (%) MCC (%) Walking 99,17 99,17 98,63 96,82 97,98 97,13 Standing 97,34 97,34 99,22 95,23 96,27 95,68 Siting 97,99 97,99 99,78 97,46 97,73 97,53 Laying 99,11 99,11 99,59 98,24 98,67 98,37 UpStairs 92,63 92,63 99,87 97,04 94,78 94,57 DownStairs 94,31 94,31 99,89 97,53 95,89 95,72 Jumping 89,57 89,57 99,98 96,25 92,79 92,81 Jogging 98,35 98,35 99,9 98,82 98,59 98,47 Fall Fowards 81,30 81,3 99,88 88,98 84,97 84,88 Fall Backwards 81,02 81,02 99,93 90,44 85,47 85,48 Lateral Fall 82,46 82,46 99,88 85,18 83,8 83,68 Syncope Fall 61,86 61,86 99,98 90,88 73,62 74,93 Lying-to-Stand 93,23 93,23 99,91 94,92 94,07 93,97 Stand-to-Sit 84,27 84,27 99,75 84,72 84,5 84,24 Sit-to-Stand 87,93 87,93 99,9 92,45 90,13 90,02 Pick objects from ground 84,46 84,46 99,97 97,34 90,45 90,57 Stand-to-Lying 86,45 86,45 99,95 95,11 90,57 90,57 Change position (Lying) 94,40 94,4 99,95 94,81 94,6 94,55 Turning 82,31 82,31 99,96 92,26 87 87,08 Bending 90,68 90,68 99,98 97,26 93,85 93,86 126 Appendix D Best Feature Subsets In this appendix the complete list of the selected feature subset by the two feature selection method which presented the best performance results in Chapter 6are presented. Table 35 shows the 85 selected features by Relief-F. Table 36 present the 65 main features, ranked by the PCA feature selection method. Table 35: Complete list of the first 85 ranked features selected by the feature selection method Relief-F, wich produced the best results for K-NN classifier in Chapter 6, with feature label, its description and the corresponding reference. Feature Ranking Name Description Reference 1CorrelationAcc_V_AP Correlation Between Accelerantion Vertical and Antero Posterior axis [134] 2CorrelationGyr_V_AP Correlation Between Angular Velocity Vertical and Antero Posterior axis [134] 3CorrelationGyr_ML_AP Correlation Between Angular Velocity Medial Lateral and Anteror Posterior axis [134] 4CorrelationGyr_V_ML Correlation Between Angular Velocity Vertical and Medial Lateral axis [134] 5CorrelationAcc_ML_AP Correlation Between Accelerantion Medial Lateral and Anteror Posterior axis [134] 6CorrelationAcc_V_ML Correlation Between Accelerantion Vertical and Medial Lateral axis [134] 127 APPENDIX D. BEST FEATURE SUBSETS 7RAAcc_AP Resultant of Average Acceleration (Antero Posterior axis) [135] 8GravityComponentAcc_AP Gravity component of Acceleration (Antero Posterior Axis) N/A 9SSC_Acc_AP Slope Changes of Acceleration (Antero Posterior Axis) [64] 10 SSC_Acc_ML Slope Changes of Acceleration (Medio Lateral Axis) [64] 11 SSC_Acc_V Slope Changes of Acceleration (Vertical Axis) [64] 12 MeanAcc_AP Mean Acceleration (Anterior posterior axis) [66] 13 MinSVMAcc Minimum SVM of acceleration [64] 14 RAC_AP Resultant angle change (Antero Posterior axis) [136] 15 sk_SVMAcc Skewness of SVM of acceleration [66] 16 sk_V_Acc Skewness of acceleration (Vertical axis) [66] 17 RAAcc_ML Resultant of Average Acceleration (Medio Lateral axis) [135] 18 SSC_SVMAcc Slope Changes of Acceleration SVM [64] 19 sk_AP_Gyr Skewness of angular velocity (Antero Posterior axis) [66] 20 sk_ML_Gyr Skewness of angular velocity (Medio Lateral axis) [66] 21 RAAcc_V Resultant of Average Acceleration (Vertical axis) [135] 22 RSTD_AP Resultant of Standard Deviation (Antero Posterior axis) [135] 23 ZC_Acc_ML Zero Crossings of Acceleration (Medio Lateral Axis) [64] 24 MeanGyr_ML Mean Angular Velocity (Medio Lateral axis) [66] 25 sk_AP_Acc Skewness of acceleration (Antero Posterior axis) [66] 26 kur_SVMAcc Kurtosis of SMV of Accelerarion [66] 27 sk_V_Gyr Skewness of angular velocity (Vertical axis) [66] 128 APPENDIX D. BEST FEATURE SUBSETS 28 Pk_Freq_SVMAcc Peak Frequency of Acceleration SVM [64] 29 sk_ML_Acc Skewness of acceleration (Medio Lateral axis) [66] 30 MeanAcc_ML Mean Acceleration (Medio lateral axis) [66] 31 RAAcc SVM of Resultant of Average Acceleration [135] 32 RAC_ML Resultant angle change (Medio Lateral axis) [136] 33 RSTD SVM of Resultant of Standard Deviation [135] 34 RMS_Acc_AP Root Mean Square of Acceleration (Antero posterior axis) [64,66] 35 ZC_Gyr_AP Zero Crossings of Angular Velocity (Antero Posterior Axis) [64] 36 RI_Gyr_ML Ratio index of Angular Velocity (Medio Lateral axis) [137] 37 ZC_Gyr_ML Zero Crossings of Angular Velocity (Medio Lateral Axis) [64] 38 kur_V_Acc Kurtosis of acceleration (Vertical axis) [66] 39 SSC_Gyr_V Slope Changes of Angular Velocity (Vertical Axis) [64] 40 kur_AP_Gyr Kurtosis of angular velocity (Antero posterior axis) [66] 41 MeanAcc_V Mean Acceleration (Vertical axis) [66] 42 RAC_V Resultant angle change (Vertical axis) [136] 43 SSC_Gyr_AP Slope Changes of Angular Velocity (Antero Posterior Axis) [64] 44 SSC_Gyr_ML Slope Changes of Angular Velocity (Medio Lateral Axis) [64] 45 RSTD_V Resultant of Standard Deviation (Vercial axis) [135] 46 kur_V_Gyr Kurtosis of angular velocity (Vertical axis) [66] 47 kur_ML_Gyr Kurtosis of angular velocity (Medio Lateral axis) [66,138] 48 kur_ML_Acc Kurtosis of acceleration (Medio Lateral axis) [66,138] 49 Pk_Amp_Acc_AP Peak Frequency’s Magnitude of Acceleration (Antero Posterior Axis) [64] 129 APPENDIX D. BEST FEATURE SUBSETS 50 kur_AP_Acc Kurtosis of acceleration (Antero Posterior axis) [66,138] 51 sk_SVMGyr Skewness of SVM of angular velocity [66] 52 ZC_Acc_V Zero Crossings of Acceleration (Vertical Axis) [64] 53 SMA Signal Magnitude Area [139] 54 RMS_Acc_V Root Mean Square of Acceleration (Vertical axis) [64,66] 55 SSC_SVMGyr Slope Changes of Angular Velocity SVM [64] 56 RMS_Acc_ML Root Mean Square of Acceleration (Medio Lateral Axis) [64,66] 57 kur_SVMGyr SVM of Kurtosis of angular velocity [66,138] 58 RMS_Gyr_ML Root Mean Square of angular velocity (Medio Lateral Axis) [64,66] 59 Pk_Amp_SVMGyr Peak Frequency’s Magnitude of Angular Velocity SVM [64] 60 StdSVMGyr Standard Deviation of Angular Velocity SVM [64,66] 61 MAD Magnitude of Angular Displacement [139] 62 RMS_SVMGyr Root Mean Square of SVM of Angular Velocity [64,66] 63 RMS_Gyr_AP Root Mean Square of SVM of Acceleration [64,66] 64 ZC_Gyr_V Zero Crossings of Angular Velocity (Vertical Axis) [64] 65 MinGyr_V Minimum angular velocity (Vertical axis) [64] 66 MeanGyr_AP Mean Angular Velocity (Anterior posterior axis) [66] 67 Pk_Amp_Gyr_ML Peak Frequency’s Magnitude of Angular Velocity (Medio Lateral Axis) [64] 68 Mean_PSD_Acc_AP Mean Frequency of Acceleration (Antero Posterior Axis) [64] 69 StdAcc_AP Standard Deviation of Acceleration (Anteror Posterior axis) [64,66] 70 MeanSVMGyr Mean SVM of Angular Velocity [66] 71 Total_Angular_Change Total angular change [140] 130 APPENDIX D. BEST FEATURE SUBSETS 72 StdGyr_V Standard Deviation of Angular Velocity (Vertical axis) [64,66] 73 MinGyr_ML Minimum angular velocity (Medio Lateral axis) [64] 74 StdGyr_ML Standard Deviation of Angular Velocity (Medio Lateral axis) [64,66] 75 Pk_Amp_Acc_ML Peak Frequency’s Magnitude of Acceleration (Medio Lateral Axis) [64] 76 StdGyr_AP Standard Deviation of Angular Velocity (Antero Posterior axis) [64,66] 77 RSTD_ML Resultant of Standard Deviation (Medio Lateral axis) [135] 78 RI_GyrSVM Ratio Index of SVM of Angular Velocity [137] 79 MaxGyr_ML Maximum angular velocity (Medio Lateral axis) [64] 80 RI_Gyr_AP Ratio index of Angular Velocity (Antero Posterior axis) [137] 81 MinSVMGyr Minimum SVM of angular velocity [64] 82 MaxSVMGyr Maximum SVM of angular velocity [64] 83 RI_Acc_V Ratio Index of Acceleration (Vertical axis) [137] 84 PPV_Gyr_AP Peak-to-peak values of Angular Velocity (Antero Posterior axis) [137] 85 RMS_Gyr_V Root Mean Square of Angular Velocity (Vertical axis) [64,67] Table 36: Complete list of the first 65 ranked features selected by the feature selection method PCA, wich produced the best results for the Ensemble Learning classifier in Chapter 6, with feature label, its description and the corresponding reference. Feature Ranking Name Description Reference 1sk_V_Acc Skewness of acceleration (Vertical axis) [66] 2RI_Gyr_AP Ratio index of Angular Velocity (Antero Posterior axis) [137] 3Pk_Freq_SVMAcc Peak Frequency of Acceleration SVM [64] 131 APPENDIX D. BEST FEATURE SUBSETS 4MeanAcc_ML Mean Acceleration (Medio lateral axis) [66] 5RAC_ML Resultant angle change (Medio Lateral axis) [136] 6MeanAcc_AP Mean Acceleration (Anterior posterior axis) [66] 7RAC_AP Resultant angle change (Antero Posterior axis) [136] 8GravityComponentAcc_AP Gravity component of Acceleration (Antero Posterior Axis) N/A 9SSC_Acc_V Slope Changes of Acceleration (Vertical Axis) [64] 10 RSTD SVM of Resultant of Standard Deviation [135] 11 SSC_SVMAcc Slope Changes of Acceleration SVM [64] 12 RAAcc_AP Resultant of Average Acceleration (Antero Posterior axis) [135] 13 Pk_Freq_Acc_V Peak Frequency of Acceleration (Vertical Axis) [64] 14 MinSVMAcc Minimum SVM of acceleration [64] 15 SSC_Acc_AP Slope Changes of Acceleration (Antero Posterior Axis) [64] 16 ZC_Gyr_ML Zero Crossings of Angular Velocity (Medio Lateral Axis) [64] 17 RSTD_V Resultant of Standard Deviation (Vercial axis) [135] 18 RMS_Acc_V Root Mean Square of Acceleration (Vertical axis) [64,66] 19 MeanAcc_V Mean Acceleration (Vertical axis) [66] 20 RAC_V Resultant angle change (Vertical axis) [136] 21 RAAcc_ML Resultant of Average Acceleration (Medio Lateral axis) [135] 22 SSC_Acc_ML Slope Changes of Acceleration (Medio Lateral Axis) [64] 23 RSTD_AP Resultant of Standard Deviation (Antero Posterior axis) [135] 132 APPENDIX D. BEST FEATURE SUBSETS 24 Pk_Freq_Acc_ML Peak Frequency of Acceleration (Medio Lateral Axis) [64] 25 Pk_Freq_Acc_AP Peak Frequency of Acceleration (Antero Posterior Axis) [64] 26 MaxAcc_V Maximum acceleration (Vertical axis) [64] 27 Mean_PSD_Acc_V Mean Frequency of Acceleration (Vertical Axis) [64] 28 MinGyr_AP Minimum angular velocity (Antero posterior axis) [64] 29 RAAcc SVM of Resultant of Average Acceleration [135] 30 RMS_SVMAcc Root Mean Square of Angular Velocity (Vertical axis) [64,66] 31 SSC_SVMGyr Slope Changes of Angular Velocity SVM [64] 32 MeanSVMAcc Mean SVM of Acceleration [66] 33 ZC_Acc_ML Zero Crossings of Acceleration (Medio Lateral Axis) [64] 34 SMA Signal Magnitude Area [139] 35 ZC_Gyr_AP Zero Crossings of Angular Velocity (Antero Posterior Axis) [64] 36 RAAcc_V Resultant of Average Acceleration (Vertical axis) [135] 37 GravityComponentAcc_V Gravity component of Acceleration (Vertical Axis) N/A 38 RMS_Acc_ML Root Mean Square of Acceleration (Medio Lateral axis) [64,66] 39 MeanGyr_V Mean Angular Velocity (Vertical axis) [66] 40 MinAcc_ML Minimum acceleration (Medio Lateral axis) [64] 41 SSC_Gyr_V Slope Changes of Angular Velocity (Vertical Axis) [64] 42 CorrelationGyr_V_AP Correlation Between Angular Velocity Vertical and Antero Posterior axis [134] 43 Mean_PSD_SVMAcc Mean Frequency of Acceleration SVM [64] 133 APPENDIX D. BEST FEATURE SUBSETS 44 GravityComponentAcc_ML Gravity component of Acceleration (Medio Lateral Axis) N/A 45 RAC SVM of Resultant angle change [136] 46 SSC_Gyr_AP Slope Changes of Angular Velocity (Antero Posterior Axis) [64] 47 RSTD_ML Resultant of Standard Deviation (Medio Lateral axis) [135] 48 MinAcc_AP Minimum acceleration (Antero posterior axis) [64] 49 ZC_Gyr_V Zero Crossings of Angular Velocity (Vertical Axis) [64] 50 SSC_Gyr_ML Slope Changes of Angular Velocity (Medio Lateral Axis) [64] 51 EMA Acceleration exponential moving average [141] 52 Gyr_V Vertical angular velocity N/A 53 MaxAcc_AP Maximum acceleration (Antero posterior axis) [64] 54 RMS_Acc_AP Root Mean Square of Acceleration (Antero posterior axis) [64,66] 55 MaxGyr_V Maximum angular velocity (Vertical axis) [64] 56 Acc_V Vertical Acceleration N/A 57 MaxAcc_ML Maximum acceleration (Medio Lateral axis) [64] 58 SVMAcc SVM of Acceleration [140] 59 RI_Acc_V Ratio Index of Acceleration (Vertical axis) [137] 60 MeanGyr_AP Mean Angular Velocity (Anterior posterior axis) [66] 61 MeanGyr_ML Mean Angular Velocity (Medio Lateral axis) [66] 62 Pk_Freq_Gyr_ML Peak Frequency of Angular Velocity (Medio Lateral Axis) [64] 63 Mean_PSD_Acc_ML Mean Frequency of Acceleration (Medio Lateral Axis) [64] 64 Pk_Amp_Acc_V Peak Frequency’s Magnitude of Acceleration (Vertical Axis) [64] 134 APPENDIX D. BEST FEATURE SUBSETS 65 RI_Gyr_ML Ratio index of Angular Velocity (Medio Lateral axis) [137] 135