Đồ án tốt nghiệp công nghệ kỹ thuật cơ khí designing an interactive smart mirror with sentiment analysis for monitoring emotion and mental comfort

Khám phá gương thông minh tích hợp phân tích cảm xúc, công nghệ tiên tiến giúp theo dõi tâm trạng và cải thiện sự thoải mái tinh thần hiệu quả.

Người đăng

Ẩn danh

Thể loại

graduation thesis

2024

101
3
0

Phí lưu trữ

35 Point

Mục lục chi tiết

NHIỆM VỤ ĐỒ ÁN TỐT NGHIỆP

COMMITMENT

ACKNOWLEDGMENT

ABSTRACT

TABLE OF CONTENTS

LIST OF TABLES

LIST OF FIGURES

LIST OF ACRONYMS

1. CHAPTER 1: OVERVIEW

1.1. Introduction

1.2. Scientific and practical significances

1.3. Objectives

2. CHAPTER 2: LITERATURE REVIEW

2.1. Smart Mirror Technologies

2.2. Machine Learning for Sentiment Analysis, Hand Gesture Analysis and Song recommendation

2.3. Hand Gesture Analysis

2.4. Introduction to automatic speech recognition

2.5. Introduction to feature extraction technique use for speech recognition model

2.6. Nyquist-Shannon sampling theorem

2.7. Introduction to deep learning model used in automatic speech recognition

2.7.1. Convolutional Neural Networks (CNN)

2.7.2. Connectionist Temporal Classification (CTC)

2.8. Introduction to metrics used in automatic speech recognition

2.8.1. Word Error Rate (WER)

2.8.2. Character Error Rate (CER)

3. CHAPTER 3: DESIGN HARDWARE AND ELECTRONICS SYSTEM

3.1. Hardware design consideration

3.2. Electronics system consideration

3.2.1. Design the mirror frame

3.2.2. Design the electronics system

4. CHAPTER 4: HUMAN COMPUTER INTERACTION

4.1. Proactive Personalization through Sentiment Analysis

4.2. Intuitive Audio Control through Hand Gestures

4.3. Voice Command Integration: Expanding Functionality

4.3.1. Analysis of user’s visual signal

4.3.2. Analysis of user’s auditory signal – Speech to text algorithm

5. CHAPTER 5: GENERATING MIRROR’S RESPONSE

5.1. Generating mirror’s response based on user’s hand gestures

5.2. Generating mirror’s response based on user’s emotion

5.2.1. Song recommendation pipeline

5.2.2. Distribute songs into clusters

5.2.3. Serve recommended songs to users

5.3. Generating mirror’s response based on user’s speech

6. CHAPTER 6: EXPERIMENTAL RESULTS

7. CHAPTER 7: CONCLUSION AND DISCUSSION

Tóm tắt

I. Giới thiệu về gương thông minh và phân tích cảm xúc

Gương thông minh là một ứng dụng tiên tiến của công nghệ thông minh, kết hợp giữa công nghệ cảm biếntrí tuệ nhân tạo để cung cấp trải nghiệm tương tác độc đáo. Phân tích cảm xúc là một tính năng quan trọng, sử dụng học máy để nhận diện và đánh giá trạng thái cảm xúc của người dùng thông qua biểu hiện khuôn mặt. Sự kết hợp này không chỉ nâng cao trải nghiệm người dùng mà còn hỗ trợ theo dõi tâm trạngsự thoải mái tinh thần một cách hiệu quả.

1.1. Công nghệ gương thông minh

Gương thông minh sử dụng công nghệ cảm biếnhệ thống nhúng để tích hợp các tính năng như hiển thị thông tin, nhận diện khuôn mặt và tương tác không chạm. Các thành phần chính bao gồm màn hình hai chiều, camera và bộ xử lý trung tâm. Sự phát triển của IoT đã mở rộng khả năng ứng dụng của gương thông minh trong đời sống hàng ngày.

1.2. Phân tích cảm xúc và ứng dụng

Phân tích cảm xúc dựa trên học máytâm lý học để nhận diện các trạng thái cảm xúc như vui, buồn, giận dữ. Tính năng này giúp gương thông minh điều chỉnh thông tin hiển thị phù hợp với tâm trạng người dùng, từ đó cải thiện sức khỏe tâm thầnsự thoải mái tinh thần.

II. Thiết kế hệ thống gương thông minh

