0% found this document useful (0 votes)
20 views73 pages

ANSAI: AI News Summarizer Project Report

The project report details the development of ANSAI, an Automated News Summarizer and Analyzer that utilizes advanced natural language processing and machine learning to generate concise summaries of lengthy news articles. It aims to address information overload by providing users with relevant insights, sentiment analysis, and personalized news recommendations while supporting multilingual access. The report outlines the project's objectives, system design, implementation, and testing methodologies, highlighting its potential to enhance news consumption and media literacy.

Uploaded by

premchintu227
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views73 pages

ANSAI: AI News Summarizer Project Report

The project report details the development of ANSAI, an Automated News Summarizer and Analyzer that utilizes advanced natural language processing and machine learning to generate concise summaries of lengthy news articles. It aims to address information overload by providing users with relevant insights, sentiment analysis, and personalized news recommendations while supporting multilingual access. The report outlines the project's objectives, system design, implementation, and testing methodologies, highlighting its potential to enhance news consumption and media literacy.

Uploaded by

premchintu227
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

A PROJECT REPORT

ON
ANSAI – AUTOMATED NEWS SUMMARIZER & ANALYZER WITH
INTELLIGENCE

A report submitted in partial fulfilment of the requirements for the award of

BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING (AI&ML)
SUBMITTED BY
KORRA PREM KUMAR 24BK1A66BM
NIRANJAN SINGH 24BK1A66BX
PRINCE PATEL 24BK1A66CH

UNDER THE ESTEEMED GUIDANCE OF


Mrs.V Roja
Assistant Professor
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING (AI&ML)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


(AI&ML)
St. Peter’s Engineering College (UGC Autonomous)
Approved by AICTE, New Delhi, Accredited by NBA and NAAC with ‘A’ Grade,
Affiliated to JNTU, Hyderabad, Telangana.

i
2025-2026

ii
DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING (AI&ML)

CERTIFICATE
This is to certify that project entitled“ANSAI – AUTOMATED NEWS SUMMARIZER &
ANALYZER WITH INTELLIGENCE” is carried out by KORRA PREM KUMAR
(24BK1A66BM),
NIRANJAN SINGH (24BK1A66BX), PRINCE PATEL(24BK1A66CH), in partial fulfilment for
the award of the degree of Bachelor of Technology in COMPUTER SCIENCE &
ENGINEERING (AI&ML) is a record of bonafide work done by them under my supervision during
the academic year “2025– 2026”.

INTERNAL GUIDE HEAD OF THE DEPARTMENT


Mrs. V. Roja Dr. P. Deepan
Assistant Professor Associate Professor & Head
Department of CSE(AI&ML), Department of CSE(AI&ML),
St. Peter’s Engineering College St. Peter’s Engineering College
(A), Hyderabad- 500043. (A), Hyderabad- 500043.

PROJECT COORDINATOR (A), Hyderabad- 500043.


Mrs. Vinitha EXTERNAL EXAMINER
Assistant Professor
Department of
CSE (AI&ML)
St. Peter’s Engineering College

iii
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING (AI&ML)
ACKNOWLEDGEMENT
We sincerely express our deep sense of gratitude to Mrs.V. Roja ,for his valuable guidance,
encouragement and cooperation during all phases of the project.
We are greatly indebted to our Project Coordinator [Link], for providing valuable advice,
constructive suggestions and encouragement without whom it would not been possible to complete this
project.
It is a great opportunity to render our sincere thanks to Dr. P. Deepan, Head of the Department, CSE
(AI&ML) for his timely guidance and highly interactive attitude which helped us a lot in successful
execution of the Project.

We are extremely thankful to our Principal Dr. A. Ramaswami Reddy, who stood as an inspiration
behind this project and heartfelt for his endorsement and valuable suggestions.
We respect and thank our Administrative Director Mr. T. Anurag Reddy, and secretary
Sri. T. V. Reddy, for providing us an opportunity to do the project work at St. PETER’S
ENGINEERING COLLEGE and we are extremely thankful to them for providing such a nice
support and guidance which made us to complete the project.
We also acknowledge with a deep sense of reverence, our gratitude towards our parents, who have
always supported us morally as well as economically. We also express gratitude to all our friends who
have directly or indirectly helped us to complete this project work.

KORRA PREM KUMAR 24BK1A66BM

NIRANJAN SINGH 24BK1A66BX

PRINCE PATEL 24BK1A66CH

iv
INSTITUTE VISION

IV:To be a renowned Educational Institution that moulds Students into Skilled Professionals fostering

Technological Development, Research and Entrepreneurship meeting the societal needs.

INSTITUTE MISSION

IM1: Making students knowledgeable in the field of core and applied areas of Engineering to

innovatetechnological solutions to the problems in the society.

IM2: Training the Students to impart the skills in cutting edge technologies, with the help of relevant

stakeholders.

IM3: Fostering a conducive ambience that inculcates a research attitude, identifying promising fields

forentrepreneurship with ethical, moral and social responsibilities.

v
DEPARTMENT VISION

To improve fundamentals and make it easier to address the ever expanding needs of society by
producing the best leaders in artificial intelligence and machine learning via excellence in research and
education.

DEPARTMENT MISSION

 DM 1 : Create centers of excellence in cutting-edge computing and artificial intelligence.


 DM 2 : Impart rigorous training to generate knowledge through the state-of-the-art
concepts and technologies in Artificial Intelligence and Machine Learning.
 DM 3 : To enhance research in emerging areas by collaborating with industries and
institutions at the national and international levels.

PROGRAM EDUCATIONAL OBJECTIVES (PEOs)

 PEO 1 : Work effectively in inter-disciplinary field with the knowledge of Artificial


Intelligence and Machine Learning to develop solutions to the real-world problems.
 PEO 2 : To communicate and work effectively on team based engineering projects and will
