Skip to main content
Top
Published in: Journal of Translational Medicine 1/2019

Open Access 01-12-2019 | Methodology

Discrimination of indoor versus outdoor environmental state with machine learning algorithms in myopia observational studies

Authors: Bin Ye, Kangping Liu, Siting Cao, Padmaja Sankaridurg, Wayne Li, Mengli Luan, Bo Zhang, Jianfeng Zhu, Haidong Zou, Xun Xu, Xiangui He

Published in: Journal of Translational Medicine | Issue 1/2019

Login to get access

Abstract

Background

Wearable smart watches provide large amount of real-time data on the environmental state of the users and are useful to determine risk factors for onset and progression of myopia. We aim to evaluate the efficacy of machine learning algorithm in differentiating indoor and outdoor locations as collected by use of smart watches.

Methods

Real time data on luminance, ultraviolet light levels and number of steps obtained with smart watches from dataset A: 12 adults from 8 scenes and manually recorded true locations. 70% of data was considered training set and support vector machine (SVM) algorithm generated using the variables to create a classification system. Data collected manually by the adults was the reference. The algorithm was used for predicting the location of the remaining 30% of dataset A. Accuracy was defined as the number of correct predictions divided by all. Similarly, data was corrected from dataset B: 172 children from 3 schools and 12 supervisors recorded true locations. Data collected by the supervisors was the reference. SVM model trained from dataset A was used to predict the location of dataset B for validation. Finally, we predicted the location of dataset B using the SVM model self-trained from dataset B. We repeated these three predictions with traditional univariate threshold segmentation method.

Results

In both datasets, SVM outperformed the univariate threshold segmentation method. In dataset A, the accuracy and AUC of SVM were 99.55% and 0.99 as compared to 95.11% and 0.95 with the univariate threshold segmentation (p < 0.01). In validation, the accuracy and AUC of SVM were 82.67% and 0.90 compared to 80.88% and 0.85 with the univariate threshold segmentation method (p < 0.01). In dataset B, the accuracy and AUC of SVM and AUC were 92.43% and 0.96 compared to 80.88% and 0.85 with the univariate threshold segmentation (p < 0.01).

Conclusions

