[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-124332-en":3,"doc-seo-124332-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},124332,962075114765,"Quinn","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",8,"Research & Report","Multivariate functional data analysis and machine learning methods for anomaly detection in water quality sensor data","Reliable anomaly detection is vital for water resources management, yet water quality sensor data are complex and often suffer from limited labeled examples. This study evaluates multivariate functional data analysis and benchmarks it against supervised machine learning approaches using 18 years of expert-annotated records from four monitoring stations along Spain’s Ebro River. A multivariate functional model is proposed with a new amplitude metric and a nonparametric outlier detector (MMSA). A Random Forest architecture with sliding windows and balancing yields the best average F1 of 93%.","Environmental Modelling and Software 190 (2025) 106443  \n| Multivariate functional data analysis and machine learning methods for anomaly detection in water quality sensor data\u003Cbr>Xurxo Rigueira a,b ,∗, David Olivierib, Maria Araujo a, Angeles Saavedra c, Maria Pazo aa Department of Natural Resources and Environmental Engineering, University of Vigo, Vigo, 36310, Spain\u003Cbr>b Department of Computer Science, University of Vigo, Ourense, 32004, Spain\u003Cbr>c Department of Statistics and Operational Research, University of Vigo, Vigo, 36310, Spain |  |\n| --- | --- |\n| A R T I C L E I N F O | A B S T R A C T |\n| Dataset link: [https://doi.org/10.5281/zenodo.1](https://doi.org/10.5281/zenodo.1) | Reliable anomaly detection is crucial for water resources management, but the complexity of environmental |\n| 4769545, [https://doi.org/10.5281/zenodo.147](https://doi.org/10.5281/zenodo.147) | sensor data presents challenges, especially with limited labeled data in water quality analysis. Functional data |\n| 69551 | has experienced significant growth in anomaly detection, but most applications focus on unlabeled datasets. |\n| Keywords: | This study assesses the performance of multivariate functional data analysis and compares it with current |\n| Water quality | machine learning models for detecting water quality anomalies on 18 years of expert-annotated data from |\n| Sensor data | four monitoring stations along Spain’s Ebro River. We propose and validate a multivariate functional model |\n| Functional data analysis\u003Cbr>Supervised machine learning | incorporating a new amplitude metric and a nonparametric outlier detector (Multivariate Magnitude, Shape, and Amplitude–MMSA). Additionally, a Random Forest-based machine learning architecture was developed |\n| Anomaly detection | for the same purpose, employing sliding windows and data balancing techniques. The Random Forest model demonstrated the highest performance, achieving an average F1 score of 93%, while MMSA exhibited robustness in scenarios with limited anomalous data or labels. |\n\n1. Introduction  \nThe widespread deployment of environmental sensors has resulted in large datasets containing valuable information, particularly for identifying anomalies that reveal underlying processes (Garces and Sbarbaro, 2011). Anomaly detection, which involves identifying deviations from historical data, is therefore of critical importance (Hodge and Austin, 2004). In water systems, anomalies can signify events affecting quality and safety, such as those caused by pollution, extreme weather conditions, tampering or equipment malfunctions. These occurrences underscore the importance of thoroughly investigating the origins of such anomalies.  \nThe Ebro River watershed is an environmentally diverse region significantly impacted by climate and land use changes, as well as intense economic and social transformations, which collectively affect the ecological quality of water bodies (Cooper et al., 2013; Skoulikidis et al., 2017). Climate projections for the Mediterranean indicate shifts in temperature and precipitation patterns, leading to more frequent extreme events such as heavy rainfall and droughts (CeballosBarbancho et al., 2008; Gonzalez-Hidalgo et al., 2010; López-Moreno et al., 2010). These changes are compounded by land-use transformations, such as the abandonment of agricultural areas, which has expanded forests, increasing evapotranspiration and reducing runoff (Gallart et al., 2011; Buendia et al., 2016). Additionally, irrigation schemes  \n∗ Corresponding author.  \nE-mail address: [xurxo.rigueira@uvigo.gal](xurxo.rigueira@uvigo.gal) (X. Rigueira).  \ndisrupt river regimes by reversing seasonal hydrological patterns (Piqué et al., 2016). Furthermore, urban areas in this region further contribute to these changes, acting as point sources of pollution that elevate nutrient and contaminant concentrations in water (Han et al., 2009; Jeppesen et al., 2011; Brown et al., 2005). These factors collectively con","cbCaiqx9xKjjkwSa","https://ap.wps.com/l/cbCaiqx9xKjjkwSa","pdf",3017984,1,12,"English","en",105,"# Introduction\n## Anomaly detection in environmental sensor systems\n## Drivers of water quality changes in the Ebro River watershed\n## Expert-driven anomaly detection workflow\n# Methodological background\n## Time series analysis vs functional data analysis","[{\"question\":\"Why is anomaly detection important in water quality management?\",\"answer\":\"Anomalies indicate deviations from historical behavior that can reflect pollution events, extreme weather, tampering, or equipment malfunctions, which threaten water quality and safety.\"},{\"question\":\"What datasets and study setting are used to evaluate the methods?\",\"answer\":\"The evaluation uses 18 years of expert-annotated water quality data from four monitoring stations along Spain’s Ebro River.\"},{\"question\":\"How do the proposed multivariate functional approach and Random Forest compare?\",\"answer\":\"The Random Forest model achieves the highest average performance (average F1 of 93%), while MMSA remains robust when anomalous data or labels are limited.\"}]","Multivariate functional data analysis and machine learning methods for anomaly detection in water quality sensor data | PDF",1785821650,30,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"multivariate-functional-data-analysis-and-machine-learning-methods-for-anomaly-detection-in-water-quality-sensor-data","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/multivariate-functional-data-analysis-and-machine-learning-methods-for-anomaly-detection-in-water-quality-sensor-data/124332/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-04",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"Why is anomaly detection important in water quality management?","Question",{"text":75,"@type":76},"Anomalies indicate deviations from historical behavior that can reflect pollution events, extreme weather, tampering, or equipment malfunctions, which threaten water quality and safety.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"What datasets and study setting are used to evaluate the methods?",{"text":80,"@type":76},"The evaluation uses 18 years of expert-annotated water quality data from four monitoring stations along Spain’s Ebro River.",{"name":82,"@type":73,"acceptedAnswer":83},"How do the proposed multivariate functional approach and Random Forest compare?",{"text":84,"@type":76},"The Random Forest model achieves the highest average performance (average F1 of 93%), while MMSA remains robust when anomalous data or labels are limited.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":29,"slug":121},"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]