Data Science AI Internship Report
Data Science AI Internship Report
INTERNSHIP REPORT
Submitted By
Siva S
A report submitted in partial fullfillment of the requirements for the Award of Degree
of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
Under supervision of
[Link] LABS - RASA INSTITUTE OF ANALYTICS,CHENNAI
I take this opportunity to express our sincere gratitude to Rasa AI Labs, Chennai, for
granting us the opportunity to undergo our internship and work on the project
CRM-BASED-ECOM, “genius_shoppy.ai”.he guidance, exposure, and
encouragement we received during this period have been invaluable to our
academic and professional growth.
I are profoundly grateful to our Principal, Dr. B.R. Ramesh Bapu, Ph.D., for the
facilities and constant encouragement extended to us throughout the internship.
I extend our heartfelt thanks to our Head of the Department, Dr. P. Magesh, for his
valuable support and guidance in making this internship possible.
I owe special thanks to Mrs. A. Lavanya for her constructive suggestions and
continuous encouragement, which guided us in refining our work.
I also acknowledge with gratitude the support and guidance of our College Internship
Coordinator, Ms. S. Praveena, Assistant Professor, Department of CSE, for
facilitating and coordinating the internship process effectively.
I remain indebted to all our faculty members of the Department of CSE for their
encouragement, and to our friends for their cooperation and support throughout this
journey.
Finally, I thank each other as teammates for the collaboration and shared effort that
made this project a success.
Siva S
112622104020
Genius [Link]
Abstract:
The system also integrates powerful explainable AI models using SHAP and LIME to
provide transparency in recommendation logic and user profiling. An analyst dashboard—built
with user-friendly design and professional-grade visualizations—enables business stakeholders
to review insights, tweak strategies, and monitor performance. Web scraping, powered by APIs
like [Link], ensures that real-time product data and best deals are always accessible to users
and analysts alike.
1.
Introduction
2.
Objectives
3.
Literature Survey
4.
System Architecture
5.
Modules
6.
7.
8.
Screenshots
1. Introduction
1.1 Background
In the rapidly evolving landscape of online retail, e-commerce platforms generate vast
amounts of user behavior and transactional data. Traditional CRM (Customer Relationship
Management) systems, while effective in managing customer information, often fall short in
delivering real-time insights and actionable intelligence. With the increasing demand for
personalization, deal discovery, and explainable AI recommendations, businesses require
intelligent systems that not only analyze past behavior but also predict future trends and optimize
user experience.
1.2 Purpose
The primary purpose of Genius_Shoppy.AI is to enhance the e-commerce experience for both
users and businesses by:
This system bridges the gap between raw user behavior and intelligent decision-making in retail.
1.3 Scope
● Browser Extension: Monitors user search activity on platforms like Amazon, Flipkart,
Meesho, and others, and triggers deal recommendations based on intelligent query
analysis (via Gemini AI).
● Backend (FastAPI): Hosts the logic for RFM segmentation, SHAP/LIME explainers,
and business rule mining, with support for periodic scraping using the [Link] API.
● Frontend Analyst GUI: Displays insights from backend output files (e.g.,
rfm_output.csv, shap_output.json) and renders charts using [Link] with
support for multiple chart types.
● Data Collection & Scraping: Incorporates real-time scraping from multiple e-commerce
platforms to update product listings and identify trending deals.
● Explainable AI: Implements SHAP and LIME for justifying predictions and segment
behaviors.
● Cross-platform Compatibility: Designed to run across web, Android, and desktop
environments using modular components.
2. Objectives
The integration of this model into a browser extension ensures real-time feedback and
product suggestions for users based on their behavior. Simultaneously, an analyst dashboard
allows business users to explore these RFM outputs visually, generate reports, and strategize
accordingly. The goal is to tightly couple backend analytics with frontend visualization to
support both customer engagement and business decision-making.
By automating the process of price comparison, discount tracking, and availability
checks, Genius_Shoppy.AI empowers both customers and analysts with current market insights.
The scraped product data is dynamically linked with customer behavior insights to recommend
the best available deals based on relevance, user preference, and purchase potential.
Beyond statistical models, the system also supports rule-based reasoning. Business rule
mining is implemented to extract if-then logic from customer behavior and RFM clusters. For
example: “If a customer has not purchased in 60 days but has a high monetary value, send re-
engagement offers.”
These rules help marketers and CRM professionals automate campaigns, prioritize
outreach, and design customized interventions for different customer segments. The extracted
rules are displayed within the analyst GUI for human validation and can be refined for real-time
deployment.
Together, these objectives aim to build a holistic platform that blends CRM logic, real-time
e-commerce intelligence, AI explainability, and business strategy into a seamless system, thereby
improving customer experience and optimizing business outcomes.
3. Literature Survey
The integration of CRM analytics, real-time product tracking, and explainable AI within
browser extensions and analyst dashboards is a growing field within e-commerce technology.
Several tools and platforms currently attempt to offer partial or complete solutions. This section
reviews prominent systems and compares them with the proposed Genius_Shoppy.AI in terms of
features, architecture, and functionality.
Honey is a well-known browser extension that tracks product prices across multiple e-
commerce sites and applies discount coupons at checkout. It helps users save money through
automated deal discovery and coupon application. However, Honey primarily focuses on price
savings and does not offer any personalized recommendations, CRM integration, or user
segmentation.
Buyhatke
Buyhatke is an Indian browser extension that provides price comparison, price graphs,
and deal alerts. It also scrapes data from e-commerce websites to notify users about the best
time to buy. While it offers deeper analytics than Honey, it lacks AI-based behavioral
modeling, RFM analysis, and explainable insights. Its functionality is user-centric with no
backend integration for businesses or analysts.
Keepa
Keepa is a browser extension that focuses on price tracking for Amazon products. It
offers detailed price history charts and stock availability information. However, it does not
include customer profiling, behavioral segmentation, or CRM elements. It also does not support
integration with analyst dashboards or business logic automation.
InvisibleHand
This extension provides real-time price comparison and alerts when a product is
available cheaper elsewhere. While efficient in improving purchase decisions, it does not track
user behavior or perform any form of data analytics beyond pricing.
Many e-commerce platforms use Google Analytics with Enhanced E-Commerce plugins
to track customer behavior, transactions, and conversion rates. Although powerful, this tool
requires manual integration and does not support explainable AI or business rule generation.
Additionally, it lacks direct scraping capabilities and browser-based engagement features.
Enterprise-grade platforms like Zoho and Salesforce provide CRM tools with
segmentation, reporting, and sales forecasting. However, these systems are often subscription-
based, complex, and not designed for real-time consumer-side interactions via browser
extensions. They also typically require substantial customization to support XAI models like
SHAP and LIME.
3.3 Comparison with Genius_Shoppy.AI
Explainable AI
No No No No No Yes
(SHAP/LIME)
Browser-Based Behavior
Yes Yes Yes No No Yes
Tracking
Analyst Dashboard
No No No Partial Yes Yes
Integration
Web Scraping
No Yes Yes No No Yes
Integration
While existing browser extensions and analytics tools address specific components such as
price tracking or customer segmentation, they generally lack integration across behavioral
tracking, backend analytics, real-time scraping, and explainable AI. Genius_Shoppy.AI bridges
this gap by combining CRM-driven segmentation (RFM), explainable AI (SHAP,
LIME),web scraping ([Link] API), and real-time user interaction via browser
extensions. This unified approach provides a holistic and scalable solution that benefits both
customers and business analysts.
4. System Architecture
4.1 Requirements
● fastapi
● uvicorn
● pandas
● scikit-learn
● matplotlib
● seaborn
● shap
● lime
● joblib
● python-multipart
● python-dotenv
● aiofiles
● jinja2
● numpy
● pydantic
● psutil
4.2 Backend Architecture
def load_lime_output():
path = [Link](BASE_DIR, "[Link]")
return pd.read_csv(path).to_dict(orient="records")
def load_business_rules():
path = [Link](BASE_DIR, "business_rules.csv")
return pd.read_csv(path).to_dict(orient="records")
4.3 Data Pipeline
The system incorporates a dynamic and modular data pipeline that automates data
collection, analysis, and model feeding.
● User Behavioral Data: Collected via browser extension, including search terms, product
clicks, and page visit patterns. This data is anonymized and sent to the backend for
analysis.
● Product Data Scraping: Real-time product listings and deal information are fetched
using the [Link] API, eliminating the need for maintaining in-house scrapers. This
scraping runs periodically or on-demand to ensure current data is available for
recommendation logic.
● Data Storage and Access: Preprocessed outputs (RFM segments, SHAP explanations,
business rules) are saved as structured files (CSV/JSON) for both API access and GUI
rendering.
●
The system features two primary frontend components: a browser extension for customer
engagement and an analyst dashboard GUI for business insights.
Browser Extension
● The entire backend is deployed using [Link], ensuring public API access.
● The browser extension works across Chromium-based browsers on both desktop and
Android (via Lemur or Kiwi browsers).
● The frontend GUI is portable and can be wrapped into an Android APK or WebGL
desktop app using frameworks like Niotron or Electron.
4.6 Summary
5. Modules
This module extracts if-then logical rules from the clustered RFM data or other behavioral
patterns to support automated decision-making.
● Input: Clustered customer data (from the RFM engine) and engagement history.
● Process:
o Applies rule-mining algorithms (e.g., Apriori or threshold-based logic).
o Identifies actionable rules such as:
▪ “If Frequency > 5 and Recency < 30 → Target with Premium Offers”
This frontend module interacts with users directly during their shopping journey.
The dashboard is the visual analytics layer for business users and analysts.
● Interactivity:
o Allows selection of chart types.
o Enables toggling between different customer clusters and features.
● Purpose: Facilitates decision-making through visual insight, trend tracking, and model
transparency.
All modules are connected via well-defined APIs and file-based output sharing:
● The system mined human-readable business rules from RFM clusters and other user
behavior features.
● Example rules included:
o "If Recency < 15 and Frequency > 5, then Tag as High-Potential Buyer."
o "If Monetary < ₹100 and Recency > 90, flag for Re-engagement."
● These rules were automatically exported in structured JSON format and were displayed
in the dashboard for analyst review and campaign planning.
● The browser extension successfully captured user search queries and interaction
behavior across supported e-commerce platforms.
● Intelligent parsing using Gemini AI allowed the extension to interpret complex queries
(e.g., "budget smartwatch for fitness under ₹2000") and fetch relevant product categories.
● Based on customer profile data received from the backend, the extension promoted
personalized deals and contextual product suggestions directly within the user’s
browsing session.
● This interaction loop between user behavior, backend analytics, and frontend
recommendations validated the full cycle of intelligent CRM integration.
● The analyst GUI dynamically rendered charts based on the type of insight selected—
RFM clusters, SHAP feature contributions, LIME explanations, or business rules.
● Charts were generated on-demand using QuickChart APIs, supporting multiple formats
like bar, pie, line, and scatter plots.
● The GUI provided options to switch chart types, filter clusters, and explore customer
behavior visually, offering business users a real-time insight portal.
Summary of Outputs
● Gemini AI API
o Enabled intelligent understanding and transformation of complex user search
queries into relevant keywords and product categories.
● [Link]
o Used for cloud deployment of the backend API with auto-scaling and HTTP
access capabilities.
● JavaScript
o Integrated with Chrome extension APIs to capture user behavior and render AI-
generated product suggestions in real time.
o Used for dynamic chart rendering and backend data fetches within both the
extension and dashboard.
● QuickChart API
o Powered the dynamic visualization engine in the analyst GUI for rendering bar,
pie, line, scatter, and histogram charts.
o Communicate with the backend asynchronously using fetch() and local storage.
7.4 External Services
● [Link] API (Reserved for future use)
o Intended for real-time product data retrieval from e-commerce platforms via
structured API calls.
● GitHub
o Used for total version control management and as a code storage medium for
deployment purposes.
● Gemini API
o Used for enhancing user queries/String and then returns a response as per user's
Product search.
8. Screenshots:
9. Conclusion
The Genius_Shoppy.AI system demonstrates the successful integration of customer
relationship management (CRM) analytics with intelligent product deal promotion in a unified,
cross-platform environment. By combining data-driven decision-making techniques such as
RFM segmentation, SHAP, and LIME explainability, the system empowers businesses to gain
actionable insights into customer behavior and purchasing patterns.
Through a dual-interface model—comprising a browser extension for real-time user
interaction and an analyst dashboard for in-depth data visualization—the system bridges the
gap between end-user engagement and backend intelligence. The browser extension dynamically
interprets user search intent using Gemini AI and presents the most relevant product deals, while
the analyst GUI allows for flexible chart generation and segmentation monitoring.
The backend, built using FastAPI, provides robust, scalable endpoints to serve
precomputed analytics outputs efficiently. The modular architecture ensures ease of maintenance
and future extensibility, including planned integration of real-time data scraping and more
sophisticated behavioral tracking.
Overall, this project presents a scalable and explainable CRM solution that enhances both
business decision-making and customer experience, laying the groundwork for future
enhancements such as recommendation systems, real-time personalization, and integration across
additional marketplaces.
10. Future Enhancements
To improve the robustness, scalability, and accessibility of the Genius_Shoppy.AI system,
several enhancements are proposed for future development:
● Multilingual Query Understanding:
To better serve a diverse user base across global and regional markets, future versions of
the system will incorporate multilingual natural language processing (NLP) capabilities.
This will allow users to interact with the browser extension and receive relevant product
recommendations in their preferred language, improving inclusivity and personalization.
● Real-Time Model Retraining:
The current system relies on precomputed outputs for RFM, SHAP, and LIME analytics.
A future iteration will introduce real-time retraining mechanisms that adapt to newly
collected user behavior data. This continuous learning loop will enable the backend
models to evolve dynamically, ensuring that recommendations, customer segmentations,
and behavioral explanations remain relevant over time.
● WhatsApp-Based Deal Assistant:
To broaden user engagement beyond the browser, a WhatsApp-based assistant is
planned. This assistant will send personalized deal notifications, alerts on price drops,
and analytics summaries directly to users via WhatsApp. This would increase the
system’s reach and real-time usability, especially in mobile-dominant markets.
● Advanced Web Scraping Capabilities:
While the current system uses [Link] for product data collection, future enhancements
aim to implement dynamic, headless browser-based scrapers (e.g., using Playwright or
Selenium) for broader e-commerce platform coverage. This will enable live scraping
from newer or more complex sources, ensuring up-to-date deal information and greater
adaptability to website structure changes.
● Integration of Recommendation Engines:
Future versions may include collaborative or content-based recommendation engines
trained on historical customer interaction data. These engines will complement the
existing analytical insights by offering direct product suggestions tailored to individual
users or segments.
● Security and Compliance Features:
With the increasing importance of data privacy, upcoming updates will also focus on
integrating security protocols such as OAuth for secure user sessions, data anonymization
techniques, and compliance with GDPR and other regional data protection
[Link] enhancements are geared toward evolving Genius_Shoppy.AI into a
full-fledged, intelligent, and user-friendly platform for real-time, personalized e-
commerce interaction and enterprise-grade CRM analytics.
11. References
● Lundberg, S. M., & Lee, S.-I. (2017). A Unified Approach to Interpreting Model
Predictions (SHAP). Proceedings of the 31st International Conference on Neural
Information Processing Systems (NIPS), 4765–4774.
[Link]
● Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). “Why Should I Trust You?”: Explaining
the Predictions of Any Classifier (LIME). Proceedings of the 22nd ACM SIGKDD
International Conference on Knowledge Discovery and Data Mining, 1135–1144.
[Link]
● FastAPI Documentation:
[Link]
● [Link] API Documentation:
[Link]
● [Link] Documentation:
[Link]
● Chrome Extension APIs:
[Link]