solar-website

byMidhun Kola

๐ŸŒ Website Development for Energy Consumption Forecasting System ๐Ÿ”ท 1. Introduction A web-based application is developed to make the energy forecasting model accessible and interactive. The website allows users (such as building managers or users) to input parameters like temperature, humidity, and occupancy, and receive predicted energy consumption instantly. This system integrates a machine learning regression model with a user-friendly interface. ๐Ÿ”ท 2. Purpose of the Website Provide a simple interface for prediction Visualize energy consumption data using graphs Enable real-time forecasting Make the model accessible without coding knowledge ๐Ÿ”ท 3. System Architecture 5 Components: 1. Frontend (User Interface) Developed using: HTML CSS JavaScript ๐Ÿ‘‰ Responsibilities: Take user inputs Display prediction results Show graphs (charts) 2. Backend (Server) Developed using: Python (Flask / Django) ๐Ÿ‘‰ Responsibilities: Handle user requests Load trained regression model Perform prediction 3. Machine Learning Model Random Forest Regression (main model) Trained using historical data ๐Ÿ‘‰ Responsibilities: Predict energy consumption 4. Database (Optional) Stores: Historical data User inputs Prediction results ๐Ÿ”ท 4. Workflow of the Website User Input โ†’ Frontend Form โ†’ Backend Server โ†’ ML Model โ†’ Prediction โ†’ Display Output Explanation: User enters: Temperature Humidity Occupancy Data is sent to backend Backend processes input Model predicts energy usage Result is displayed on webpage ๐Ÿ”ท 5. Website Features โœ” Input Form Fields for: Temperature Humidity Occupancy Time โœ” Prediction Output Displays predicted energy consumption (kWh) โœ” Graph Visualization 7 Shows: Actual vs Predicted values Helps understand model performance โœ” Responsive Design Works on mobile and desktop ๐Ÿ”ท 6. Technologies Used Component Technology Frontend HTML, CSS, JavaScript Backend Python (Flask/Django) ML Model Scikit-learn Visualization Matplotlib / Chart.js ๐Ÿ”ท 7. Model Integration Train model using Python Save model using: import joblib joblib.dump(model, "model.pkl") Load in backend: model = joblib.load("model.pkl") ๐Ÿ‘‰ This allows real-time prediction on the website ๐Ÿ”ท 8. Advantages of Website โœ” Easy to use โœ” No coding required for users โœ” Real-time predictions โœ” Visual insights with graphs ๐Ÿ”ท 9. Limitations โŒ Requires server hosting โŒ Depends on internet โŒ Model accuracy depends on data ๐Ÿ”ท 10. Future Enhancements Add real-time IoT sensor data Deploy on cloud (AWS / Azure) Add user login system Improve UI/UX design ๐Ÿ”ท 11. Conclusion The website provides an efficient platform to deploy and interact with the energy consumption forecasting model. By combining machine learning with web technologies, users can easily predict energy usage and make informed decisions to optimize energy efficiency in smart buildings.

LandingDatasetsLogin
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 7

System Requirements Document (SRD) for Solar-Website

1. Introduction

The Solar-Website project aims to develop a web-based application for forecasting energy consumption in smart buildings. This system will utilize machine learning models to provide accurate predictions based on historical and real-time sensor data. The platform is designed to be user-friendly, enabling users to input key parameters such as temperature, humidity, occupancy, and appliance usage to receive real-time energy consumption forecasts. By integrating advanced regression models and interactive visualizations, the Solar-Website will empower users to optimize energy efficiency, reduce costs, and contribute to sustainability.

This document outlines the system requirements for the Solar-Website project, tailored to the needs of Midhun Kola and the Indian market context, including locale-specific defaults such as IST timezone and INR currency where applicable.

Page 2 of 7

2. System Overview

The Solar-Website is a comprehensive solution for energy consumption forecasting in smart buildings. It combines machine learning models (Random Forest Regression and Multiple Linear Regression) with a responsive web interface to deliver accurate predictions and actionable insights. The system will:

  • Analyze historical and real-time sensor data.
  • Predict energy consumption based on key influencing factors.
  • Provide graphical visualizations for better understanding.
  • Enable real-time forecasting through a web-based application.

The project is designed to serve various applications, including smart homes, commercial buildings, and smart cities, emphasizing energy efficiency, cost reduction, and sustainability.

3. Functional Requirements

  • As a User, I should be able to input parameters such as temperature, humidity, occupancy, time, and appliance usage.
  • As a User, I should be able to view real-time energy consumption predictions.
  • As a User, I should be able to compare actual vs predicted energy consumption on a line graph.
  • As a User, I should be able to view performance metrics such as MAE, MSE, and Rยฒ Score for the regression models.
  • As a User, I should be able to access the system on both desktop and mobile devices.
  • As an Admin, I should be able to upload and manage historical datasets for training and testing.
  • As an Admin, I should be able to monitor the performance of the machine learning models.

