Skip to content

Gowtham2007-code/Weather_Temperature_Prediction-ML-Project-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌤 Weather Temperature Prediction ML Web App

🚀 A Machine Learning-based web application that predicts temperature using real-time weather parameters. Built using Flask, Random Forest, and deployed on Render.


🔗 Live Demo

👉 https://weather-temperature-prediction-ml-project.onrender.com


📸 Preview

image alt

After Prediction

image alt

📌 Project Overview

This project predicts the temperature (°C) based on multiple weather features such as:

  • Wind Speed
  • Wind Direction
  • Pressure
  • Humidity
  • Cloud Coverage
  • Visibility
  • Sunrise Time

The model is trained using a Random Forest Regressor and deployed as a web application for real-time predictions.


🧠 Machine Learning Details

  • Algorithm: Random Forest Regressor

  • Dataset Size: ~130,000 rows

  • Preprocessing:

    • Handling missing values
    • Feature engineering (sunrise → minutes)
    • One-hot encoding (wind direction)

📊 Model Performance

  • Accuracy: 71.50%
  • R² Score: 0.715
  • RMSE: 5.16

🛠 Tech Stack

Category Tools
Backend Flask
ML Model Scikit-learn
Data Processing Pandas, NumPy
Deployment Render
Server Gunicorn
Frontend HTML, CSS, Bootstrap

🎯 Features

✅ Real-time temperature prediction ✅ Clean and responsive UI ✅ Smart input suggestions ✅ Auto-fill feature for quick testing ✅ Model performance metrics displayed ✅ Fully deployed web app


📂 Project Structure

project/
│
├── app.py
├── model.pkl
├── columns.pkl
├── accuracy.pkl
├── r2.pkl
├── rmse.pkl
├── requirements.txt
├── Procfile
│
└── templates/
    └── index.html

⚙️ How It Works

  1. User inputs weather parameters
  2. Data is preprocessed (encoding + transformation)
  3. Model predicts temperature
  4. Results + metrics displayed on UI

🚀 Installation (Run Locally)

git clone https://github.com/YOUR_USERNAME/weather-ml.git
cd weather-ml
pip install -r requirements.txt
python app.py

🌐 Deployment

This project is deployed on Render using:

  • Gunicorn (WSGI server)
  • Flask backend
  • Pre-trained ML model

🧠 Future Improvements

  • 📊 Add visualization graphs
  • 🌍 Integrate live weather API
  • 🤖 Add chatbot interface
  • 📱 Improve UI/UX with animations
  • 🔐 Add authentication system

🙌 Author

Gowtham P B.Tech CSE (AI) Aspiring ML Engineer 🚀


⭐ If you like this project

Give it a ⭐ on GitHub and share it!

About

This is my ML project i did in my collage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors