Accurate Fall Detection and Localization for Elderly People Based on Neural Network and Energy-Efﬁcient Wireless Sensor Network

: 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 artiﬁcial 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.


Introduction
The worldwide population of elderly who are more than 65 years old is expected to grow to 1 billion in 2030, and the percentage of individuals aged 20-64 years will become 35% of the population [1].Therefore, monitoring the vital signs of elderly people is essential.In vital sign observation applications, patients and elderly people wear sensors that manage their vital parameters among the above three methods, the wearable sensor-based method using accelerometer sensors is considered in this study.
In elderly indoor localization, accurate estimation of node locations poses a challenge.One of the prevailing methods is a WSN integrated with several sensors to detect and localize the patient's fall.Localization and power consumption are essential challenges in WSN, where elderly people who carry a battery power system may transfer from one place to another according to their activities.Thus, a localization technique that can independently measure or determine the location of the elderly is necessary.Various range-based and range-free localization techniques are employed in WSN localization.Range-based techniques are employed to identify the distances and angles among nodes in WSN.Some examples of range-based localization techniques are angle of arrival (AoA), time difference of arrival (TDoA), time of arrival (ToA) [14], received signal strength indicator (RSSI) [15], global positioning system (GPS) [16], and acoustic energy [17].Conversely, range-free localization techniques are less accurate than range-based localization and are less cost effective.They rely on the transmission link among mobile nodes and beacon nodes (called beacons nodes) in the network to determine node positions, and they do not provide information about distance and angle.In this study, a sensor node or FDS is carried by elderly people with restricted energy sources and minimal equipment requirement.Range-free localization techniques that depend on received signal strength indicator (RSSI) measurements are adopted because they do not require additional hardware, thereby minimizing power consumption, cost, size, and system complexity.
In this paper, the fall and location of subjects are determined by an FDS wearable device.The FDS, which includes a digital tilt sensor, accelerometer sensor, shock sensor, microcontroller, Zigbee wireless protocol, and power unit, is wrapped around the waist of the subject.The waist is selected as the location because it allows high discrimination between activities with the accelerometer system [18].Digital tilt, shock, and accelerometer sensors are utilized to detect the fall incident of the subject.The location of the incident is estimated by using the RSSI of three Zigbee beacons for line-of-sight (LOS) and non-line-of-sight (NLOS) indoor environments.The RSSI of the three Zigbee beacons is used because no additional hardware is required [19].The beacons are used to determine the location of the subject (i.e., location of fall incident) based on an artificial neural network (ANN) technique.Location accuracy is a crucial factor for WSN applications [20] because it can reduce the power consumption of the WSN nodes.When the location or distance among the WSN nodes is measured accurately, the transmitted power of the sensor node's transceiver radio module can be modulated to reduce power consumption, while still retaining connectivity, thereby prolonging battery life [21].However, this approach is not considered in the current work.The fall alarm and raw RSSI data are sent to the coordinator node (CN) for elderly location estimation and immediate rescue.Thus, the survival probability of elderly people who have fallen can be increased, with a population effect of increased life expectancy.
Practical wearable devices carried by patients, elderly people, and athletes are battery powered.Thus, the power consumption of these devices must be considered.The radio frequency (RF) element generally consumes the most power in a wearable device [22].Several studies on wearable telehealth and telecare systems state that their suggested systems were energy efficient.Most of these studies employed only low-power hardware, adopting a low-power communication module or a microcontroller.However, they neither considered power reduction techniques to improve the power consumption of their systems nor focused on realizing full system functionality.Accordingly, the power consumption of the sensor node is improved in the present study with the use of a data-driven algorithm (DDA) along with a low-power wireless communication module (i.e., Zigbee) and a standalone microcontroller.With the use of low-power components and DDA, the FDS battery lifetime is extended.In DDA, the FDS can enter sleep mode when no information of an elderly fall (i.e., the normal case) is ready for transmission to the CN.Once a fall happens, the sensor node wakes up for a short time to send the fall alarm and location information (i.e., RSSI values) to the CN and then returns to sleep mode to conserve energy.Instead of continuously monitoring the patients' vital signs, the FDS transmits data at sparse events.
The contributions of this paper are as follows: 1.
Fall detection of elderly people is accurately detected based on FDS carried by the patient 2.
The location of the fall is determined with minimum localization error based on ANN technique in indoor environments for LOS and NLOS scenarios.

3.
The power consumption of the FDS carried by the subject is minimized based on DDA. 4.
Fall detection accuracy achieved using sensor-based fall detection algorithm (S-BFDA), localization error based on ANN technique, and FDS power consumption based on DDA are compared with those of state-of-the-art systems.

