Skip to content
WEB3: Water Level Monitor

WEB3: Water Level Monitor

Blockchain-Powered Water Quality Monitoring: Ensuring Transparency, Security, and Accuracy in Every Drop

Created on 11th September 2024

WEB3: Water Level Monitor

WEB3: Water Level Monitor

Blockchain-Powered Water Quality Monitoring: Ensuring Transparency, Security, and Accuracy in Every Drop

The problem WEB3: Water Level Monitor solves

In many regions, monitoring and maintaining water quality face significant challenges due to unauthorized data reporting, tampering, and fraud. Traditional methods often lack real-time oversight and transparency, which can result in inaccurate data, regulatory non-compliance, and compromised public health.

Our project addresses these issues by leveraging blockchain technology to ensure water quality data’s integrity and transparency. Here’s how it tackles the problems:

1. Unauthorized Meter Reporting: By implementing a smart contract, only authorized IoT devices can report data to the blockchain. This ensures that data integrity is maintained by preventing unauthorized devices from skewing the records. 2. IoT Meter Tampering Detection: The system uses Exponentially Weighted Moving Averages (EWMA) to predict expected water volume. Deviations beyond a set threshold trigger alerts, enabling prompt action to investigate potential tampering or fraud. 3. Regulatory Compliance: Smart contracts are established between regulators and organizations to ensure that water processing meets regulatory standards. This facilitates automatic enforcement of criteria and compliance checks. 4. Data Transparency and Security: Data stored on the blockchain is immutable, providing a transparent and secure record of water quality and usage. This ensures that all data is reliable and verifiable. 5. Real-Time Monitoring and Alerts: The project features a real-time dashboard that visualizes water usage and tampering status. Additionally, TensorFlow is used to calculate tampering probabilities, while Twilio and SendGrid provide SMS and email alerts for immediate notification of anomalies.

By integrating these features, our project enhances the accuracy and transparency of water quality monitoring, making regulatory compliance more efficient and ensuring that public health is safeguarded against data fraud and tampering.

Challenges we ran into

  1. Tampering Detection Accuracy
    Challenge: Achieving accurate tampering detection was a significant hurdle. Our initial Exponentially Weighted Moving Averages (EWMA) model struggled with sensitivity, either flagging too many false positives or missing actual tampering.
    Solution: We refined the EWMA model by adjusting smoothing factors and threshold values based on historical data analysis. Additional features were incorporated to enhance accuracy, and extensive testing with varied datasets helped optimize the model.
  2. Integrating Twilio and SendGrid
    Challenge: Integrating Twilio for SMS and SendGrid for email notifications presented difficulties due to incorrect API configurations and environment variable management.
    Solution: We addressed this by meticulously reviewing the API documentation for both services. Proper configuration of environment variables in the .env file was essential. Isolating and testing each service individually helped identify and correct configuration issues.
  3. Blockchain Integration and Gas Costs
    Challenge: Deploying smart contracts on Ethereum encountered issues with high gas costs and transaction failures.
    Solution: We optimized our smart contracts to reduce computational complexity and gas usage. Testing was conducted on the Rinkeby test network to simulate conditions without incurring high costs, allowing for debugging and refinement before final deployment.
  4. Real-Time Dashboard Performance
    Challenge: The real-time dashboard faced performance issues with large data volumes, leading to slow rendering and a great user experience.
    Solution: We enhanced dashboard performance by implementing data pagination and lazy loading. The use of Chart.js improved graph rendering efficiency, and Web3.js was optimized for data fetching to reduce delays.

Tracks Applied (2)

Polygon Track

How Polygon Fits My Project My project focuses on preventing unauthorized meter reports, detecting tampering, and ensuri...Read More
Polygon

Polygon

Ethereum Track

How ETHINDIA: ETHEREUM TRACK Fits My Project By using Ethereum smart contracts, my project ensures secure, immutable dat...Read More
ETHIndia

ETHIndia

Discussion

Builders also viewed

See more projects on Devfolio