practice the ethics of their profession consistent with a sense of social responsibility.
 PEO 3 : Excel as socially committed engineers or entrepreneurs with high ethical and
moral values.

vi
PROGRAM OUTCOMES (POs)
PO1- Engineering Knowledge: Apply the knowledge of mathematics, science, engineering fundamentals
and provide solutions in the engineering specialization of artificial intelligence and machine learning.

PO2- Problem Analysis: Identify, formulate, review research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences,
and engineering sciences.

PO3- Design/development of solutions: Design solutions for complex engineering problems and design
system components or processes that meet the specified needs with appropriate consideration for the
public health and safety, and the cultural, and environmental considerations.

PO4- Conduct investigations of complex problems: Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.

PO5- Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modelling to complex engineering activities with an
understanding of the limitations.

PO6- The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.

PO7- Environment and sustainability: Understand the impact of the professional engineering solutions
in societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable
development.

PO8- Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of
the engineering practice.
PO9- Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings.

vii
PO10- Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective Presentations, and give and receive clear
instructions.

PO11- Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader in
a team, to manage projects and in multidisciplinary Environments.

PO12- Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.

PROGRAM SPECIFIC OUTCOMES (PSOs)


PSO1: To apply knowledge of Data Science, Machine Learning, and AI in exploring, adopting, and
integrating emerging technologies for practical, research, and co-curricular projects.
PSO2: The ability to design and develop software and data-driven projects using standard practices
and modern tools.

viii
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING (AI&ML)

DECLARATION

We declare that a Major Project entitled “ANSAI – AUTOMATED NEWS SUMMARIZER & ANALYZER
WITH INTELLIGENCE” is an original work submitted by the following group members who have actively
contributed and submitted in partial fulfilment for the award of degree in “Bachelor of Technology in Computer
Science and Engineering (AI&ML)”, at St. Peter’s Engineering College, Hyderabad, and this project work has
not been submitted by me to any other college or university for the award of any kind of degree.

Group No:05

Program: [Link]

Branch:

CSE(AI&ML)

Project Title: ANSAI – AUTOMATED NEWS SUMMARIZER & ANALYZER WITH INTELLIGENCE

Date Submitted:

KORRA PREM KUMAR 24BK1A66BM

NIRANJAN SINGH 24BK1A66BX

PRINCE PATEL 24BK1A66CH

ix
ABSTRACT

The Automated News Summarizer is an intelligent system developed to address


the challenges of information overload in today’s fast-paced digital news
environment. Utilizing advanced natural language processing (NLP) techniques
and machine learning algorithms, the project focuses on extracting the most
relevant and informative content from lengthy news articles to generate concise,
coherent summaries. This system employs both extractive and abstractive
summarization methods to ensure summaries maintain the original context and
essence while being significantly shorter. It supports multiple domains such as
politics, technology, sports, and entertainment, adapting to different writing styles
and terminologies. The project enhances user experience by enabling quick
overview consumption, facilitating better decision-making and timely information
delivery. Additionally, the system can be continuously improved through
feedback loops and fine-tuning on diverse datasets, making it a scalable solution
for news agencies, content curators, and mobile news applications..

x
TABLE OF CONTENTS

Ch. No. Title of the Chapter Page No.


Certificate ii
Acknowledgement iii
Declaration
viii
Abstract
ix
CHAPTER I - INTRODUCTION

1.1 Introduction 1
1.2 Objective of the project 2
1.3 Organizational of the thesis 2
CHAPTER 2- LITERATURE SURVEY
2.1 Literature survey 4
2.2 Existing works 5
2.3 Limitations of existing works 6
2.4 Advantages of proposed solution 6
CHAPTER 3 – ANALYSIS
3.1 Problem statement 8
3.2 Software requirements 8
3.3 Hardware requirements 9
CHAPTER 4- DESIGN
4.1 System architecture 10
4.2 Use case diagram 11
4.3 Activity diagram 13
4.4 Sequence diagram 14

Chapter 5- IMPLEMNTATION AND RESULTS


5.1 Data preparation and feature selection 17
xi
5.2 Model implementation 18
5.3 Model evaluation metrics 19
5.4 Experimental results 20
5.5 Deployment and user interface 21

Chapter 6- TESTING AND VALIDATION


6.1 Training process 23
6.2 Testing process 25
6.3 Validation metrics 26
Chapter 7- CONCLUSIONS

Conclusion 27
Future Scope 27
REFERENCES 30
SOURCE CODE 31.

LIST OF TABLES

Table No. Particulars Page No.


3.2 Software requirements 8
3.3 Hardware requirements 9
6.3 Validation metrics 22

xii
LIST OF FIGURES

Fig. No. Particulars Page No.

4.2 Use case diagram 12


4.3 Activity diagram 14
4.4 Sequence diagram 16

xiii
CHAPTER- I

INTRODUCTION

1.1 INTRODUCTION

In today’s digital era, news is produced at an unprecedented rate, making it increasingly difficult for
individuals to stay informed. With thousands of articles published every minute, users are
overwhelmed by vast volumes of information, diverse perspectives, and varying levels of media
credibility. This creates challenges such as information overload, difficulty identifying trustworthy
sources, and limited time for reading lengthy articles.
ANSAI – Automated News Summarizer & Analyzer with Intelligence is developed to address
these challenges by providing a smart, AI-powered solution for efficient and meaningful news
consumption. The system leverages advanced Natural Language Processing (NLP) techniques to
automatically summarize lengthy news articles, extract key points, identify sentiment, detect bias,
and evaluate the credibility of sources. ANSAI also groups similar articles, identifies trending topics,
and delivers personalized news feeds based on user preferences.
The platform is designed to support multilingual access, making global news understandable and
accessible to a wider audience. It particularly benefits students, researchers, professionals, and
individuals in low-bandwidth regions who require fast, reliable, and concise news insights. By
presenting complex information in a simplified and structured form, ANSAI enhances decision-
making, promotes media literacy, and empowers users to stay informed with minimal effort.
Overall, ANSAI demonstrates the transformative potential of artificial intelligence in modern
journalism, offering a unified, intelligent, and user-friendly approach to news understanding and
analysis.
.

