Skip to content

Yatra-Vritta is an innovative AI-powered travel platform designed to streamline and enhance various specialized travel needs, including medical tourism, Meetings, Incentives, Conferences, and Exhibitions (MICE), and destination weddings

Notifications You must be signed in to change notification settings

Vipul-Mhatre/Yatra-Vritta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Yatra-Vritta: AI-Powered Smart Travel Solution

Overview

Yatra-Vritta is an innovative AI-powered travel platform designed to streamline and enhance various specialized travel needs, including medical tourism, Meetings, Incentives, Conferences, and Exhibitions (MICE), and destination weddings. By integrating advanced AI and machine learning capabilities with real-time data, the platform ensures a seamless and personalized travel experience for users across different sectors. The core objective of Yatra-Vritta is to provide a unified and intelligent solution that caters to individuals seeking medical treatments abroad, corporate professionals attending international conferences, and couples planning their dream destination weddings.

At the heart of Yatra-Vritta lies an intelligent recommendation system that leverages data analytics, machine learning algorithms, and user preferences to offer the most relevant options for hotels, travel routes, local attractions, and vendor services. The system is designed to provide real-time itinerary updates, vendor management, and emergency assistance features to ensure a hassle-free experience for travelers. The AI-powered vendor matching system optimizes service selection based on user needs, budget constraints, and location preferences.

The Required features of fetching data from api provided are in folder event_management/app/api

Hosted Link:

https://yatra-vritta.vercel.app/

Link to research papers used to build recommendation engine :

https://drive.google.com/drive/folders/1xv-HhsFviRTTgTCX4G71v2_dJ_u8YetD

Demo Video:

https://drive.google.com/file/d/1Fv4EMc9-LBOLiV_7CD2piDvq5XL_v3lW/view?usp=drive_link

screenshots:

Medical Tourism Recommender FrontEnd:-

image

Medical Tourism Recommendations output:

image

image

MICE Recomendation FrontEnd:

image

MICE Recomendation output:

image

image

image

Destination Wedding Recomendation FrontEnd:

image

Destination Wedding Recomendation Output:

image

image

Hotel Explorer for Events : frontend :

image

output:

image

image

image

Sightseeing Explorer for Destination Weddings And MICE:

Frontend:

image

output:

image

image

image

Airport And Airplane Booking Page: FrontEnd:

image

Output:

image

image

Medical Tourism Explorer Page:

FrontEnd:

image

Output:

image

image

MICE Planner Explorer Map:

Frontend:

image

Output:

image

Wedding Planner APP: FrontEnd:

HomePage:

image

image

Budget Planning Tool:

image

Wedding Vendor:

image

Wedding Venue Page:

image

Order Placing Page:

image

Itineary Recommandations :

image

Comprehensive Features of Yatra-Vritta

To deliver its unique value proposition, Yatra-Vritta is structured around essential platform features that facilitate user management, booking services, payment security, and vendor collaborations. The user management system incorporates multi-factor authentication, ensuring secure access for different stakeholders such as medical professionals, event organizers, wedding planners, and travelers. The integrated booking engine provides real-time availability and pricing for flights, hotels, and event venues, enabling seamless reservations. Secure payment processing mechanisms, supporting multiple payment methods, ensure compliance with financial regulations and streamline transaction management.

A dynamic vendor and partner management system enables users to browse and select from a wide range of service providers, including hospitals, conference centers, wedding venues, and travel agencies. This system supports contract management, negotiations, and vendor performance tracking. Additionally, the platform features a centralized dashboard that provides real-time insights into itinerary status, vendor performance, and booking trends. In-app communication tools facilitate collaboration between different stakeholders, enhancing coordination and efficiency.

Medical Tourism: AI-Driven Personalization for Patients

Yatra-Vritta integrates a sophisticated medical tourism module, catering to individuals seeking healthcare services abroad. The platform hosts an extensive medical specialist database, enabling users to filter hospitals and clinics based on factors such as location, specialty, accreditation, and patient reviews. Each medical provider profile includes details about certifications, success rates, and patient testimonials, helping users make informed decisions.

To further assist medical travelers, the platform features a treatment and procedure planner that bundles essential services such as pre-operative consultations, surgical procedures, rehabilitation programs, and post-operative care. Telemedicine capabilities allow users to consult with specialists remotely for pre-travel screenings and post-procedure follow-ups. The secure medical records and document management system facilitates the safe exchange of medical documents, prescriptions, and test results between patients and authorized professionals.

