[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-126218-en":3,"doc-seo-126218-105":31,"detail-sidebar-cat-0-en-105":93},{"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":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30},126218,549768702563,"Sage","https://ap-avatar.wpscdn.com/avatar/8000c4aa63b76e948b?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786536092046926083",8,"Research & Report","TDS Prediction with Wavelet Analysis and Trend-Seasonal Decomposition and Machine Learning Algorithms - Case Study: Karkheh River, Iran","Water quality assessment is critical as river resources are increasingly stressed by population growth, climate change driven by human activity, and changing consumption patterns. This study proposes a signal-analysis framework to predict total dissolved solids (TDS) in the Karkheh River, Iran. Continuous wavelet transform decomposes water-quality time series into trend, seasonality, and residual components, from which temporal-dynamics features are extracted. Nonlinear machine learning models (XGBoost, Random Forest, Decision Tree) compare scenarios for feature construction. Results from 50 years of data from three stations reach over 95% accuracy, with signal-driven features improving RMSE by about 30% and supporting scalable real-time monitoring and earlier warning in semi-arid systems.","Water Conservation Science and Engineering (2025) 10:63  \n[https://doi.org/10.1007/s41](https://doi.org/10.1007/s41) 101-025-00390-z  \nTDS Prediction with Wavelet Analysis and Trend‑Seasonal Decomposition and Machine Learning Algorithms, Case Study:  \nKarkheh River, Iran  \nHossein Amini1 · Farshid Fakheri2 · Jaffer Yousuf Dar3 · Reza Shakeri4 · Hossein Nejati4 · ManYue Lam1 · Banafsheh Zahraie4 · Reza Ahmadian1  \nReceived: 14 January 2025 / Revised: 31 May 2025 / Accepted: 17 June 2025 © The Author(s) 2025  \nAbstract  \nWater quality assessment is definitely important, as the available water resources are highly stressed by population growth, climate change due to anthropogenic activities, and a significant change in consumption patterns. This study aims an innovative framework to predict the total dissolved solids (TDS) with more accuracy in the rivers, case study: “Karkheh River”, Iran, with the integration of signal analysis with machine learning algorithms. First, continuous wavelet transform (CWT) was applied to decompose the time series of water quality variables (e.g., Ca, HCO3, SO4, and Cl) into their trends, seasonality, and residuals, extracting features that capture temporal dynamics. These features served as input for non-linear machine learning models (XGBoost, Random Forest, Decision Tree) in differenct scenarios to compare which way of adding new feature would improve the model performance in terms of the TDS predictions. Adding new features characterized by only TDS signal analysis improved the TDS predictions and was compared with adding all variables signal characterization and compared with only using raw data to predict TDS level. Using a 50-year dataset from three different hydrometric stations, the models could achieve over 95% accuracy, and XGBoost outperformed others in terms of taking the advantage of the new extracted features from signals. The results indicates that signal-driven features significantly contribute to ccurately TDS prediction by 30% improvement in RMSE, and it can offer a scalable approach for real-time water quality monitoring in semi-arid river systems, which leads to a better early warning system for designing future mitigation strategies.  \nKeywords Water quality · Machine learning · TDS · Signal analysis  \n* Hossein Amini [AminiH@cardiff.ac.uk](AminiH@cardiff.ac.uk)  \nFarshid Fakheri[farshid73@aut.ac.ir](farshid73@aut.ac.ir)  \nJaffer Yousuf Dar [Yousuf.Dar@igb-berlin.de](Yousuf.Dar@igb-berlin.de)[ ](Yousuf.Dar@igb-berlin.de)Reza Shakeri [Shakeri.R@ut.ac.ir](Shakeri.R@ut.ac.ir)  \nHossein Nejati  \n[Hossein.nejati@ut.ac.ir](Hossein.nejati@ut.ac.ir)[ ](Hossein.nejati@ut.ac.ir)Man Yue Lam [LamM7@cardiff.ac.uk](LamM7@cardiff.ac.uk)  \nBanafsheh Zahraie  \n[bzahraie@ut.ac.ir](bzahraie@ut.ac.ir)  \nReza Ahmadian  \n[AhmadianR@cardiff.ac.uk](AhmadianR@cardiff.ac.uk)  \n1 Hydro-Environmental Research Centre, School of Engineering, Cardiff University, Cardiff, UK  \n2 Department of Civil and Environmental Engineering, Amirkabir University of Technology, Tehran, Iran  \n3 Department of Experimental Limnology, Leibniz-Institute of Freshwater Ecology and Inland Fisheries, Berlin, Germany  \n4 School of Civil Engineering, College of Engineering, University of Tehran, Tehran, Iran  \nIntroduction  \nWater is a fundamental and highly limited resource, essential for the sustenance of life and the health of ecosystems. Water quality is a pivotal priority for public health, ecosystem sustainability, and economic development, and it faces unprecedented challenges from population growth, climate change, and anthropogenic activities [23 , 36 , 60] . Given the strong and direct correlation between water quality and public health, governments and international organizations have made it a top priority [16] . Globally, the abovementioned challenges in freshwater resources are mainly from agricultural runoff, industrial discharges, and urban wastewater degrading surface and groundwater quality [13, 41]. According to t","cbCaiaZlULVIsgQ2","https://ap.wps.com/l/cbCaiaZlULVIsgQ2","pdf",5437502,5,1,17,"English","en",105,"# Abstract\n# Keywords\n# Introduction\n## Importance of water quality monitoring\n## Role of TDS and electrical conductivity (EC)\n## Regional context and relevance to Iran","[{\"question\":\"What is the main goal of this study?\",\"answer\":\"To predict total dissolved solids (TDS) in rivers more accurately by integrating signal analysis methods with machine learning.\"},{\"question\":\"How are time-series signals processed before machine learning?\",\"answer\":\"Continuous wavelet transform (CWT) decomposes variables into trend, seasonality, and residual components, generating features that represent temporal dynamics.\"},{\"question\":\"Which machine learning model performed best and why does it matter?\",\"answer\":\"XGBoost outperformed other models by leveraging the extracted signal-driven features, yielding over 95% accuracy and about 30% RMSE improvement.\"}]","TDS Prediction with Wavelet Analysis and Trend-Seasonal Decomposition and Machine Learning Algorithms - Case Study: Karkheh River, Iran | PDF",1785903854,43,{"code":4,"msg":32,"data":33},"ok",{"site_id":25,"language":24,"slug":34,"title":13,"keywords":35,"description":14,"schema_data":36,"social_meta":88,"head_meta":90,"extra_data":92,"updated_unix":29},"tds-prediction-with-wavelet-analysis-and-trend-seasonal-decomposition-and-machine-learning-algorithms-case-study-karkheh-river-iran","",{"@graph":37,"@context":87},[38,55,70],{"@type":39,"itemListElement":40},"BreadcrumbList",[41,45,49,52],{"item":42,"name":43,"@type":44,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":46,"name":47,"@type":44,"position":48},"https://docshare.wps.com/document/","Document",2,{"item":50,"name":12,"@type":44,"position":51},"https://docshare.wps.com/document/research-report/",3,{"item":53,"name":13,"@type":44,"position":54},"https://docshare.wps.com/document/tds-prediction-with-wavelet-analysis-and-trend-seasonal-decomposition-and-machine-learning-algorithms-case-study-karkheh-river-iran/126218/",4,{"url":53,"name":13,"@type":56,"author":57,"headline":13,"publisher":59,"fileFormat":62,"inLanguage":24,"description":14,"dateModified":63,"datePublished":64,"encodingFormat":62,"isAccessibleForFree":65,"interactionStatistic":66},"DigitalDocument",{"name":9,"@type":58},"Person",{"url":42,"name":60,"@type":61},"DocShare","Organization","application/pdf","2026-08-23","2026-08-05",true,{"@type":67,"interactionType":68,"userInteractionCount":20},"InteractionCounter",{"@type":69},"ViewAction",{"@type":71,"mainEntity":72},"FAQPage",[73,79,83],{"name":74,"@type":75,"acceptedAnswer":76},"What is the main goal of this study?","Question",{"text":77,"@type":78},"To predict total dissolved solids (TDS) in rivers more accurately by integrating signal analysis methods with machine learning.","Answer",{"name":80,"@type":75,"acceptedAnswer":81},"How are time-series signals processed before machine learning?",{"text":82,"@type":78},"Continuous wavelet transform (CWT) decomposes variables into trend, seasonality, and residual components, generating features that represent temporal dynamics.",{"name":84,"@type":75,"acceptedAnswer":85},"Which machine learning model performed best and why does it matter?",{"text":86,"@type":78},"XGBoost outperformed other models by leveraging the extracted signal-driven features, yielding over 95% accuracy and about 30% RMSE improvement.","https://schema.org",{"og:url":53,"og:type":89,"og:title":13,"og:site_name":60,"og:description":14},"article",{"robots":91,"canonical":53},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":94},[95,99,103,107,111,116,121,124,129,132,136],{"id":21,"doc_module":4,"doc_module_name":47,"category_name":96,"show_sort_weight":97,"slug":98},"Story & Novel",90,"story-novel",{"id":48,"doc_module":4,"doc_module_name":47,"category_name":100,"show_sort_weight":101,"slug":102},"Literature",80,"literature",{"id":54,"doc_module":4,"doc_module_name":47,"category_name":104,"show_sort_weight":105,"slug":106},"Exam",70,"exam",{"id":20,"doc_module":4,"doc_module_name":47,"category_name":108,"show_sort_weight":109,"slug":110},"Comic",60,"comic",{"id":112,"doc_module":4,"doc_module_name":47,"category_name":113,"show_sort_weight":114,"slug":115},6,"Technology",50,"technology",{"id":117,"doc_module":4,"doc_module_name":47,"category_name":118,"show_sort_weight":119,"slug":120},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":47,"category_name":12,"show_sort_weight":122,"slug":123},30,"research-report",{"id":125,"doc_module":4,"doc_module_name":47,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":47,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":47,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":137,"doc_module":4,"doc_module_name":47,"category_name":138,"show_sort_weight":20,"slug":139},19,"General","general"]