Related Works
Different approaches or schemes have been used to determine or detect the fall of the elderly considering several application scenarios.Three categories of elderly FDSs are available, as highlighted in the introduction.Wearable sensor-based approaches have an advantage over the other two approaches because such approaches involve attaching the device to the subject which then moves with them.Such systems need sensors such as gyroscopes and accelerometers.Smartphones can be efficiently employed for elderly fall detection because most mobile smartphones include these sensors [23].Many studies on fall detection applications show the applicability of Zigbee or Bluetooth radio solutions in wearable wireless sensor devices.One study [3] designed and implemented a care system that can detect and localize the fall of a human.The proposed system architecture consisted of a portable device such as a mobile phone or a tablet, the Zigbee wireless protocol as an access point, a console, a server, and an end-user mobile phone.The portable device automatically detects the fall of a subject and sends an alert message to the nursing center via the Zigbee access point.The proposed system achieved an average fall detection accuracy of 99.9%.In addition, the system could determine the location of the fall incident based on the triangulation method to help medical staff find the patient quickly.The proposed system was efficient in terms of fall accuracy and power consumption, as the system could work continuously for 1 month without the need for a battery change and could send fall and location information more than 500 times.
In Reference [24], the author proposed a wireless body area network (WBAN) for fall detection applications and optimized the energy efficiency and throughput of the Zigbee communication protocol.A fall detection algorithm was implemented based on an accelerometer sensor worn on the subject's waist and could detect eight different fall cases.Results demonstrated that 100% sensitivity and specificity could be expected when the fall occurred in the vertical position (i.e., falls sliding against a wall ending in vertical position).The power consumption of the WBAN was minimized and was 10 times less based on the sleep/wake mode of the Zigbee, which transmitted data every 5 s and slept the rest of the time.In Reference [25], an outdoor healthcare monitoring system that could monitor electrocardiogram (ECG) signal and fall events of elderly people was designed and implemented.The falling position of the elderly was determined through GPS, and fall events could be detected based on gravitational acceleration and altitude difference.The ECG signal was used alongside GPS to increase the accuracy of FDS.The healthcare system consisted of an ECG module, a GPS module, a microprocessor embedded in a field programmable gate array (FPGA) board, and the Zigbee module.The Zigbee transmitted the fall event and localization information to the receiving Zigbee connected with the computer server.The information in the computer was then transferred to the healthcare center via Ethernet.Results showed 95% fall detection accuracy with ECG and 80% localization accuracy with GPS.The outdoor healthcare monitoring system consumed more power when it continuously monitored for subject fall and position.The system was suitable for outdoor applications; however, GPS would not work in indoor environments [26].
A combination of accelerometer and electromyography was considered in Reference [27] to monitor the daily activity of the elderly and patients and to detect their falls.The proposed method Energies 2018, 11, 2866 5 of 32 achieved 98% recognition accuracy.Force sensor fusion and accelerometer decision were merged to efficiently to detect the fall of elderly people.The force sensor could detect, locate, and track elderly people, as well as identify their activities such as standing, sitting, walking, falling, lying down, and the transitions between their activities.Zigbee wireless protocol was employed to send the information of the force and accelerometer sensors to the neighboring node and any agent node.However, the system was costly and consumes a large amount of power because the accelerometer and force sensors are installed under tiles in large numbers.In Reference [28], a wireless patient monitoring system was proposed to monitor the patient fall, ECG signal, and indoor location of the fall incident.An accelerometer was used to monitor the patient fall, and indoor positioning was determined based on Zigbee wireless mesh networks.The proposed system consisted of sensor node, router node, and sink node.When a fall occurred, the vital signs of the patient were transmitted to the sink node through the Zigbee network.The Zigbee was configured to enter sleep mode in normal conditions to save energy and woke up during an abnormal event to transmit the patient's vital signs.With the sleep/wake strategy, the Zigbee could work continuously for 30 h using an 800 mAh battery.
Fall detection was distinguished from the daily activities of the subject in Reference [29] by using six artificial intelligence techniques, namely, support vector machine (SVM), k-nearest neighbor (k-NN), Bayesian decision making, least squares method (LSM), ANN, and dynamic time warping.Six sensor units were used to detect falls.Each unit supported a single intelligent technique and included three sensors (i.e., accelerometer, magnetometer/compass, and gyroscope).Sensor measurements were transmitted to the remote PC through Zigbee wireless protocol.The authors deduced that the k-NN and LSM achieved the best results of 99% in terms of accuracy, specificity, and sensitivity.In Reference [30], a sensor node that could precisely detect human movement and fall was developed to meet size, weight, and responsiveness requirements by employing data from gyroscopes, accelerometers, and magnetometers.Zigbee wireless protocol was used to create a WBAN and then transmit the collected data from body sensors to a remote server (RS) when the subject was inside the home.The access points inside the home were created through Zigbee to reduce the power consumption of the network.Conversely, when the subject is outside his or her home, the data could be transmitted from WBAN to RS via Bluetooth using a smartphone device.
In Reference [31], a fall detection wearable device was proposed based on an accelerometer sensor, FPGA, and Zigbee wireless protocol.A low-cost algorithm was implemented in FPGA to detect the fall event.Zigbee sends raw data about the fall to an outside computing board for data analysis every 100 ms.The power consumption of the wearable device is minimized with the sleep/wake scheme, where Zigbee is activated only when a fall event happens.Otherwise, it is deactivated to conserve the energy of the wearable device.The power consumption of Zigbee was approximately 190 and 9 mW in active and deactivate modes, respectively.In Reference [32], a wearable elderly fall detection prototype was designed and presented.A novel algorithm was implemented inside a microcontroller to detect the fall of a subject.A wearable system relay on the sensor node includes a three-axis accelerometer, a microcontroller, and the Zigbee wireless protocol.Subject fall detection data could be transmitted to the gateway (i.e., portable computer) via Zigbee.Experimental results indicate that the system had 96.25% accuracy, sensitivity of 98.75%, and specificity of 94.38%.However, the power consumption of the sensor node increased once the sampling rate was set to 100 Hz.
Recently, the authors of Reference [33] studied the best location of fall detection sensors (i.e., gyroscope, accelerometer, and magnetometer) on a patients' body to ensure a minimum number of sensor nodes in the proposed system, and employed Zigbee for data transmission.The authors concluded that the waist is the best location for a single fall detection sensor, achieving 99.96% sensitivity based on the k-NN algorithm.In Reference [34], a homecare system was designed and implemented for fall detection and localization in a hospital.A tri-axial accelerometer was employed for fall detection, and the fall algorithm was embedded in a microcontroller for analyzing the accelerometer measurements.The proposed homecare system wakes up every second (taking advantage of the internal interruption of the microcontroller) to transmit the fall and location information to nursing staff through the IEEE 802.15.4 standard.
The k-NN algorithm was presented in Reference [35] to develop a smartphone device for fall detection and warning.The proposed system consists of a smartphone and a wearable motion sensor platform integrated with a gyroscope, a three-axis accelerometer, a microcontroller, and a Bluetooth module.The proposed system was tied to a custom T-shirt worn by the elderly people to measure the angular velocity and acceleration of their daily living activities in real time.The velocity and acceleration data were sent via Bluetooth to a smartphone, which engages a program relay on the kNN algorithm to examine data and sense falls in the background.The smartphone then sent messages to the health center via the GSM network.A high fall detection accuracy of 97.7% was obtained, and specificity and sensitivity are 99% and 94%, respectively.In Reference [36], the physiological parameters (i.e., pulse rate, blood pressure, and temperature) of elderly people were monitored in addition to their falls.Falls were detected by a wrist sensor device, which included an accelerometer, a microcontroller, and a Bluetooth module.Physiological and fall information are sent to a tablet PC via Bluetooth to inform the medical staff about the conditions of the elderly people.Irregular conditions were automatically recognized, and warning messages were transmitted to the health center in real time.Experimental results demonstrated that the fall detection accuracy was 80%.Sensitivity and specificity were 87.5% and 75%, respectively, for a hard fall from standing position to the floor.However, the wrist sensor device was expected to consume a considerable amount of power because it continuously monitors physiological parameters and elderly falls during the test period.
An FDS based on Bluetooth module, microcontroller (ATmega88, Atmel, San Jose, CA, USA), and accelerometer (ADXL345B, Analog Devices, MA, USA) was designed and implemented by Oporto and Vilcahuaman [37].The Bluetooth module sent an alert signal about the fall event through a mobile telephone that then transmitted an SMS to a health center or ambulance to request medical assistance.Low-power components were selected to reduce the overall power consumption of the FDS.A gyroscope and a three-axis accelerometer were integrated into a wearable sensor system (WSS) in Reference [38] to detect the fall of elderly adults.The WSS includes sensor modules (i.e., gyroscope and three-axis accelerometer), a microcontroller unit module, and a Wi-Fi module.The WSS was located on the chest of the subject to gather real-time motion information on daily activities such as walking, stepping, running, and falling.A detection algorithm was developed to precisely identify the activities of the elderly.The WSS transmitted the subject fall information to the receiving computer for real-time analysis of angular velocity and acceleration.Experimental results indicated that the proposed algorithm detects the subject's fall relative to other daily activities with a sensitivity of 96.3% and a specificity of 96.2%.However, the power consumption of the module (i.e., Wifly RN131) was still high and consumed 40 mA in receiving mode and 210 mA in transmitting mode [39].
Currently, smartphone devices that comprise a wide set of implanted components include several sensors such as accelerometers, digital compasses, microphones, cameras, GPS, and gyroscope components.Wearable equipment and the acceleration measurement for fall detection can be supported because of the gradual decrease in smartphone cost.Accordingly, several smartphone devices have been used for fall detection over the last few years, such as in References [40][41][42][43][44][45][46][47][48].However, in Reference [40], extra power was consumed by the Android monitoring system, as indicated by battery drain analysis in an assessment of the feasibility of FDSs [40].The location of the subject was estimated based on tag and cellular localization [49] inside a hospital because localization accuracy is less critical in homecare systems.The objective of localization is to determine the presence of the subject in a particular area inside the hospital.Results indicated that fall sensitivity and specificity were 98.33% and 97.77%, respectively.The homecare monitoring system functioned for 3 weeks or approximately 490 h and could constantly monitor two elderly persons round the clock.
In Reference [50], a novel fall detection algorithm was developed to monitor movements and to distinguish a fall from regular daily activities of patients using a wearable device.In case the patient falls, the wearable device automatically transmits the patient's location and requests caregivers for assistance.The software and hardware investigation of the wearable device essentially relied on a single accelerometer, microcontroller, GPS, and GSM module.An efficient fall detection quaternion algorithm was designed for outdoor applications with minimal resources.The wearable device was designed to work for 2 days only.Other approaches used to detect fall incidents are the use of a camera and SVM [51][52][53].In Reference [51], the proposed FDS differs from others because it can work even in dark conditions.SVM was employed to determine if fall motion occurs.On the basis of the SVM method, the proposed method outperformed state-of-the-art methods in terms of accuracy (97.6%), with sensitivity and specificity of 95.3% and 100%, respectively.Some studies such as References [54][55][56] adopted multiple-input multiple-output array [50] and Doppler radar [51,52] to sense and identify elderly fall and no-fall situations.However, the radar method has the following limitations and challenges: (i) it responds to any movement from other humans or non-human sources; (ii) the radar is exposed to jitter, which generates time-dependent additional noise and false person tracking; (iii) the detected person must be within the position of the antenna beam width; (iv) the reflected signal caused by the target is blocked by furniture; and (v) the person detection distance might represent a restriction, where the reflected signal is weak when the distance is increased [56].A novel approach was presented in Reference [57].It used fuzzy logic to identify the range and type of elderly fall, which includes position before fall, fall direction, fall velocity, and post-fall inactivity.Fuzzy logic facilitates elderly fall detection and categorizes it into one of the potential fall patterns.In addition, fuzzy logic could reduce the restrictions in parameter evaluation to introduce flexible and smooth decisions.Experimental results show that the proposed approach could sense dynamic and beacon falls and distinguish actual falls from wrongly identified falls.
The work presented here differs from these previous studies because it combines the measurements of tilt sensor, accelerometer sensor, and shock sensor to decide whether a fall event is happening or not.If the fall is real, then the FDS sends an alert signal to the CN to ensure that proper medical care is delivered instantly.The elderly fall incident is accurately estimated based on established artificial intelligence techniques such as ANN.The ANN was considered because of its minimum localization error as well as for its efficiency and speed compared to others localization techniques such as fingerprinting techniques.Where the fingerprinting techniques require memory cost, the setup is time consuming and any variation in network configuration like the adding of a new beacon, will imply forming a new database, meaning this technique is not so flexible.The FDS includes a simple standalone microcontroller (based on ATmega328P) and Zigbee wireless protocol in addition to the above three sensors.All these elements are embedded in a single sensor node.The option of a standalone microcontroller is considered to reduce the power consumption of the proposed system.The power consumption is significantly reduced by implementing a DDA, where the Zigbee transmits the data in the case of the subject falling and sleeps the rest of the time.Moreover, the size, weight, and complexity of the proposed system are minimized.

Wireless Sensor Network for Elderly Fall Detection
The proposed elderly fall and localization WSN topology is applied in two indoor environment scenarios, namely, LOS and NLOS.A test area with a size of 40 × 30 m 2 is the location for the trial implementation of the system, as shown in Figure 1.The WSN consists of six nodes; three beacon nodes (N1, N2, and N3), a sensor node (i.e., FDS), a router node (RN), and CN or sink node.Each beacon node includes Zigbee wireless protocols (XBee Series 2) powered from the main source, eliminating concerns about power consumption.The beacon nodes N1, N2, and N3 are fixed at the coordinates (0, 0), (0, 30), and (40,15), respectively, to allow the collection of different RSSI values for ANN training, testing, and validation as shown in Figure 1.The beacon nodes are fixed on a surface 1.5 m above the ground to avoid the effect of the boundary of the first Fresnel Zone, h O (h O = 0.5

√ λd).
Where, in the current work, λ is the wavelength of the transmitted signal of the adopted 2.4 GHz wireless protocol and d is the distance between the antennae of the beacons and the sensor node (carried by the subject).The ground-reflected signal is available in the first Fresnel zone when h O is greater than or equal to the antenna height.The ground-reflected path has a significant effect on the power of the received signal [58].For 2.45 GHz, h O is 0.125 m at a distance of 0.5 m between beacons and the subject, 0.958 m at a distance of 30 m, and 1.24 m at a distance of 40 m.Consequently, the height of the beacons nodes must be greater than 1.24 m, and thus the signal from the beacons can arrive intact at the sensor node.
person to remote locations through the Internet of Things platform, as shown in Figure 1.
The FDS is shown in Figures 2 and 3, and introduces a simple hardware implementation which includes minimal interface and connection between sensors to the microcontroller and the wireless protocol.The digital tilt sensor and the shock sensor each have three connection pins for a physical interface with the microcontroller: supply voltage, ground, and output.Two pins are utilized to power the sensors with +3.3 V and the third pin is the digital and analog serial output signal for a tilt sensor and shock sensor, respectively.However, the accelerometer sensor requires two extra pins compared to the tilt and shock sensors.The microcontroller of the sensor node of the FDS is connected with the XBee S2 module via two pins, one for the data bus and the other for activating the XBee S2.The design of the router node is very simple, needing only to pass data from the sensor node to the coordinator node through the pin for the receive data (Rx) to the pin of the transmit data (Tx) using one wire.The XBee S2 of the coordinator node is connected to the PC though an Arduino microcontroller using the USB cable.It is clear that the structure of the FDS is uncomplicated.The FDS shown in Figure 2 is wrapped around the waist of the subject, as shown in the snapshot in Figure 3a.The FDS comprises a tilt sensor (mercury switch), accelerometer sensor (ADXL 355B), shock sensor, microcontroller ATmega328P as a barebones unit to reduce the power consumption of the FDS, Zigbee wireless protocol (XBee Series 2), and a power unit (i.e., 3.7 V/1000 mAh rechargeable battery), as illustrated in Figure 3b.The RN is fixed on the ceiling in the middle of the hall to ensure communication with the FDS and the CN.All the distances between nodes in the network lie within the range of the XBee Series 2, which can achieve a 100 m communication range between two nodes [59].
The RN passes all fall and location information of the subject to the CN.The CN monitors the activities (fall and location) of the elderly person and sends the data to the caregiver during emergency cases.The CN can be connected to the gateway to transmit the information of the elderly person to remote locations through the Internet of Things platform, as shown in Figure 1.
The FDS shown in Figure 2 is wrapped around the waist of the subject, as shown in the snapshot in Figure 3a.The FDS comprises a tilt sensor (mercury switch), accelerometer sensor (ADXL 355B), shock sensor, microcontroller ATmega328P as a barebones unit to reduce the power consumption of the FDS, Zigbee wireless protocol (XBee Series 2), and a power unit (i.e., 3.7 V/1000 mAh rechargeable battery), as illustrated in Figure 3b.The RN is fixed on the ceiling in the middle of the hall to ensure communication with the FDS and the CN.All the distances between nodes in the network lie within the range of the XBee Series 2, which can achieve a 100 m communication range between two nodes [59].The RN passes all fall and location information of the subject to the CN.The CN monitors the activities (fall and location) of the elderly person and sends the data to the caregiver during emergency cases.The CN can be connected to the gateway to transmit the information of the elderly person to remote locations through the Internet of Things platform, as shown in Figure 1.
The FDS is shown in Figures 2 and 3, and introduces a simple hardware implementation which includes minimal interface and connection between sensors to the microcontroller and the wireless protocol.The digital tilt sensor and the shock sensor each have three connection pins for a physical interface with the microcontroller: supply voltage, ground, and output.Two pins are utilized to power the sensors with +3.3 V and the third pin is the digital and analog serial output signal for a tilt sensor and shock sensor, respectively.However, the accelerometer sensor requires two extra pins compared to the tilt and shock sensors.The microcontroller of the sensor node of the FDS is connected with the XBee S2 module via two pins, one for the data bus and the other for activating the XBee S2.The design of the router node is very simple, needing only to pass data from the sensor node to the coordinator node through the pin for the receive data (Rx) to the pin of the transmit data (Tx) using one wire.The XBee S2 of the coordinator node is connected to the PC though an Arduino microcontroller using the USB cable.It is clear that the structure of the FDS is uncomplicated.The FDS is shown in Figures 2 and 3, and introduces a simple hardware implementation which includes minimal interface and connection between sensors to the microcontroller and the wireless protocol.The digital tilt sensor and the shock sensor each have three connection pins for a physical interface with the microcontroller: supply voltage, ground, and output.Two pins are utilized to power Energies 2018, 11, 2866 9 of 32 the sensors with +3.3 V and the third pin is the digital and analog serial output signal for a tilt sensor and shock sensor, respectively.However, the accelerometer sensor requires two extra pins compared to the tilt and shock sensors.The microcontroller of the sensor node of the FDS is connected with the XBee S2 module via two pins, one for the data bus and the other for activating the XBee S2.The design of the router node is very simple, needing only to pass data from the sensor node to the coordinator node through the pin for the receive data (Rx) to the pin of the transmit data (Tx) using one wire.The XBee S2 of the coordinator node is connected to the PC though an Arduino microcontroller using the USB cable.It is clear that the structure of the FDS is uncomplicated.

Indoor Environment
The simulation was performed in the test area, as shown in Figure 4a,b.The two figures show the WSN topology explained in the previous section.The elderly subject carried the FDS and moved in a rectangular path inside the test area.Two scenarios, namely, LOS and NLOS, were considered in this study.The LOS scenario is shown in Figure 4a.The test area was proposed to be empty to ensure direct barrier-free communication between nodes in the network.The same area and subject path of LOS was adopted in the NLOS scenario illustrated in Figure 4b for a fair comparison of localization error.However, many obstacles or barriers such as walls, windows, and doors were proposed in the NLOS environment, as shown in Figure 4b.The FDS collected the fall information and raw data of the RSSI from three beacon nodes and transmitted them to the CN via RN.Consequently, the CN supported by a monitoring system such as PC, tablet, and notepad can estimate the location of the fallen subject to be sent to the caregivers.

RSSI Generation
RSSI was generated based on the log-normal shadowing model (LNSM).LNSM was employed because it is a traditional wireless path loss model [60].Other studies have considered this technique for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].Other studies considered this model for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].On the basis of the path loss model in Equation ( 1), the path loss of the received signals from beacon nodes N1, N2, and N3 toward

Indoor Environment
The simulation was performed in the test area, as shown in Figure 4a,b.The two figures show the WSN topology explained in the previous section.The elderly subject carried the FDS and moved in a rectangular path inside the test area.Two scenarios, namely, LOS and NLOS, were considered in this study.The LOS scenario is shown in Figure 4a.The test area was proposed to be empty to ensure direct barrier-free communication between nodes in the network.The same area and subject path of LOS was adopted in the NLOS scenario illustrated in Figure 4b for a fair comparison of localization error.However, many obstacles or barriers such as walls, windows, and doors were proposed in the NLOS environment, as shown in Figure 4b.The FDS collected the fall information and raw data of the RSSI from three beacon nodes and transmitted them to the CN via RN.Consequently, the CN supported by a monitoring system such as PC, tablet, and notepad can estimate the location of the fallen subject to be sent to the caregivers.

Indoor Environment
The simulation was performed in the test area, as shown in Figure 4a,b.The two figures show the WSN topology explained in the previous section.The elderly subject carried the FDS and moved in a rectangular path inside the test area.Two scenarios, namely, LOS and NLOS, were considered in this study.The LOS scenario is shown in Figure 4a.The test area was proposed to be empty to ensure direct barrier-free communication between nodes in the network.The same area and subject path of LOS was adopted in the NLOS scenario illustrated in Figure 4b for a fair comparison of localization error.However, many obstacles or barriers such as walls, windows, and doors were proposed in the NLOS environment, as shown in Figure 4b.The FDS collected the fall information and raw data of the RSSI from three beacon nodes and transmitted them to the CN via RN.Consequently, the CN supported by a monitoring system such as PC, tablet, and notepad can estimate the location of the fallen subject to be sent to the caregivers.

RSSI Generation
RSSI was generated based on the log-normal shadowing model (LNSM).LNSM was employed because it is a traditional wireless path loss model [60].Other studies have considered this technique for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].Other studies considered this model for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].On the basis of the path loss model in Equation ( 1), the path loss of the received signals from beacon nodes N1, N2, and N3 toward

RSSI Generation
RSSI was generated based on the log-normal shadowing model (LNSM).LNSM was employed because it is a traditional wireless path loss model [60].Other studies have considered this technique for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].Other studies considered this model for channel modeling in outdoor and indoor surroundings to estimate the distance between the nodes in WSN [61].On the basis of the path loss model in Equation ( 1), the path loss of the received signals from beacon nodes N1, N2, and N3 toward the sensor node (i.e., FDS) was obtained as shown in Figure 5a-c, respectively, for LOS and NLOS.The figures show that the path loss increases with the distance between the beacon nodes and the sensor node.The path loss of the signal in NLOS environments is greater than that in LOS environments because the barriers present in NLOS are absent in LOS.
where the W l is the path loss power at a distance of l meter, W o is the path loss power at reference distance l o (1 m is recommended in most studies such as References [21,62,63]), and γ is the Gaussian random variable in decibels with zero-mean and standard deviation.The basic notations used in the current paper are summarized in Table 1.
Similarly, the RSSI can be generated based on the LNSM (Equations ( 2) and ( 3)) where W T is the transmitted power of the beacon node, and 2 dBm is adopted for XBee Series 2. A higher transmitted power was selected to ensure communication between the beacon nodes and the sensor node (i.e., FDS) in the adopted configuration of WSN.The RSSI raw data were collected through the moving path of the subject inside the test area.A total of 280 RSSI samples from 280 locations between each beacon node and the sensor node were recorded.A total of 840 RSSI samples were collected to train, test, and validate the ANN for subject localization without any pre-processing for the raw data.Figure 6a-c show the RSSI with respect to the distance between the sensor node and beacon nodes N1, N2, and N3, respectively.The NLOS environment clearly affected the path loss of the wireless link more than the LOS environment did.Figures 5 and 6 show convergence between the LOS and NLOS plots at close distances.However, the divergence between these plots increased with the distance because several barriers or obstacles in the path of the signal caused signal degradation.