MICE Travel: Smart Event Management for Corporate Clients

For MICE travelers, Yatra-Vritta offers an advanced event management system that simplifies the scheduling of conferences, workshops, and networking events. Users can create, schedule, and manage event sessions while automating attendee registration and badge generation. The platform also features a venue and supplier sourcing tool that provides access to a comprehensive database of conference halls, hotels, and audiovisual suppliers. Through a structured proposal process, event organizers can request quotes from multiple venues and service providers to secure the best deals.

A robust attendee management system allows for seamless RSVP tracking, registration processing, and ticketing. Interactive seat allocation tools enhance event organization, ensuring a smooth experience for attendees. Additionally, the platform supports QR code-based check-ins, significantly reducing wait times and enhancing security. Real-time data on attendee statistics and event engagement helps organizers optimize future events and improve user experiences.

Destination Weddings: Intelligent Planning and Coordination

Yatra-Vritta's destination wedding module provides couples and wedding planners with a comprehensive toolkit for event coordination. The venue search feature allows users to explore various wedding destinations, including beaches, resorts, and banquet halls, complete with photo galleries and virtual tours. A detailed wedding planning checklist assists users in organizing essential aspects such as catering, florists, photographers, and entertainment.

To streamline financial planning, the platform includes budgeting tools that estimate costs, track payments, and schedule vendor deposits. Guest management features facilitate RSVP tracking, seat arrangement, and group booking options for travel and accommodations. Vendor coordination tools automate key event timelines, ensuring seamless communication between decorators, stylists, caterers, and DJs. By integrating AI-powered insights, the platform recommends personalized wedding themes, venues, and packages based on user preferences.


πŸ” Detailed Project Architecture & Components

πŸ“‚ Backend Services

The backend of Yatra-Vritta is built using Node.js, Express.js, and Flask, integrating various services to support different travel and event functionalities.

πŸ”Ή Backend Core

  • app.js – The primary backend entry point that connects services.
  • config/generateToken.js – Manages user authentication token generation.
  • db.js – Handles database connections and queries.
  • middleware/authMiddleware.js – Middleware for user authentication and access control.
  • models/User.js – Defines user schema and database interactions.
  • routes/ – Contains API routes:
    • MICE_routes.js – Handles event-related queries.
    • Medical_routes.js – Manages medical tourism API endpoints.
    • Wedding_routes.js – Manages wedding planning APIs.

πŸ”Ή Service Layer

  • services/userService.js – Manages user-related functionalities.
  • services_backend/ – Contains core service scripts:
    • medicalbackend.py – Handles AI-powered medical tourism recommendations.
    • mice_backend.py – Manages MICE event organization.
    • wedding_backend.py – Processes wedding-related requests.

πŸ”Ή Sightseeing Backend

  • Handles sightseeing queries and integrations with tourism APIs.
  • Contains:
    • controllers/authcontroller.js – Manages sightseeing authentication.
    • server.js – Handles sightseeing backend API requests.

πŸ”Ή Virtual Assistant

  • AI-powered chatbot backend using Python.
  • Located at virtual assistant/backend.py to provide real-time travel guidance.

πŸ“‚ Event Management Module

Yatra-Vritta includes a robust event management system built with Next.js and TypeScript for seamless event planning.

πŸ”Ή Core Event Features

  • Wedding-app/ – Dedicated wedding planning system.
  • app/ – Core business logic for event creation and management.
  • api/ – API endpoints for:
    • Flight booking (searchFlights.ts, bookFlight.ts, modifyBooking.ts)
    • Sightseeing reservations (searchSightseeing.ts, bookSightseeing.ts).
    • Payment Integrations via Stripe and Clerk.
  • components/ – UI components for event planning (Filters, Forms, Checkout system).

πŸ”Ή Wedding Planning

  • Includes:
    • Venue selection tools (WeddingVenue.jsx, WeddingResort.jsx).
    • Budget planners (Budget.jsx).
    • Vendor management (WeddingVendor.jsx, Caterers.jsx, MakeupArtists.jsx).
  • Front-end is React-based (Wedding_Frontend/).

πŸ“‚ Frontend Components

The frontend supports multiple services, with implementations using Python.

  • front.py – Main application interface.
  • medicalfrontend.py – UI for medical tourism recommendations.
  • mice_frontend.py – MICE event management front-end.
  • virtual_assistant.py – AI-powered chatbot front-end.
  • wedding_frontend.py – UI for wedding planning.

