Skip to content

Analyze events through Vedic astrology - calculates planetary positions, yogas, and aspects with AI pattern detection. Processes CSV event data to reveal cosmic correlations.

License

Notifications You must be signed in to change notification settings

Ishanoshada/CosmicVedicAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Cosmic Vedic Astrology Analyzer 🌠

Unlock celestial insights from event data using ancient Vedic astrology combined with modern data science

1

πŸ“Œ Overview

This project analyzes historical or contemporary events through the lens of Vedic astrology, revealing hidden planetary patterns and cosmic influences. It processes event data (like earthquakes, financial events, or personal milestones) and performs sophisticated astrological calculations combined with machine learning analysis.

Give us a ⭐️ if you find this project helpful!

If you like this project, please consider giving it a star ⭐️ on GitHub. Your support motivates me to keep improving it!

Buy Me a Coffee

πŸ” Key Features

1

πŸ“Š Data Processing

  • Flexible CSV parsing - Handles multiple date/time formats automatically
  • Smart column detection - Identifies date, location, magnitude columns
  • Data normalization - Converts diverse formats into standardized astrological inputs

1

♉ Vedic Astrology Analysis

  • Planetary Positions: Calculates positions of all 9 Vedic planets (including Rahu/Ketu)
  • House System: 12-house Bhāva system with accurate cusp calculations
  • Aspects (Drishti): Full Vedic aspect patterns including special planetary aspects
  • Yogas: Detects significant planetary combinations (Raj Yoga, Gajakesari Yoga, etc.)
  • Planetary Strength: Shadbala-inspired strength calculations

πŸ€– Advanced AI Analysis

  • Event Clustering: Groups similar astrological patterns using K-Means and t-SNE
  • Feature Importance: Identifies most influential planetary positions using Random Forests
  • Network Analysis: Visualizes planetary relationship networks
  • Temporal Patterns: Detects cyclical patterns in event occurrences

πŸ›  Technical Implementation

Backend (Python/Flask)

  • Astronomical Calculations:

    • Uses PyEphem for precise planetary positions
    • Implements Lahiri Ayanamsa for sidereal zodiac
    • Calculates special lunar nodes (Rahu/Ketu)
  • Machine Learning:

    • Dimensionality Reduction: PCA + t-SNE for visualization
    • Clustering: Optimal K-Means clustering with silhouette scoring
    • Feature Analysis: Random Forest feature importance
    • Network Analysis: NetworkX for planetary aspect graphs

1

Frontend

  • Interactive Visualizations: Chart.js for planetary distributions and patterns
  • Cosmic UI: Particle.js animated background with responsive design
  • Animated Transitions: AOS library for smooth scrolling effects

πŸ“‚ Sample Datasets Included

  1. Earthquakes (1995-2023)

    • 28 years of global seismic activity
    • Contains magnitude, depth, and location data
    • Demonstrates planetary patterns in natural disasters
  2. Historical Tsunamis

    • Major tsunami events with impact data
    • Shows lunar nodal (Rahu/Ketu) correlations

πŸš€ Getting Started

Prerequisites

  • Python 3.8+
  • pip package manager

Installation

# Clone repository
git clone https://github.com/ishanoshada/CosmicVedicAnalyzer.git
cd CosmicVedicAnalyzer

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run application
python api/app.py

Visit http://localhost:5000 in your browser after starting the application.

πŸ“ How to Use

  1. Prepare Your Data:

    • Create CSV with events (date/time + location required)
    • Example columns: "2020-01-01 14:30", 34.0522, -118.2437 (LA coordinates)
  2. Upload & Analyze:

    • Drag-and-drop your CSV file
    • System auto-detects columns and formats
  3. Interpret Results:

    • View planetary position distributions
    • Examine significant yogas and aspects
    • Explore AI-generated clusters and patterns

1

🧠 Astrological Methodology

Core Calculations

  1. Sidereal Zodiac: Uses fixed-star based 27Β° nakshatras
  2. House System: Whole-sign houses from Ascendant
  3. Planetary Aspects:
    • Standard aspects (conjunction, sextile, square, etc.)
    • Special Vedic aspects (Mars 4/8, Jupiter 5/9, etc.)
  4. Planetary Strength:
    • Sign placement (exaltation/debilitation)
    • House position (kendras/trikonas)
    • Aspect relationships

Yoga Detection

  • Identifies 50+ classical yoga combinations
  • Weighted by traditional astrological texts
  • Contextualized to event data patterns

🐳 Docker Installation (Alternative)

For containerized deployment:

# Clone repository
git clone https://github.com/ishanoshada/CosmicVedicAnalyzer.git
cd CosmicVedicAnalyzer

# Build Docker image
docker build -t cosmic-vedic-analyzer .

# Run in background
docker run -d -p 8989:8989 --name cosmic-vedic-app cosmic-vedic-analyzer

Visit http://localhost:8989 in your browser after starting the container.

Docker Management Commands:

# View logs
docker logs cosmic-vedic-app

# Stop container
docker stop cosmic-vedic-app

# Start container
docker start cosmic-vedic-app

# Remove container
docker rm cosmic-vedic-app

🌐 Deployment Options

πŸš€ VPS Deployment with Custom Domain

For production deployment with custom subdomain:

# 1. Deploy on VPS with Docker
docker stop cosmic-vedic-app
docker rm cosmic-vedic-app

# Run with updated configuration
docker run -d -p 8989:8989 --name cosmic-vedic-app --restart unless-stopped cosmic-vedic-analyzer

# Check if it's running
docker ps
curl http://localhost:8989

# 2. Install Nginx reverse proxy
sudo apt install nginx

# 3. Configure subdomain (e.g., cosmic.yourdomain.com)
sudo nano /etc/nginx/sites-available/cosmic-vedic

Nginx Configuration:

server {
    listen 80;
    server_name cosmic.yourdomain.com;
    client_max_body_size 100M;
    location / {
        proxy_pass http://localhost:8989;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
# 4. Enable site and restart Nginx
sudo ln -s /etc/nginx/sites-available/cosmic-vedic /etc/nginx/sites-enabled/
sudo systemctl restart nginx

# 5. Update Docker container with restart policy
docker stop cosmic-vedic-app
docker rm cosmic-vedic-app
docker run -d -p 8989:8989 --name cosmic-vedic-app --restart unless-stopped cosmic-vedic-analyzer

# Check if everything is running
docker ps
curl http://localhost:8989

# 6. Optional: Add SSL with Certbot
sudo certbot --nginx -d cosmic.yourdomain.com

DNS Setup: Add A record in your domain provider:

Type: A
Name: cosmic (or your preferred subdomain)
Value: 147.79.101.193
TTL: 300

🀝 Contributing

We welcome contributions! Please see our Contribution Guidelines for details.

πŸ“œ License

MIT License - See LICENSE for details.

🌟 Acknowledgments

  • The Jyotish (Vedic astrology) tradition
  • Python astronomical community
  • Open-source data science ecosystem

"As above, so below" - Hermes Trismegistus

GitHub β€’ β€’ Contact

Views

About

Analyze events through Vedic astrology - calculates planetary positions, yogas, and aspects with AI pattern detection. Processes CSV event data to reveal cosmic correlations.

Topics

Resources

License

Stars

Watchers

Forks