1
1.2 OBJECTIVE OF THE PROJECT
The main objectives of the ANSAI project are:

 To develop an AI-powered system capable of automatically summarizing


lengthy news articles into concise and readable formats.
 To analyze news content using sentiment analysis, keyword extraction, and
topic modeling to provide deeper insights to users.
 To detect biased, misleading, or low-credibility news sources using
machine learning techniques.
 To offer personalized news recommendations based on user preferences,
categories, and reading history.
 To support multilingual summarization, ensuring accessibility for users from
diverse language backgrounds.
 To provide a low-bandwidth and offline-supported platform for users in remote
or underconnected regions.
 To reduce information overload and enable quick understanding of complex
news topics.

1.3 ORGANIZATION OF THE THESIS

The thesis is structured into seven chapters.

Chapter 1 – Introduction
Provides an overview of ANSAI, including its motivation, problem definition, objectives, and the
significance of automated news summarization and analysis in the modern digital world.

Chapter 2 – Literature Survey


Reviews existing research and technologies related to text summarization, sentiment analysis, topic
modeling, and misinformation detection. It identifies current limitations in news platforms and
discusses why ANSAI is needed.

Chapter 3 – System Analysis


Covers requirement analysis, problem analysis, feasibility studies, user needs, and the specification of
functional and non-functional requirements necessary for implementing ANSAI.

2
Chapter 4 – System Design
Explains the architecture, workflow diagrams, UML diagrams, data flow diagrams, and the design of
user interfaces and backend systems that form the structure of ANSAI.

Chapter 5 – Implementation and Results


Details the implementation of ANSAI using NLP models, datasets, frameworks, and algorithms.
Presents the output summaries, sentiment graphs, topic clusters, and other system results.

Chapter 6 – Testing and Validation


Describes the testing methodologies used, test case results, validation procedures, and evaluation
metrics such as ROUGE scores, accuracy, and response time.

Chapter 7 – Conclusion
Summarizes the project outcome, key contributions, limitations, and recommendations for future
improvements such as multilingual expansion, advanced bias detection, and real-time global trend
analytics.
.

3
CHAPTER- II

LITERATURE SURVEY

2.1LITERATURE SURVEY

Advancements in Natural Language Processing (NLP) and Artificial Intelligence have


significantly improved how news content is processed, summarized, analyzed, and
delivered to users. Existing research shows that individuals are often overwhelmed by the
vast amount of news produced daily, making it difficult to extract relevant information
quickly. Studies on automated text summarization highlight the importance of reducing
lengthy articles into concise, meaningful summaries using extractive or abstractive
techniques.
Research on sentiment analysis shows that identifying emotional tone helps readers
understand the perspective or bias present in news articles. Transformer-based models like
BERT, T5, and BART have set new benchmarks for summarization accuracy, sentiment
classification, and topic modeling.
Furthermore, literature on misinformation detection emphasizes the need for AI tools that
evaluate reliability and detect fake or biased news sources. Studies indicate that users
increasingly demand transparent, trustworthy, and multilingual news access.
Overall, the reviewed literature supports the development of a system like ANSAI that
combines summarization, sentiment analysis, keyword extraction, topic clustering,
bias detection, and multilingual accessibility, making news consumption faster, more
accurate, and more user-friendly.

4
2.2 EXISTING WORKS

Several existing systems attempt to provide news summaries or basic analysis tools, but each has
limitations:
1. Google News & Apple News
These platforms aggregate news and provide categorized articles but do not offer:
 detailed AI summarization
 sentiment analysis
 topic clustering
 bias/credibility detection
2. Inshorts
Provides short summaries but:
 uses simple extractive techniques
 does not analyze sentiment or credibility
 supports only a limited number of languages
3. Summarization Tools (QuillBot, SMMRY, HuggingFace models)
These tools offer summary generation but:
 do not fetch real-time news
 do not provide trend analysis
 lack fake news detection
4. Research-based Summarization Models
Numerous research papers propose abstractive summarization models such as:
 BART
 Pegasus
 T5
However, these are standalone AI models and do not form a complete system for users.
Overall, existing platforms provide partial solutions. None combine real-time news retrieval,
summarization, sentiment analysis, topic clustering, credibility scoring, and multilingual support in
a unified manner like ANSAI.

5
2.3 LIMITATIONS OF EXISTING WORKS

Despite many news aggregation and summarization tools, they face several limitations:
1. Information Overload Not Fully Resolved
Most platforms still present full articles, requiring significant reading time.
2. Lack of Deep AI-Based Analysis
Platforms rarely provide:
 sentiment detection
 misinformation flags
 keyword extraction
 topic clustering
3. Limited Multilingual Capabilities
Many systems support only English or a few global languages, restricting access for regional users.
4. No Bias or Credibility Evaluation
Existing platforms do not analyze:
 media bias
 source reliability
 factual consistency
5. Incomplete Integration
Tools focus on summarization OR news aggregation, but not both together.
6. Not Suitable for Low-Bandwidth Users
High-speed internet is often required to load full news articles and media.
These limitations create the need for a more advanced, inclusive, and intelligent platform—ANSAI.

2.4 ADVANTAGES OF PROPOSED SOLUTION

ANSAI addresses the weaknesses found in existing systems and offers several unique advantages:

✔ AI-Powered Summarization

Provides fast, accurate summaries of lengthy news articles using transformer models.

✔ Multilingual Support

Summaries and analysis are available in multiple languages, enhancing accessibility.

✔ Sentiment and Emotion Analysis

Helps users understand the emotional tone of articles instantly.

