Predicting water contamination by statistical models is a useful tool to manage health risk in recreational beaches. Extreme contamination events, i.e. those exceeding normative are generally rare with respect to bathing conditions and thus the data is said to be imbalanced. Modeling and predicting those rare events present unique challenges. Here we introduce and evaluate several machine learning techniques and metrics to model imbal-anced data and evaluate model performance. We do so by using a) simulated data-sets and b) a real data base with records of faecal coliform abundance monitored for 10 years in 21 recreational beaches in Uruguay (N approximate to 19000) using in situ and meteorological variables. We discuss advantages and disadvantages of the methods and provide a simple guide to perform models for a general audience. We also provide R codes to reproduce model fitting and testing. We found that most Machine Learning techniques are sensitive to imbalance and require specific data pre-treatment (e.g. upsampling) to improve performance. Accuracy (i.e. correctly classified cases over total cases) is not adequate to evaluate model performance on imbalanced data set. Instead, true positive rates (TPR) and false positive rates (FPR) are recommended. Among the 52 possible candidate algorithms tested, the stratified Random forest presented the better performance improving TPR in 50% with respect to baseline (0.4) and outperformed baseline in the evaluated metrics. Support vector machines combined with upsampling method or synthetic minority oversampling technique (SMOTE) performed well, similar to Adaboost with SMOTE. These results suggests that combining modeling strategies is necessary to improve our capacity to anticipate water contamination and avoid health risk.
机构:
Univ Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Avila, Rodelyn
Horn, Beverley
论文数: 0引用数: 0
h-index: 0
机构:
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Horn, Beverley
Moriarty, Elaine
论文数: 0引用数: 0
h-index: 0
机构:
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Moriarty, Elaine
Hodson, Roger
论文数: 0引用数: 0
h-index: 0
机构:
Environm Southland, Private Bag 90116, Invercargill 9840, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Hodson, Roger
Moltchanova, Elena
论文数: 0引用数: 0
h-index: 0
机构:
Univ Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
机构:
Walter & Eliza Hall Inst Med Res, Div Mol Med, Melbourne, Vic 3050, Australia
Univ Melbourne, Dept Med Biol, Melbourne, Vic 3050, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Blewitt, Marnie E.
Gendrel, Anne-Valerie
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Gendrel, Anne-Valerie
Pang, Zhenyi
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Pang, Zhenyi
Sparrow, Duncan B.
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Victor Chang Cardiac Res Inst, Sydney, NSW 2010, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Sparrow, Duncan B.
Whitelaw, Nadia
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, Australia
Univ Queensland, Sch Med, Brisbane, Qld 4072, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Whitelaw, Nadia
Craig, Jeffrey M.
论文数: 0引用数: 0
h-index: 0
机构:
Murdoch Childrens Res Inst, Parkville, Vic 3052, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Craig, Jeffrey M.
Apedaile, Anwyn
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Apedaile, Anwyn
Hilton, Douglas J.
论文数: 0引用数: 0
h-index: 0
机构:
Walter & Eliza Hall Inst Med Res, Div Mol Med, Melbourne, Vic 3050, Australia
Univ Melbourne, Dept Med Biol, Melbourne, Vic 3050, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Hilton, Douglas J.
Dunwoodie, Sally L.
论文数: 0引用数: 0
h-index: 0
机构:Queensland Inst Med Res, Brisbane, Qld 4006, Australia
Dunwoodie, Sally L.
Brockdorff, Neil
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Brockdorff, Neil
Kay, Graham F.
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Kay, Graham F.
Whitelaw, Emma
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
机构:
Fac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Univ La Republ, Fac Ciencias Econ & Adm, Dept Metodos Matemat Cuantitativos, Av Gonzalo Ramirez 1926, Montevideo 11200, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Bourel, M.
Crisci, C.
论文数: 0引用数: 0
h-index: 0
机构:
Univ La Republ, Ctr Univ Reg Este, Ruta Nacl N9 & Ruta N15, Rocha 27000, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Crisci, C.
Martinez, A.
论文数: 0引用数: 0
h-index: 0
机构:
MGAP, Direcc Nacl Recursos Acuciticos, Rocha 27001, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Brooks, Wesley
Corsi, Steven
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Corsi, Steven
Fienen, Michael
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Fienen, Michael
Carvin, Rebecca
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
机构:
Department of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Chawla, Nitesh V.
Bowyer, Kevin W.
论文数: 0引用数: 0
h-index: 0
机构:
Department of Computer Science and Engineering, 384 Fitzpatrick Hall, University of Notre Dame, Notre Dame, IN 46556, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Bowyer, Kevin W.
Hall, Lawrence O.
论文数: 0引用数: 0
h-index: 0
机构:
Department of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Hall, Lawrence O.
Kegelmeyer, W. Philip
论文数: 0引用数: 0
h-index: 0
机构:
Sandia National Laboratories, Biosystems Research Department, MS 9951, P.O. Box 969, Livermore, CA, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
机构:
Univ Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Avila, Rodelyn
Horn, Beverley
论文数: 0引用数: 0
h-index: 0
机构:
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Horn, Beverley
Moriarty, Elaine
论文数: 0引用数: 0
h-index: 0
机构:
ESR, Inst Environm Sci & Res, POB 29181, Christchurch 8540, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Moriarty, Elaine
Hodson, Roger
论文数: 0引用数: 0
h-index: 0
机构:
Environm Southland, Private Bag 90116, Invercargill 9840, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
Hodson, Roger
Moltchanova, Elena
论文数: 0引用数: 0
h-index: 0
机构:
Univ Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New ZealandUniv Canterbury, Sch Math & Stat, Private Bag 4800, Christchurch 8140, New Zealand
机构:
Walter & Eliza Hall Inst Med Res, Div Mol Med, Melbourne, Vic 3050, Australia
Univ Melbourne, Dept Med Biol, Melbourne, Vic 3050, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Blewitt, Marnie E.
Gendrel, Anne-Valerie
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Gendrel, Anne-Valerie
Pang, Zhenyi
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Pang, Zhenyi
Sparrow, Duncan B.
论文数: 0引用数: 0
h-index: 0
机构:
Univ New S Wales, Victor Chang Cardiac Res Inst, Sydney, NSW 2010, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Sparrow, Duncan B.
Whitelaw, Nadia
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, Australia
Univ Queensland, Sch Med, Brisbane, Qld 4072, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Whitelaw, Nadia
Craig, Jeffrey M.
论文数: 0引用数: 0
h-index: 0
机构:
Murdoch Childrens Res Inst, Parkville, Vic 3052, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Craig, Jeffrey M.
Apedaile, Anwyn
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Apedaile, Anwyn
Hilton, Douglas J.
论文数: 0引用数: 0
h-index: 0
机构:
Walter & Eliza Hall Inst Med Res, Div Mol Med, Melbourne, Vic 3050, Australia
Univ Melbourne, Dept Med Biol, Melbourne, Vic 3050, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Hilton, Douglas J.
Dunwoodie, Sally L.
论文数: 0引用数: 0
h-index: 0
机构:Queensland Inst Med Res, Brisbane, Qld 4006, Australia
Dunwoodie, Sally L.
Brockdorff, Neil
论文数: 0引用数: 0
h-index: 0
机构:
Univ London Imperial Coll Sci Technol & Med, MRC, Ctr Clin Sci, London SW7 2AZ, England
Univ London Imperial Coll Sci Technol & Med, MRC, Fac Med, London SW7 2AZ, EnglandQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Brockdorff, Neil
Kay, Graham F.
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
Kay, Graham F.
Whitelaw, Emma
论文数: 0引用数: 0
h-index: 0
机构:
Queensland Inst Med Res, Brisbane, Qld 4006, AustraliaQueensland Inst Med Res, Brisbane, Qld 4006, Australia
机构:
Fac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Univ La Republ, Fac Ciencias Econ & Adm, Dept Metodos Matemat Cuantitativos, Av Gonzalo Ramirez 1926, Montevideo 11200, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Bourel, M.
Crisci, C.
论文数: 0引用数: 0
h-index: 0
机构:
Univ La Republ, Ctr Univ Reg Este, Ruta Nacl N9 & Ruta N15, Rocha 27000, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
Crisci, C.
Martinez, A.
论文数: 0引用数: 0
h-index: 0
机构:
MGAP, Direcc Nacl Recursos Acuciticos, Rocha 27001, UruguayFac Ingn, Inst Matemat & Estat Prof Ing Rafael Laguardia, Julio Herrera & Reissig 565, Montevideo 11200, Uruguay
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Brooks, Wesley
Corsi, Steven
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Corsi, Steven
Fienen, Michael
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
Fienen, Michael
Carvin, Rebecca
论文数: 0引用数: 0
h-index: 0
机构:
US Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USAUS Geol Survey, Wisconsin Water Sci Ctr, 8505 Res Way, Middleton, WI 53562 USA
机构:
Department of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Chawla, Nitesh V.
Bowyer, Kevin W.
论文数: 0引用数: 0
h-index: 0
机构:
Department of Computer Science and Engineering, 384 Fitzpatrick Hall, University of Notre Dame, Notre Dame, IN 46556, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Bowyer, Kevin W.
Hall, Lawrence O.
论文数: 0引用数: 0
h-index: 0
机构:
Department of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States
Hall, Lawrence O.
Kegelmeyer, W. Philip
论文数: 0引用数: 0
h-index: 0
机构:
Sandia National Laboratories, Biosystems Research Department, MS 9951, P.O. Box 969, Livermore, CA, United StatesDepartment of Computer Science and Engineering, ENB 118, University of South Florida, 4202 E. Fowler Ave, Tampa, FL 33620-5399, United States