πŸ“‚ AI & Machine Learning Models

The AI/ML layer powers personalized recommendations for Medical Tourism, MICE, and Destination Weddings.

πŸ”Ή AI-Driven Predictions

  • Medical Tourism AI Model (models/models_medical/medical_tourism_model.pkl).
  • MICE Event Predictions (models/models_mice/city_ranking_model.pkl).
  • Wedding Destination AI Rankings (models/models_wedding/wedding_ranking_model.pkl).

πŸ”Ή Data and Training

  • AI-training datasets stored in models/dataset/.
  • Score-based ranking for medical, MICE, and wedding destinations (dataset/score/).

πŸ“‚ Testing & Development

Yatra-Vritta follows a test-driven development (TDD) approach, with test scripts available in test/ and test_services/.

πŸ”Ή Test Modules

  • Airline Booking Tests (test/airlines/airline_back.py).
  • MICE Event Planning Tests (test/mice/backend.py).
  • Medical Tourism Prediction Accuracy Tests (test_services/models_medical/).

πŸ“‚ Implementation Documentation

The project includes in-depth documentation for travel and event-based intelligence.

  • Medical Tourism Whitepaper (Implementation Documentation/Destination_Based_Travelling Medicaltourism.pdf).
  • MICE Event Planning Blueprint (Implementation Documentation/Destination_Based_Travelling-mice.pdf).
  • Destination Wedding Planning Guide (Implementation Documentation/Destination_Based_Travelling-destination-wedding.pdf).

πŸ› οΈ Project Setup Guide for Yatra-Vritta

This guide provides step-by-step instructions to set up the Yatra-Vritta platform, including backend services, frontend UI, AI models, and database configurations. Follow the steps below to ensure a smooth installation.

# πŸš€ Yatra-Vritta: Setup Guide

## πŸ“Œ Prerequisites

Ensure you have the following dependencies installed on your system:

- **Node.js** (v16 or later) & **npm** (for backend services)
- **Python** (v3.8 or later) & **pip** (for AI models and recommendation engines)
- **PostgreSQL / MongoDB** (for database management)
- **Docker** (for containerized deployment) *(optional)*
- **Cloud Service (AWS/GCP/Azure)** *(optional for production deployments)*
- **Redis** (for caching) *(optional for optimizing API performance)*
- **Git** (for version control)

---

## βš™οΈ 1. Clone the Repository

```bash
# Clone the Yatra-Vritta repository
git clone https://github.com/Yatra-Vritta/Yatra-Vritta.git

# Navigate into the project directory
cd Yatra-Vritta

πŸ—οΈ 2. Backend Setup

Navigate to the backend directory and install dependencies.

# Move to backend directory
cd Backend

# Install required dependencies
npm install

πŸ”Ή Environment Configuration

Create a .env file in the Backend/ directory with the following variables:

PORT=5000
DB_URI=mongodb+srv://<your_mongo_db_connection>
JWT_SECRET=<your_jwt_secret>
CLOUDINARY_URL=<your_cloudinary_url>

Start the Backend Server

node app.js

The backend API should now be running on http://localhost:5000.


🎨 3. Frontend Setup

Navigate to the frontend directory and install dependencies.

# Move to frontend directory
cd frontend

# Install required dependencies
npm install

Start the Frontend Server

npm start

The React-based frontend should now be available at http://localhost:3000.


πŸ₯ 4. Medical Tourism AI Model Setup

Navigate to the models/ directory to set up AI-powered recommendations.

# Move to the AI model directory
cd models

# Install required Python dependencies
pip install -r requirements.txt

Train or load AI models:

# Load pre-trained medical tourism AI model
python models_medical/medical_tourism_model.pkl

πŸ—ΊοΈ 5. Event Management Setup

The event management system runs on Next.js (TypeScript).

# Move to event management directory
cd event_management

# Install dependencies
npm install

Start Event Management System

npm run dev

This should launch the event planner at http://localhost:3001.


πŸ’ 6. Destination Wedding Module Setup

# Move to wedding planner directory
cd event_management/Wedding-app

# Install dependencies
npm install

Start the Wedding Planner

npm start

This module should now be accessible at http://localhost:3002.


✈️ 7. Sightseeing & Flight Booking API Setup

# Move to sightseeing API directory
cd Backend/sightseeing-backend

# Install dependencies
npm install

Start the Sightseeing API

node server.js

πŸ”§ 8. Database Setup

For MongoDB

If you’re using MongoDB, ensure you have a running instance and update .env:

DB_URI=mongodb+srv://your_username:your_password@cluster.mongodb.net/database_name

For PostgreSQL

For PostgreSQL, create a database:

CREATE DATABASE yatra_vritta;

Update .env:

DATABASE_URL=postgresql://username:password@localhost:5432/yatra_vritta

Run database migrations:

npx prisma migrate dev --name init

πŸ“‘ 9. Virtual Assistant Setup

The AI-powered chatbot requires Python and Flask.

# Move to virtual assistant directory
cd models/custom virtual Assistant

# Install dependencies
pip install -r requirements.txt

# Start the assistant
python backend.py

The virtual assistant should now be accessible at http://localhost:5003.


πŸ› οΈ 10. Running Tests

Run backend tests:

cd Backend
npm test

Run frontend tests:

cd frontend
npm test

Run AI model tests:

cd models
pytest

🎯 11. Docker Setup (Optional for Deployment)

To containerize the project, use Docker Compose.

# Move to project root directory
cd Yatra-Vritta

# Start all services using Docker
docker-compose up --build

This will start:

  • Backend on http://localhost:5000
  • Frontend on http://localhost:3000
  • Event System on http://localhost:3001
  • Wedding Planner on http://localhost:3002

πŸ“Œ 12. Deployment Guide (Optional)

Deploy Backend on AWS EC2

# SSH into your AWS instance
ssh ubuntu@your-server-ip

# Clone the repository
git clone https://github.com/Yatra-Vritta/Yatra-Vritta.git

# Install Node.js and dependencies
cd Yatra-Vritta/Backend
npm install

# Start the backend
node app.js

Deploy Frontend on Vercel

cd frontend
vercel deploy

Deploy Event System on Railway

cd event_management
railway up

Here is the updated README with properly formatted GitHub Markdown syntax, ensuring that all formulas, equations, and tables display correctly. This version is optimized for direct appending to your project.


# 🧠 AI-Powered Ranking Engine for Smart Travel Recommendations

## **πŸ“Œ Overview**
Yatra-Vritta incorporates an **AI-driven ranking system** to provide intelligent recommendations for **Medical Tourism, MICE (Meetings, Incentives, Conferences, and Exhibitions), and Destination Weddings**. This system employs **machine learning techniques, multi-criteria decision-making models, and real-time data analysis** to dynamically rank global destinations.

### **πŸ”Ή Key AI Techniques Used**
- **Weighted Score Computation** – Assigns importance to different ranking factors.
- **Min-Max Normalization** – Standardizes data across different metrics.
- **K-Nearest Neighbors (KNN) Imputation** – Handles missing data using AI.
- **Regression-Based Predictions** – Predicts missing values when necessary.
- **AI-Based Trend Forecasting** – Predicts emerging travel destinations.

---

## **1️⃣ Medical Tourism AI Ranking Model**

### **πŸ“Œ Data Collection**
Medical tourism data is sourced from:
- **World Bank API** – Healthcare expenditure, hospital availability, GDP.
- **OECD Economic Indicators** – Business environment and stability scores.
- **United Nations World Tourism Organization (UNWTO)** – International tourism data.

Each country is represented as a **feature matrix**:

```math
X \in R^{N \times M}

Where:

  • ( N ) = Number of countries
  • ( M ) = Number of key medical indicators

πŸ“Œ Weighted Score Formula

Each country receives a Medical Tourism Score (S_i) calculated as:

$$S_i = w_1 H_i + w_2 E_i + w_3 G_i + w_4 T_i + w_5 B_i + w_6 S_i$$

Where:

  • ( H_i ) = Hospital Beds per 1,000 people
  • ( E_i ) = Healthcare Spending per Capita (USD)
  • ( G_i ) = GDP per Capita (USD)
  • ( T_i ) = Annual Tourist Arrivals (millions)
  • ( B_i ) = Ease of Business Score
  • ( S_i ) = Safety Index (Low Crime Rate)

Assigned Weights:

$$w_1 = 0.3, w_2 = 0.25, w_3 = 0.2, w_4 = 0.1, w_5 = 0.1, w_6 = 0.05$$

πŸ“Œ Data Normalization

To standardize values:

$$X'_{ij} = \frac{X_{ij} - \min(X_j)}{\max(X_j) - \min(X_j)}$$