✔ Fake News & Bias Detection

Evaluates source credibility and flags potentially misleading content.

✔ Topic Clustering & Trend Detection

6
Groups related news items and shows emerging global trends.

✔ Low-Bandwidth and Offline Access

Allows users in remote or rural areas to access summaries without heavy data usage.

✔ Time-Saving and User-Friendly

Reduces reading time while still delivering complete insights.

✔ Personalized News Feeds

Users receive recommendations based on interests and reading patterns.

✔ Unified and Scalable Platform

Integrates aggregation, summarization, sentiment analysis, and trend detection in one system.

7
CHAPTER- III

ANALYSIS

3.1 PROBLEM STATEMENT

Despite rapid growth in digital media, individuals around the world struggle to access reliable, concise,
and unbiased news. With thousands of news articles published every minute, users often face:
 Information overload
 Difficulty identifying trustworthy sources
 Lack of time to read full articles
 Biased or misleading information
 Language barriers preventing access to global news
Existing news platforms offer raw articles but lack intelligent tools that summarize content, detect
sentiment, identify bias, extract key points, and present news in a simplified and multilingual manner.
As a result, people—especially students, researchers, professionals, and rural internet users—find it
challenging to stay updated and make informed decisions.
To address this, there is a need for an AI-powered system that automatically summarizes news, analyzes
sentiment, detects credibility, clusters trending topics, and presents information in a user-friendly and
accessible format.
The problem lies in designing a platform that reduces information overload, supports multilingual
access, enhances news transparency, and ensures reliable and efficient news consumption for users
across different regions.

3.2 SOFTWARE REQUIREMENTS

The system requires both programming tools and libraries to perform data preprocessing, model
training, and deployment. The following software components are used:

Software Description/Purpose

Operating system Windows 10/11

Programming Language Python (version 3.10 or higher)

Development Environment VS code , Jupyter Notebook

Libraries Used Pandas, NumPy, NLTK, SpaCy, Scikit-learn,


Transformers (BERT/T5/BART),

8
Frontend technologies HTML, CSS, JavaScript / React

Backend frameworks FastAPI / Flask

Data base MongoDB / PostgreSQL

Model Deployment Tools


Docker, Uvicorn, REST APIs

Dataset Format JSON, CSV, TXT (news articles, summaries)

3.3 HARDWARE REQUIREMENTS

The system is designed to run efficiently on standard computing devices. The minimum and
recommended hardware specifications are as follows:

Component Minimum Requirement Recommended Requirement

Processor Intel Core i3 Intel Core i5/i7

RAM 4GB 8 GB or higher

Storage 1GB free space 4GB or higher

Display 124 x 768 resolution Full HD (1920 x 1080)

Operating System Windows 10 Windows 11/Linux

9
CHAPTER- IV

DESIGN

4.1 SYSTEM ARCHITECTURE

This section describes the proposed system architecture for the ANSAI – Automated News
Summarizer & Analyzer with Intelligence platform: a scalable, secure, multilingual, low-bandwidth
friendly learning ecosystem that supports cross-border collaboration, offline access, and adaptive
learning.

1. High-level overview

The system follows a layered, service-oriented architecture with these main layers:

 Presentation Layer (Clients) — Web, Mobile (Android/iOS), and Offline Clients (lite app /
cached content).
 API / Gateway Layer — Authentication, rate limiting, routing, and API aggregation.
 Application Services Layer (Microservices) — Course Management, User Management,
Collaboration, Content Delivery, Assessment, Analytics, Multilingual/Localization,
Recommendation / Adaptive Learning, Notifications.
 Data Layer — Relational DB for core data, NoSQL for content & sessions, Object storage for
media, Search index, Analytics warehouse.
 Integration & Infrastructure Layer — CDN, Message Broker, Background Workers, Identity
Provider (SSO), Payment/Partner APIs, External OER/MOOC connectors.

4.2 USE CASE DIAGRAM


The Use Case Diagram represents the system’s functionality from the user’s perspective, showing how
different actors interact with the ANSAI platform.

Actors
1.1 User

Primary user of the system.


Interacts with summarized news, explores categories, and uses AI-driven analysis tools.

1.2 Administrator

Oversees and manages the platform.


10
Handles user accounts, monitors system performance, and manages news sources.

11
1.2 External News API / Data Source (System Actor)

Provides live news data to the ANSAI system.


Supports real-time fetching of articles for summarization and analysis.

Use Cases

1. Register and Create User Profile


Users create an account by providing name, region, preferred news language, and areas of
interest. This allows ANSAI to provide personalized content and multilingual summaries.

2. Browse and Select News Categories / Topics


Users explore trending categories, search for topics, or filter news based on interests.
ANSAI fetches and displays relevant articles from trusted global news sources.

3. Access Summarized News (Online/Offline)


Users view AI-generated summaries, key points, sentiment scores, and related news.
Low-bandwidth mode and offline access ensure usability even in poor-connectivity regions.

4. Analyze News Using AI Tools


Users interact with ANSAI’s advanced analytical features, including:
 sentiment detection
 keyword and entity extraction
 bias and credibility checking
 topic clustering
 trend and pattern analysis
These tools help users understand news quickly and deeply.
Description:
ANSAI – Automated News Summarizer & Analyzer with Intelligence is an advanced AI-
powered platform designed to help users access news in a fast, simplified, and multilingual
format. It eliminates information overload by summarizing lengthy articles, extracting key
insights, detecting sentiment, and identifying trends across global news sources.
Users can browse categories, follow trending topics, save summaries offline, and receive
personalized recommendations based on their interests and preferred language. ANSAI’s
AI engine ensures accurate summarization, unbiased analysis, and efficient news delivery.
The platform includes an administrative layer for managing news sources, monitoring
system health, verifying content credibility, and generating analytics reports.
With strong multilingual support, low-bandwidth access, and real-time insights,
ANSAI aims to make global news more accessible, understandable, and reliable for
users from all regions and backgrounds.

12
Figure: 4.2 Use Case Diagram

13
4.1 ACTIVITY DIAGRAM
The Activity Diagram represents the complete workflow of how a user
interacts with the ANSAI system and how the system processes news
summarization and analysis.
Flow of Activities:
 User Login / Access to Platform
 User Browses or Searches for News Topic
 System Fetches News Articles from Database / APIs
 Preprocessing and Cleaning of Retrieved Articles
 Summarization of News Using AI Model
 Sentiment & Keyword Extraction
 Displaying Summary, Sentiment, and Insights to User
 User Saves, Shares, or Downloads Summary (Optional)
 Trending Topics & Recommendations Update Automatically
 Administrator Manages Sources, Categories, and System Logs

14
Figure: 4.3Activity Diagram

4.4SEQUENCE DIAGRAM

the Sequence Diagram shows how different components of the ANSAI

system interact over time to complete the news summarization and

analysis process.

Main Objects:

 User

 Interface (Front End)

 ANSAI Engine (Backend Model)

 News Database / API Source

15
Sequence of Actions:

1. User : Interface: Requests news summary

(enters keyword/topic or selects category).

2. Interface : Database/API: Fetches the latest

news articles related to the user’s request.

3. Database/API : Interface: Returns raw news content.

4. Interface : ANSAI Engine: Sends the article text

for summarization and sentiment analysis.

5. ANSAI Engine: Processes text, generates

summary, extracts keywords, and performs

sentiment analysis.

6. ANSAI Engine : Interface: Sends summarized

output and insights.

7. Interface → User: Displays summary, sentiment

score, key points, and related articles.

This sequence ensures smooth coordination between data retrieval,

model processing, and user display, enabling fast and intelligent

news summarization.

16
Figure: 4.4 Sequence Diagram

17
CHAPTER- V

IMPLEMENTATION AND RESULTS


5.1 DATA PREPARATION AND FEATURE SELECTION
Data preparation is a critical step in ANSAI – Automated News Summarizer & Analyzer
with Intelligence, as the platform relies on high-quality textual data to generate accurate
summaries and analyses.
The system collects news articles from multiple sources such as RSS feeds, news APIs,
blogs, and digital newspapers.
Key steps include:
1. Text Cleaning
Raw news data is cleaned to remove:
 HTML tags
 Special symbols
 Advertisements
 Duplicate articles
 Irrelevant metadata
2. Normalization
To ensure consistency across global news sources:
 Convert text to lowercase
 Remove stopwords
 Perform stemming/lemmatization
 Handle multilingual text using language detection algorithms
3. Metadata Structuring
Each article is tagged
with:
 Category (Politics, Sports, Technology, Crime, etc.)
 Publication date
 Author details
 Source credibility score
18
 Region & language

19
4. Feature Selection
Key features extracted for summarization and analysis:
 Sentence importance score
 Keyword frequency
 Named entities (persons, places, organizations)
 Sentiment polarity
 Topic clusters
These features enable ANSAI to perform intelligent summarization, sentiment analysis, trend
detection, and fake-news classification.

5.2 MODEL IMPLEMENTATION


• News Collection Module
 Integrates APIs (NewsAPI, GDELT, Web Scrapers).
 Fetches real-time news articles from verified sources.
 Stores news in a structured database.
• Summarization Engine
Implements advanced NLP techniques:
 Transformer-based models (BART, T5, Pegasus).
 Extractive & abstractive summarization.
 Generates short, medium, and detailed summaries.
• Sentiment & Emotion Analysis Module
 Calculates sentiment polarity: Positive, Negative, Neutral.
 Detects emotions such as anger, joy, fear, or surprise.
 Helps users understand the emotional tone of news.
• Topic Classification & Trend Detection
 Clusters similar articles using LDA / K-Means / BERTopic.
 Identifies trending topics and emerging events.
 Displays real-time dashboards showing news patterns.
• Fake News Detection Module

20
 Checks credibility using AI classifiers (SVM / RoBERTa).
 Cross-verifies facts from trusted databases.
 Flags suspicious or low-trust articles.
• User Interface Integration
 Users search or browse news topics.
 ANSAI displays summaries, sentiment results, tags, and insights.
 Multi-language support for Indian and global languages.

5.3 MODEL EVALUATION METRICS


To ensure the quality of news summarization and analysis, the following metrics are used:
Summarization Metrics
 ROUGE Score (ROUGE-1, ROUGE-2, ROUGE-L)
Measures accuracy of generated summaries compared to reference summaries.
 BLEU Score
Evaluates precision and linguistic quality.
Sentiment Analysis Metrics
 Precision, Recall, F1-Score
Measures correctness in detecting positive/negative sentiment.
Fake News Detection Metrics
 Accuracy
 Confusion Matrix
 AUC-ROC Curve
User Engagement
Metrics
Tracks how users interact with summarized news:
 Average reading time
 Summary preference (short/medium/detailed)
 Top trending categories
 Number of saved/shared
summaries System Performance Metrics
21
 Response time for generating summaries
 API throughput
 Latency in real-time news fetching

5.4 EXPERIMENTAL RESULTS


The ANSAI platform was tested using datasets such as CNN/DailyMail, BBC News, and Indian
regional news portals.
1. Summarization Performance
Observation: Summaries produced were compact yet meaningful.
Result:
 Average ROUGE-L score: 0.47
 BLEU score: 0.32
2. Sentiment Analysis Accuracy
Observation: System correctly detected polarity in diverse news categories. Result:
89% accuracy
3. Topic Detection & Clustering
Observation: News articles were grouped with high coherence.
Result:
 87% topic coherence score
 Detected emerging trends within minutes of publication
4. Fake News Classification
Observation: Correctly flagged manipulated or misleading content.
Result: 91% classification accuracy
5. User Interface Testing
 98% success rate in loading summaries
 Mobile-responsive UI
 90% faster reading time due to short summaries

22
5.5 DEPLOYMENT AND USER INTERFACE
Deployment
ANSAI is deployed as a scalable web application using:
Cloud Deployment
 Hosted on AWS/Azure/Google Cloud
 Auto-scaling for handling traffic spikes during breaking
news Microservices Architecture
Separate services for:
 News collector
 Summarizer
 Sentiment analyzer
 Fake news detector
 User dashboard
 Analytics engine
Ensures fast updates and isolated module development.
API-Based Design
REST APIs allow:
 Mobile app integration
 Third-party data access
 Real-time summary generation

User Interface
The ANSAI User Interface is designed to be simple, responsive, and intuitive, allowing users to
quickly access summarized news, sentiment insights, and trending topics. It provides a clean
dashboard layout that enhances readability and ensures seamless navigation across all features.

23
User Dashboard
 Real-time trending topics
 Category-wise news cards
 Summary options (short/medium/detailed)
 Sentiment indicators (color-coded)
Article View Page
Displays:
 Summary
 Key points
 Sentiment score
 Keywords & entities
 Related articles
 Source authenticity
meter Admin Dashboard
 Manage news sources
 Monitor system performance
 Train/retrain AI models
 Track fake news reports and user feedback

24
CHAPTER- VI

TESTING AND VALIDATION

6.1 TRAINING PROCESS

The training process is a crucial stage in developing the ANSAI – Automated News Summarizer &
Analyzer with Intelligence system. During this phase, various NLP and machine-learning models were
trained to perform summarization, sentiment analysis, and news classification accurate

1. Dataset Preparation
Text datasets containing news articles, headlines, labeled sentiments, and news categories were collected. Steps
involved:
 Cleaning text (removing noise, URLs, emojis)
 Normalizing content (lowercasing, tokenization)
 Dividing data into training (80%) and testing (20%)
sets This ensured the model received clean, high-quality data

.
2. Feature Extraction
For extractive summarization and classification:
 TF-IDF vectors
 Word embeddings (Word2Vec, GloVe)
 Transformer-based embeddings (BERT/T5)
These features helped the system understand context and meaning.

3. Model Selection
Different models were evaluated for:
 Summarization: TextRank, T5, BART
 Sentiment Analysis: Logistic Regression, BERT-based classifiers
 News Classification: SVM, Random Forest, and Transformer
models The best models were selected based on accuracy and ROUGE
scores.
25
4. Model Training
Each model was trained using supervised learning:
 Summarization model learned how to compress long news into short meaningful summaries
 Sentiment model learned patterns of positive, negative, and neutral text
 Classification model learned topic categories like politics, sports,
technology Training continued until the models reached optimal performance

5. Model Saving
The best-performing models were saved using serialization methods such as Pickle or HuggingFace
format, enabling reuse without retraining.

26
6.2 TESTING PROCESS

The testing process for the ANSAI – Automated News Summarizer & Analyzer with Intelligence
platform ensures that all modules, functionalities, and features work correctly, efficiently, and
securely. Testing was conducted in multiple stages, covering both functional and non-functional
aspects of the system.

1. Unit Testing

Tested each module individually, such as:


 Text preprocessing (tokenization, stopword removal, lemmatization)
 Summarization module
 Sentiment analysis module
 News classification module
 API response parsing
Ensured correct output, error handling, and input validation.

2. Integration Testing
Verified interaction between combined modules:
 News fetching → preprocessing → summarization pipeline
 Summarization → sentiment → classification flow
 Backend → frontend API communication
Checked data flow, module connectivity, and consistency.

3. System Testing
End-to-end testing under real usage:
 Fetching real-time news
 Generating summaries
 Displaying sentiment/category results
 Handling large articles and high loads
Ensured system stability, correctness, and performance.

4. Usability Testing
Evaluated:
 User interface clarity
 Simplicity of workflow
 Readability of summaries
 Response time and smooth interaction
Collected feedback from sample users to improve design.

27
5. Performance Testing

Performance testing was conducted to ensure ANSAI works efficiently and reliably.
 Response Time: Summaries generated within 1–5 seconds, depending on article length.
 Load Handling: System remained stable under heavy concurrent requests.
 Stress Test: Handled long articles and rapid requests without crashing.
 Scalability: Performed smoothly across different hardware setups.
 Resource Usage: CPU and RAM consumption stayed within safe limits.
Observation:

During the testing and evaluation of the ANSAI – Automated News Summarizer & Analyzer with
Intelligence system, several important observations were made. The platform performed efficiently
across all NLP modules, including text preprocessing, summarization, sentiment analysis, and news
classification. The system consistently generated clear, concise summaries and accurate sentiment
outputs.
ANSAI handled real-time news fetching smoothly, maintained stable performance under multiple
concurrent requests, and delivered fast response times. The user interface was simple, responsive, and
easy to navigate, allowing users to obtain summaries and analysis results without difficulty. Overall, the
system demonstrated reliability, accuracy, and strong usability across different testing scenarios.

6.3 VALIDATION METRICS

To quantitatively evaluate model accuracy, several regression metrics were applied:

Metric Formula / Definition Purpose


Measures similarity between
ROUGE Score system summary & original text Evaluates summary quality

Accuracy Correct predictions ÷Total Measures overall correctness


predictions

Precision TP ÷ (TP + FP) Checks correctness of


positive predictions

Recall TP ÷ (TP + FN) Checks how many actual


positives were detected

F1-Score Harmonic mean of Precision


Balanced
& Recall
performance metric

28
CHAPTER- VII

CONCLUSION

7.1 CONCLUSION

The ANSAI – Automated News Summarizer & Analyzer with Intelligence project successfully
demonstrates the potential of technology to provide accessible, inclusive, and high-quality education to
learners worldwide. By integrating online courses, virtual classrooms, multilingual content, interactive
learning materials, and offline access, the platform effectively addresses geographical, socio-economic,
and infrastructural barriers. The implementation of features such as student progress tracking,
personalized recommendations, and teacher evaluation tools ensures a comprehensive learning
experience, while administrative modules maintain system integrity, security, and analytics for
continuous improvement. Testing and experimental results indicate that the system performs reliably
under diverse conditions, supports high user engagement, and delivers educational content efficiently
even in low-bandwidth environments. Overall, the platform fulfills its objective of promoting global
collaboration, bridging learning gaps, and empowering students and educators across borders. ANSAI
– Automated News Summarizer & Analyzer with Intelligence lays the foundation for future
enhancements in digital education, offering a scalable and adaptable framework capable of evolving
with changing educational needs and technological advancements.

7.2 FUTURE SCOPE:

• Multilingual News Summarization

Extend the system to support summarization and sentiment analysis in multiple languages,
enabling global users to access summarized news in their native language.

• Fake News Detection

Integrate machine-learning models that identify misinformation, detect biased reporting, and classify the
credibility level of news sources.

• Personalized News Recommendations

Use user behavior, reading patterns, sentiment preference, and topic interest to recommend news
summaries tailored to each individual.

• Voice-Based Summaries (Text-to-Speech)

29
Implement AI voice synthesis to convert summaries into audio format for visually impaired users
or hands-free consumption.

• Real-Time Live News Stream Summarization


Enhance ANSAI to automatically summarize breaking news in real time from live feed APIs or streaming
text.

• Mobile App Development

Create a dedicated mobile application to give users fast access to summarized and analyzed news with
push notifications.

• Advanced Visualization Dashboard


Provide graphs, sentiment timelines, category distribution, source credibility maps, and misinformation
heatmaps.

• Integration with Social Media Monitoring

Automatically summarize trending topics from platforms like X (Twitter), Reddit, or news blogs
using real-time data pipelines.

• Multilingual News Summarization

Extend the system to support summarization and sentiment analysis in multiple languages,
enabling global users to access summarized news in their native language.

• Fake News Detection

Integrate machine-learning models that identify misinformation, detect biased reporting, and classify the
credibility level of news sources.

• Personalized News Recommendations

Use user behavior, reading patterns, sentiment preference, and topic interest to recommend news
summaries tailored to each individual.

• Voice-Based Summaries (Text-to-Speech)

Implement AI voice synthesis to convert summaries into audio format for visually impaired users
or hands-free consumption.

• Real-Time Live News Stream Summarization

Enhance ANSAI to automatically summarize breaking news in real time from live feed APIs or streaming
text.

• Mobile App Development


30
Create a dedicated mobile application to give users fast access to summarized and analyzed news with
push notifications.

• Advanced Visualization Dashboard


Provide graphs, sentiment timelines, category distribution, source credibility maps, and misinformation
heatmaps.

• Integration with Social Media Monitoring

Automatically summarize trending topics from platforms like X (Twitter), Reddit, or news blogs
using real-time data pipelines.

31
REFERENCES

1. Text Summarization & NLP


 Mihalcea, R., & Tarau, P. (2004). TextRank: Bringing order into text. EMNLP.
 Nallapati, R., Zhai, F., & Zhou, B. (2017). Summarunner: A Recurrent Neural Network
based Sequence Model for Extractive Summarization. AAAI.
 See, A., Liu, P. J., & Manning, C. D. (2017). Get to the point: Abstractive summarization
with pointer-generator networks. ACL.
2. Transformer-based Models
 Vaswani, A. et al. (2017). Attention Is All You Need. NeurIPS.
 Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of
Deep Bidirectional Transformers for Language Understanding. NAACL.
 Raffel, C., et al. (2020). T5: Exploring the Limits of Transfer Learning with a Unified Text-to-
Text Transformer. JMLR.
3. Sentiment & News Analysis
 Mohammad, S. (2016). Sentiment Analysis: Detecting Valence, Emotions, and Other
Affectual States from Text.
 Medhat, W., Hassan, A., & Korashy, H. (2014). Sentiment Analysis Algorithms and Applications.
Ain Shams Engineering Journal.
4. Fake News & Credibility
 Shu, K., Sliva, A., Wang, S., Tang, J., & Liu, H. (2017). Fake News Detection on Social Media:
A Data Mining Perspective. ACM SIGKDD.
 Zhou, X., & Zafarani, R. (2020). A Survey of Fake News Detection: Fundamental
Issues, Methods, and Challenges. ACM Computing Surveys.
5. Miscellaneous NLP Techniques
 Manning, C. D., Raghavan, P., & Schütze, H. (2008). Introduction to Information Retrieval.
Cambridge University Press.
 Jurafsky, D., & Martin, J. H. (2020). Speech and Language Processing. Pearson.

32
SOURCE CODE

[Link]

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8" />

<title>ANSAI – Automated News Summarizer AI</title>

<meta name="viewport" content="width=device-width, initial-scale=1" />

<style>