Thiết kế sản phẩm gương thông minh đòi hỏi sự kết hợp giữa công nghệ cảm biến, hệ thống nhúnggiao diện người dùng. Quá trình này bao gồm lựa chọn phần cứng, phát triển phần mềm và tích hợp các tính năng như phân tích cảm xúcnhận diện cử chỉ tay.

2.1. Phần cứng và cảm biến

Hệ thống phần cứng bao gồm màn hình hai chiều, camera độ phân giải cao và các cảm biến hồng ngoại để nhận diện cử chỉ tay. Việc lựa chọn phần cứng phải đảm bảo tính hiệu quả chi phídễ sử dụng.

2.2. Phần mềm và thuật toán

Phần mềm được phát triển dựa trên các thuật toán học máy như CNNCTC để thực hiện phân tích cảm xúcnhận diện cử chỉ tay. Các thuật toán này được huấn luyện trên bộ dữ liệu lớn để đảm bảo độ chính xác cao.

III. Ứng dụng và giá trị thực tiễn

Gương thông minh tích hợp phân tích cảm xúc mang lại nhiều giá trị thực tiễn, từ theo dõi tâm trạng đến cải thiện sức khỏe tâm thần. Sản phẩm này có thể được ứng dụng trong gia đình, văn phòng hoặc các cơ sở y tế để hỗ trợ người dùng một cách toàn diện.

3.1. Theo dõi tâm trạng

Gương thông minh giúp theo dõi tâm trạng hàng ngày thông qua phân tích cảm xúc, từ đó đưa ra các gợi ý phù hợp như chơi nhạc hoặc hiển thị thông tin tích cực.

3.2. Cải thiện sức khỏe tâm thần

Việc sử dụng gương thông minh có thể giúp người dùng nhận biết và điều chỉnh cảm xúc, góp phần cải thiện sức khỏe tâm thầnsự thoải mái tinh thần.

IV. Kết luận và hướng phát triển

Gương thông minh tích hợp phân tích cảm xúc là một giải pháp công nghệ tiên tiến, mang lại nhiều lợi ích cho người dùng. Hướng phát triển trong tương lai bao gồm nâng cao độ chính xác của thuật toán, mở rộng tính năng và giảm chi phí sản xuất để sản phẩm trở nên phổ biến hơn.

4.1. Nâng cao thuật toán

Các thuật toán phân tích cảm xúcnhận diện cử chỉ tay cần được cải tiến để đạt độ chính xác cao hơn, đặc biệt trong các môi trường phức tạp.

4.2. Mở rộng tính năng

Gương thông minh có thể tích hợp thêm các tính năng như nhận diện giọng nóikết nối IoT để trở thành một thiết bị đa năng trong gia đình.

21/02/2025

Trích đoạn nội dung tài liệu

MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION GRADUATION THESIS MAJOR: MECHANICAL ENGINEERING TECHNOLOGY DESIGNING AN INTERACTIVE SMART MIRROR WITH SENTIMENT ANALYSIS FOR MONITORING EMOTION AND MENTAL COMFORT INSTRUCTOR: BUI HA DUC STUDENT: LE MINH THONG HA GIA KINH NGUYEN PHUC NGUYEN Ho Chi Minh city, July 2024 MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF MECHANICAL ENGINEERING GRADUATION THESIS DESIGNING AN INTERACTIVE SMART MIRROR WITH SENTIMENT ANALYSIS FOR MONITORING EMOTION AND MENTAL COMFORT Supervisor: BUI HA DUC, PhD Student: LE MINH THONG Student ID: 19134087 Class: 19134 Student: HA GIA KINH Student ID: 20134016 Class: 20134 Student: NGUYEN PHUC NGUYEN Student ID: 20134017 Class: 20134 Year Of Admission: 2020 - 2024 Ho Chi Minh City, July 2024 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF MECHANICAL ENGINEERING DEPARTMENT OF MECHATRONICS GRADUATION THESIS DESIGNING AN INTERACTIVE SMART MIRROR WITH SENTIMENT ANALYSIS FOR MONITORING EMOTION AND MENTAL COMFORT Supervisor: BUI HA DUC, PhD Student: LE MINH THONG Student ID: 19134087 Class: 19134 Student: HA GIA KINH Student ID: 20134016 Class: 20134 Student: NGUYEN PHUC NGUYEN Student ID: 20134017 Class: 20134 Year Of Admission: 2020 - 2024 Ho Chi Minh City, July 2024 TRƯỜNG ĐẠI HỌC SƯ PHẠM KỸ THUẬT TP. HCM CỘNG HOÀ XÃ HỘI CHỦ NGHĨA VIỆT NAM KHOA CƠ KHÍ CHẾ TẠO MÁY Độc lập - Tự do – Hạnh phúc NHIỆM VỤ ĐỒ ÁN TỐT NGHIỆP Học kỳ II/ năm học 2023-2024 Giảng viên hướng dẫn: TS. Bùi Hà Đức…………….……… Sinh viên thực hiện: Lê Minh Thông………….MSSV: 19134087…Điện thoại 0387109318 Hà Gia Kính……………….MSSV: 20134016…Điện thoại 0947559196 Nguyễn Phúc Nguyên………MSSV: 20134017…Điện thoại 0704868339 1. Mã số đề tài: CDT5 - Tên đề tài: Designing An Interactive Smart Mirror With Sentiment Analysis For Monitoring Emotion And Mental Comfort 2.

