MagIO: Magnetic Field Strength Based Indoor- Outdoor Detection with a Commercial Smartphone

A wide range of localization techniques has been proposed recently that leverage smartphone sensors. Context awareness serves as the backbone of these localization techniques, which helps them to shift the localization technologies to improve efficiency and energy utilization. Indoor-outdoor (IO) context sensing plays a vital role for such systems, which serve both indoor and outdoor localization. IO systems work with collaborative technologies including the Global Positioning System (GPS), cellular tower signals, Wi-Fi, Bluetooth and a variety of smartphone sensors. GPS- and Wi-Fi-based systems are power hungry, and their accuracy is severed by limiting factors like multipath, shadowing, etc. On the other hand, various built-in smartphone sensors can be deployed for environmental sensing. Although these sensors can play a crucial role, yet they are very less studied. This research aims at investigating the use of ambient magnetic field data alone from a smartphone for IO detection. The research first investigates the feasibility of utilizing magnetic field data alone for IO detection and then extracts different features suitable for IO detection to be used in machine learning-based classifiers to discriminate between indoor and outdoor environments. The experiments are performed at three different places including a subway station, a shopping mall and Yeungnam University (YU), Korea. The training data are collected from one spot of the campus, and testing is performed with data from various locations of the above-mentioned places. The experiment involves Samsung Galaxy S8, LG G6 and Samsung Galaxy Round smartphones. The results show that the magnetic data from smartphone magnetic sensor embody enough information and can discriminate the indoor environment from the outdoor environment. Naive Bayes (NB) outperforms with a classification accuracy of 83.26%, as against Support vector machines (SVM), random induction (RI), gradient boosting machines (GBM), random forest (RF), k-nearest neighbor (kNN) and decision trees (DT), whose accuracies are 67.21%, 73.38%, 73.40%, 78.59%, 69.53% and 68.60%, respectively. kNN, SVM and DT do not perform well when noisy data are used for classification. Additionally, other dynamic scenarios affect the attitude of magnetic data and degrade the performance of SVM, RI and GBM. NB and RF prove to be more noise tolerant and environment adaptable and perform very well in dynamic scenarios. Keeping in view the performance of these classifiers, an ensemble-based stacking scheme is presented, which utilizes DT and RI as the base learners and naive Bayes as the ensemble classifier. This approach is able to achieve an accuracy of 85.30% using the magnetic data of the smartphone magnetic sensor. Moreover, with an increase in training data, the accuracy of the stacking scheme can be elevated by 0.83%. The performance of the proposed approach is compared with GPS-, Wi-Fi- and light sensor-based IO detection.

[1]  Lizhen Deng,et al.  An IBeacon-Based Location System for Smart Home Control , 2018, Sensors.

[2]  Mo Li,et al.  IODetector: a generic service for indoor outdoor detection , 2012, SenSys '12.

[3]  Mahesh K. Marina,et al.  A semi-supervised learning approach for robust indoor-outdoor detection with smartphones , 2014, SenSys.

[4]  Igor Bisio,et al.  A simple ultrasonic Indoor/Outdoor detector for mobile devices , 2015, 2015 International Wireless Communications and Mobile Computing Conference (IWCMC).

[5]  陶建斌,et al.  Naive Bayesian Classifier在遥感影像分类中的应用研究 , 2009 .

[6]  Hosik Cho,et al.  An Energy-Efficient and Robust Indoor-Outdoor Detection Method Based on Cell Identity Map , 2015, FNC/MobiSPC.

[7]  Rich Caruana,et al.  Ensemble selection from libraries of models , 2004, ICML.

[8]  Hassan A. Karimi,et al.  Advanced Location-Based Technologies and Services , 2013 .

[9]  Venkata N. Padmanabhan,et al.  Indoor localization without the pain , 2010, MobiCom.

[10]  Qun Li,et al.  Indoor-Outdoor Detection Using a Smart Phone Sensor , 2016, Sensors.

[11]  Andreas Christmann,et al.  Support vector machines , 2008, Data Mining and Knowledge Discovery Handbook.

[12]  A. Chulliat,et al.  The US/UK World Magnetic Model for 2015-2020 , 2015 .

[13]  Jukka M. Krisp,et al.  Progress in Location-Based Services , 2013, Lecture Notes in Geoinformation and Cartography.

[14]  Xin Yao,et al.  Gene selection algorithms for microarray data based on least squares support vector machine , 2006, BMC Bioinformatics.

[15]  Alex M. Andrew,et al.  Boosting: Foundations and Algorithms , 2012 .

[16]  Daniel T. Larose,et al.  Discovering Knowledge in Data: An Introduction to Data Mining , 2005 .

[17]  Cheng Chen,et al.  Improving GPS-based indoor-outdoor detection with moving direction information from smartphone , 2015, UbiComp/ISWC Adjunct.

[18]  P. Hernandez,et al.  The effect of sample size and species characteristics on performance of different species distribution modeling methods , 2006 .

[19]  William W. Cohen Fast Effective Rule Induction , 1995, ICML.

[20]  David H. Wolpert,et al.  Stacked generalization , 1992, Neural Networks.

[21]  Guobin Shen,et al.  Magicol: Indoor Localization Using Pervasive Magnetic Field and Opportunistic WiFi Sensing , 2015, IEEE Journal on Selected Areas in Communications.

[22]  Nick Roussopoulos,et al.  Nearest neighbor queries , 1995, SIGMOD '95.

[23]  Antonio F. Gómez-Skarmeta,et al.  MagicFinger: 3D Magnetic Fingerprints for Indoor Location , 2015, Sensors.

[24]  Wei-Yin Loh,et al.  Classification and regression trees , 2011, WIREs Data Mining Knowl. Discov..

[25]  J Elith,et al.  A working guide to boosted regression trees. , 2008, The Journal of animal ecology.

[26]  Jiguo Yu,et al.  An Android-Based Mechanism for Energy Efficient Localization Depending on Indoor/Outdoor Context , 2017, IEEE Internet of Things Journal.

[27]  Lior Rokach,et al.  Ensemble-based classifiers , 2010, Artificial Intelligence Review.

[28]  Óscar Cánovas Reverte,et al.  WiFiBoost: a terminal-based method for detection of indoor/outdoor places , 2014, MobiQuitous.

[29]  Francisco Chiclana,et al.  A dynamic rule-induction method for classification in data mining , 2015 .

[30]  郑肇葆,et al.  基于Naive Bayes Classifiers的航空影像纹理分类 , 2006 .

[31]  Hong-Bo Li,et al.  An improved random forest approach for detection of hidden web search interfaces , 2008, 2008 International Conference on Machine Learning and Cybernetics.

[32]  Michael F. Goodchild,et al.  Location-Based Services , 2018, Encyclopedia of Social Network Analysis and Mining. 2nd Ed..

[33]  Tong Zhang,et al.  Learning Nonlinear Functions Using Regularized Greedy Forest , 2011, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[34]  Ashok K. Agrawala,et al.  SenseMe: a system for continuous, on-device, and multi-dimensional context and activity recognition , 2014, MobiQuitous.

[35]  Piotr Duda,et al.  Decision Trees for Mining Data Streams Based on the Gaussian Approximation , 2014, IEEE Transactions on Knowledge and Data Engineering.

[36]  Simon J. Pittman,et al.  Multi-Scale Approach for Predicting Fish Species Distributions across Coral Reef Seascapes , 2011, PloS one.

[37]  El-Sayed M. El-Alfy,et al.  Dendritic Cell Algorithm for Mobile Phone Spam Filtering , 2015, ANT/SEIT.

[38]  Ig-Jae Kim,et al.  Indoor location sensing using geo-magnetism , 2011, MobiSys '11.

[39]  Yongwan Park,et al.  LOCALI: Calibration-Free Systematic Localization Approach for Indoor Positioning , 2017, Sensors.

[40]  Raphael Spreitzer,et al.  PIN Skimming: Exploiting the Ambient-Light Sensor in Mobile Devices , 2014, SPSM@CCS.

[41]  Giovanni Seni,et al.  Ensemble Methods in Data Mining: Improving Accuracy Through Combining Predictions , 2010, Ensemble Methods in Data Mining.

[42]  Bo Sun,et al.  A lightweight and aggregated system for indoor/outdoor detection using smart devices , 2020, Future Gener. Comput. Syst..

[43]  Peter E. Hart,et al.  Nearest neighbor pattern classification , 1967, IEEE Trans. Inf. Theory.