*{

box-sizing: border-box;

font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

body

{ margin:

0;

padding: 0; background:

#f5f0e8; color:

#27322b; display:

flex;

justify-content: center;

align-items: flex-start;

min-height: 100vh;
33
}

34
.page {

max-width: 1200px;

width: 100%;

padding: 24px 16px 40px;

.shell {

background:

#fbf6ed; border-

radius: 20px;

padding: 20px;

box-shadow: 0 20px 40px rgba(0,0,0,0.08);

border: 1px solid #e0d2bd;

.topbar

{ display: flex;

justify-content: space-

between; align-items: center;

gap: 12px;

margin-bottom: 16px;

.title-block

{ display: flex;

align-items: center;

35
gap: 14px;

36
}

.logo {

width: 52px;

height: 52px;

border-radius: 999px;

background: #020617;

display: flex;

justify-content:

center; align-items:

center; overflow:

hidden;

.logo img

{ width:

100%;

height: 100%;

object-fit:

contain;

h1

{ margin:

0;

font-size: 24px;

37
}

.subtitle {

margin: 4px 0

0;

font-size: 13px;

38
color: #6b6b5c;

.auth-panel

{ display: flex;

flex-direction:

column; align-items:

flex-end; gap: 6px;

font-size: 13px;

.auth-inputs {

display:

flex; gap:

6px;

align-items:

center; flex-wrap:

wrap;

input[type="text"],

input[type="password"],

textarea,

select {

width: 100%;

padding: 9px 11px;

39
border-radius:

10px;

border: 1px solid #d2c4ae;

40
background:

#fffdf8; color:

#27322b;

font-size: 13px;

resize: vertical;

textarea {

min-height: 140px;

max-height:

260px;

input:focus, textarea:focus, select:focus

{ outline: none;

border-color: #7cbf8e;

box-shadow: 0 0 0 1px #7cbf8e40;

label {

display: block;

margin: 10px 0

4px; font-size:

13px; color:

#3a3a30;

41
.hint {

font-size: 11px;

color: #7f7f6a;

42
margin-top: 3px;

.btn {

display: inline-

flex; align-items:

center; gap: 6px;

padding: 9px 18px;

border-radius:

999px; border: none;

background: linear-gradient(135deg, #7cbf8e, #4aa66b);

color: #ffffff;

font-weight:

600; font-size:

13px; cursor:

pointer;

box-shadow: 0 8px 16px rgba(77, 152, 103, 0.35);

.[Link]

{ background:

#f5f0e8; color:

#355443;

border: 1px solid

#d4c6b1; box-shadow:

43
none;

.[Link] {

44
padding: 6px

12px; font-size:

12px;

.btn:disabled

{ opacity: 0.6;

cursor: not-

allowed; box-

shadow: none;

.btn [Link] {

border: 2px solid

rgba(255,255,255,0.5); border-top: 2px

solid white;

border-radius:

50%; width: 14px;

height: 14px;

animation: spin 0.8s linear infinite;

@keyframes spin {

from { transform: rotate(0deg); }

to { transform: rotate(360deg); }

45
.grid {

display:

grid;

grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);

46
gap: 18px;

margin-top:

10px;

.card {

background: #fffdf8;

border-radius: 16px;

padding: 14px 16px 16px;

border: 1px solid #e3d6c1;

.card h3 {

margin: 0 0

6px; font-size:

15px; display:

flex;

align-items: center;

gap: 6px;

.card small

{ font-size:

11px; color:

#8a806e;

47
.error {

margin-top: 8px;

padding: 8px 10px;

48
border-radius: 10px;

background: #fde2e2;

border: 1px solid #f5a4a4;

color: #7c1f1f;

font-size: 12px;

display: none;

.success {

margin-top:

6px; font-size:

12px; color:

#2f6f4b;

.output {

margin-top: 10px;

.tag {

display: inline-flex;

padding: 3px 9px;

border-radius: 999px;

font-size: 11px;

background:

#f1e8d7; color:

49
#5b4f3c;

border: 1px solid #e0d2bd;

50
margin-bottom:

6px; margin-right:

4px;

.summary-box

{ margin-top: 5px;

padding: 10px 12px;

border-radius: 12px;

background: #fffdf8;

border: 1px solid

#e3d6c1; font-size: 13px;

line-height: 1.6;

white-space: pre-

wrap; max-height:

260px; overflow:

auto;

.meta {

margin-top:

6px; font-size:

11px; color:

#7d7563;

51
.pill-list

{ display: flex;

flex-wrap: wrap;

52
gap: 4px;

margin-top:

4px;

.pill {

font-size: 11px;

padding: 4px 8px;

border-radius:

999px;

border: 1px solid #d7cab5;

background: #faf3e4;

cursor: pointer;

.pill:hover

{ background:

#f0e3cf;

.history-list,

.bookmark-list

{ margin-top: 8px;

max-height:

200px; overflow:

auto; font-size:

53
12px;

.history-item,

.bookmark-item {

54
padding: 6px 6px 7px;

border-radius: 10px;

border: 1px solid

#e3d6c1; background:

#fffdf8; margin-bottom:

5px; cursor: pointer;

display: flex;

flex-direction:

column; gap: 2px;

.history-item:hover,

.bookmark-item:hover

{ background: #f5ebdd;

.history-title

{ display: flex;

justify-content: space-

between; gap: 4px;

font-weight: 500;

.history-meta

{ font-size:

11px;

55
color: #8b816f;

56
}

.auth-username

{ font-weight:

600;

color: #285943;

.admin-card

{ margin-top:

10px; padding-

top: 10px;

border-top: 1px dashed

#e3d6c1; font-size: 12px;

.admin-metric

{ display: inline-

block; margin-right:

10px;

@media (max-width: 900px) {

.grid {

grid-template-columns: minmax(0, 1fr);

.auth-panel {

57
align-items: flex-start;

.topbar {

58
alert("Log in to export PDFs.");

return;

if (!lastSummaryId) {

alert("No summary selected.");

return;

// just open in new tab; token via query is not ideal but fine for demo

[Link](`${API_BASE}/summaries/${lastSummaryId}/pdf`, "_blank");

});

[Link](".pill").forEach(pill =>

{ [Link]("click", () => {

const filter = [Link]("data-filter");

if (filter === "all")

{ [Link] = "block";

[Link] = "block";

} else if (filter === "history")

{ [Link] = "block";

[Link] = "none";

} else if (filter === "bookmarks")

{ [Link] = "none";

[Link] = "block";

59
}

});

});

renderAuthPanel();

</script>

</body>

</html>

60

You might also like