Localization Technique
Localization techniques based on ANN can develop a complex mathematical correlation between the input and output variables.The input variables in the elderly fall detection application are the RSSI data, and the output or target variables are the elderly fall incident location x and y.ANN was used to automatically learn nonlinear approximation algorithms.Therefore, ANN is suitable for the current application where the collected RSSIs are nonlinear data.In the current work, a backpropagation (BP) neural network-based Levenberg-Marquardt (LM) algorithm was adopted for training, testing, and validating the collected data of RSSI and the elderly fall incident location.The BP-based LM was selected because it provides the smallest localization error, as confirmed in References [26,63,64], efficiency, and high convergence speed.However, it needs a large operating memory [65].In training, testing, and validation of ANN, 840 samples of RSSI raw data were used as follows: 70% (588 samples) for training, 15% (126 samples) for testing, and 15% (126 samples) for validation as recommended in References [26,66,67] to accurately determine the elderly fall and incident location for LOS and NLOS environments.Before training, testing, and validating ANN data, the numbers of inputs, outputs, hidden layers with its neurons, and learning rate must be determined.In this paper, three inputs (RSSI_N1, RSSI_N2, and RSSI_N3) and two outputs (x and y) were employed.
Several hidden layers and neurons were executed to allow the ANN to provide less time consumption and minimum fitness function (i.e., mean squared error (MSE)).Fitness function and time consumption were compromised to obtain the best number of hidden layers and neurons in ANN.The ANN was trained, tested, and validated to obtain the MSE performance for 5, 10, 15, and 20 neurons in each hidden layer for LOS and NLOS as shown in Figures 7 and 8, respectively.Several neurons in each hidden layer are implemented to allow the ANN to choose the neurons that can perform the minimum MSE and elapsed time.Figures 7d and 8d show that 20 neurons provide the

Localization Technique
Localization techniques based on ANN can develop a complex mathematical correlation between the input and output variables.The input variables in the elderly fall detection application are the RSSI data, and the output or target variables are the elderly fall incident location x and y.ANN was used to automatically learn nonlinear approximation algorithms.Therefore, ANN is suitable for the current application where the collected RSSIs are nonlinear data.In the current work, a backpropagation (BP) neural network-based Levenberg-Marquardt (LM) algorithm was adopted for training, testing, and validating the collected data of RSSI and the elderly fall incident location.The BP-based LM was selected because it provides the smallest localization error, as confirmed in References [26,63,64], efficiency, and high convergence speed.However, it needs a large operating memory [65].In training, testing, and validation of ANN, 840 samples of RSSI raw data were used as follows: 70% (588 samples) for training, 15% (126 samples) for testing, and 15% (126 samples) for validation as recommended in References [26,66,67] to accurately determine the elderly fall and incident location for LOS and NLOS environments.Before training, testing, and validating ANN data, the numbers of inputs, outputs, hidden layers with its neurons, and learning rate must be determined.In this paper, three inputs (RSSI_N1, RSSI_N2, and RSSI_N3) and two outputs (x and y) were employed.
Several hidden layers and neurons were executed to allow the ANN to provide less time consumption and minimum fitness function (i.e., mean squared error (MSE)).Fitness function and time consumption were compromised to obtain the best number of hidden layers and neurons in ANN.The ANN was trained, tested, and validated to obtain the MSE performance for 5, 10, 15, and 20 neurons in each hidden layer for LOS and NLOS as shown in Figures 7 and 8, respectively.Several neurons in each hidden layer are implemented to allow the ANN to choose the neurons that can perform the minimum MSE and elapsed time.Figures 7d and 8d show that 20 neurons provide the best performance for the ANN because they achieve a MSE of approximately 9.447 × 10 −6 (validation) and 3.447 × 10 −3 (validation) after 100 epochs for LOS and NLOS, respectively.With regards to the other neurons, 5, 10, and 15 neurons demonstrate high MSE.On the other hand, one hidden layer was trained, tested, and validated for 5, 10, 15, and 20 neurons to investigate the performance of ANN. Figure 9a,b show the performance of MSE of validation data for the LOS and NLOS using one hidden layer, respectively.The figures exhibit lower MSE performance than two hidden layers, where they achieve a MSE of 0.00195 and 0.1177 at 100 epochs for LOS and NLOS, respectively.As a result, two hidden layers, each of which includes 20 neurons, are considered in this study because it achieves lower MSE.The learning rate (LR) (i.e., LR = 0.535) was selected to achieve the minimum fitness function for indoor environments as proven in Reference [26].One-hundred iterations were chosen to reduce the time consumption of ANN.According to these parameters, the ANN architecture, shown in Figure 10, was adopted to determine the elderly fall location.The mean absolute error (MAE) was utilized as a fitness function of the ANN algorithm to evaluate the localization error in x and y locations as illustrated in Equations ( 4)- (6).
where n is the number of tested samples (i.e., 280 samples for each input), x actual and y actual are the actual locations for the x and y coordinates, and x estimated and y estimated are the estimated locations for x and y coordinates obtained from ANN.The details of the ANN process based on the previous description and equations are presented in the flow diagram in Figure 11., LR = 0.535) was selected to achieve the minimum fitness function for indoor environments as proven in Reference [26].One-hundred iterations were chosen to reduce the time consumption of ANN.According to these parameters, the ANN architecture, shown in Figure 10, was adopted to determine the elderly fall location.The mean absolute error (MAE) was utilized as a fitness function of the ANN algorithm to evaluate the localization error in x and y locations as illustrated in Equations ( 4)-( 6).
where n is the number of tested samples (i.

Fall Detection and Data-Driven Algorithm
S-BFDA and DDA are merged into one algorithm (Algorithm 1) and launched inside the microcontroller to reduce the power consumption and computational process of the sensor node microcontroller.Algorithm 1 shows the S-BFDA as dashed-line boxes and DDA as dash-dot boxes.The S-BFDA is based on the threshold of the (i) tilt sensor, (ii) angle of incidence, and (iii) shock to the ground when their peak values are above or below the threshold.The tilt sensor sends an interrupt digital signal (Logic 1) to activate the microcontroller once the elderly fall happens in one of the following situations: (i) backward fall, (ii) forward fall, (iii) right-side fall, and (v) left-side fall.The microcontroller in turn activates the accelerometer and shock sensors by supplying them with power and sends a digital control signal to awaken the Zigbee.On the basis of Cartesian coordinates xyz for the subject shown in Figure 12, the accelerometer sensor can be used to measure the angle of fall θ(t) of the subject by applying Equation (7) [68,69].
where ax(t), ay(t), and az(t) are the accelerations along the x, y, and z axes, respectively.The microcontroller in turn activates the accelerometer and shock sensors by supplying them with power and sends a digital control signal to awaken the Zigbee.On the basis of Cartesian coordinates xyz for the subject shown in Figure 12, the accelerometer sensor can be used to measure the angle of fall θ(t) of the subject by applying Equation (7) [68,69].
where a x (t), a y (t), and a z (t) are the accelerations along the x, y, and z axes, respectively.

Fall Detection and Data-Driven Algorithm
S-BFDA and DDA are merged into one algorithm (Algorithm 1) and launched inside the microcontroller to reduce the power consumption and computational process of the sensor node microcontroller.Algorithm 1 shows the S-BFDA as dashed-line boxes and DDA as dash-dot boxes.The S-BFDA is based on the threshold of the (i) tilt sensor, (ii) angle of incidence, and (iii) shock to the ground when their peak values are above or below the threshold.The tilt sensor sends an interrupt digital signal (Logic 1) to activate the microcontroller once the elderly fall happens in one of the following situations: (i) backward fall, (ii) forward fall, (iii) right-side fall, and (v) left-side fall.The microcontroller in turn activates the accelerometer and shock sensors by supplying them with power and sends a digital control signal to awaken the Zigbee.On the basis of Cartesian coordinates xyz for the subject shown in Figure 12, the accelerometer sensor can be used to measure the angle of fall θ(t) of the subject by applying Equation (7) [68,69].
where ax(t), ay(t), and az(t) are the accelerations along the x, y, and z axes, respectively.The shock sensor detects the elderly shock to the ground, and the tilt sensor detects the inclination of the subject during the fall.However, real-time fall detection may be compromised by false-alarm data from lying and falling positions.The S-BFDA is proposed to overcome this problem by fusing the tilt, angle, and shock measurements.Accordingly, the fall detection accuracy is satisfactory, and results indicate that the proposed FDS is energy efficient and can be used for accurate fall detection.In the proposed DDA, the components of the sensor node (i.e., sensors and Zigbee) are deactivated except for the microcontroller, which operates in low-power mode.The microcontroller continues to work in low-power mode to monitor the elderly fall on the basis of the tilt sensor.If the angle (which is derived from the accelerometer reading Equation ( 7)), shock, and tilt values exceed their threshold levels, an alert signal is sent to the CN via RN.In other words, upon a change in logic from ZERO to ONE for tilt and shock sensors and an angle of more than 45 • , the microcontroller activates the Zigbee wireless protocol to transmit the fall event.The Zigbee simultaneously measures the RSSI values of the three beacon nodes.Once the measurements are completed, the FDS transmits an alert signal, including the fall of the elderly and the collected RSSI values, to the CN via the RN.When the transmission process is complete, the FDS returns to sleep mode to save energy.The strategy of switching between wake and sleep modes will significantly improve the power consumption of the sensor node.The sensor node transmits data infrequently and briefly and sleeps most of the time.The shock sensor detects the elderly shock to the ground, and the tilt sensor detects the inclination of the subject during the fall.However, real-time fall detection may be compromised by false-alarm data from lying and falling positions.The S-BFDA is proposed to overcome this problem by fusing the tilt, angle, and shock measurements.Accordingly, the fall detection accuracy is satisfactory, and results indicate that the proposed FDS is energy efficient and can be used for accurate fall detection.In the proposed DDA, the components of the sensor node (i.e., sensors and Zigbee) are deactivated except for the microcontroller, which operates in low-power mode.The microcontroller continues to work in low-power mode to monitor the elderly fall on the basis of the tilt sensor.If the angle (which is derived from the accelerometer reading Equation ( 7)), shock, and tilt values exceed their threshold levels, an alert signal is sent to the CN via RN.In other words, upon a change in logic from ZERO to ONE for tilt and shock sensors and an angle of more than 45°, the microcontroller activates the Zigbee wireless protocol to transmit the fall event.The Zigbee simultaneously measures the RSSI values of the three beacon nodes.Once the measurements are completed, the FDS transmits an alert signal, including the fall of the elderly and the collected RSSI values, to the CN via the RN.When the transmission process is complete, the FDS returns to sleep mode to save energy.The strategy of switching between wake and sleep modes will significantly improve the power consumption of the sensor node.The sensor node transmits data infrequently and briefly and sleeps most of the time.

Power Consumption Analysis
The current and time consumption for each component of the FDS is measured by using an ampere meter for sleep and active modes, as shown in Table 2.The table illustrates the current consumption for each component of the FDS.Subsequently, the average current consumption (Iavg) of the FDS of 676 µA is acquired by applying Equations ( 8)- (10) [70].

Power Consumption Analysis
The current and time consumption for each component of the FDS is measured by using an ampere meter for sleep and active modes, as shown in Table 2.The table illustrates the current consumption for each component of the FDS.Subsequently, the average current consumption (I avg ) of the FDS of 676 µA is acquired by applying Equations ( 8)-( 10) [70].
where I Avg_TL , I Avg_ACC , I Avg_SH , I Avg_MR , and I Avg_ZB are the average current consumption of the tilt sensor, accelerometer sensor, shock sensor, microcontroller, and Zigbee model, respectively.The average current consumption of each element of the FDS can be expressed as follows: where I active and I sleep are the active and sleep current consumption of the element of the FDS, respectively.DC is the duty cycle, which can be calculated from the ratio of the active time (t active ) to the total time (T total ).The active time is at least 1 min to cover the fall detection event, and the total time is 24 h (1440 min) assuming the subject falls once a day.The sleep current of the tilt, accelerometer, and shock sensors is equal to zero because these sensors are supplied with power from the microcontroller, as shown in Algorithm 1. Accelerometer and shock sensors are supplied with power only when the elderly fall event happens.Thus, Equation (8) will become The total current consumption of the sensor node in conventional operation (i.e., without any power reduction algorithm) is approximately 41.17 mA.The total current consumption of the FDS in typical operation is significantly higher than the average current consumption of the FDS when the DDA is applied.Therefore, this algorithm appears to be promising for such applications as it extends the battery life and saves a large amount of energy.Equation (11) [71] can be used to compute the percentage of power savings of the FDS relying on DDA.As a result, the performance of the FDS in terms of power consumption is proven.

Fall Detection Results
Multiple fall positions have been adopted to evaluate the performance of the S-BFDA, as shown in Figure 13.First, the data from the accelerometer, shock, and tilt sensors was collected in the standing position.The sensor data was then recorded during backward/forward, right-side, and left-side falls.We found no data from the sensors in the first case (Figure 13a).By contrast, fall information was generated by the sensors in other fall cases, as shown in Figure 13b-d.The fall detection information (i.e., inclination angle) and the RSSI values of the three beacon nodes were transmitted to the CN using the Zigbee wireless protocol via router node to be viewed on a PC.The fall detection information can be plotted in real time using the MakerPlot data acquisition software [72], as shown in Figure 14.
The figure shows that 7 s are required from standing to the fall case.
payload consists of 11 bytes and 31 out of 42 bytes for overhead.The payload bytes, namely, (i) four bytes for identification of the beacon nodes and angle of fall, (ii) two bytes for RSSI1 value of the N1 node, (iii) two bytes for RSSI2 value of the N2 node, (iv) two bytes for RSSI3 value of the N3 node, and (iv) two bytes for angle of fall.The data rate of the ZigBee is 250 Kbps, and therefore the transmission time (tx) of XBee S2 can be calculated based on Equation (11).Consequently, the active transmission time for ZigBee in the sensor node of the FDS is 11.554 ms.Given that, the time from the standing case to the fall case is 7 s as shown in Figure 11, therefore the total time required for transmitting alarm information and localization is 7.11554 s.
where tSW is the transient time of ZigBee from sleep mode to active mode.XBee S2 consumes 10.2 ms when hibernate pin sleep is used.l is the data packet length (i.e., 42 = 336 bits) of XBee S2 in bits, and S is the XBee S2 data rate.
The experiment was conducted in LOS and NLOS because daily activities occur in both environments.Such a procedure was adopted to observe the effects of these surroundings and evaluate the accuracy of the proposed system.Therefore, the accuracy of the elderly fall location is 100% (all 40 fall events were detected for LOS) and 92.5% (3 out of 40 fall events were deviant for NLOS) as illustrated in Table 3.These results are expected because of path loss increases, and the received power attenuates with distances more in NLOS than in LOS, as seen in Figures 5 and 6.

Elderly Localization Results
Two scenarios were implemented to investigate the localization of the subject on the basis of Zigbee WSN using a MATLAB simulation.The first scenario was conducted in the LOS environment, and the other scenario was applied in the NLOS environment.

LOS Environment
The performance of ANN can be evaluated based on the regression line and MSE. Figure 15 shows the correlation between the actual locations (i.e., target, which represents pre-defined locations) on the x-axis and estimated locations (i.e., output obtained from ANN) on the y-axis for training, testing, validation, and all data.The regression coefficient (R) in the figure can be adopted in evaluating the elderly fall localization accuracy of the estimated location.The figure reveals that the correlation between the actual and estimated locations agree with each other for all cases.The R shows a linear fit, and its value is 1. Figure 16 shows the development of the MSE of the ANN during the training, testing, and validation phases.The MSEs at the final point (i.e., 100 epochs) are 2.287 × 10 −6 , 4.929 × 10 −6 , and 2.841 × 10 −6 for training (dash), testing (dot), and validation (dash-dot), respectively.The performance of the training data is lower than the goal set (i.e., 2.841 × 10 −6 ) beyond The data packet structure of the ZigBee consists of 127 bytes maximum, 31 bytes (overhead) and 96 (payload) [70].In our application, the transmitted data packet length of FDS includes 42 bytes.The payload consists of 11 bytes and 31 out of 42 bytes for overhead.The payload bytes, namely, (i) four bytes for identification of the beacon nodes and angle of fall, (ii) two bytes for RSSI1 value of the N1 node, (iii) two bytes for RSSI2 value of the N2 node, (iv) two bytes for RSSI3 value of the N3 node, and (iv) two bytes for angle of fall.The data rate of the ZigBee is 250 Kbps, and therefore the transmission time (t x ) of XBee S2 can be calculated based on Equation (11).Consequently, the active transmission time for ZigBee in the sensor node of the FDS is 11.554 ms.Given that, the time from the standing case to the fall case is 7 s as shown in Figure 11, therefore the total time required for transmitting alarm information and localization is 7.11554 s.
where t SW is the transient time of ZigBee from sleep mode to active mode.XBee S2 consumes 10.2 ms when hibernate pin sleep is used.l is the data packet length (i.e., 42 = 336 bits) of XBee S2 in bits, and S is the XBee S2 data rate.
The experiment was conducted in LOS and NLOS because daily activities occur in both environments.Such a procedure was adopted to observe the effects of these surroundings and evaluate the accuracy of the proposed system.Therefore, the accuracy of the elderly fall location is 100% (all 40 fall events were detected for LOS) and 92.5% (3 out of 40 fall events were deviant for NLOS) as illustrated in Table 3.These results are expected because of path loss increases, and the received power attenuates with distances more in NLOS than in LOS, as seen in Figures 5 and 6.

Elderly Localization Results
Two scenarios were implemented to investigate the localization of the subject on the basis of Zigbee WSN using a MATLAB simulation.The first scenario was conducted in the LOS environment, and the other scenario was applied in the NLOS environment.

LOS Environment
The performance of ANN can be evaluated based on the regression line and MSE. Figure 15 shows the correlation between the actual locations (i.e., target, which represents pre-defined locations) on the x-axis and estimated locations (i.e., output obtained from ANN) on the y-axis for training, testing, validation, and all data.The regression coefficient (R) in the figure can be adopted in evaluating the elderly fall localization accuracy of the estimated location.The figure reveals that the correlation between the actual and estimated locations agree with each other for all cases.The R shows a linear fit, and its value is 1. Figure 16 shows the development of the MSE of the ANN during the training, testing, and validation phases.The MSEs at the final point (i.e., 100 epochs) are 2.287 × 10 −6 , 4.929 × 10 −6 , and 2.841 × 10 −6 for training (dash), testing (dot), and validation (dash-dot), respectively.The performance of the training data is lower than the goal set (i.e., 2.841 × 10 −6 ) beyond 85 epochs, as shown in Figure 16, implying a successful end of the suggested ANN.The performance plot indicates the following: (i) a small MSE, (ii) the validating MSE is better than the testing MSE, and (iii) no overfitting during testing and validation.
Figure 17 shows the histogram errors for the ANN model of training (blue bar), testing (red bar), and validation (black bar) data.Outliers can be employed to define the quality of the specified data.In the proposed system, a large amount of collected data (i.e., 840 RSSI values) are considered for training, testing, and validation to improve the localization accuracy and neural network operation.Each input of the neural network employs 280 RSSI values.Hence, few outlier data points are observed in the histogram plot (Figure 17).More errors are distributed between −0.00391 and 0.00417.However, the highest errors for training and testing data points are 0.00659 and 0.00901, respectively, relative to the rest of the dataset errors.The minimum error of 0.000132 is concentrated at 135 bins for the three types of dataset.Forty-two out of 280 positions were used to estimate the elderly fall location in evaluating the subject localization based on ANN.A total of 280 RSSI values collected from each beacon node were used for training (70%), testing (15%), and validating (15%) the neural network.After training, the ANN was employed for testing and validation to locate 42 unknown positions (the approximate spacing between positions is of the order of 3 m) in the 30 × 40 m 2 test area, as shown in Figure 18.
The figure shows the estimated and actual locations of 42 positions represented by circle and square symbols, respectively.Minimal difference between the actual and the estimated locations was observed.The MAE was approximately 0.0094 m for LOS environments.As a result, the suggested localization technique can produce accurate elderly fall localization.Figure 19a,b show the errors in the x-axis and y-axis, respectively.Both figures show small estimated errors for x and y locations, as obtained from ANN.

NLOS Environment
Similar to LOS environments, the same procedures can be adopted to evaluate the performance of ANN and the localization accuracy of elderly fall in NLOS environments.The performance of ANN can be estimated based on R and MSE. Figure 20 shows the correlation between the actual (i.e., target, which represents pre-defined locations) and estimated locations (i.e., output obtained from ANN) for training, testing, validation, and all data.The figure reveals that the correlation between the actual and estimated locations slightly deviates from each other, with its value being 0.997 for all cases.Figure 21 shows the MSE of ANN during the training, testing, and validation stages.The MSEs at the final point (i.e., 100 epochs) are 4 × 10 −3 , 5.607 × 10 −3 , and 4.648 × 10 −3 for training (dash), testing (dot), and validation (dash-dot), respectively.The performance of the training data is lower than the goal set (i.e., 4.648 × 10 −3 ) beyond 90 epochs as shown in Figure 21, implying a successful end of training of the suggested ANN.The performance plot in terms of MSE indicates that MSE is small, the validation MSE is better than the testing MSE, and no overfitting occurred during the validation and testing process.Figure 22 shows the histogram errors for the ANN model of training (blue), testing (red), and validation (black) data.Outliers can be employed to define the quality of the specified data.The number of collected data of the NLOS is similar to that used in LOS environments.Hence, a small number of outlier data points are detected in the histogram plot (Figure 22).More errors are distributed between −0.1849 and 0.1888.However, the highest error of 0.1888 was observed for training, testing, and validation data.The minimum error of −0.0079 is concentrated at 123 bins for the three types of datasets.
Forty-two out of 280 positions were used to estimate the elderly fall location and evaluate the subject localization based on ANN.A total of 280 RSSI values collected from each beacon node were used for training (70%), testing (15%), and validating (15%) the neural network.After training, ANN

NLOS Environment
Similar to LOS environments, the same procedures can be adopted to evaluate the performance of ANN and the localization accuracy of elderly fall in NLOS environments.The performance of ANN can be estimated based on R and MSE. Figure 20 shows the correlation between the actual (i.e., target, which represents pre-defined locations) and estimated locations (i.e., output obtained from ANN) for training, testing, validation, and all data.The figure reveals that the correlation between the actual and estimated locations slightly deviates from each other, with its value being 0.997 for all cases.Figure 21 shows the MSE of ANN during the training, testing, and validation stages.The MSEs at the final point (i.e., 100 epochs) are 4 × 10 −3 , 5.607 × 10 −3 , and 4.648 × 10 −3 for training (dash), testing (dot), and validation (dash-dot), respectively.The performance of the training data is lower than the goal set (i.e., 4.648 × 10 −3 ) beyond 90 epochs as shown in Figure 21, implying a successful end of training of the suggested ANN.The performance plot in terms of MSE indicates that MSE is small, the validation MSE is better than the testing MSE, and no overfitting occurred during the validation and testing process.Figure 22 shows the histogram errors for the ANN model of training (blue), testing (red), and validation (black) data.Outliers can be employed to define the quality of the specified data.The number of collected data of the NLOS is similar to that used in LOS environments.Hence, a small number of outlier data points are detected in the histogram plot (Figure 22).More errors are distributed between −0.1849 and 0.1888.However, the highest error of 0.1888 was observed for training, testing, and validation data.The minimum error of −0.0079 is concentrated at 123 bins for the three types of datasets.
Forty-two out of 280 positions were used to estimate the elderly fall location and evaluate the subject localization based on ANN.A total of 280 RSSI values collected from each beacon node were used for training (70%), testing (15%), and validating (15%) the neural network.After training, ANN

NLOS Environment
Similar to LOS environments, the same procedures can be adopted to evaluate the performance of ANN and the localization accuracy of elderly fall in NLOS environments.The performance of ANN can be estimated based on R and MSE. Figure 20 shows the correlation between the actual (i.e., target, which represents pre-defined locations) and estimated locations (i.e., output obtained from ANN) for training, testing, validation, and all data.The figure reveals that the correlation between the actual and estimated locations slightly deviates from each other, with its value being 0.997 for all cases.Figure 21 shows the MSE of ANN during the training, testing, and validation stages.The MSEs at the final point (i.e., 100 epochs) are 4 × 10 −3 , 5.607 × 10 −3 , and 4.648 × 10 −3 for training (dash), testing (dot), and validation (dash-dot), respectively.The performance of the training data is lower than the goal set (i.e., 4.648 × 10 −3 ) beyond 90 epochs as shown in Figure 21, implying a successful end of training of the suggested ANN.The performance plot in terms of MSE indicates that MSE is small, the validation MSE is better than the testing MSE, and no overfitting occurred during the validation and testing process.Figure 22 shows the histogram errors for the ANN model of training (blue), testing (red), and validation (black) data.Outliers can be employed to define the quality of the specified data.The number of collected data of the NLOS is similar to that used in LOS environments.Hence, a small number of outlier data points are detected in the histogram plot (Figure 22).More errors are distributed between −0.1849 and 0.1888.However, the highest error of 0.1888 was observed for training, testing, and validation data.The minimum error of −0.0079 is concentrated at 123 bins for the three types of datasets.
Energies 2018, 11, x FOR PEER REVIEW 21 of 32 as shown in Figure 23.The figure shows the estimated and actual locations of 42 positions represented by circle and square symbols, respectively.Some circles that represent the estimated locations lie far from the actual location (square symbol).The MAE is approximately 0.0454 m for NLOS environments.As a result, the proposed localization technique can produce precise elderly fall localization.Figure 24a,b show the errors in the x-axis and y-axis, respectively.Both figures show relatively small estimated errors for x and y positions obtained from ANN.However, the elderly fall localization error in LOS environments is better than that in NLOS environments in terms of MAE. (

Power Consumption Estimation Results
DDA can reduce the power consumption of the FDS to 676 µA.As a result, the sensor node battery life can be prolonged to 1480 h (62 days) by using a lithium-ion battery with a capacity of 3.7 V/1000 mAh.Consequently, power savings of 98% can be achieved for the FDS by applying Equation (11).The current consumption based on DDA is lower than that of traditional operation (without the DDA), which yields a total current consumption of 41.17 mA.A relationship between battery capacity (on the x-axis) and estimated battery life (on the y-axis) can be established, as shown in Figure 25.The figure shows two dash-dot and dashed curves.The dashed curve represents the life of the FDS in traditional operation (without DDA), whereas the dash-dot curve represents the estimated battery life of the FDS based on DDA.The figure reveals that the power consumption of the FDS is significantly improved by using DDA.

Power Consumption Estimation Results
DDA can reduce the power consumption of the FDS to 676 µA.As a result, the sensor node battery life can be prolonged to 1480 h (62 days) by using a lithium-ion battery with a capacity of 3.7 V/1000 mAh.Consequently, power savings of 98% can be achieved for the FDS by applying Equation (11).The current consumption based on DDA is lower than that of traditional operation (without the DDA), which yields a total current consumption of 41.17 mA.A relationship between battery capacity (on the x-axis) and estimated battery life (on the y-axis) can be established, as shown in Figure 25.The figure shows two dash-dot and dashed curves.The dashed curve represents the life of the FDS in traditional operation (without DDA), whereas the dash-dot curve represents the estimated battery life of the FDS based on DDA.The figure reveals that the power consumption of the FDS is significantly improved by using DDA.

Power Consumption Estimation Results
DDA can reduce the power consumption of the FDS to 676 µA.As a result, the sensor node battery life can be prolonged to 1480 h (62 days) by using a lithium-ion battery with a capacity of 3.7 V/1000 mAh.Consequently, power savings of 98% can be achieved for the FDS by applying Equation (11).The current consumption based on DDA is lower than that of traditional operation (without the DDA), which yields a total current consumption of 41.17 mA.A relationship between battery capacity (on the x-axis) and estimated battery life (on the y-axis) can be established, as shown in Figure 25.The figure shows two dash-dot and dashed curves.The dashed curve represents the life of the FDS in traditional operation (without DDA), whereas the dash-dot curve represents the estimated battery life of the FDS based on DDA.The figure reveals that the power consumption of the FDS is significantly improved by using DDA.

Power Consumption Estimation Results
DDA can reduce the power consumption of the FDS to 676 µA.As a result, the sensor node battery life can be prolonged to 1480 h (62 days) by using a lithium-ion battery with a capacity of 3.7 V/1000 mAh.Consequently, power savings of 98% can be achieved for the FDS by applying Equation (11).The current consumption based on DDA is lower than that of traditional operation (without the DDA), which yields a total current consumption of 41.17 mA.A relationship between battery capacity (on the x-axis) and estimated battery life (on the y-axis) can be established, as shown in Figure 25.The figure shows two dash-dot and dashed curves.The dashed curve represents the life of the FDS in traditional operation (without DDA), whereas the dash-dot curve represents the estimated battery life of the FDS based on DDA.The figure reveals that the power consumption of the FDS is significantly improved by using DDA.

Comparison Results
The comparison results in this work can be divided into three types.

Comparison of Fall Detection Accuracy
Fall detection accuracy in this study depends on the environment, sensor accuracy, and sensor position.When the tilt sensor in the FDS detects an elderly fall, the Zigbee is awakened and starts to measure the data of the angle of incidence, the shock that occurs when the subject falls to the ground, and the RSSI values of the three beacon nodes.The sensor node transmits an alert signal for the elderly fall and the RSSI values to the CN via RN so that a team of caregivers can be dispatched and the elderly fall can be localized.Consequently, the accuracy of the elderly fall detection in this study is comparable to that in previous studies, as shown in Table 4.The table shows different methods or algorithms that have been used for elderly fall detection along with their accuracies, adopted wireless protocols, and sensors with related positions on the body of the elderly people, as well as the test conditions.The performance of the current work in terms of fall detection accuracy is achieved based on hardware implementation (Section 3.1) and this is validated by fall detection and data-driven algorithms (Section 3.5) and measurement of fall detection accuracy on site (Section 5.1).The comparison with other related works was accomplished based on the measurement values of previous works from the literature.The performance of accuracy of previous works is presented in detail in related works (Section 2).The fall detection accuracy in this study consistently outperforms state-of-the-art methods for LOS surroundings and is similar or superior to previous works for NLOS environments, as illustrated in Table 4.The fall detection accuracy in this study is consistent with the findings of Aziz et al. [73] and Wang et al. [74], which achieved 99.99% and 100% accuracy, respectively, based on SVM.

Comparison of Localization Errors
The proposed ANN localization technique can be compared with several studies that adopted different soft computing localization techniques in terms of MAE, such as particle bacterial foraging algorithm (BFA) and PSO [104], ANN [64,[105][106][107][108][109], gravitational search algorithm hybrid with neural network (GSA-ANN) [26], PSO hybrid with neural network (PSO-ANN) [63,110], quantum swarm optimization (QPSO) [111], neuro-fuzzy (NF) and genetic fuzzy (GF) [112], and extreme learning machine (ELM) [113] for indoor environments, as shown in Figure 26.The performance of the current work in terms of MAE is achieved based on the methodology that has been presented in Section 3.2 through 3.5, and this is validated by simulation implementation (Section 3.2) and simulation results (Section 5.2) for LOS and NLOS environments.The comparison with other related works was achieved based on the estimated values of the previous works from the literature.The performance of the MAE of previous works is presented in Figure 26.Most of these studies are similar to the current study because they use Zigbee wireless protocol and RSSI to train data on the basis of soft computing techniques.The Zigbee wireless protocol is considered in most of these works because its RSSI can be easily measured and no extra hardware is needed.For the previous techniques, the RSSI values were used as inputs to the soft computing system, whereas the sensor node location of the coordinates (x and y) or distance between nodes were considered as outputs.The adopted elderly fall ANN localization techniques of the FDS outperform the other techniques in terms of MAE, with 0.0094 and 0.0454 m for LOS and NLOS, respectively, as shown in Figure 26.In this paper, a minimum localization error was obtained based on simulation in Matlab.However, in a real environment, the localization error is expected to be higher than the simulation results.These results are better than the requirements for the elderly localization system reported by Wang et al. [114], where the localization accuracy ranged between 0.5 and 1 m in terms of MAE.In addition, the root mean-squared error (RMSE) in the current study (0.014 for LOS and 0.0402 for NLOS) is significantly superior to that in Kianoush et  work in terms of MAE is achieved based on the methodology that has been presented in Section 3.2 through 3.5, and this is validated by simulation implementation (Section 3.2) and simulation results (Section 5.2) for LOS and NLOS environments.The comparison with other related works was achieved based on the estimated values of the previous works from the literature.The performance of the MAE of previous works is presented in Figure 26.Most of these studies are similar to the current study because they use Zigbee wireless protocol and RSSI to train data on the basis of soft computing techniques.The Zigbee wireless protocol is considered in most of these works because its RSSI can be easily measured and no extra hardware is needed.For the previous techniques, the RSSI values were used as inputs to the soft computing system, whereas the sensor node location of the coordinates (x and y) or distance between nodes were considered as outputs.The adopted elderly fall ANN localization techniques of the FDS outperform the other techniques in terms of MAE, with 0.0094 and 0.0454 m for LOS and NLOS, respectively, as shown in Figure 26.In this paper, a minimum localization error was obtained based on simulation in Matlab.However, in a real environment, the localization error is expected to be higher than the simulation results.These results are better than the requirements for the elderly localization system reported by Wang et al. [114], where the localization accuracy ranged between 0.5 and 1 m in terms of MAE.In addition, the root meansquared error (RMSE) in the current study (0.014 for LOS and 0.0402 for NLOS) is significantly superior to that in Kianoush et al. (0.3) [101].

Power Consumption Comparison
The proposed FDS that uses DDA can be compared with state-of-the-art methods to assess the performance of the suggested system.The performance of the presented work in terms of current drain is achieved based on the methodology that has been presented in Sections 3.5 and 4 and this is validated by hardware implementation (Section 3.1) and estimated battery life (Section 5.3) based on current consumption measurements in Section 4. The comparison with other related works was accomplished based on the measurement values of the previous works from the literature.The performance of the average current consumption of previous works is presented in related works (Section 2) and in Figure 27.The previous works are plotted on the x-axis, and the estimated battery life of the sensor node is plotted on the y-axis, as shown in Figure 27.For a fair comparison between the proposed FDS and previous works [24,50,68,71,87,90,[115][116][117][118][119][120][121], the battery life of the proposed systems in the previous works was recalculated based on 1000 mAh.Most of these works are similar to our proposed system because they use different fall detection algorithms to monitor elderly fall events or activities.These articles used different wireless protocols such as Zigbee, WiFi, Bluetooth, and GSM modems to transmit elderly fall events or human activities from the sensor node (worn by the elderly subject) to the sink node.Clearly, the proposed FDS based on DDA outperforms previous systems in terms of battery life, which is extended to 1480 h (62 days), as shown in Figure 27.

Power Consumption Comparison
The proposed FDS that uses DDA can be compared with state-of-the-art methods to assess the performance of the suggested system.The performance of the presented work in terms of current drain is achieved based on the methodology that has been presented in Sections 3.5 and 4 and this is validated by hardware implementation (Section 3.1) and estimated battery life (Section 5.3) based on current consumption measurements in Section 4. The comparison with other related works was accomplished based on the measurement values of the previous works from the literature.The performance of the average current consumption of previous works is presented in related works (Section 2) and in Figure 27.The previous works are plotted on the x-axis, and the estimated battery life of the sensor node is plotted on the y-axis, as shown in Figure 27.For a fair comparison between the proposed FDS and previous works [24,50,68,71,87,90,[115][116][117][118][119][120][121], the battery life of the proposed systems in the previous works was recalculated based on 1000 mAh.Most of these works are similar to our proposed system because they use different fall detection algorithms to monitor elderly fall events or activities.These articles used different wireless protocols such as Zigbee, WiFi, Bluetooth, and GSM modems to transmit elderly fall events or human activities from the sensor node (worn by the elderly subject) to the sink node.Clearly, the proposed FDS based on DDA outperforms previous systems in terms of battery life, which is extended to 1480 h (62 days), as shown in Figure 27.

Conclusions
This paper addresses three problems related to elderly fall detection, elderly fall localization, and sensor node power consumption.With the use of S-BFDA, an elderly fall is detected with high accuracy in LOS and NLOS environments.The elderly fall is detected by utilizing a combination of accelerometer, tilt, and shock sensors to avoid false detection.An accelerometer sensor is used to measure the inclination angle of the elderly subject during a fall.Most researchers prefer to use the accelerometer sensor because of its small size, high accuracy, and low power consumption.Moreover, it can measure the acceleration in three linear degrees of freedom, namely, x, y, and z.As a result, the proposed S-BFDA achieves 100% and 92.5% fall detection accuracy for LOS and NLOS environments, respectively.The fall detection accuracy in NLOS may increase or decrease depending on the barriers in the tested area.The ANN technique is proposed to localize the elderly fall while the subject is moving in test areas such as a hospital or house.The performance of ANN is explored in terms of MAE, where the ANN technique achieves minimum localization error.
The MAE was 0.0094 and 0.0454 m for LOS and NLOS, respectively, thereby indicating that the MAE in LOS is approximately five times better than that in NLOS environments.The FDS has limited energy resources, and its battery can be exhausted in a short time.To address this problem, an energyefficient technique (i.e., DDA) is proposed in this paper.The proposed DDA significantly minimized the power consumption and prolonged the battery life of the FDS.The FDS can work for 62 days without needing to replenish the battery unlike in existing implementations (i.e., without DDA, where the FDS can operate for one day only).Finally, the proposed S-BFDA, ANN technique, and DDA outperform previous systems in terms of accuracy, MAE, and battery life.The results indicate that the proposed system is reliable and can be used in fall detection and localization of elderly people and patients that need special care in indoor environments.For future work, several techniques can be suggested to further improve the power consumption and prolong the battery life of the FDS, as well as minimize the localization error, especially for indoor NLOS environments.The changing of patient location from one place to another can provide a future opportunity to continue the current study to further understand and capture the relevant challenges of the patient's location, especially in practical applications.

Conclusions
This paper addresses three problems related to elderly fall detection, elderly fall localization, and sensor node power consumption.With the use of S-BFDA, an elderly fall is detected with high accuracy in LOS and NLOS environments.The elderly fall is detected by utilizing a combination of accelerometer, tilt, and shock sensors to avoid false detection.An accelerometer sensor is used to measure the inclination angle of the elderly subject during a fall.Most researchers prefer to use the accelerometer sensor because of its small size, high accuracy, and low power consumption.Moreover, it can measure the acceleration in three linear degrees of freedom, namely, x, y, and z.As a result, the proposed S-BFDA achieves 100% and 92.5% fall detection accuracy for LOS and NLOS environments, respectively.The fall detection accuracy in NLOS may increase or decrease depending on the barriers in the tested area.The ANN technique is proposed to localize the elderly fall while the subject is moving in test areas such as a hospital or house.The performance of ANN is explored in terms of MAE, where the ANN technique achieves minimum localization error.
The MAE was 0.0094 and 0.0454 m for LOS and NLOS, respectively, thereby indicating that the MAE in LOS is approximately five times better than that in NLOS environments.The FDS has limited energy resources, and its battery can be exhausted in a short time.To address this problem, an energy-efficient technique (i.e., DDA) is proposed in this paper.The proposed DDA significantly minimized the power consumption and prolonged the battery life of the FDS.The FDS can work for 62 days without needing to replenish the battery unlike in existing implementations (i.e., without DDA, where the FDS can operate for one day only).Finally, the proposed S-BFDA, ANN technique, and DDA outperform previous systems in terms of accuracy, MAE, and battery life.The results indicate that the proposed system is reliable and can be used in fall detection and localization of elderly people and patients that need special care in indoor environments.For future work, several techniques can be suggested to further improve the power consumption and prolong the battery life of the FDS, as well as minimize the localization error, especially for indoor NLOS environments.The changing of patient location from one place to another can provide a future opportunity to continue the current study to further understand and capture the relevant challenges of the patient's location, especially in practical applications.

Figure 1 .
Figure 1.Topology of WSN of the subject fall and localization system.

Figure 1 .
Figure 1.Topology of WSN of the subject fall and localization system.

Figure 1 .
Figure 1.Topology of WSN of the subject fall and localization system.

Figure 3 .
Figure 3. Proposed FDS (a) fastened to the subject individual's waist, (b) its components.

Figure 3 .
Figure 3. Proposed FDS (a) fastened to the subject individual's waist, (b) its components.

Figure 3 .
Figure 3. Proposed FDS (a) fastened to the subject individual's waist, (b) its components.
e., 280 samples for each input), xactual and yactual are the actual locations for the x and y coordinates, and xestimated and yestimated are the estimated locations for x and y coordinates obtained from ANN.The details of the ANN process based on the previous description and equations are presented in the flow diagram in Figure 11.

Figure 12 .
Figure 12.Geodetic coordinates of the elderly.

3. 5 .
Fall Detection and Data-Driven Algorithm S-BFDA and DDA are merged into one algorithm (Algorithm 1) and launched inside the microcontroller to reduce the power consumption and computational process of the sensor node microcontroller.Algorithm 1 shows the S-BFDA as dashed-line boxes and DDA as dash-dot boxes.The S-BFDA is based on the threshold of the (i) tilt sensor, (ii) angle of incidence, and (iii) shock to the ground when their peak values are above or below the threshold.The tilt sensor sends an interrupt digital signal (Logic 1) to activate the microcontroller once the elderly fall happens in one of the following situations: (i) backward fall, (ii) forward fall, (iii) right-side fall, and (v) left-side fall.

Figure 12 .
Figure 12.Geodetic coordinates of the elderly.

Figure 12 .
Figure 12.Geodetic coordinates of the elderly.

Figure 14 .
Figure 14.Plot of tilt, shock, and angle measurements based on MakerPlot software.

Energies 2018 ,Figure 15 .
Figure 15.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the LOS environments.

Figure 16 .
Figure 16.Performance of MSE of training, testing, and validation data for the LOS environments.

Figure 17 .
Figure 17.Histogram errors for the ANN model of training, testing, and validation data for LOS environments.

Figure 15 .
Figure 15.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the LOS environments.

Figure 16 .
Figure 16.Performance of MSE of training, testing, and validation data for the LOS environments.

Figure 17 .
Figure 17.Histogram errors for the ANN model of training, testing, and validation data for LOS environments.

Figure 15 .
Figure 15.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the LOS environments.

Figure 16 .
Figure 16.Performance of MSE of training, testing, and validation data for the LOS environments.

Figure 17 .
Figure 17.Histogram errors for the ANN model of training, testing, and validation data for LOS environments.

Figure 19 .
Figure 19.Elderly fall location errors at LOS environments for the (a) x-axis and (b) y-axis.

Figure 20 .
Figure 20.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the NLOS environments.

Figure 21 .
Figure 21.Performance of MSE of training, testing, and validation data for the NLOS environments.

Figure 22 .
Figure 22.Histogram errors for the ANN model of training, testing, and validation data for NLOS environments.

Figure 20 .Figure 20 .
Figure 20.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the NLOS environments.

Figure 21 .
Figure 21.Performance of MSE of training, testing, and validation data for the NLOS environments.

Figure 22 .
Figure 22.Histogram errors for the ANN model of training, testing, and validation data for NLOS environments.

Figure 20 .
Figure 20.Regression coefficient (R) of the ANN algorithm for (a) training, (b) testing, (c) validation, and (d) all data for the NLOS environments.

Figure 21 .
Figure 21.Performance of MSE of training, testing, and validation data for the NLOS environments.

Figure 22 .
Figure 22.Histogram errors for the ANN model of training, testing, and validation data for NLOS environments.

Figure 22 . 32 Figure 23 .Figure 24 .
Figure 22.Histogram errors for the ANN model of training, testing, and validation data for NLOS environments.Forty-two out of 280 positions were used to estimate the elderly fall location and evaluate the subject localization based on ANN.A total of 280 RSSI values collected from each beacon node were used for training (70%), testing (15%), and validating (15%) the neural network.After training, ANN was employed for testing and validation to locate 42 unknown positions in the 30 × 40 m 2 test area, as shown in Figure 23.The figure shows the estimated and actual locations of 42 positions represented by circle and square symbols, respectively.Some circles that represent the estimated locations lie far from the actual location (square symbol).The MAE is approximately 0.0454 m for NLOS environments.As a result, the proposed localization technique can produce precise elderly fall localization.Figure 24a,b show the errors in the x-axis and y-axis, respectively.Both figures show

Figure 25 .
Figure 25.Battery capacity against estimated battery life for the FDS.

Figure 25 .
Figure 25.Battery capacity against estimated battery life for the FDS.

Figure 24 .
Figure 24.Elderly fall location errors at NLOS environments for (a) x-axis and (b) y-axis.

Figure 25 .
Figure 25.Battery capacity against estimated battery life for the FDS.

Figure 25 .
Figure 25.Battery capacity against estimated battery life for the FDS.

Figure 26 .
Figure 26.Comparison between MAE of the proposed ANN technique and previous techniques.

Figure 26 .
Figure 26.Comparison between MAE of the proposed ANN technique and previous techniques.

Figure 27 .
Figure 27.Comparison between battery life of the proposed S-BFDA and previous system.

Figure 27 .
Figure 27.Comparison between battery life of the proposed S-BFDA and previous system.
(validation) after 100 epochs for LOS and NLOS, respectively.With regards to the other neurons, 5, 10, and 15 neurons demonstrate high MSE.On the other hand, one hidden layer was trained, tested, and validated for 5, 10, 15, and 20 neurons to investigate the performance of ANN.Figure9a,bshow the performance of MSE of validation data for the LOS and NLOS using one hidden layer, respectively.The figures exhibit lower MSE performance than two hidden layers, where they achieve a MSE of 0.00195 and 0.1177 at 100 epochs for LOS and NLOS, respectively.As a result, two hidden layers, each of which includes 20 neurons, are considered in this study because it achieves lower MSE.The learning rate (LR) (i.e.

Table 2 .
Current and time consumption of each component of the FDS.

Table 3 .
Fall detection accuracy of the proposed sensor-based approach.
The MAE was approximately 0.0094 m for LOS environments.As a result, the suggested localization technique can produce accurate elderly fall localization.Figure19a,bshow the errors in the x-axis and y-axis, respectively.Both figures show small estimated errors for x and y locations, as obtained from ANN.
The MAE was approximately 0.0094 m for LOS environments.As a result, the suggested localization technique can produce accurate elderly fall localization.Figure19a,bshow the errors in the x-axis and y-axis, respectively.Both figures show small estimated errors for x and y locations, as obtained from ANN.
0 Figure 16.Performance of MSE of training, testing, and validation data for the LOS environments.
Performance of MSE of training, testing, and validation data for the NLOS environments.Figure 23.The figure shows the estimated and actual locations of 42 positions represented by circle and square symbols, respectively.Some circles that represent the estimated locations lie far from the actual location (square symbol).The MAE is approximately 0.0454 m for NLOS environments.As a result, the proposed localization technique can produce precise elderly fall localization.Figure24a,bshow the errors in the x-axis and y-axis, respectively.Both figures show relatively small estimated errors for x and y positions obtained from ANN.However, the elderly fall localization error in LOS environments is better than that in NLOS environments in terms of MAE.

Table 4 .
Comparison Between the accuracy of the adopted ANN technique and fall detection algorithms in previous studies.