Abstract. This thesis shows a viable machine learning model that detects Indoor or Outdoor on smartphones. The model was designed as a classification problem and it was trained with data collected from several smartphone sensors by participants of a field trial conducted. The data collected was labeled manually either indoor or outdoor by the participants themselves. The model was then iterated over to lower the energy consumption by utilizing feature selection techniques and subsampling techniques. The model which uses all of the data achieved a 99 % prediction accuracy, while the energy efficient model achieved 92.91 %. This work provides the tools for researchers to quantify environmental exposure using smartphones