πŸ“Œ Missing Data Handling

  1. K-Nearest Neighbors (KNN) Imputation: $$X^{(impute)}_{ij} = \frac{1}{k} \sum_{n \in N(i)} X_{nj}$$
  2. Regression-Based Predictions: $$X_{ij} = \beta_0 + \sum_{k=1}^{M} \beta_k X_{ik} + \epsilon_i$$

πŸ“Œ Top 5 Medical Tourism Destinations

Country Medical Score Hospital Beds Healthcare Spending (USD)
Thailand 0.92 2.1 850
India 0.89 1.5 600
Turkey 0.85 2.8 1200
Mexico 0.83 1.7 900
South Korea 0.81 12.3 4500

2️⃣ MICE Tourism AI Ranking Model

πŸ“Œ Data Collection

  • World Bank API – Business environment, ease of setting up operations.
  • International Air Transport Association (IATA) – Global connectivity data.
  • UNWTO – International arrivals and conference-related statistics.

πŸ“Œ Weighted Score Formula

$$S_i = w_1 B_i + w_2 I_i + w_3 S_i + w_4 A_i + w_5 L_i$$

Where:

  • ( B_i ) = Ease of Doing Business Score
  • ( I_i ) = GDP per Capita
  • ( S_i ) = Safety Index
  • ( A_i ) = International Air Passengers
  • ( L_i ) = Annual Tourist Arrivals

Weights:

$$w_1 = 0.3, w_2 = 0.3, w_3 = 0.2, w_4 = 0.1, w_5 = 0.1$$

πŸ“Œ Top 5 MICE Destinations

Country MICE Score GDP per Capita Ease of Business Score
Singapore 0.94 $65,000 85.5
Dubai, UAE 0.91 $42,000 78.2
USA 0.89 $76,000 79.3
UK 0.87 $49,000 81.2
Germany 0.85 $52,000 80.1

3️⃣ Destination Wedding AI Ranking Model

πŸ“Œ Data Collection

  • World Bank API – GDP, safety index, ease of business.
  • IATA – International flight accessibility.
  • UNWTO – Destination popularity and tourism demand.

πŸ“Œ Weighted Score Formula

$$S_i = w_1 T_i + w_2 B_i + w_3 G_i + w_4 A_i + w_5 S_i$$

Where:

  • ( T_i ) = Tourist Arrivals (millions)
  • ( B_i ) = Ease of Business Score
  • ( G_i ) = GDP per Capita
  • ( A_i ) = International Air Passengers
  • ( S_i ) = Safety Index (Low Crime Rate)

Weights:

$$w_1 = 0.3, w_2 = 0.2, w_3 = 0.2, w_4 = 0.2, w_5 = 0.1$$

πŸ“Œ Top 5 Destination Wedding Locations

Country Wedding Score Tourist Arrivals Safety Index
Italy 0.95 65M 8.2
France 0.92 89M 8.0
Mexico 0.90 45M 7.5
Greece 0.88 33M 8.4
Bali 0.86 20M 8.1

conclusion:

The Yatra-Vritta project is a pioneering AI-driven platform that integrates Medical Tourism, MICE (Meetings, Incentives, Conferences, Exhibitions), and Destination Weddings into a unified, intelligent travel solution. By leveraging machine learning, data analytics, and modular microservices architecture, it provides seamless booking, vendor management, secure payments, and AI-based personalized recommendations. The platform efficiently handles real-time itinerary updates, medical treatment planning, event scheduling, and wedding coordination, ensuring a smooth and tailored experience for users across different domains.

With a structured weighted scoring model, the system dynamically ranks destinations based on business infrastructure, medical quality, accessibility, affordability, and safety. Advanced AI techniques such as K-Nearest Neighbors (KNN) imputation, regression-based predictions, and min-max normalization ensure accuracy, even with incomplete data. The platform is designed with a scalable cloud-based infrastructure and follows strict security and compliance measures, including HIPAA, GDPR, and PCI-DSS regulations for medical and financial data protection.

The modular MVP-driven development approach ensures that each vertical can be expanded independently, starting with essential booking and vendor management features before introducing advanced AI personalization and analytics. By combining travel, healthcare, corporate events, and luxury wedding planning under a single AI-powered ecosystem, Yatra-Vritta stands as an industry-first innovation, revolutionizing smart travel and event planning with cutting-edge AI solutions.

About

Yatra-Vritta is an innovative AI-powered travel platform designed to streamline and enhance various specialized travel needs, including medical tourism, Meetings, Incentives, Conferences, and Exhibitions (MICE), and destination weddings

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •