Falls are the main source of injury for elderly patients with epilepsy and Parkinson's disease. Elderly people who carry battery powered health monitoring systems can move unhindered from one place to another according to their activities, thus improving their quality of life. This paper aims to detect when an elderly individual falls and to provide accurate location of the incident while the individual is moving in indoor environments such as in houses, medical health care centers, and hospitals. Fall detection is accurately determined based on a proposed sensor-based fall detection algorithm, whereas the localization of the elderly person is determined based on an artificial neural network (ANN). In addition, the power consumption of the fall detection system (FDS) is minimized based on a data-driven algorithm. Results show that an elderly fall can be detected with accuracy levels of 100% and 92.5% for line-of-sight (LOS) and non-line-of-sight (NLOS) environments, respectively. In addition, elderly indoor localization error is improved with a mean absolute error of 0.0094 and 0.0454 m for LOS and NLOS, respectively, after the application of the ANN optimization technique. Moreover, the battery life of the FDS is improved relative to conventional implementation due to reduced computational effort. The proposed FDS outperforms existing systems in terms of fall detection accuracy, localization errors, and power consumption.Energies 2018, 11, 2866 2 of 32 to detect emergency conditions and enable caregivers to respond efficiently. A fall is one of the key factors that can lead to injuries and decrease quality of life, at times resulting in the death of elderly persons. People's rate of falling increases with their age. Falls occur frequently in medical health care centers, hospitals, or houses, with approximately 30% of falls causing injury. Falls in hospitals occur in the rooms of the patients (84%) and during transfer from one place to another (19%). Furthermore, the majority of falls occur in areas adjacent to chairs and beds [2]. Most people who experience falls need special care in a nursing home or hospital, thereby restricting their life activities. The hazard issues of fall or slight fall, especially of the elderly, can be aggravated by chronic diseases, such as osteoporosis, delirium, and dementia [3]. The degree of danger from a fall for aging persons is frequently decided by the location of the fall, time of fall detection, duration and time of transfer and rescue services. Therefore, automatic detection of elderly people's falls along with the locations of the incident is important so that medical rescue staff can be dispatched immediately and so that the family of the elderly can be informed about the incident through a specific wireless network or mobile telephone.The development of microelectromechanical technologies allows the integration of different sensors, and a wireless network is commonly used. Wireless sensor networks (WSNs) comprise a number of tiny and small sensor nodes which are deployed ...