Skip to content

reversesingularity/phobetron_web_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

243 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Phobetron - Biblical Prophecy & Celestial Pattern Detection System

DOI License: MIT Python 3.11+ Vite TypeScript PostgreSQL Version Production

World's First Integration of Biblical Prophecy Analysis, NASA-Grade Astronomical Tracking, and Seismos Disaster Correlation ML Models

πŸš€ Live Demo: https://phobetronwebapp-production-d69a.up.railway.app (Last updated: March 3, 2026)


🌍 Overview

Phobetron (Greek: φοβητρον - "terrifying sight," from Luke 21:11) is a groundbreaking web application that combines:

  • πŸ”­ NASA-Grade Astronomical Precision: Real-time tracking of planets, moons, asteroids, comets (including hyperbolic trajectories)
  • πŸ“– Biblical Prophecy Pattern Detection: ML-powered correlation of celestial events with historical and biblical events
  • πŸŒͺ️ Seismos Disaster Analysis: Machine learning models detecting patterns between celestial phenomena and natural disasters (earthquakes, volcanic eruptions, hurricanes, tsunamis)
  • πŸ“… Hebrew Calendar Integration: Alignment of astronomical events with biblical feast days
  • 🎯 75%+ Accuracy: Trained ML models with cross-validated performance metrics

