I. INTRODUCTION
India possesses an extraordinarily rich landscape of historical monuments, temples, forts, and palaces that embody centuries of architectural innovation, dynastic evolution, and cultural identity. For tourists, students, and educators, understanding these sites requires connecting visual structure with historical chronology and architectural context. Conventional heritage interpretation, however, remains largely static and fragmented. Visitors rely on weathered on-site signage, printed guidebooks, or manual searches across disconnected websites—an approach that breaks down whenever a user encounters an unfamiliar monument and does not know its name.
Advances in Computer Vision, Deep Learning, and Generative Artificial Intelligence provide a direct path toward interactive digital heritage. Convolutional Neural Networks (CNNs) can automatically learn discriminative visual patterns from photographs and classify monuments into predefined categories. Lightweight transfer-learning backbones such as MobileNetV2 make real-time inference practical on standard consumer hardware without expensive dedicated GPUs. Simultaneously, Large Language Models (LLMs) enable natural-language question answering, allowing learners to explore historical topics conversationally rather than reading static paragraphs.
Despite these capabilities, existing digital tools rarely combine visual recognition, structured chronology, and conversational AI into a cohesive user workflow. Heritage portals offer static text without image lookup; generic classifiers return a class string without historical depth; and standalone chatbots lack direct grounding in a visual recognition pipeline.
This paper presents ChronoGraph AI, an AI-powered digital heritage assistant developed as a B.Tech project in Computer Science and Design. The platform organizes user exploration into four integrated stages—Identify, Classify, Contextualize, and Interact. The main contributions of this work are:
1) A decoupled full-stack web architecture combining a React.js/Tailwind CSS interface with a Python FastAPI backend that orchestrates TensorFlow/Keras inference and Groq/LLaMA chat services.
2) A gated request-validation and inference workflow that validates uploaded images, enforces backend-only API credential storage, and handles invalid inputs or external service failures gracefully.
3) A structured heritage presentation layer mapping eleven Indian monument categories to curated historical descriptions, architectural details, and chronological timelines.
4) A client-side My Collection persistence mechanism using browser LocalStorage, paired with a multi-level testing and evaluation framework covering unit, integration, functional, system, and chatbot verification.
5) A transparent account of prototype boundaries, evaluation status, and a roadmap toward expanded datasets, multilingual support, mobile GPS integration, and Augmented Reality.
The remainder of this paper is organized as follows. Section II reviews related work in digital heritage, CNNs, transfer learning, and conversational AI. Section III defines the research problem and objectives. Section IV identifies practical gaps and motivation. Section V presents the system architecture. Section VI details the methodology, gated workflow, and mathematical modeling. Section VII describes the implementation and security measures. Section VIII outlines the evaluation plan and discussion. Section IX covers limitations and future scope, and Section X concludes the paper.
II. BACKGROUND AND RELATED WORK
A. Digital Heritage Systems
Digital heritage uses computing technologies to document, preserve, and disseminate cultural knowledge. Museums and heritage organizations increasingly publish digital archives and virtual exhibitions so learners can explore monuments remotely. However, traditional heritage portals remain predominantly text-driven and static: users must know the monument’s name beforehand, image-based identification is rarely integrated, and historical timelines are scattered across multiple sources.
B. Convolutional Neural Networks and Transfer Learning
Image classification assigns an input photograph to a predefined category by extracting visual features. Convolutional Neural Networks (CNNs) automate this process through stacked convolutional filters, non-linear activations, pooling layers, and classification heads1. Training a deep CNN from scratch requires large labeled datasets and significant GPU resources. Transfer learning addresses this by reusing feature representations learned on large-scale datasets such as ImageNet2 and fine-tuning a lightweight classification head on a smaller target dataset.
MobileNetV23 is a compact CNN architecture designed for computational efficiency. By replacing standard convolutions with depthwise separable convolutions and inverted residual blocks with linear bottlenecks, MobileNetV2 drastically reduces parameter count and inference latency while preserving strong visual accuracy, making it well suited for interactive web deployment.
C. Knowledge Representation and Generative AI
Organizing historical information across eras benefits from structured representations such as Knowledge Graphs4 and temporal event modeling5. Recent advances in Retrieval-Augmented Generation (RAG)6 and GraphRAG7 demonstrate how combining structured knowledge with Large Language Models improves factual relevance and contextual summarization.
In conversational systems, LLaMA-family language models generate fluent natural-language answers to user queries. High-speed inference services such as Groq execute LLaMA models with low latency, enabling responsive educational chatbots. Importantly, Groq acts as the inference provider, whereas LLaMA is the underlying language model family. Related work from the project supervisor’s research group also demonstrates how neural networks, machine learning, and privacy-aware protocols are integrated into real-time decision systems8, reinforcing the importance of modular backend orchestration and reliable error handling.
D. Positioning
Table I summarizes how existing approaches relate to ChronoGraph AI. Rather than proposing a new neural network backbone, ChronoGraph AI integrates MobileNetV2 classification, curated chronological timelines, a Groq/LLaMA chatbot, and client-side collection management into one accessible full-stack application.
Table I: Comparison of Related Approaches
|
Approach |
Main Capability |
Limitation for Heritage |
|
Static Heritage Portals |
Curated text and archival photos |
Requires knowing monument name; no visual lookup |
|
Generic CNN Classifiers9 |
Predicts visual class label |
Outputs label only; lacks history or timeline |
|
Knowledge Graphs / RAG10 |
Structured entity and temporal retrieval |
Often backend-heavy without consumer UI |
|
Standalone AI Chatbots |
Natural-language Q&A |
Disconnected from image recognition workflow |
|
ChronoGraph AI |
Vision + Timeline + GenAI Chat + Collection |
Scoped to 11 Indian monuments in current prototype |
III. RESEARCH PROBLEM AND OBJECTIVES
A. Problem Statement
Tourists and students visiting or studying Indian monuments frequently lack an immediate way to identify an unfamiliar structure from a photograph and explore its historical evolution. Existing workflows require manual keyword searches across multiple websites, separate tools for visual recognition and question answering, and static reading without interactive clarification. The problem addressed here is to design and implement a unified web platform that (i) classifies uploaded monument photographs accurately using a lightweight CNN, (ii) retrieves structured historical, architectural, and chronological information, (iii) supports real-time conversational follow-up via Generative AI, and (iv) safeguards API credentials while handling invalid inputs gracefully.
B. Objectives
1) Develop a responsive single-page frontend using React.js and Tailwind CSS for image upload, result visualization, timeline browsing, and chat interaction.
2) Build a Python FastAPI backend that validates uploaded files, executes MobileNetV2 inference in TensorFlow/Keras across eleven Indian heritage categories, and serves structured JSON responses.
3) Map predicted monument labels to curated historical backgrounds, architectural descriptions, and chronological event timelines.
4) Integrate a Generative AI chatbot using the Groq API and LLaMA models while keeping all API keys strictly on the backend.
5) Implement a My Collection feature using browser LocalStorage so users can save and revisit explored monuments.
6) Define a comprehensive testing protocol covering unit, integration, functional, system, and chatbot verification.
IV. RESEARCH GAP AND MOTIVATION
While computer vision, digital archives, and conversational AI are each well studied, few student-accessible or tourism-ready web applications unify all three into a single lightweight pipeline. Table II lists the practical gaps targeted by ChronoGraph AI and the corresponding design response.
Table II: Identified Gaps and the ChronoGraph AI Approach
|
Gap |
ChronoGraph AI Approach |
|
Unknown monument names block text search |
Image-first upload and MobileNetV2 classification |
|
Scattered historical and architectural facts |
Unified monument schema with curated descriptions |
|
Flat text hides historical progression |
Structured chronological timeline per monument |
|
Static pages cannot answer follow-up queries |
Integrated Groq/LLaMA conversational chatbot |
|
Heavy vision models hinder consumer deployment |
Lightweight MobileNetV2 transfer-learning backbone |
|
API key exposure in client-side prototypes |
Backend-only FastAPI orchestration for Groq keys |
V. PROPOSED SYSTEM ARCHITECTURE
A. Overview
ChronoGraph AI adopts a decoupled client–server architecture (Fig. 1). The React.js frontend manages user interaction, file selection, result display, and LocalStorage persistence, communicating with the FastAPI backend exclusively over HTTP/JSON. The backend—executed by the Uvicorn ASGI server—exposes dedicated REST endpoints for image prediction, chatbot queries, and health monitoring, isolating both the TensorFlow/Keras MobileNetV2 model and the external Groq inference client from the browser.
Figure 1: Overall system architecture of ChronoGraph AI separating the React frontend, LocalStorage collection, FastAPI backend, MobileNetV2 classifier, curated knowledge records, and Groq/LLaMA inference service.
B. Components and Responsibilities
The platform is structured into seven modular components:
1) User Interface Module: Renders the home view, image upload area, prediction results, timeline, chatbot panel, and My Collection page.
2) Image Upload and Validation Module: Verifies that a file is selected, checks format and size limits, and rejects corrupted files before inference.
3) Image Classification Module: Loads the trained MobileNetV2 model, decodes and resizes images, applies model-specific preprocessing, and selects the highest-scoring monument class.
4) Monument Information Module: Maps the predicted label to curated historical descriptions, location, architecture, and cultural significance.
5) Timeline Module: Retrieves and displays historical milestones in chronological order.
6) AI Chatbot Module: Validates user questions, builds contextual prompts, communicates with the Groq API using LLaMA models, and returns formatted answers.
7) My Collection Module: Saves, retrieves, and removes bookmarked monuments in browser LocalStorage.
C. Deployment and Execution
During development and demonstration, the React frontend (Node.js/npm) and FastAPI backend (Python/Uvicorn) run as separate services connected via CORS-configured REST endpoints. Environment variables store the Groq API key on the backend so credentials are never committed to source control or bundled into client-side JavaScript.
VI. METHODOLOGY AND WORKFLOW
A. Gated Request Pipeline
Both image classification and chatbot requests pass through deterministic validation gates before invoking AI models. Fig. 2 shows the gated classification workflow: missing files, unsupported formats, or corrupted images terminate with clear client errors rather than crashing the server or producing fabricated predictions.
Figure 2: Gated image classification workflow in ChronoGraph AI with explicit validation checks and error-handling routes.
B. Supported Monument Categories
The MobileNetV2 classifier is trained across eleven predefined Indian heritage categories (Table III), spanning Mughal, Rajput, Dravidian, Kalinga, Maratha, and Colonial architectural styles.
Table III: Eleven Supported Indian Heritage Monument Categories
|
No. |
Monument |
Architectural Tradition |
|
1 |
Taj Mahal |
Mughal / Indo-Islamic |
|
2 |
Qutub Minar |
Indo-Islamic |
|
3 |
Gateway of India |
Indo-Saracenic / Colonial |
|
4 |
Hawa Mahal |
Rajput Architecture |
|
5 |
Ellora Kailasa Temple |
Rock-Cut Monolithic |
|
6 |
Konark Sun Temple |
Kalinga / Nagara |
|
7 |
Red Fort |
Mughal Fortification |
|
8 |
Shaniwar Wada |
Maratha Fortification |
|
9 |
Hampi Virupaksha Temple |
Vijayanagara / Dravidian |
|
10 |
Charminar |
Indo-Islamic / Deccan |
|
11 |
Meenakshi Temple |
Dravidian Temple Complex |
C. Mathematical Formulation
Let the labeled training dataset be represented as:
D = {(Xi, Yi)}i=1, (1)
where N is the total number of training images, Xi is the i-th input image, and Yi ∈ {1, . . . , 11} is its ground-truth monument class. The trained classification network learns a mapping function:
fθ : X → Y, (2)
parameterized by network weights θ.
Within the CNN feature extractor, spatial patterns such as domes, arches, spires, and stone carvings are captured through three primary operations:
1) Convolution: Applies kernel K over input feature map X to produce output map Z:
(3)
2) ReLU Activation: Introduces non-linearity while remaining computationally lightweight:
f(x) = max(0, x). (4)
3) Max Pooling: Downsamples spatial dimensions over local window W:
(5)
Combining image recognition, conversational queries, and saved user collections, the complete multimodal system is expressed as:
O = F(X, Q, M), (6)
where X is the uploaded image, Q is the user’s chatbot question, M is the saved collection state, and O is the composite system output (predicted monument, historical and architectural details, chronological timeline, chatbot answer, and collection state).
D. End-to-End Request Sequence
Fig. 3 illustrates the runtime interaction sequence across the user, React frontend, FastAPI backend, MobileNetV2 model, and Groq/LLaMA API. Model weights are loaded once and reused across requests to minimize latency.
Figure 3: End-to-end request handling sequence between the user, React frontend, FastAPI backend, MobileNetV2 model, and Groq/LLaMA service.
VII. SYSTEM IMPLEMENTATION AND TECHNOLOGIES
A. Technology Stack
Table IV summarizes the implemented technology stack. The system is designed to run on commodity development hardware (dual-core processor or better, 8GB RAM recommended, standard HD display, and internet access for Groq API calls).
Table IV: Technology Stack of ChronoGraph AI
|
Layer |
Technology |
Role |
|
Frontend |
React.js |
Component-based user interface |
|
Styling |
Tailwind CSS |
Responsive utility-first styling |
|
Backend |
Python, FastAPI |
REST API and request orchestration |
|
Server |
Uvicorn |
ASGI server for FastAPI |
|
Deep Learning |
TensorFlow / Keras |
Model loading and inference |
|
CNN Backbone |
MobileNetV2 |
11-class monument classification |
|
AI Inference |
Groq API |
Low-latency LLM inference |
|
Language Model |
LLaMA Family |
Conversational chatbot responses |
|
Client Storage |
LocalStorage |
Persisting My Collection items |
B. API Specification and Monument Schema
The FastAPI backend exposes three primary endpoints (Table V). After classification, the predicted class index is mapped to a structured monument record containing six fields: Monument Name, Location, Historical Background, Architecture, Cultural Significance, and Chronological Timeline.
Table V: Backend REST API Endpoints
|
Endpoint |
Method |
Purpose |
|
/predict |
POST |
Validates uploaded image, runs MobileNetV2 inference, returns predicted class and confidence. |
|
/chat |
POST |
Accepts user question, queries Groq/LLaMA, returns generated historical answer. |
|
/health |
GET |
Checks backend availability and service readiness. |
C. User Interface Layout
The React frontend organizes exploration into four clear views: Image Recognition, Monument Details & Timeline, AI Chatbot, and My Collection. Fig. 4 depicts the core recognition and timeline interface layout.
Figure 4: Interface layout of ChronoGraph AI integrating image upload, classification details, chronological timeline, and conversational AI.
D. Security and Error Handling
Security measures follow strict separation of concerns: Groq API keys remain exclusively in backend environment variables and are never exposed to the frontend; uploaded files are validated for supported formats and size limits; and LocalStorage stores only non-sensitive collection bookmarks. Error handlers cover ten operational failure modes—missing files, unsupported formats, corrupted images, backend unavailability, model-loading failures, prediction errors, Groq API timeouts, network interruptions, empty chat queries, and unexpected server responses.
VIII. EVALUATION, TESTING, AND DISCUSSION
A. Testing Strategy
ChronoGraph AI is verified across five testing layers:
• Unit Testing: Validates image decoding, RGB conversion, resizing, preprocessing, and prediction mapping functions.
• Integration Testing: Verifies JSON communication between React, FastAPI endpoints, TensorFlow inference, and Groq API calls.
• Functional Testing: Checks image upload, prediction display, timeline rendering, chatbot Q&A, and LocalStorage persistence across refreshes.
• System Testing: Exercises the complete end-to-end user journey from upload to saved collection.
• Performance Testing: Observes prediction response time, API latency, and UI responsiveness.
B. Classification and Chatbot Evaluation
For the eleven-class MobileNetV2 model, evaluation uses an 11×11 confusion matrix (rows representing actual classes, columns representing predicted classes) alongside Accuracy, Precision, Recall, F1-Score, and Training/Validation Accuracy and Loss curves to monitor generalization and detect overfitting (Table VI). Table VII lists the functional chatbot test scenarios used to verify backend routing and contextual response quality.
Table VI: Model Performance Evaluation Template (11-Class MobileNetV2)
|
Evaluation Metric |
Purpose |
|
Training / Validation Acc. |
Tracks learning convergence and overfitting |
|
Test Accuracy |
Measures overall classification correctness on unseen images |
|
Precision & Recall |
Evaluates per-class false positives and missed detections |
|
F1-Score |
Balances precision and recall across all 11 monuments |
|
11×11 Confusion Matrix |
Identifies visually similar monument confusions |
Table VII: Chatbot Functional Testing Scenarios
|
Test ID |
User Question |
Expected Behavior |
|
CHAT-01 |
Tell me about the Taj Mahal. |
Provide historical information |
|
CHAT-02 |
Where is Qutub Minar located? |
Provide location information |
|
CHAT-03 |
Explain the architecture of Hawa Mahal. |
Provide architectural information |
|
CHAT-04 |
Why is Konark Sun Temple important? |
Explain cultural significance |
|
CHAT-05 |
Give me a short summary of Red Fort. |
Generate a concise summary |
C. Discussion
Three design observations emerge from building ChronoGraph AI. First, decoupling the React UI from the FastAPI inference server keeps model weights and API keys secure while allowing independent upgrades to either layer. Second, pairing visual classification with a curated timeline and an LLM chatbot transforms a single-label prediction into an active learning session. Third, using browser LocalStorage keeps the prototype lightweight and zero-configuration for academic demonstration, though production deployment requires server-side authentication and cloud storage.
IX. LIMITATIONS AND FUTURE SCOPE
A. Limitations
The current prototype has clear operational boundaries:
• Classification is limited to eleven Indian monuments; unsupported structures or poor-quality photographs can reduce prediction reliability.
• Visually similar stone masonry or weathered facades may occasionally cause cross-class confusion.
• The conversational chatbot depends on active internet connectivity and external Groq API availability, and LLM responses require factual verification.
• Browser LocalStorage does not synchronize My Collection across devices and is cleared if browser data is wiped.
B. Future Scope
ChronoGraph AI provides a modular foundation for several high-impact extensions:
1) Dataset Expansion and Unknown-Class Rejection: Adding more Indian forts, temples, and archaeological sites with data augmentation and confidence thresholds to reject unsupported images.
2) Multilingual and Voice Support: Delivering timelines and chatbot conversations in Marathi, Hindi, and other Indian regional languages, alongside voice-based Q&A.
3) Mobile Apps, GPS, and Cloud Database: Building Android/iOS applications with live camera capture, GPS-based nearby monument discovery, and authenticated cloud persistence.
4) Augmented Reality (AR): Overlaying interactive historical labels and architectural reconstructions directly onto live camera views during site visits.
X. CONCLUSION
This paper presented ChronoGraph AI, a full-stack digital heritage assistant that integrates MobileNetV2 image classification, curated chronological timelines, and a Groq/LLaMA conversational chatbot into a single web application. Built with React.js, Tailwind CSS, Python, FastAPI, TensorFlow/Keras, and browser LocalStorage, the platform demonstrates how computer vision and Generative AI can make exploring Indian cultural heritage more interactive and accessible. While the current prototype is scoped to eleven monument categories and client-side storage, its modular architecture and gated API design provide a clear foundation for dataset expansion, multilingual heritage education, mobile GPS integration, and Augmented Reality.
Endnotes
1. K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2016, pp. 770–778.
2. J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “ImageNet: A large-scale hierarchical image database,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2009, pp. 248–255.
3. M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, “MobileNetV2: Inverted residuals and linear bottlenecks,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2018, pp. 4510–4520.
4. A. Hogan et al., “Knowledge graphs,” ACM Computing Surveys, vol. 54, no. 4, Art. no. 71, 2021, doi: 10.1145/3447772.
5. S. M. Kazemi, R. Goel, K. Jain, I. Kobyzev, A. Sethi, P. Forsyth, and P. Poupart, “Representation learning for dynamic graphs: A survey,” Journal of Machine Learning Research, vol. 21, no. 70, pp. 1–73, 2020; B. Cai, Y. Xiang, L. Gao, H. Zhang, Y. Li, and J. Li, “Temporal knowledge graph completion: A survey,” in Proc. 32nd Int. Joint Conf. Artificial Intelligence (IJCAI), 2023, pp. 6545–6553, doi: 10.24963/ijcai.2023/734; T. Knez and S. Zitnik, “Event-centric temporal knowledge graph construction: A survey,” Mathematics, vol. 11, no. 23, Art. no. 4852, 2023, doi: 10.3390/math11234852.
6. P. Lewis et al., “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Advances in Neural Information Processing Systems (NeurIPS), 2020.
7. D. Edge et al., “From local to global: A Graph RAG approach to query-focused summarization,” arXiv preprint arXiv:2404.16130, 2024.
8. G. V. Sonawane, P. R. Patil, and P. R. Bhaladhare, “Neural network-based traffic control system,” Journal of Electrical Systems, vol. 20, no. 3, 2024, doi: 10.52783/jes.7946; G. V. Sonawane, P. R. Patil, and P. R. Bhaladhare, “AI for real-time traffic management in communication networks,” Metallurgical and Materials Engineering, 2025; G. V. Sonawane, A. Y. Panpatil, R. R. Raskar, M. B. Sonje, E. Muniyandy et al., “Topology-aware federated graph reinforcement learning for real-time edge-based adaptive traffic signal control in smart cities,” in Proc. Int. Conf. Innovations in Computing and Emerging Technologies, 2026.
9. M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, “MobileNetV2: Inverted residuals and linear bottlenecks,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2018, pp. 4510–4520.
10. A. Hogan et al., “Knowledge graphs,” ACM Computing Surveys, vol. 54, no. 4, Art. no. 71, 2021, doi: 10.1145/3447772; P. Lewis et al., “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Advances in Neural Information Processing Systems (NeurIPS), 2020.