Các số liệu, tài liệu ban đầu: ……………. Nội dung chính của đồ án: ……………. Các sản phẩm dự kiến ……………. Ngôn ngữ trình bày: Bản báo cáo: Tiếng Anh Tiếng Việt Trình bày bảo vệ: Tiếng Anh Tiếng Việt TRƯỞNG KHOA TRƯỞNG BỘ MÔN GIẢNG VIÊN HƯỚNG DẪN (Ký, ghi rõ họ tên) (Ký, ghi rõ họ tên) (Ký, ghi rõ họ tên) i COMMITMENT • Project: Designing An Interactive Smart Mirror With Sentiment Analysis For Monitoring Emotion And Mental Comfort • Lecturer: Bui Ha Duc, Ph.D • Student: Le Minh Thong • Student ID: 19134087 - Class: 19134 • Address: 79/3A Phu Tho Hoa Street, Phu Tho Hoa Ward, Tan Phu District, Ho Chi Minh City • Phone number: 0387109318 • Email: thong.com • Student: Ha Gia Kinh • Student ID: 20134016 - Class: 20134 • Adress: 296 Phu Tho Hoa Street, Phu Tho Hoa Ward, Tan Phu District, Ho Chi Minh City • Phone number: 0947559196 • Email: hagiakinh0209@gmail.com • Student: Nguyen Phuc Nguyen • Student ID: 20134017 - Class: 20134 • Address: Phuoc Thien Commune, Nhon Trach District, Dong Nai Province • Phone number: 0704868339 • Email: phucnguyen382002@gmail.com • Graduation thesis submission date: July …, 2024 • Commitment: “I affirm that the graduate thesis presented here is the result of my research and efforts.

I have not replicated any content from published articles without appropriate citations. Should any breach be identified, I acknowledge full accountability for the consequences.” Ho Chi Minh City, … July 2024 ii ACKNOWLEDGMENT First and foremost, on behalf of my team, I would like to extend my heartfelt thanks to our supervisor, Bui Ha Duc Ph. Your unwavering commitment, expertise, and guidance have been instrumental in shaping my research and steering me towards success. Your mentorship, patience, and constant encouragement have played a significant role in shaping my academic journey.

Your profound knowledge and invaluable insights have helped me overcome challenges and broaden my intellectual horizons. I am truly grateful for your dedication and support. I would also like to extend my sincere appreciation to Ho Chi Minh City University of Technology and Education for providing me with an exceptional learning environment and resources. The university has been a constant source of inspiration, fostering an atmosphere of growth, innovation, and academic excellence.

The diverse faculty and staff have been instrumental in shaping my academic and personal development, and I am indebted to them for their commitment to nurturing future scholars and leaders. My deepest gratitude goes to my family for their unwavering love, encouragement, and understanding. Your support has been the foundation of my journey, and I am forever grateful for your sacrifices, belief in me, and the countless ways you have cheered me on. Your unwavering support has provided me with the strength and motivation to overcome challenges and strive for excellence.

Lastly, I would like to express my gratitude to all those who have contributed to my growth and development, directly or indirectly. Your encouragement, advice, and belief in my abilities havebeen invaluable throughout this challenging yet rewarding journey. Sincerely, Nguyen Phuc Nguyen iii ABSTRACT The rise of the Internet of Things (IOT) has transformed everyday objects into intelligent devices seamlessly integrated into our lives. Smart mirrors, a novel application of this technology, present a unique opportunity to enhance our daily routines.

This thesis explores the design and development of a smart mirror prototype, focusing on its functionalities and potential benefits for the modern user. The thesis begins with an overview of the existing literature on smart mirrors, analyzing their current capabilities and limitations. It identifies key areas for improvement, particularly in user experience and feature integration. The methodology section details the development process, outlining the hardware and software components employed to create the smart mirror prototype.

This includes the selection of display technology, computing power, sensors, and software frameworks. The design choices are justified based on factors such as functionality, cost-effectiveness, and ease of use. Following the development process, the thesis delves into the functionalities implemented in the smart mirror prototype. These functionalities may encompass, but are not limited to: • Information Display: Real-time access to weather forecasts and news headlines.

• Interactive Features: Sentiment recognition, hand gesture recognition for interaction. The thesis then evaluates the effectiveness of the developed prototype through functionality testing. The results of these tests provided valuable insights into the effectiveness of the designed system and identified any potential hardware limitations. This information is 0crucial for future development and refinement of the smart mirror prototype.

The final section of the thesis discusses the findings and contributions of the research. It analyzes the success of the implemented functionalities, testing results of the prototype, and potential future applications of smart mirror technology. It concludes by highlighting the potential impact of smart mirrors on our daily lives, emphasizing their ability to streamline routines, improve productivity, and enhance user experience in the modern home environment. iv TABLE OF CONTENTS NHIỆM VỤ ĐỒ ÁN TỐT NGHIỆP.

iv TABLE OF CONTENTS .v LIST OF TABLES. vii LIST OF FIGURES. viii LIST OF ACRONYMS. xi CHAPTER 1 OVERVIEW .2 Scientific and practical significances .5 Structure of the report.

5 CHAPTER 2 LITERATURE REVIEW .1 Smart Mirror Technologies .5 Machine Learning for Sentiment Analysis, Hand Gesture Analysis and Song recommendation .2 Hand Gesture Analysis .6 Introduction to automatic speech recognition .7 Introduction to feature extraction technique use for speech recognition model .2 Nyquist-Shannon sampling theorem .8 Introduction to deep learning model used in automatic speech recognition .1 Convolutional Neural Networks (CNN) .3 Connectionist Temporal Classification (CTC) .9 Introduction to metrics used in automatic speech recognition .1 Word Error Rate (WER).2 Character Error Rate (CER). 29 CHAPTER 3 DESIGN HARDWARE AND ELECTRONICS SYSTEM .1 Hardware design consideration .2 Electronics system consideration .1 Design the mirror frame .2 Design the electronics system. 36 CHAPTER 4 HUMAN COMPUTER INTERACTION .1 Proactive Personalization through Sentiment Analysis .2 Intuitive Audio Control through Hand Gestures .3 Voice Command Integration: Expanding Functionality .1 Analysis of user’s visual signal .2 Analysis of user’s auditory signal – Speech to text algortihm. 61 CHAPTER 5 GENERATING MIRROR’S RESPONSE .1 Generating mirror’s response based on user’s hand gestures .2 Generating mirror’s response based on user’s emotion.1 Song recommendation pipeline .2 Distribute songs into clusters.3 Serve recommended songs to users .3 Generating mirror’s response based on user’s speech.