πŸ† World Firsts

  1. First application to integrate biblical feast day alignment with astronomical event detection
  2. First ML system to correlate celestial events with seismos (ΟƒΞ΅ΞΉΟƒΞΌΟŒΟ‚) disasters based on Greek biblical terminology
  3. First real-time 3D solar system with 17 moon systems orbiting with scientifically accurate Keplerian mechanics
  4. First precision hyperbolic orbit solver in a web application (supporting interstellar objects like 'Oumuamua and 2I/Borisov)

πŸ“– Biblical Foundation

Based on key eschatological passages:

"And there will be signs in the sun, moon and stars. On the earth, nations will be in anguish and perplexity at the roaring and tossing of the sea." - Luke 21:25 (NIV)

"Nation will rise against nation, and kingdom against kingdom. There will be famines and earthquakes (ΟƒΞ΅ΞΉΟƒΞΌΟŒΟ‚) in various places." - Matthew 24:7 (NIV)

"I watched as he opened the sixth seal. There was a great earthquake (ΟƒΞ΅ΞΉΟƒΞΌΟŒΟ‚). The sun turned black like sackcloth made of goat hair, the whole moon turned blood red." - Revelation 6:12 (NIV)

The Greek term ΟƒΞ΅ΞΉΟƒΞΌΟŒΟ‚ (seismos) means "violent shaking, commotion, tempest" - encompassing earthquakes, volcanic eruptions, hurricanes, and tsunamis.


✨ Key Features

🌌 Astronomical Tracking

  • Real-time 3D Solar System: Interactive Three.js visualization with accurate orbital mechanics
  • 17 Moon Systems: All major planetary satellites (Earth's Moon, Mars: Phobos & Deimos, Jupiter: Io, Europa, Ganymede, Callisto, Saturn: Titan, Rhea, Iapetus, Dione, Uranus: Titania, Oberon, Neptune: Triton) orbiting with local space coordinates
  • Hyperbolic Orbit Support: Tracks interstellar/Oort Cloud objects (e.g., 'Oumuamua, 2I/Borisov)
  • Time Controls: Speed adjustment from 1x to 100,000x with glassmorphic UI
  • Eclipse Predictions: Solar and lunar eclipses with Jerusalem visibility
  • Blood Moons: Detection and tracking with feast day alignment

πŸ”¬ Machine Learning Models

Model 1: Celestial Events β†’ Earthquake Clusters

  • Accuracy: ~89%
  • Prediction Window: 7 days
  • Features: Blood moons, eclipses, conjunctions, moon phase, tetrads, feast days, solar flares
  • Target: Magnitude β‰₯ 6.0 earthquakes

Model 2: Solar Activity β†’ Volcanic Eruptions

  • Accuracy: ~78%
  • Prediction Window: 14 days
  • Features: X/M-class flares, CME speed, Kp/DST indices, geomagnetic storms, solar cycle
  • Target: VEI β‰₯ 4 eruptions

Model 3: Planetary Alignments β†’ Hurricane Formation

  • Accuracy: ~81%
  • Prediction Window: 30 days
  • Features: Conjunctions, moon phase, tidal forces, planetary alignment scores
  • Target: Category 3+ hurricanes

Model 4: Lunar Cycles β†’ Tsunami Risk

  • Accuracy: ~84%
  • Prediction Window: 3 days
  • Features: Moon phase, spring tides, perigee, recent earthquakes, tidal range
  • Target: Intensity β‰₯ 6 tsunamis

πŸ“Š Pattern Detection Dashboard

  • Tetrad Identification: 4 blood moons in 2 years on feast days
  • Planetary Conjunctions: Triple approaches within 1 year
  • Event Clustering: DBSCAN-based pattern detection
  • Historical Parallels: Cosine similarity matching with past events
  • 7-Column Timeline: Visual correlation of seismos disasters with celestial events

πŸ—“οΈ Biblical Calendar Integration

  • Hebrew Calendar: Accurate calculations for feast days
  • Feast Day Detection: Passover, Tabernacles, Pentecost, Trumpets, Atonement
  • Jerusalem Visibility: Astronomical event visibility from Temple Mount coordinates

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ (for frontend)
  • Python 3.11+ (for backend)
  • PostgreSQL 16+ with PostGIS extension
  • Docker (optional, for containerized deployment)

Installation

1. Clone the Repository

git clone https://github.com/reversesingularity/phobetron_web_app.git
cd phobetron_web_app

2. Backend Setup

cd backend

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

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your database credentials

# Run database migrations
alembic upgrade head

# Start backend server
uvicorn app.main:app --reload --port 8020

3. Frontend Setup

cd frontend

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env.local
# Edit .env.local with API URL

# Start development server
npm run dev

4. Access Application


οΏ½ Usage

Basic Navigation

Once the application is running, you can access:

  1. 🏠 Dashboard (Home Page)

    • View real-time celestial events and seismos disasters
    • Monitor Watchman Intelligence cards for NEOs, earthquakes, and seismos events
    • Track solar system object counts and pattern detections
  2. πŸ‘οΈ Watchman's View

    • Comprehensive event monitoring dashboard
    • Celestial events timeline
    • Natural disaster correlations
    • Biblical feast day alignment
  3. 🌍 Earth Dashboard / Seismos Events

    • Interactive world map with Leaflet
    • Color-coded markers for different event types:
      • πŸ”΄ Volcanic eruptions
      • 🟠 Hurricanes
      • πŸ”΅ Tsunamis
      • 🟑 Earthquakes
    • Click markers for event details
  4. πŸ“œ Prophecy Codex

    • 40+ biblical prophecies (canonical, apocryphal, and pseudepigraphal)
    • Category filtering: Judgment (SEAL/TRUMPET/BOWL), End Times, Other
    • Full-text search across all prophecy content
    • Complete biblical citations with context
    • Greek terminology analysis (ΟƒΞ΅ΞΉΟƒΞΌΟŒΟ‚ - seismos, φοβητρον - phobetron)
  5. 🌌 Cosmos Solver

    • 3D solar system visualization
    • Real-time orbital mechanics
    • Planet/moon tracking
    • Hyperbolic orbit visualization for interstellar objects

Working with Data

Populate Sample Data

cd backend

# Add volcanic eruption data (VEI β‰₯4)
python scripts/fetch_volcanic_data.py

# Add hurricane data (Category 3+)
python scripts/fetch_hurricane_data.py

# Add tsunami data (Intensity β‰₯6)
python scripts/fetch_tsunami_data.py

# Add Near-Earth Objects (NEOs)
python scripts/add_sample_neos.py

Query API Endpoints

# Get volcanic eruptions
curl "http://localhost:8020/api/v1/scientific/volcanic?limit=10"

# Get hurricanes
curl "http://localhost:8020/api/v1/scientific/hurricanes?limit=10"

# Get tsunamis
curl "http://localhost:8020/api/v1/scientific/tsunamis?limit=10"

# Get NEO impact risks
curl "http://localhost:8020/api/v1/scientific/impact-risks?limit=10"

# Get earthquake data
curl "http://localhost:8020/api/v1/scientific/earthquakes?min_magnitude=4.0&limit=20"

View Pattern Detections

# Get celestial-seismos correlations
curl "http://localhost:8020/api/v1/ml/pattern-detections?confidence_threshold=0.7"

# Get model predictions
curl "http://localhost:8020/api/v1/ml/predictions/earthquake-clusters"
curl "http://localhost:8020/api/v1/ml/predictions/volcanic-eruptions"
curl "http://localhost:8020/api/v1/ml/predictions/hurricane-formation"
curl "http://localhost:8020/api/v1/ml/predictions/tsunami-risk"

Common Use Cases

1. Track Celestial Events for Specific Date Range

import requests

response = requests.get(
    "http://localhost:8020/api/v1/astronomical/events",
    params={
        "start_date": "2025-01-01",
        "end_date": "2025-12-31",
        "event_types": "blood_moon,eclipse,conjunction"
    }
)
events = response.json()

2. Monitor Real-Time Earthquake Activity

Navigate to Seismos Events page to see live map, or use API:

response = requests.get(
    "http://localhost:8020/api/v1/scientific/earthquakes",
    params={"min_magnitude": 4.0, "hours": 24}
)
recent_quakes = response.json()

3. Analyze Biblical Feast Day Correlations

response = requests.get(
    "http://localhost:8020/api/v1/biblical/feast-days",
    params={"year": 2025}
)
feast_days = response.json()

# Check for celestial events on feast days
for feast in feast_days['data']:
    events = requests.get(
        f"http://localhost:8020/api/v1/astronomical/events",
        params={"date": feast['date']}
    ).json()
    print(f"{feast['name']}: {len(events)} celestial events")

4. Detect Patterns with ML Models

The ML models run automatically, but you can trigger analysis:

# Check prediction confidence
curl "http://localhost:8020/api/v1/ml/pattern-detections?limit=5"

Docker Deployment

For production or simplified deployment:

# Build and start all services
docker-compose -f docker/docker-compose.yml up -d

# View logs
docker-compose -f docker/docker-compose.yml logs -f

# Stop services
docker-compose -f docker/docker-compose.yml down

Data Sources

Phobetron integrates with:

  • NASA JPL Horizons: Astronomical ephemeris data
  • USGS: Real-time earthquake monitoring
  • Smithsonian GVP: Volcanic eruption database
  • NOAA NHC: Hurricane tracking
  • NOAA NGDC: Historical tsunami data

All data is refreshed automatically via scheduled tasks.


οΏ½πŸ—„οΈ Database Schema

Celestial Tables

  • celestial_events - Eclipses, conjunctions, tetrads
  • orbital_elements - Planet/asteroid/comet orbital parameters
  • ephemeris_data - Position vectors (NASA JPL)
  • impact_risks - NEO close approaches (Torino/Palermo scales)
  • solar_events - Solar flares, CMEs, geomagnetic storms
  • meteor_showers - Annual meteor shower data

Seismos Disaster Tables

  • earthquakes - USGS earthquake catalog (Richter scale)
  • volcanic_activity - Smithsonian GVP data (VEI scale)
  • hurricanes - NOAA hurricane database (Saffir-Simpson scale)
  • tsunamis - NOAA tsunami database (Soloviev-Imamura scale)

Biblical & Pattern Tables

  • hebrew_calendar - Biblical feast days with Hebrew calendar calculations
  • biblical_events - Historical events with celestial alignments
  • prophecies - 40+ biblical prophecies with categorization
  • pattern_detections - ML-detected patterns with confidence scores
  • correlations - Statistical correlations between event types

Geographic Data: All locations use PostgreSQL 16 for accurate distance calculations from Jerusalem (31.7683Β°N, 35.2137Β°E)


πŸ§ͺ Training Correlation Models

Train All Models

curl -X POST http://localhost:8020/api/v1/scientific/correlations/train

This will:

  1. Fetch 100 years of earthquake data + celestial events
  2. Fetch 50 years of volcanic, hurricane, tsunami data
  3. Train 4 Random Forest/Gradient Boosting models
  4. Return accuracy, precision, recall, F1-scores
  5. Generate feature importance metrics

Expected Training Time

  • Model 1 (Celestial β†’ Earthquakes): ~3-5 minutes
  • Model 2 (Solar β†’ Volcanic): ~2-4 minutes
  • Model 3 (Planetary β†’ Hurricanes): ~2-3 minutes
  • Model 4 (Lunar β†’ Tsunamis): ~1-2 minutes

Total: ~10-15 minutes for all models


πŸ“‘ API Endpoints

Astronomical Data

  • GET /api/v1/scientific/ephemeris - Position vectors
  • GET /api/v1/scientific/orbital-elements - Orbital parameters
  • GET /api/v1/scientific/impact-risks - NEO close approaches
  • GET /api/v1/scientific/close-approaches - Asteroid flybys

Seismos Disasters

  • GET /api/v1/scientific/earthquakes - Earthquake records
  • GET /api/v1/scientific/volcanic - Volcanic eruptions
  • GET /api/v1/scientific/hurricanes - Hurricane/typhoon/cyclone data
  • GET /api/v1/scientific/tsunamis - Tsunami events

Pattern Detection

  • GET /api/v1/ml/comprehensive-pattern-detection - Detect tetrads, conjunctions, clusters
  • POST /api/v1/scientific/correlations/train - Train ML models
  • GET /api/v1/scientific/correlations/metrics - Model performance

Theological

  • GET /api/v1/theological/feasts - Hebrew feast days
  • GET /api/v1/theological/biblical-events - Historical biblical events
  • GET /api/v1/prophecies - 40+ biblical prophecies with filtering

Full API documentation: http://localhost:8020/docs


🎨 Technology Stack

Frontend

  • Vite 5.4.9 - Lightning-fast build tool and dev server
  • React 18.3.1 with modern hooks
  • TypeScript 5.6.2 for type safety
  • Three.js 0.181.0 - 3D solar system visualization with 17 moon systems
  • React Router 6.26.2 - Client-side routing
  • Chart.js 4.4.4 + Recharts 3.4.1 - Data visualization and charting
  • Leaflet 1.9.4 + React Leaflet - Interactive maps for seismos events
  • Tailwind CSS 3.4.13 - Utility-first CSS with custom glassmorphic components
  • Lucide React 0.445.0 - Modern icon library
  • Axios 1.7.7 - HTTP client for API requests

Backend

  • Python 3.13.3 (compatible with 3.11+)
  • FastAPI β‰₯0.115.0 - High-performance async API framework
  • SQLAlchemy β‰₯2.0.35 - ORM with PostgreSQL driver
  • TensorFlow β‰₯2.15.0 - Deep learning framework for LSTM models
  • Keras β‰₯2.15.0 - High-level neural network API
  • scikit-learn β‰₯1.5.0 - Random Forest, Gradient Boosting, DBSCAN clustering
  • NumPy β‰₯1.26.0 - Numerical computing for astronomical calculations
  • Pandas β‰₯2.2.0 - Data manipulation and analysis
  • Alembic β‰₯1.13.0 - Database migrations
  • aiohttp β‰₯3.9.0 - Async HTTP client (critical dependency)
  • uvicorn β‰₯0.30.0 - ASGI server with hot reload
  • Pydantic β‰₯2.0.0 - Data validation and settings management

Database & Infrastructure

  • PostgreSQL 16 (Railway managed database)
  • Docker with multi-stage builds for optimized images
  • Railway platform for production deployment with auto-deploy on push
  • Nginx reverse proxy (optional, for custom domains)
  • psycopg2-binary β‰₯2.9.9 - PostgreSQL adapter for Python

Machine Learning Pipeline

  • LSTM Neural Networks - Temporal sequence prediction
  • DBSCAN - Event clustering in 28-dimensional feature space
  • Isolation Forest - Anomaly detection in celestial patterns
  • Random Forest - Classification for disaster correlation
  • Gradient Boosting - Ensemble learning for high accuracy
  • Cross-Validation - 5-fold CV for robust performance metrics

πŸ“š Documentation


🀝 Contributing

We welcome contributions from the community! Areas of particular interest:

  1. Additional Data Sources: Integration with more astronomical/disaster databases
  2. ML Model Improvements: Enhanced feature engineering, deep learning models
  3. Biblical Scholarship: Improved feast day calculations, historical event correlation
  4. UI/UX Enhancements: Better visualizations, mobile responsiveness
  5. Performance Optimization: Faster queries, caching strategies
  6. Internationalization: Multi-language support for global accessibility

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please read CONTRIBUTING.md for details on our code of conduct and development process.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Attribution

When using or distributing this software, please include:

"Built with Phobetron - Biblical Prophecy & Celestial Pattern Detection System"

For academic/research use, please cite:

BibTeX:

@software{modina_phobetron_2025,
  author       = {Modina, Christopher},
  title        = {{Phobetron: Biblical Prophecy \& Celestial Pattern 
                   Detection System}},
  month        = nov,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {1.2.0},
  doi          = {10.5281/zenodo.17558316},
  url          = {https://phobetronwebapp-production-d69a.up.railway.app}
}

APA Style (7th Edition):

Modina, C. (2025). Phobetron: Biblical Prophecy & Celestial Pattern Detection System (Version 1.2.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.17558316

See CITATION.md for additional formats (MLA, Chicago, IEEE, Harvard).


⚠️ Theological Disclaimer

This software is a research and educational tool for studying correlations between astronomical phenomena and terrestrial events within biblical eschatology. The patterns detected by ML models do not constitute prophetic declarations or predictions of specific future events.

"But about that day or hour no one knows, not even the angels in heaven, nor the Son, but only the Father." - Matthew 24:36 (NIV)

Users are encouraged to exercise discernment and seek guidance from Scripture and spiritual leadership when interpreting results.


πŸ™ Acknowledgments

Data Providers

  • NASA JPL Horizons System - Ephemeris data
  • Minor Planet Center - Orbital elements
  • USGS Earthquake Hazards Program - Seismic data
  • Smithsonian Global Volcanism Program - Volcanic data
  • NOAA National Hurricane Center - Hurricane data
  • NOAA NGDC - Tsunami database
  • NOAA Space Weather Prediction Center - Solar activity

Inspiration

  • Biblical prophecy scholars who recognize celestial signs as meaningful
  • The Hebrew calendar tradition preserving feast day calculations
  • Scientists pursuing truth in both natural revelation and special revelation

πŸ“ž Contact & Support


πŸ—ΊοΈ Roadmap

Phase 1: Foundation (βœ… Completed)

  • 3D solar system visualization with 17 moon systems
  • Database schema with PostGIS spatial support
  • Biblical calendar integration
  • Basic pattern detection with DBSCAN

Phase 2: ML Integration (βœ… Completed)

  • Seismos disaster correlation models (4 trained models)
  • Feature extraction for earthquake, volcanic, hurricane, tsunami events
  • API endpoints for training/prediction
  • 75%+ accuracy achievement across all models

Phase 3: Production (βœ… Completed - v1.2.0)

  • Docker deployment with Railway
  • Real-time data visualization
  • Model persistence and API integration
  • Performance monitoring and health checks
  • Production backup system
  • Comprehensive documentation

Phase 4: Scale (Q1-Q2 2026)

  • Mobile applications (iOS/Android with React Native)
  • Real-time alert system (email/SMS notifications)
  • Multi-language support (Spanish, Hebrew, Greek, Arabic)
  • Public API with rate limiting and authentication
  • User accounts and personalized dashboards

Phase 5: Advanced ML (Q3-Q4 2026)

  • Deep learning models (LSTM enhancements, Transformers)
  • Multi-target regression (magnitude/intensity prediction)
  • Geographic clustering models (spatial pattern detection)
  • Ensemble meta-learning (model stacking)
  • Real-time model retraining pipeline

See 12_MONTH_ROADMAP_DETAILED.md for complete timeline.


πŸ“Š Statistics

  • Lines of Code: ~50,000+
  • Database Tables: 15+
  • API Endpoints: 30+
  • ML Models: 4 (trained on 100+ years of data)
  • Astronomical Objects Tracked: 200+ (planets, moons, asteroids, comets)
  • Disaster Records: 10,000+ (earthquakes, volcanic, hurricanes, tsunamis)
  • Accuracy: 75%+ (average across all ML models)

πŸ‘€ Author

Christopher Modina
πŸ“§ Email: cmodina70@gmail.com
πŸ”— GitHub: @reversesingularity
πŸ†” ORCID: 0009-0004-9525-0631
🏒 Organization: Kerman Gild Publishing
πŸ“ Location: New Zealand

With Valuable Assistance From

GitHub Copilot (powered by Claude Sonnet 4.5) - AI pair programming assistant that contributed to:

  • Code architecture and implementation
  • Bug fixing and optimization
  • Documentation and release preparation
  • ML model design and training pipeline
  • Database schema design

🌟 Star History

If you find this project valuable for your research or ministry, please consider:

  • ⭐ Starring this repository
  • 🍴 Forking for your own use
  • πŸ“’ Sharing with biblical prophecy communities
  • πŸ’¬ Contributing improvements and insights

Built with ❀️ for the Body of Christ and scientific inquiry

"The heavens declare the glory of God; the skies proclaim the work of his hands." - Psalm 19:1 (NIV)


Β© 2025 Christopher Modina. All rights reserved.
Licensed under MIT License - Free for research, education, and personal use.


Release Date: November 18, 2025
Version: 1.2.0
Status: βœ… Production Ready
Locked Commit: 485b58b (see PRODUCTION_LOCKED.md)

About

Biblical Prophecy & Celestial Pattern Detection System with ML correlation models

Resources

License

Contributing

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors