Indoor-Outdoor Detection Using Head-Mounted Lightweight Sensors

  • Tommaso Martire
  • Payam Nazemzadeh
  • Alberto Sanna
  • Diana TrojanielloEmail author
Conference paper
Part of the EAI/Springer Innovations in Communication and Computing book series (EAISICC)


Spending adequate amount of time outdoor is helpful for both physical and psychological health. Indoor-outdoor (IO) detection provides useful information for end users such as the inside and outside time spent monitoring. In addition, IO detection is extremely important in IO navigation and localization. Several authors focused on the IO detection using the smartphone sensors as well as the light sensors available in selected wearable devices. The aim of this work is to compare the accuracy of different machine learning algorithms in discriminating IO environments using a new generation of color light sensor mounted on the head, both standalone and in combination with other lightweight sensors, i.e., UV sensor, pressure sensor, accelerometer, and gyroscope. Data have been acquired in different days on a population of 28 subjects. Six machine learning algorithms have been tested on the overall acquired dataset. Among the tested algorithms, bagged trees and naïve Bayes showed the best performances in terms of accuracy, respectively, around 87 and 89% involving both color and UV sensors. Furthermore, the naïve Bayes algorithm showed the higher performances in critical environments such as semi-indoor and semi-outdoor ones.


Indoor-outdoor detection Supervised learning Ambient intelligence 



The research leading to these results has received funding from the European Union’s Horizon 2020 research and innovation program under grant agreement No. 720571—I-SEE project.


  1. 1.
    Green, N.: On the move: technology, mobility and the meditation of social time and space. Inf. Soc. 18(28), 281–292 (2002)CrossRefGoogle Scholar
  2. 2.
    Webb, A.R., et al.: The role of sunlight exposure in determining the vitamin D status of the U.K. white adult population. Br. J. Dermatol. 163(5), 1050–1055 (2010)CrossRefGoogle Scholar
  3. 3.
    Barton, J.O., Pretty, J.: What is the best dose of nature and green exercise for improving mental health? A multi-study analysis. Environ. Sci. Technol. 44(10), 3947–3955 (2010)CrossRefGoogle Scholar
  4. 4.
    Mejia, R.: Green exercise may be good for your head. Environ. Sci. Technol. 44(10), 3649–3649 (2010)CrossRefGoogle Scholar
  5. 5.
    Rose, K.A., et al.: Outdoor activity reduces the prevalence of myopia in children. Ophthalmology. 115(8), 1279–1285 (2008)CrossRefGoogle Scholar
  6. 6.
    Cleland, V., et al.: A prospective examination of children’s time spent outdoors, objectively measured physical activity and overweight. Int. J. Obes. 32(11), 1685–1693 (2008)CrossRefGoogle Scholar
  7. 7.
    Li, M.O., Zhou, P., Zheng, Y., Li, Z.: IODetector: a generic service for indoor/outdoor detection. ACM Trans Sens. Netw. 11(2), 28 (2014)CrossRefGoogle Scholar
  8. 8.
    Jia, H., Su, S., Kong, W.: MobilO: push the limit of indoor/outdoor detection through human’s mobility traces. In: International Conference on Indoor Positioning and Indoor Navigation, pp. 197–202 (2014)Google Scholar
  9. 9.
    Urcola, P., Lorente, M.T., Villarroel, J.L., Montano, L.: Robust navigation and seamless localization for carlike robots in indoor-outdoor environments. J. Field Rob. 34(4), 704–735 (2017)CrossRefGoogle Scholar
  10. 10.
    Radu, V., Katsikouli, P., Sarkar, R., Marina, M.K.: A semi-supervised learning approach for robust indoor-outdoor detection with smartphones. In: 12th ACM Conference on Embedded Network Sensor Systems (2014)Google Scholar
  11. 11.
    Martire, T., Nazemzadeh, P., Cristiano, A., Sanna, A., Trojaniello, D.: Indoor-outdoor detection using head mounted color light sensors. In: National Congress on Bioengineering (2018)Google Scholar
  12. 12.
    Wahl, F., Kasbauer, J., Amft, O.: Computer screen use detection using smart eyeglasses. Front. ICT. 4, 1–12 (2017)CrossRefGoogle Scholar
  13. 13.
    Loperfido, F., Alessandro, M.: Exploring clinical evidence and the benefits off filtering out harmful light. In: Points de Vue International Review of Ophthalmic Optic (2016)Google Scholar
  14. 14.
    Lucas, R.J., et al.: Measuring and using light in the melanopsin age. Trends Neurosci. 37(1), 1–9 (2014)CrossRefGoogle Scholar
  15. 15.
    Hira, Z., Gillies, D.F.: A review of feature selection and feature extraction methods applied on microarray data. Adv. Bioinforma. 2015, 1 (2015)CrossRefGoogle Scholar
  16. 16.
    Caelen, O.: A Bayesian interpretation of the confusion matrix. Ann. Math. Artif. Intell. 81(3–4), 429–450 (2017)MathSciNetCrossRefGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  • Tommaso Martire
    • 1
  • Payam Nazemzadeh
    • 1
  • Alberto Sanna
    • 1
  • Diana Trojaniello
    • 1
    Email author
  1. 1.Center for Advanced Technology in Health and WellbeingSan Raffaele HospitalMilanItaly

Personalised recommendations