Skip to main content

Spark-Based Classification Algorithms for Daily Living Activities

Part of the Advances in Intelligent Systems and Computing book series (AISC,volume 764)


Dementia is an incurable disease that affects a large part of the population of elders and more than 21% of the elders suffering from dementia are exposed to polypharmacy. Moreover, dementia is very correlated with diabetes and high blood pressure. The medication adherence becomes a big challenge that can be approached by analyzing the daily activities of the patients and taking preventive or corrective measures. The weakest link in the pharmacy chain tends to be the patients, especially the patients with cognitive impairments. In this paper we analyze the feasibility of four classification algorithms from the machine learning library of Apache Spark for the prediction of the daily behavior pattern of the patients that suffer from dementia. The algorithms are tested on two datasets from literature that contain data collected from sensors. The best results are obtained when the Random Forest classification algorithm is applied.


  • Machine learning
  • Classification algorithms
  • Daily living activities
  • Sensors
  • Elderly

This is a preview of subscription content, access via your institution.

Buying options

USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-319-91189-2_8
  • Chapter length: 10 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
USD   219.00
Price excludes VAT (USA)
  • ISBN: 978-3-319-91189-2
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   279.99
Price excludes VAT (USA)
Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.
Fig. 5.
Fig. 6.


  1. MedGUIDE.

  2. Ordonez, F.J., de Toledo, P., Sanchis, A.: Activity recognition using hybrid generative/discriminative models on home environments using binary sensors. Sensors 13(5), 5460–5477 (2013).

    CrossRef  Google Scholar 

  3. Leutheuser, H., Schuldhaus, D., Eskofier, B.M.: Hierarchical, multi-sensor based classification of daily life activities: comparison with state-of-the-art algorithms using a benchmark dataset. PLoS ONE 8(10), 1–11 (2013).

    CrossRef  Google Scholar 

  4. Ni, Q., Hernando, A.B.G., de la Cruz, I.P.: The elderly’s independent living in smart homes: a characterization of activities and sensing infrastructure survey to facilitate services development. Sensors 15(5), 11312–11362 (2015).

    CrossRef  Google Scholar 

  5. Espana-Boquera, S., Castro-Bleda, M.J., Gorbe-Moya, J., Zamora-Martinez, F.: Improving offline handwritten text recognition with hybrid HMM/ANN models. IEEE Trans. Pattern Anal. Mach. Intell. 33, 767–779 (2011).

    CrossRef  Google Scholar 

  6. Nazerfard, E., Cook, D.J.: CRAFFT: an activity prediction model based on Bayesian networks. J. Ambient Intell. Humanized Comput. 6(2), 193–205 (2015).

    CrossRef  Google Scholar 

  7. Ordonez, J., Iglesias, J.A., de Toledo, P., Ledezma, A., Sanchis, A.: Online activity recognition using evolving classifiers. Expert Syst. Appl. 40(4), 1248–1255 (2013).

    CrossRef  Google Scholar 

  8. Vail, D.L., Veloso, M.M., Lafferty, J.D.: Conditional random fields for activity recognition. In: AAMAS 2007 Proceedings of the 6th International Joint Conference on Autonomous Agents and Multiagent Systems, pp. 1–8 (2007).

  9. Lin, W., Wu, Z., Lin, L., Wen, A., Li. J.: An ensemble random forest algorithm for insurance big data analysis. IEEE Access (2017).

  10. Meng, X., Bradley, J., Yavuz, B., Sparks, E., Venkataraman, S., Liu, D., Freeman, J., Tsai, D., Amde, M., Owen, S., Xin, D., Xin, R., Franklin, M.J., Zadeh, R., Zaharia, M., Talwalkar, A.: MLlib: machine learning in apache spark. J. Mach. Learn. Res. 17(1), 1–7 (2016)

    MathSciNet  MATH  Google Scholar 

Download references


This work was supported by a grant of the Romanian National Authority for Scientific Research and Innovation, CCCDI UEFISCDI and of the AAL Programme with co-funding from the European Union’s Horizon 2020 research and innovation programme project number AAL 44/2017 within PNCDI III [1].

Author information

Authors and Affiliations


Corresponding author

Correspondence to Dorin Moldovan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2019 Springer International Publishing AG, part of Springer Nature

About this paper

Verify currency and authenticity via CrossMark

Cite this paper

Moldovan, D. et al. (2019). Spark-Based Classification Algorithms for Daily Living Activities. In: Silhavy, R. (eds) Artificial Intelligence and Algorithms in Intelligent Systems. CSOC2018 2018. Advances in Intelligent Systems and Computing, vol 764. Springer, Cham.

Download citation