78 CHAPTER 6 EXPERIMENTAL RESULTS. 79 CHAPTER 7 CONCLUSION AND DISCUSSION. 83 vi LIST OF TABLES Table 2.1: Comparison of hand gestures recognition methods.1: Power consumption of components .2: Comparison of IR proximity sensors .3: Comparison of different kinds of cameras .4: Comparison of RealSense of cameras .1: Whisper models comparison .2: Quantization and PEFT result. 70 vii LIST OF FIGURES Figure 1.2: System’s response of “Smart mirror for smart life” project (Source: [3]) .1: Reflection and Image Formation by mirrors (Source: [5]) .2: Mirror with display and touchscreen capabilities (Source: [6]) .3: Smart mirror with facial recognition technology (Source: [7]) .5: Time-of-Flight (ToF) camera’s working principle (Source: [10]) .6: Depth camera based light pattern distortion analysis .7: Integration of Embedded System in Smart Mirror (Source: [11]) .8: Fundamental states of Sentiment Analysis (Source: [13]) .9: Ahmet Gunduz-Neslihan Kose’s approach for hand gestures recognition (using a sequence of images as input and a CNN classifier) .10: Alam - Islam - Rahman’s approach for hand gestures recognition (using a single image as input and a CNN - VGG16 based classifier model) .11: Using k-means algorithm to cluster data points (Source: [16]) .12: An example of spectrogram (Source: [17]) .13: Basic CNN architecture (Source: [19]) .15: The CTC architecture (Source: [21]) .1: The proposed main frame of the mirror .2: The proposed placement of components inside the frame (front view and back view) .3: The completed main frame of the mirror .4: IR sensor placed beside the frame .5: The proposed camera bracket .6: Camera bracket placed on top of the frame .7: Block diagram of Electronics system .8: Electrical system of the project .9: AC 220V to DC Converter Driver 12V-10A .10: The proposed design of the electrical box .11: The completed electrical box with all components inside .12: Jetson Nano specifications (Source: [23]) .13: Circuit design for integrating a Proximity Sensor for Keyboard activation .16: Distribution of sensors and cameras on RealSense camera .17: Hand gesture recognition module run with depth filter RealSense camera .2: Flow chart of Sentiment analysis .3: Octavio's facial expression classification architecture (Source: [28]) .4: Training/Validate accuracy and loss .5: Media's hand tracking pipeline .6: 21 key points on the hand (Source: [31]) .7: Translating hand pose to user's command pipeline .8: Block diagram of identifying raised fingers algorithm .9: Play and pause gesture .10: Skip to next audio gesture (left) and skip to previous audio gesture (right) .11: Volume adjusting gesture .12: The angle between three landmarks 5, 0 and 17 (left) and the angle of landmarks 9,0 with respect to the horizontal line (right).13: Flow chart for ASR system .14: Flow chart for audio signal input data feature extraction .15: Model quantization schemes (Source: [33]) .16: Demonstration of LoRa method (Source: [35]) .18: Demonstration for Multi-head Attention .19: Whisper Small Training/Eval Loss .1: Components of application’s graphical user interface .2: Music recommendation pipeline .3: 200 most popular songs of the week (Source: [37]) .4: Output graph of the elbow method .5: Sample output of k-means method .6: user responds based on user's speech .

Nội dung được bảo vệ bản quyền — Tải xuống đầy đủ

Tài liệu "Thiết kế gương thông minh tích hợp phân tích cảm xúc để theo dõi tâm trạng và sự thoải mái tinh thần" giới thiệu một giải pháp công nghệ tiên tiến, sử dụng trí tuệ nhân tạo để phân tích cảm xúc thông qua hình ảnh phản chiếu trên gương. Gương thông minh này không chỉ giúp người dùng nhận biết trạng thái tâm lý của bản thân mà còn đưa ra các gợi ý để cải thiện sức khỏe tinh thần, từ đó nâng cao chất lượng cuộc sống. Đây là một bước tiến quan trọng trong việc ứng dụng công nghệ vào lĩnh vực chăm sóc sức khỏe tâm lý, đặc biệt trong bối cảnh stress và lo âu đang trở thành vấn đề phổ biến trong xã hội hiện đại.

Để hiểu rõ hơn về tác động của stress và lo âu đến sức khỏe tâm thần, bạn có thể tham khảo Luận văn tốt nghiệp thực trạng lo âu và trầm cảm ở người bệnh trào ngược dạ dày thực quản tại khoa khám chữa bệnh theo yêu cầu và quốc tế bệnh viện e năm 2021. Ngoài ra, nghiên cứu về Thực trạng trầm cảm lo âu stress và một số yếu tố liên quan ở sinh viên trường đại học y dược đhqghn năm học 2021 2022 cũng cung cấp thêm góc nhìn về vấn đề này trong giới trẻ. Để khám phá sâu hơn về các giải pháp công nghệ hỗ trợ sức khỏe tâm lý, hãy xem Luận văn nghiên cứu sự biến đổi một vài thông số tâm sinh lý của sinh viên miền bắc việt nam trong phòng thí nghiệm nhiệt ẩm. Mỗi liên kết là cơ hội để bạn mở rộng kiến thức và hiểu sâu hơn về chủ đề này.