[44]  Shueng-Han Gary Chan,et al.  Towards area classification for large-scale fingerprint-based system , 2016, UbiComp.

[45]  Hao Jiang,et al.  BlueDetect: An iBeacon-Enabled Scheme for Accurate and Energy-Efficient Indoor-Outdoor Detection and Seamless Location-Based Service , 2016, Sensors.

[46]  Chi-Yi Lin,et al.  An Interactive Real-Time Locating System Based on Bluetooth Low-Energy Beacon Network † , 2018, Sensors.

[47]  Yang Shao,et al.  Comparison of support vector machine, neural network, and CART algorithms for the land-cover classification using limited training data points , 2012 .

[48]  Abdelmoumen Norrdine,et al.  Position estimation using artificial generated magnetic fields , 2010, 2010 International Conference on Indoor Positioning and Indoor Navigation.

[49]  Petra Perner,et al.  Data Mining - Concepts and Techniques , 2002, Künstliche Intell..

[50]  Leo Breiman,et al.  Random Forests , 2001, Machine Learning.

[51]  Minyi Guo,et al.  Survey on context-awareness in ubiquitous media , 2011, Multimedia Tools and Applications.

[52]  Foster J. Provost,et al.  Learning When Training Data are Costly: The Effect of Class Distribution on Tree Induction , 2003, J. Artif. Intell. Res..

[53]  Jianying Hu,et al.  Winning the KDD Cup Orange Challenge with Ensemble Selection , 2009, KDD Cup.

[54]  Kristin P. Bennett,et al.  Support vector machines: hype or hallelujah? , 2000, SKDD.

[55]  Ram Dantu,et al.  LocateMe , 2013, ACM Trans. Intell. Syst. Technol..

[56]  K. Lee,et al.  Classification of indoor-outdoor location using combined global positioning system (GPS) and temperature data for personal exposure assessment , 2017, Environmental Health and Preventive Medicine.

[57]  Georg Gartner,et al.  A critical evaluation of location based services and their potential , 2007, J. Locat. Based Serv..

[58]  Jianxin Wu,et al.  GROPING: Geomagnetism and cROwdsensing Powered Indoor NaviGation , 2015, IEEE Transactions on Mobile Computing.

[59]  Bhekisipho Twala,et al.  Multiple classifier application to credit risk assessment , 2010, Expert Syst. Appl..

[60]  Suk-Hoon Jung,et al.  Sound based indoor and outdoor environment detection for seamless positioning handover , 2015, ICT Express.

[61]  John Krumm,et al.  Ubiquitous Computing Fundamentals , 2009 .

[62]  Jerzy W. Grzymala-Busse,et al.  A New Version of the Rule Induction System LERS , 1997, Fundam. Informaticae.

[63]  Hyungbae Park,et al.  Optical Wireless authentication for smart devices using an onboard ambient light sensor , 2014, 2014 23rd International Conference on Computer Communication and Networks (ICCCN).

[64]  Shah Khusro,et al.  Sensors are Power Hungry: An Investigation of Smartphone Sensors Impact on Battery Power from Lifelogging Perspective , 2016 .

[65]  V. A. Epanechnikov Non-Parametric Estimation of a Multivariate Probability Density , 1969 .

[66]  Corinna Cortes,et al.  Support-Vector Networks , 1995, Machine Learning.

[67]  Yongwan Park,et al.  mPILOT-Magnetic Field Strength Based Pedestrian Indoor Localization , 2018, Sensors.

[68]  Hock-Hai Teo,et al.  The Role of Push-Pull Technology in Privacy Calculus: The Case of Location-Based Services , 2009, J. Manag. Inf. Syst..

[69]  John R. Anderson,et al.  MACHINE LEARNING An Artificial Intelligence Approach , 2009 .

[70]  Lior Rokach,et al.  Data Mining And Knowledge Discovery Handbook , 2005 .

[71]  Ana Castillo-Martinez,et al.  Smartphones as a Light Measurement Tool: Case of Study , 2017 .

[72]  Moustafa Youssef,et al.  No need to war-drive: unsupervised indoor localization , 2012, MobiSys '12.

[73]  Zoltán Horváth,et al.  Battery consumption of smartphone sensors , 2015, 2015 11th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS).