Skip to main content

A public domain dataset to recognize driver entry into and exit from a car using smartphone sensors


Human activity dataset collected via smartphone sensors have been popular in identifying activities of daily living and creating situational awareness. Various classical classifiers and more recently deep learning techniques have been used over such datasets to deduce human behaviour including driver behaviour, rash driving, accident detection and road conditions. However, no public smartphone dataset exists which can help recognise driver entry and exit from a car. Such a dataset is important for early detection of driving activity and can help to activate accident detection mechanism as soon as a driver boards a car. This study presents a public dataset which records four activities viz. a driver getting IN/OUT and SITTING in/STANDING out of a car. The dataset is labeled and presented in two forms, both with and without applying feature engineering. Performance of different base and meta-level classifiers like logistic regression, linear SVC, SVM, decision tree, random forest, k-NN and gradient boosting DT is evaluated. With hyper parameter tuning the parameters of the best estimator are recorded. Classification accuracy from 86.97 to 95.33% is observed for different classifiers on the dataset.

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

Fig. 1
Fig. 2
Fig. 3

Data availability

The dataset that support the findings of this study are openly available in Mendeley Data at, reference number 10.17632/3czshz7zpr.1


  1. Ahmed N, Rafiq JI, Islam MR (2020) Enhanced human activity recognition based on smartphone sensor data using hybrid feature selection model. Sensors 20(1):317

    Article  Google Scholar 

  2. Anguita D, Ghio A, Oneto L, Parra X, Reyes-Ortiz JL (2013) A public domain dataset for human activity recognition using smartphones. In Esann, 3 p. 3

  3. Badshah M (2019) Sensor-based human activity recognition using smartphones. Master’s Projects. 677.

  4. Brezmes T, Gorricho JL, Cotrina J (2009) Activity recognition from accelerometer data on a mobile phone. In: International work-conference on artificial neural networks. Springer: Berlin, Heidelberg, pp. 796–799

  5. Chen Z, Zhu Q, Soh YC, Zhang L (2017) Robust human activity recognition using smartphone sensors via CT-PCA and online SVM. IEEE Trans Industr Inf 13(6):3070–3080

    Article  Google Scholar 

  6. Dernbach S, Das B, Krishnan NC, Thomas BL, Cook DJ (2012). Simple and complex activity recognition through smart phones. In: 2012 eighth international conference on intelligent environments (pp. 214–221). IEEE

  7. Dua D, Graff C (2019) UCI Machine learning repository []. Irvine, CA: University of California, School of Information and Computer Science

  8. Dua N, Singh SN, Semwal VB (2021) Multi-input CNN-GRU based human activity recognition using wearable sensors. Computing 1–18

  9. Figueiredo J, Gordalina G, Correia P, Pires G, Oliveira L, Martinho R, Fonseca-Pinto R (2019) Recognition of human activity based on sparse data collected from smartphone sensors. In: 2019 IEEE 6th Portuguese meeting on bioengineering (ENBENG) (pp. 1–4). IEEE

  10. Hanai Y, Nishimura J, Kuroda T (2009). Haar-like filtering for human activity recognition using 3d accelerometer. In: 2009 IEEE 13th digital signal processing workshop and 5th IEEE signal processing education workshop (pp. 675–678). IEEE

  11. Hassan MM, Uddin MZ, Mohamed A, Almogren A (2018) A robust human activity recognition system using smartphone sensors and deep learning. Futur Gener Comput Syst 81:307–313

    Article  Google Scholar 

  12. Hernández F, Suárez LF, Villamizar J, Altuve M (2019) Human activity recognition on smartphones using a bidirectional LSTM network. In: 2019 XXII symposium on image, signal processing and artificial vision (STSIVA) (pp. 1–5). IEEE

  13. Hirawat A (2021) Driver entry into and exit from a car using smartphone sensors. Mendeley Data.

    Article  Google Scholar 

  14. Hirawat A, Bhargava D (2015) Enhanced accident detection system using safety application for emergency in mobile environment: Safeme. In: Proceedings of fourth international conference on soft computing for problem solving (pp. 177–183). Springer, New Delhi

  15. (Accessed 26 May 2021)

  16. Ignatov A (2018) Real-time human activity recognition from accelerometer data using convolutional neural networks. Appl Soft Comput 62:915–922

    Article  Google Scholar 

  17. Karantonis DM, Narayanan MR, Mathie M, Lovell NH, Celler BG (2006) Implementation of a real-time human movement classifier using a triaxial accelerometer for ambulatory monitoring. IEEE Trans Inf Technol Biomed 10(1):156–167

    Article  Google Scholar 

  18. Kwapisz JR, Weiss GM, Moore SA (2011) Activity recognition using cell phone accelerometers. ACM SIGKDD Explor Newsl 12(2):74–82

    Article  Google Scholar 

  19. Liu W, Fu S, Zhou Y, Zha ZJ, Nie L (2021) Human activity recognition by manifold regularization based dynamic graph convolutional networks. Neurocomputing 444:217–225

    Article  Google Scholar 

  20. Mekruksavanich S, Jitpattanakul A (2021) Lstm networks using smartphone data for sensor-based human activity recognition in smart homes. Sensors 21(5):1636

    Article  Google Scholar 

  21. Ravi N, Dandekar N, Mysore P, Littman ML (2005) Activity recognition from accelerometer data. AAAI 5(2005):1541–1546

    Google Scholar 

  22. Roggen D, Calatroni A, Rossi M, Holleczek T, Förster K, Tröster G, Millan JDR (2010) Collecting complex activity datasets in highly rich networked sensor environments. In: 2010 Seventh international conference on networked sensing systems (INSS) (pp. 233–240). IEEE

  23. Ronao CA, Cho SB (2016) Human activity recognition with smartphone sensors using deep learning neural networks. Expert Syst Appl 59:235–244

    Article  Google Scholar 

  24. Seto S, Zhang W, Zhou Y (2015) Multivariate time series classification using dynamic time warping template selection for human activity recognition. In: 2015 IEEE symposium series on computational intelligence (pp. 1399–1406). IEEE

  25. Sikder N, Chowdhury MS, Arif ASM, Nahid AA (2019) Human activity recognition using multichannel convolutional neural network. In: 2019 5th International conference on advances in electrical engineering (ICAEE) (pp. 560–565). IEEE

  26. Sousa W, Souto E, Rodrigres J, Sadarc P, Jalali R, El-Khatib K (2017) A comparative analysis of the impact of features on human activity recognition with smartphone sensors. In: Proceedings of the 23rd Brazillian symposium on multimedia and the web (pp. 397–404)

  27. Tapia EM, Intille SS, Lopez L, Larson K (2006) The design of a portable kit of wireless sensors for naturalistic data collection. In: International conference on pervasive computing (pp. 117–134). Springer, Berlin, Heidelberg

  28. Voicu RA, Dobre C, Bajenaru L, Ciobanu RI (2019) Human physical activity recognition using smartphone sensors. Sensors 19(3):458

    Article  Google Scholar 

  29. White J, Thompson C, Turner H, Dougherty B, Schmidt DC (2011) Wreckwatch: automatic traffic accident detection and notification with smartphones. Mob Netw Appl 16(3):285–303

    Article  Google Scholar 

  30. Wu W, Dasgupta S, Ramirez EE, Peterson C, Norman GJ (2012) Classification accuracies of physical activities using smartphone motion sensors. J of Med Internet Res 14(5):130

    Article  Google Scholar 

Download references


No funding to declare.

Author information



Corresponding author

Correspondence to Amit Hirawat.

Ethics declarations

Conflict of interest

There is no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Hirawat, A., Taterh, S. & Sharma, T.K. A public domain dataset to recognize driver entry into and exit from a car using smartphone sensors. Int J Syst Assur Eng Manag (2021).

Download citation


  • Human activity recognition
  • HAR
  • Dataset
  • Smartphone
  • Driver entry exit
  • Sliding window