Machine learning algorithm allows for discrimination of outdoor versus indoor environments with high accuracy and provides an opportunity to study and determine the role of environmental risk factors in onset and progression of myopia. The accuracy of machine learning algorithm could be improved if the model is trained with the dataset itself.
Appendix
Available only for authorised users
Literature
1.
go back to reference Morgan IG, Ohno-Matsui K, Saw SM. Myopia. Lancet. 2012;379(9827):1739–48.CrossRef Morgan IG, Ohno-Matsui K, Saw SM. Myopia. Lancet. 2012;379(9827):1739–48.CrossRef
2.
go back to reference Holden BA, Fricke TR, Wilson DA, Jong M, Naidoo KS, Sankaridurg P, et al. Global prevalence of myopia and high myopia and temporal trends from 2000 through 2050. Ophthalmology. 2016;123(5):1036–42.CrossRef Holden BA, Fricke TR, Wilson DA, Jong M, Naidoo KS, Sankaridurg P, et al. Global prevalence of myopia and high myopia and temporal trends from 2000 through 2050. Ophthalmology. 2016;123(5):1036–42.CrossRef
3.
go back to reference Wu L, Sun X, Zhou X, Weng C. Causes and 3-year-incidence of blindness in Jing-An District, Shanghai, China 2001–2009. BMC Ophthalmol. 2011;11:10.CrossRef Wu L, Sun X, Zhou X, Weng C. Causes and 3-year-incidence of blindness in Jing-An District, Shanghai, China 2001–2009. BMC Ophthalmol. 2011;11:10.CrossRef
4.
go back to reference Xu L, Wang Y, Li Y, et al. Causes of blindness and visual impairment in urban and rural areas in Beijing: the Beijing Eye Study. Ophthalmology. 2006;113(7):1134.e1–11.CrossRef Xu L, Wang Y, Li Y, et al. Causes of blindness and visual impairment in urban and rural areas in Beijing: the Beijing Eye Study. Ophthalmology. 2006;113(7):1134.e1–11.CrossRef
5.
go back to reference Morgan IG, French AN, Ashby RS, et al. The epidemics of myopia: aetiology and prevention. Prog Retin Eye Res. 2018;62:134–49.CrossRef Morgan IG, French AN, Ashby RS, et al. The epidemics of myopia: aetiology and prevention. Prog Retin Eye Res. 2018;62:134–49.CrossRef
6.
go back to reference Xiong S, Sankaridurg P, Naduvilath T, et al. Time spent in outdoor activities in relation to myopia prevention and control: a meta-analysis and systematic review. Acta Ophthalmol. 2017;95(6):551–66.CrossRef Xiong S, Sankaridurg P, Naduvilath T, et al. Time spent in outdoor activities in relation to myopia prevention and control: a meta-analysis and systematic review. Acta Ophthalmol. 2017;95(6):551–66.CrossRef
7.
go back to reference Wu PC, Chen CT, Lin KK, et al. Myopia prevention and outdoor light intensity in a school-based cluster randomized trial. Ophthalmology. 2018;125(8):1239–50.CrossRef Wu PC, Chen CT, Lin KK, et al. Myopia prevention and outdoor light intensity in a school-based cluster randomized trial. Ophthalmology. 2018;125(8):1239–50.CrossRef
8.
go back to reference He M, Xiang F, Zeng Y, Mai J, Chen Q, Zhang J, Smith W, Rose K, Morgan IG. Effect of time spent outdoors at school on the development of myopia among children in China: a randomized clinical trial. JAMA. 2015;314(11):1142–8.CrossRef He M, Xiang F, Zeng Y, Mai J, Chen Q, Zhang J, Smith W, Rose K, Morgan IG. Effect of time spent outdoors at school on the development of myopia among children in China: a randomized clinical trial. JAMA. 2015;314(11):1142–8.CrossRef
9.
go back to reference Sherwin JC, Reacher MH, Keogh RH, Khawaja AP, Mackey DA, Foster PJ. The association between time spent outdoors and myopia in children and adolescents: a systematic review and meta-analysis. Ophthalmology. 2012;119(10):2141–51.CrossRef Sherwin JC, Reacher MH, Keogh RH, Khawaja AP, Mackey DA, Foster PJ. The association between time spent outdoors and myopia in children and adolescents: a systematic review and meta-analysis. Ophthalmology. 2012;119(10):2141–51.CrossRef
10.
go back to reference Dirani M, Tong L, Gazzard G, Zhang X, Chia A, Young TL, Rose KA, Mitchell P, Saw SM. Outdoor activity and myopia in Singapore teenage children. Br J Ophthalmol. 2009;93(8):997–1000.CrossRef Dirani M, Tong L, Gazzard G, Zhang X, Chia A, Young TL, Rose KA, Mitchell P, Saw SM. Outdoor activity and myopia in Singapore teenage children. Br J Ophthalmol. 2009;93(8):997–1000.CrossRef
11.
go back to reference French AN, Ashby RS, Morgan IG, Rose KA. Time outdoors and the prevention of myopia. Exp Eye Res. 2013;114:58–68.CrossRef French AN, Ashby RS, Morgan IG, Rose KA. Time outdoors and the prevention of myopia. Exp Eye Res. 2013;114:58–68.CrossRef
12.
go back to reference Wu PC, Tsai CL, Wu HL, Yang YH, Kuo HK. Outdoor activity during class recess reduces myopia onset and progression in school children. Ophthalmology. 2013;120(5):1080–5.CrossRef Wu PC, Tsai CL, Wu HL, Yang YH, Kuo HK. Outdoor activity during class recess reduces myopia onset and progression in school children. Ophthalmology. 2013;120(5):1080–5.CrossRef
13.
go back to reference Wu PC, Tsai CL, Hu CH, Yang YH. Effects of outdoor activities on myopia among rural school children in Taiwan. Ophthalmic Epidemiol. 2010;17(5):338–42.CrossRef Wu PC, Tsai CL, Hu CH, Yang YH. Effects of outdoor activities on myopia among rural school children in Taiwan. Ophthalmic Epidemiol. 2010;17(5):338–42.CrossRef
14.
go back to reference Guo Y, Liu LJ, Xu L, Lv YY, Tang P, Feng Y, Meng M, Jonas JB. Outdoor activity and myopia among primary students in rural and urban regions of Beijing. Ophthalmology. 2013;120(2):277–83.CrossRef Guo Y, Liu LJ, Xu L, Lv YY, Tang P, Feng Y, Meng M, Jonas JB. Outdoor activity and myopia among primary students in rural and urban regions of Beijing. Ophthalmology. 2013;120(2):277–83.CrossRef
15.
go back to reference Lin Z, Gao TY, Vasudevan B, Ciuffreda KJ, Liang YB, Jhanji V,Fan SJ, Han W, Wang NL. Near work, outdoor activity, and myopia in children in rural China: the Handan offspring myopia study. BMC Ophthalmol. 2017;17(1):203.CrossRef Lin Z, Gao TY, Vasudevan B, Ciuffreda KJ, Liang YB, Jhanji V,Fan SJ, Han W, Wang NL. Near work, outdoor activity, and myopia in children in rural China: the Handan offspring myopia study. BMC Ophthalmol. 2017;17(1):203.CrossRef
16.
go back to reference Guggenheim JA, Northstone K, McMahon G, Ness AR, Deere K, Mattocks C, St Pourcain BS, Williams C. Time outdoors and physical activity as predictors of incident myopia in childhood: a prospective cohort study. Investig Ophthalmol Vis Sci. 2012;53(6):2856–65.CrossRef Guggenheim JA, Northstone K, McMahon G, Ness AR, Deere K, Mattocks C, St Pourcain BS, Williams C. Time outdoors and physical activity as predictors of incident myopia in childhood: a prospective cohort study. Investig Ophthalmol Vis Sci. 2012;53(6):2856–65.CrossRef
17.
go back to reference Jin JX, Hua WJ, Jiang X, Wu XY, Yang JW, Gao GP, Fang Y, Pei CL, Wang S, Zhang JZ, Tao LM, Tao FB. Effect of outdoor activity on myopia onset and progression in school-aged children in northeast China: the Sujiatun Eye Care Study. BMC Ophthalmol. 2015;15:73.CrossRef Jin JX, Hua WJ, Jiang X, Wu XY, Yang JW, Gao GP, Fang Y, Pei CL, Wang S, Zhang JZ, Tao LM, Tao FB. Effect of outdoor activity on myopia onset and progression in school-aged children in northeast China: the Sujiatun Eye Care Study. BMC Ophthalmol. 2015;15:73.CrossRef
18.
go back to reference Guo Y, Liu LJ, Xu L, Tang P, Lv YY, Feng Y, Meng M, Jonas JB. Myopic shift and outdoor activity among primary school children: one-year follow-up study in Beijing. PLoS ONE. 2013;8(9):e75260.CrossRef Guo Y, Liu LJ, Xu L, Tang P, Lv YY, Feng Y, Meng M, Jonas JB. Myopic shift and outdoor activity among primary school children: one-year follow-up study in Beijing. PLoS ONE. 2013;8(9):e75260.CrossRef
19.
go back to reference Dharani R, Lee C-F, Theng ZX, Drury VB, Ngo C, Sandar M, Wong T-Y, Finkelstein EA, Saw S-M. Comparison of measurements of time outdoors and light levels as risk factors for myopia in young Singapore children. Eye. 2012;26(7):911–8.CrossRef Dharani R, Lee C-F, Theng ZX, Drury VB, Ngo C, Sandar M, Wong T-Y, Finkelstein EA, Saw S-M. Comparison of measurements of time outdoors and light levels as risk factors for myopia in young Singapore children. Eye. 2012;26(7):911–8.CrossRef
20.
go back to reference Tandon PS, Saelens BE, Zhou C, Kerr J, Christakis DA. Indoor versus outdoor time in preschoolers at child care. Am J Prev Med. 2013;44(1):85–8.CrossRef Tandon PS, Saelens BE, Zhou C, Kerr J, Christakis DA. Indoor versus outdoor time in preschoolers at child care. Am J Prev Med. 2013;44(1):85–8.CrossRef
21.
go back to reference Flynn JI, Coe DP, Larsen CA, Rider BC, Conger SA, Bassett DR Jr. Detecting indoor and outdoor environments using the ActiGraph GT3X + light sensor in children. Med Sci Sports Exerc. 2014;46(1):201–6.CrossRef Flynn JI, Coe DP, Larsen CA, Rider BC, Conger SA, Bassett DR Jr. Detecting indoor and outdoor environments using the ActiGraph GT3X + light sensor in children. Med Sci Sports Exerc. 2014;46(1):201–6.CrossRef
22.
go back to reference Guggenheim JA, Williams C, Northstone K, Howe LD, Tilling K, St PB, et al. Does vitamin D mediate the protective effects of time outdoors on myopia? Findings from a prospective birth cohort. Investig Ophthalmol Vis Sci. 2014;55(12):8550–8.CrossRef Guggenheim JA, Williams C, Northstone K, Howe LD, Tilling K, St PB, et al. Does vitamin D mediate the protective effects of time outdoors on myopia? Findings from a prospective birth cohort. Investig Ophthalmol Vis Sci. 2014;55(12):8550–8.CrossRef
23.
go back to reference Tideman JW, Polling JR, Voortman T, Jaddoe VW, Uitterlinden AG, Hofman A, et al. Low serum vitamin D is associated with axial length and risk of myopia in young children. Eur J Epidemiol. 2016;31(5):491–9.CrossRef Tideman JW, Polling JR, Voortman T, Jaddoe VW, Uitterlinden AG, Hofman A, et al. Low serum vitamin D is associated with axial length and risk of myopia in young children. Eur J Epidemiol. 2016;31(5):491–9.CrossRef
24.
go back to reference Sherwin JC, Hewitt AW, Coroneo MT, Kearns LS, Griffiths LR, Mackey DA. The association between time spent outdoors and myopia using a novel biomarker of outdoor light exposure. Investig Ophthalmol Vis Sci. 2012;53(8):4363–70.CrossRef Sherwin JC, Hewitt AW, Coroneo MT, Kearns LS, Griffiths LR, Mackey DA. The association between time spent outdoors and myopia using a novel biomarker of outdoor light exposure. Investig Ophthalmol Vis Sci. 2012;53(8):4363–70.CrossRef
25.
go back to reference Sherwin JC, McKnight CM, Hewitt AW, Griffiths LR, Coroneo MT, Mackey DA. Reliability and validity of conjunctival ultraviolet autofluorescence measurement. Br J Ophthalmol. 2012;96(6):801–5.CrossRef Sherwin JC, McKnight CM, Hewitt AW, Griffiths LR, Coroneo MT, Mackey DA. Reliability and validity of conjunctival ultraviolet autofluorescence measurement. Br J Ophthalmol. 2012;96(6):801–5.CrossRef
26.
go back to reference Wu J, Jiang C, Jaimes G, Bartell S, Dang A, Baker D, et al. Travel patterns during pregnancy: comparison between Global Positioning System (GPS) tracking and questionnaire data. Environ Health. 2013;12(1):86.CrossRef Wu J, Jiang C, Jaimes G, Bartell S, Dang A, Baker D, et al. Travel patterns during pregnancy: comparison between Global Positioning System (GPS) tracking and questionnaire data. Environ Health. 2013;12(1):86.CrossRef
27.
go back to reference Pearce M, Page AS, Griffin TP, Cooper AR. Who children spend time with after school: associations with objectively recorded indoor and outdoor physical activity. Int J Behav Nutr Phys Act. 2014;11(1):45.CrossRef Pearce M, Page AS, Griffin TP, Cooper AR. Who children spend time with after school: associations with objectively recorded indoor and outdoor physical activity. Int J Behav Nutr Phys Act. 2014;11(1):45.CrossRef
28.
go back to reference Cooper AR, Page AS, Wheeler BW, Hillsdon M, Griew P, Jago R. Patterns of GPS measured time outdoors after school and objective physical activity in English children: the PEACH project. Int J Behav Nutr Phys Act. 2010;7:31.CrossRef Cooper AR, Page AS, Wheeler BW, Hillsdon M, Griew P, Jago R. Patterns of GPS measured time outdoors after school and objective physical activity in English children: the PEACH project. Int J Behav Nutr Phys Act. 2010;7:31.CrossRef
29.
go back to reference Webber SC, Porter MM. Monitoring mobility in older adults using global positioning system (GPS) watches and accelerometers: a feasibility study. J Aging Phys Act. 2009;17(4):455–67.CrossRef Webber SC, Porter MM. Monitoring mobility in older adults using global positioning system (GPS) watches and accelerometers: a feasibility study. J Aging Phys Act. 2009;17(4):455–67.CrossRef
30.
go back to reference Baştanlar Y, Özuysal M. Introduction to machine learning. miRNomics: microRNA biology and computational analysis. Totowa: Humana Press; 2014. p. 105–28.CrossRef Baştanlar Y, Özuysal M. Introduction to machine learning. miRNomics: microRNA biology and computational analysis. Totowa: Humana Press; 2014. p. 105–28.CrossRef
31.
go back to reference Hagan MT, Demuth HB, Beale MH. Neural network design. Boston: PWS Pub; 1996. p. 3632. Hagan MT, Demuth HB, Beale MH. Neural network design. Boston: PWS Pub; 1996. p. 3632.
32.
go back to reference Joachims T. Text categorization with support vector machines: Learning with many relevant features. In: European conference on machine learning. Berlin: Springer; 1998. p. 137–42.CrossRef Joachims T. Text categorization with support vector machines: Learning with many relevant features. In: European conference on machine learning. Berlin: Springer; 1998. p. 137–42.CrossRef
33.
go back to reference Rasmussen CE. Gaussian processes in machine learning. Advanced lectures on machine learning. Berlin: Springer; 2004. p. 63–71.CrossRef Rasmussen CE. Gaussian processes in machine learning. Advanced lectures on machine learning. Berlin: Springer; 2004. p. 63–71.CrossRef
34.
go back to reference Liaw A, Wiener M. Classification and regression by randomForest. R News. 2002;2(3):18–22. Liaw A, Wiener M. Classification and regression by randomForest. R News. 2002;2(3):18–22.
35.
go back to reference McCallum A, Nigam K. A comparison of event models for naive bayes text classification. In: AAAI-98 workshop on learning for text categorization, vol. 752, no. 1. 1998. p. 41–8. McCallum A, Nigam K. A comparison of event models for naive bayes text classification. In: AAAI-98 workshop on learning for text categorization, vol. 752, no. 1. 1998. p. 41–8.
36.
go back to reference Dietterich TG. Ensemble methods in machine learning. In: International workshop on multiple classifier systems. Berlin: Springer; 2000. p. 1–15. Dietterich TG. Ensemble methods in machine learning. In: International workshop on multiple classifier systems. Berlin: Springer; 2000. p. 1–15.
37.
go back to reference Fraley C, Raftery AE. Model-based clustering, discriminant analysis, and density estimation. J Am Stat Assoc. 2002;97(458):611–31.CrossRef Fraley C, Raftery AE. Model-based clustering, discriminant analysis, and density estimation. J Am Stat Assoc. 2002;97(458):611–31.CrossRef
38.
go back to reference Hsu CW, Chang CC, Lin CJ. A practical guide to support vector classification. 2003. p. 1–16. Hsu CW, Chang CC, Lin CJ. A practical guide to support vector classification. 2003. p. 1–16.
39.
go back to reference He X, Sankaridurg P, Xiong S, et al. Shanghai time outside to reduce myopia trial: and baseline data. Clin Exp Ophthalmol. 2019;47(2):171–8.CrossRef He X, Sankaridurg P, Xiong S, et al. Shanghai time outside to reduce myopia trial: and baseline data. Clin Exp Ophthalmol. 2019;47(2):171–8.CrossRef
Metadata
Title
Discrimination of indoor versus outdoor environmental state with machine learning algorithms in myopia observational studies
Authors
Bin Ye
Kangping Liu
Siting Cao
Padmaja Sankaridurg
Wayne Li
Mengli Luan
Bo Zhang
Jianfeng Zhu
Haidong Zou
Xun Xu
Xiangui He
Publication date
01-12-2019
Publisher
BioMed Central
Published in
Journal of Translational Medicine / Issue 1/2019
Electronic ISSN: 1479-5876
DOI
https://doi.org/10.1186/s12967-019-2057-2

Other articles of this Issue 1/2019

Journal of Translational Medicine 1/2019 Go to the issue