IDEAS home Printed from https://ideas.repec.org/a/plo/pwat00/0000259.html
   My bibliography  Save this article

Optimizing machine learning for water safety: A comparative analysis with dimensionality reduction and classifier performance in potability prediction

Author

Listed:
  • Debashis Chatterjee
  • Prithwish Ghosh
  • Amlan Banerjee
  • Shiladri Shekhar Das

Abstract

In this study, we investigated the effectiveness of machine learning techniques in predicting water potability based on water quality attributes. Initially, we applied seven classification-based methods directly to the original dataset, yielding varying accuracy scores. Notably, the Support Vector Machine (SVM) achieved the highest accuracy of 69%, while other methods such as XGBoost, k-Nearest Neighbors, Gaussian Naive Bayes, and Random Forest demonstrated competitive performance with scores ranging from 62% to 68%. Subsequently, we employed Principal Component Analysis (PCA) to reduce the dataset’s dimensionality to six principal components, followed by reapplication of the machine learning techniques. The results showed an increase in accuracy across all classifiers, increasing to nearly 100%. This study provides insights into the impact of dimensionality reduction on predictive accuracy and underscores the importance of selecting appropriate techniques for water potability prediction.

Suggested Citation

  • Debashis Chatterjee & Prithwish Ghosh & Amlan Banerjee & Shiladri Shekhar Das, 2024. "Optimizing machine learning for water safety: A comparative analysis with dimensionality reduction and classifier performance in potability prediction," PLOS Water, Public Library of Science, vol. 3(8), pages 1-25, August.
  • Handle: RePEc:plo:pwat00:0000259
    DOI: 10.1371/journal.pwat.0000259
    as

    Download full text from publisher

    File URL: https://journals.plos.org/water/article?id=10.1371/journal.pwat.0000259
    Download Restriction: no

    File URL: https://journals.plos.org/water/article/file?id=10.1371/journal.pwat.0000259&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pwat.0000259?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pwat00:0000259. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: water (email available below). General contact details of provider: https://journals.plos.org/water .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.