A
MAJOR PROJECT REPORT ON
RESTAURANT RECOMMENDATION SYSTEM BASED ON
REVIEWS USING CONTEXT-BASED & COLLABORATIVE
FILTERING
Submitted in partial fulfilment for the award of the degree of
BACHELOR OF TECHNOLOGY
In
INFORMATION TECHNOLOGY
By
DEVARI ANUSHA: 21Q91A1219
Under the Guidance Of
Mr.B.Venkatesh
Assistant Professor, Dept. Of IT
DEPARTMENT OF INFORMATION TECHNOLOGY
MALLA REDDY COLLEGE OF ENGINEERING
(“sponsored by CHANDRAMMA EDUCATIONAL SOCIETY”)
(Approved by AICTE , Affiliated to JNTUH & NBA Accredited [CSE, ECE])
Recognized under section 2(f)&12(B) of the UGC New Delhi
ISO 9001:2015 Certified Institution
Maisammaguda, Dhulapally (post via kompally) secunderabad-500100.
2024-2025
MALLA REDDY COLLEGE OF ENGINEERING
(“Sponsored by CHANDRAMMA EDUCATIONAL SOCIETY”)
(Approved by AICTE , Affiliated to JNTUH & NBA Accredited [CSE, ECE])
Recognized under section 2(f) & 12(B) of the UGC Act 1956,
An ISO 9001:2015 certified Institution.
Maisammaguda, Dhulapally (Post via Kompally), Secunderabad- 500100
____________________________________________________________________________________
DEPARTMENT OF INFORMATION TECHNOLOGY
CERTIFICATE
This is to certify that the Major project report on “RESTAURANT RECOMMENDATION
SYSTEM BASED ON REVIEWS USING CONTEXT-BASED AND COLLABORATIVE
FILTERING” is successfully done by the following students of Department of Information
Technology and Engineering of our college in partial fulfilment of the requirement for the award
of B.Tech degree in the year 2024-2025. The results embodied in this report have not been
submitted to any other University for the award of any diploma or degree.
DEVARI ANUSHA: 21Q91A1219
INTERNAL GUIDE HOD
Mr. B. VENKATESH Dr. E. LINGAPPA
Asst. Professor, Dept. of IT Assoc. Professor, Dept. of IT
Submitted for the viva voice examination held on: _____________________________
Internal Examiner External Examiner
i
DECLARATION
I, DEVARI ANUSHA with Regd.no.21Q91A1219 are hereby declaring that the Major
project report entitled “RESTAURANT RECOMMENDATION SYSTEM BASED ON
REVIEWS USING CONTEXT-BASED AND COLLABORATIVE FILTERING” has been
done by us under the guidance of Mr.B.Venkatesh, Assistant Professor, Department of IT is
submitted in the partial fulfilment of the requirements for the award of degree of BACHELOR
OF TECHNOLOGY in INFORMATION TECHNOLOGY.
The Results embedded in this project report have not been submitted to any other
University or institute for the award of any degree or diploma.
Signature of the Candidate:
DEVARI ANUSHA: 21Q91A1219
DATE:
PLACE: Maisammaguda
ii
ACKNOWLEDGEMENT
First and foremost, we would like to express our immense gratitude towards our institution
Malla Reddy College of Engineering, which helped us to attain profound technical skills in the
field of Information Technology & Engineering, there by fulfilling our most cherished goal.
We are pleased to thank Sri Ch.Malla Reddy Garu, our Founder, Chairman MRGI, Sri
Ch.Mahender Reddy Garu, Secretary, MRGI for providing this opportunity and support
throughout the course.
It gives us immense pleasure to acknowledge the perennial inspiration of Dr.M.Ashok,
our beloved principal for his kind co-operation and encouragement in bringing out this task.
We would like to thank Dr.E.Lingappa, HOD, IT Department for their inspiration adroit
guidance and constructive criticism for successful completion of our degree.
We would like to thank Mr.B.Venkatesh, Assistant Professor our internal guide, for his
valuable suggestions and guidance during the exhibition and completion of this project.
Finally, we avail this opportunity to express our deep gratitude to all staff who have
contributed their valuable assistance and support making our project success.
DEVARI ANUSHA: 21Q91A1219
iii
ABSTRACT
The Restaurant Recommendation System based on reviews leverages both context-based filtering
and collaborative filtering techniques to provide personalized restaurant recommendations for
customers. The system is designed with two main user modules: the Admin and the Customer. The
admin module allows administrators to upload, preprocess, and analyze datasets, generate a TF-
IDF matrix, and create a Singular Value Decomposition (SVD) model. The Customer module
facilitates restaurant recommendations using context-based filtering and collaborative filtering
algorithms, based on user reviews. This dual approach ensures more accurate and relevant
recommendations for customers, improving their overall dining experience. The system enhances
user satisfaction by offering a blend of algorithmic precision and personalized preferences.
iv
TABLE OF CONTENTS
S.No Page No.
1. CERTIFICATE i
2. DECLARATION ii
3. ACKNOWLEDGEMENT iii
4. ABSTRACT iv
5. TABLE OF CONTENTS v
6. LIST OF FIGURES viii
7. LIST OF SCREEN SHOTS ix
8. LIST OF ABBREVIATIONS x
CHAPTERS
CHAPTER 1: INTRODUCTION 1
CHAPTER 2: LITERATURE SURVEY 3
CHAPTER 3: SYSTEM ANALYSIS 5
3.1 Existing system & Disadvantages 5
3.2 Proposed system & Advantages 5
3.3 System Requirements 6
CHAPTER 4: FEASIBILITY STUDY 7
CHAPTER 5: SYSTEM DESIGN 8
5.1 System Architecture 8
5.2 Modules 8
5.3 UML Diagrams 9
5.3.1 Goals of UML Diagrams 9
5.3.2 Use Case Diagram 10
5.3.3 Class Diagram 10
5.3.4 Sequence Diagram 11
5.3.5 Activity Diagram 11
v
CHAPTER 6: SYSTEM IMPLEMENTATION 13
6.1 Software Environment 13
6.1.1 Python 13
6.1.2 History of python 13
6.1.3 Features of python 14
6.1.4 Operators in python 14
6.1.5 List 15
6.1.6 Tuple 16
6.1.7 Dictionary 17
6.1.8 Function 17
6.1.9 Scope of Variables 19
6.1.10 Files 20
6.1.11 Exception Handling 25
6.1.12 Database Connectivity in Python 29
6.2 Django 30
6.2.1 How Django Works 31
CHAPTER 7: MACHINE LEARNING(ML) 32
7.1 What is ML? 32
7.2 Need for ML 32
7.3 How does ML work 33
7.4 Features of ML 33
7.5 What is Train & Test? 33
7.6 Classification of ML 34
7.7 Applications of ML 34
7.8 Advantages of ML 35
7.9 Disadvantages of ML 36
CHAPTER 8: INPUT &OUTPUT DESIGN 37
8.1 Input Design & Objectives 37
8.2 Output Design & Objectives 38
vi
CHAPTER 9: SYSTEM TESTING 39
9.1 Types of Tests 39
9.1.1 Unit Testing 40
9.1.2 Integration Testing 41
9.1.3 Acceptance testing 41
CHAPTER 10: RESULTS 44
CHAPTER 11: SAMPLE SOURCE CODE 49
CHAPTER 12: CONCLUSION 53
CHAPTER 13: REFERENCES 54
vii
LIST OF DIAGRAMS / FIGURES / GRAPHS
Figure No. NAME Page No.
5.1 System Architecture 8
5.3.2 Use Case Diagram 10
5.3.3 Class Diagram 10
5.3.4 Sequence Diagram 11
5.3.5 Activity Diagram 12
6.2.1 Django Architecture 30
6.2.2 Control Flow of MVT 31
7.3 Machine Learning 33
viii
LIST OF SCREENSHOTS
Figure No. Name of the figure Page No.
10.1 Index Page 43
10.2 Admin Login 43
10.3 Admin Home 44
10.4 Upload Datasets 44
10.5 Preprocess Datasets 45
10.6 Similarity Score 45
10.7 Merging Datasets 46
10.8 Recommendation System 46
10.9 Enter food items and username 47
10.10 Recommendation 47
10.11 Another Recommendation 48
ix
LIST OF ABBREVIATIONS
Serial No. Short Form Full Form
1. SVD Singular Value Decomposition
2. PPI Protein-Protein Interaction
3. UML Unified Modeling Language
4. ML Machine Learning
5. AI Artificial Intelligence
6. SVM Support Vector Machine
7. MVT Model View Template
8. TF-IDF Term Frequency-Inverse Document
Frequency