4. User Personas

Page 3 of 7

1. Building Manager

  • Role: Oversees energy usage in commercial or residential buildings.
  • Needs: Accurate energy forecasts to optimize energy efficiency and reduce costs.
  • Technical Expertise: Basic understanding of energy metrics, non-technical user.

2. Homeowner

  • Role: Manages energy consumption in smart homes.
  • Needs: Insights into energy usage to reduce bills and improve sustainability.
  • Technical Expertise: Minimal, prefers a simple and intuitive interface.

3. Admin

  • Role: Manages the backend system, datasets, and model performance.
  • Needs: Tools to upload datasets, monitor model accuracy, and ensure system reliability.
  • Technical Expertise: Advanced, familiar with machine learning and data management.

5. Visuals Colors and Theme

Page 4 of 7

Color Palette

  • Background: #F5F9FF (Soft Sky Blue)
  • Surface: #FFFFFF (Pure White)
  • Text: #2C3E50 (Deep Slate Gray)
  • Accent: #FFB400 (Solar Yellow)
  • Muted Tones: #B0BEC5 (Cool Gray)

The color palette reflects a clean, modern, and eco-friendly aesthetic, aligning with the project's focus on sustainability and energy efficiency.

6. Signature Design Concept

Interactive Solar Dashboard with Dynamic Time-Based Visualization

The homepage of the Solar-Website will feature an interactive solar dashboard that dynamically adjusts based on the time of day. The design will include:

  • Animated Solar Path: A sun icon that moves across the screen, representing the time of day (morning, afternoon, evening, night).
  • Real-Time Energy Graph: A live-updating line graph displaying energy consumption trends over the past 24 hours, with smooth transitions and hover-over data points for detailed insights.
  • Interactive Widgets: Users can adjust parameters like temperature, humidity, and occupancy directly on the dashboard, with real-time updates to the graph and predictions.
  • Eco-Friendly Animations: Subtle animations of solar panels and wind turbines in the background, reinforcing the sustainability theme.
  • Dark Mode: An optional dark mode with a gradient night sky background and glowing accents for nighttime use.

This unique design will make the Solar-Website visually captivating and highly engaging, ensuring a memorable first impression.

Page 5 of 7

7. Non-Functional Requirements

  • Performance: The system should provide predictions within 2 seconds of input submission.
  • Scalability: The backend should handle up to 10,000 concurrent users.
  • Availability: The system should maintain 99.9% uptime.
  • Security: User data must be encrypted during transmission and storage.
  • Localization: The system should support IST timezone and INR currency for Indian users.

8. Tech Stack

Frontend

  • React for Web

Backend

  • Python
  • FastAPI

Database

  • MySQL (with Alembic for migrations)

Machine Learning Models

  • Random Forest Regression (primary)
  • Multiple Linear Regression (baseline)
Page 6 of 7

AI Tools

  • LangChain for model integration
  • LiteLLM for LLM routing

Orchestration

  • Docker for local development
  • Kubernetes for server-side orchestration

9. Assumptions and Constraints

Assumptions

  • Users will have access to the internet to use the web application.
  • Historical and real-time sensor data will be available for model training and predictions.
  • The system will primarily serve users in India, with potential for global scalability.

Constraints

  • The accuracy of predictions depends on the quality and quantity of input data.
  • Real-time sensor data integration may require additional hardware and APIs.
  • Initial deployment will focus on web-based access, with mobile app development as a future enhancement.
Page 7 of 7

10. Glossary

  • Random Forest Regression: A machine learning algorithm that uses multiple decision trees to predict outcomes.
  • Multiple Linear Regression: A statistical method for modeling the relationship between a dependent variable and multiple independent variables.
  • MAE (Mean Absolute Error): A metric that measures the average magnitude of errors in predictions.
  • MSE (Mean Squared Error): A metric that measures the average squared difference between actual and predicted values.
  • Rยฒ Score: A statistical measure that indicates how well the regression model fits the data.
  • IST: Indian Standard Time.
  • INR: Indian Rupee.

This document provides a comprehensive roadmap for the Solar-Website project, ensuring alignment with Midhun Kola's vision and the project's technical and user-centric goals.

Landing design preview
Login: Sign In
Admin Dashboard: View System Status
Datasets: Upload Dataset
Datasets: Manage Datasets
Models: Monitor Performance
Models: View Metrics