Next Article in Journal
Resource Allocation in an Underwater Communication Network: The Stackelberg Game Power Control Method Based on a Non-Uniform Pricing Mechanism
Previous Article in Journal
Three-Dimensional Creation and Physical Movement in Art Therapy Using Virtual Reality Painting
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Developing Frugal Internet of Things with Backpropagation Neural Network for Predicting Impact of Gemini Artificial Intelligence on Student Meditation and Relaxation †

Department of Information Management, National Taipei University of Nursing and Health Sciences, Taipei 112303, Taiwan
*
Author to whom correspondence should be addressed.
Presented at the 2024 IEEE 6th Eurasia Conference on IoT, Communication and Engineering, Yunlin, Taiwan, 15–17 November 2024.
Eng. Proc. 2025, 92(1), 10; https://doi.org/10.3390/engproc2025092010
Published: 17 April 2025
(This article belongs to the Proceedings of 2024 IEEE 6th Eurasia Conference on IoT, Communication and Engineering)

Abstract

:
With the rapid development of generative artificial intelligence (AI) technologies, large language models have been developed and used in education. In this study, we employ the Google Gemini AI tool (version 1.0) to annotate teachers’ programming of teaching materials. When students learned these annotated teaching materials, the ThinkGear ASIC module (TGAM) and galvanic skin response (GSR) sensors were deployed to measure student mindfulness meditation, relaxation levels, and learning stress. We constructed a backpropagation neural network (BPNN) model with three hidden layers to predict student concentration and relaxation levels using GSR data and the time that students spent answering questions. In the developed system, we deployed a Node-Red dashboard to monitor all sensing data and predict results for mindfulness meditation and relaxation levels. The results were stored in an SQLite database. The BPNN model effectively predicted students’ mindfulness meditation and relaxation levels. For multiple-choice questions about teaching materials, the mean absolute error (MAE) of the BPNN model was 14.29 for mindfulness meditation and 10.54 for relaxation.
Keywords:
Gemini AI; TGAM; GSR

1. Introduction

Positive emotions increase student motivation to learn and focus on their goals for satisfactory learning outcomes [1,2]. On the other hand, negative emotions undermine student learning motivation, divert their attention, and result in negative learning efficacy. Stress in learning leads to poor memory performance [3]. In addition, free recall and recognition abilities decrease by more than 30%, indicating stress negatively affects learning outcomes.
Electroencephalography (EEG) is used to investigate academic learning. For example, a ThinkGear ASIC module (TGAM) is used to compare learning attention while using different media [4]. Participants using text-based media had the highest attention levels in the study. Additionally, there were significant differences in attention performance between students with active and reflective personalities when learning through video media. Gaikwad utilized brainwave features to build a machine-learning model to predict student online learning outcomes [5]. EEG and galvanic skin response (GSR) signals indicated that students’ emotions, attention, and interest were lower in online education compared with in-person teaching [6]. Dong deployed GSR to measure students’ varying levels of different emotional responses under the same teaching model [7]. Generative AI has been widely used in education, including in curricula and teaching [8]. Imran suggested using Gemini AI to customize student learning and related needs [9]. Additionally, teachers use it to create appropriate teaching materials and provide feedback with evaluations of learning differences. In the application of artificial intelligence (AI) to learning performance, artificial neural networks (ANN) are commonly used to predict students’ learning performance. ANN is used to predict college students’ learning performance based on input variables such as time spent on content [10]. Huang et al. analyzed the impact of emotions on college students’ online learning performance efficacy and used ANN to predict learning outcomes [11].
Based on the previous research, we developed a backpropagation neural network (BPNN) model based on input variables from GSR sensors and response times. The model predicted student attention and meditation levels. Additionally, to effectively improve student learning outcomes, Gemini AI was used to provide teaching materials with detailed explanations to assist students’ learning.

2. Proposed System

We used the message queuing telemetry transport (MQTT) protocol for data transmission, as shown in Figure 1. In the MQTT protocol, the Arduino Uno was used as the publisher, transmitting DHT11 and GSR data through the D1 mini to the MQTT broker on the Raspberry Pi 4. The TGAM model processes the participants’ brainwave signals via Bluetooth. In the system, Node-RED acted as the Subscriber, displaying the sensor data in real time on the dashboard user interface (UI) and storing the data in SQLite. Additionally, in the system, Gemini AI communicates through Google API to generate teaching materials with detailed explanations on the Raspberry Pi 4.
The users of the system are teachers and students who can log into the Node-RED web interface. Students can log into the webpage by entering their student ID and selecting the question type and difficulty of the questions in Python version 3.10.8 programming, as shown in Figure 2. Additionally, teachers access three web pages on the Node-Red dashboard: the first page is for creating Python programming questions for students, the second page is for viewing real-time physiological data of the students, and the third page is for reviewing the student answer history. In this study, we used GSR and TGAM to collect students’ physiological data to train the BPNN model. The GSR sensor was used to monitor students’ skin resistance. The TGAM module was used to monitor students’ ATT and MED, which were calculated using the eSense algorithm [12].
In the developed system, the BPNN model was configured with three hidden layers, as shown in Figure 3. Based on Ref. [13], we input four features: the minimum value of GSR (GSR_MIN), the maximum value of GSR (GSR_MAX), the mean value of GSR (GSR_MEAN), and the standard deviation of GSR (GSR_STD). Additionally, we measured answering time as a feature. Five features were used to train the BPNN to predict students’ attention and meditation time. Before training BPNN, we normalized the data to the range [0,1]. These features passed through three fully connected layers containing 32, 64, and 128 neurons, respectively. We selected the rectified linear unit (ReLU) to capture the non-linear relationships in the data. Additionally, to avoid overfitting, we added a dropout layer at a rate value of 0.5 in the BPNN model. The BPNN’s weights were adjusted using the Adam optimizer with a learning rate of 0.001. The BPNN model was trained for 100 iterations, and the mean absolute error (MAE) was chosen as the loss function.

3. Experiment

In the experiment, the Python questions were categorized into true or false (TF) quiz questions, multiple-choice (MC) questions, and question difficulty (easy, medium, and hard). First, the developed system collected the data from the GSR sensor and response times for answering questions from two participants (Table 1). Additionally, we trained two BPNN models: one for RF questions termed TF-BPNN and one for MC questions termed MC-BPNN. To eliminate noise, we removed data where brainwave signals were Poor Signal > 100, ATT and MED = 0, and GSR values > 550. We improved the method used by enhancing the features of GSR to increase the input data. On the other hand, the ATT and MED values were averaged for each question as FF-BPNN and MC-BPNNs’ targets. The data in Table 1 were collected on 2024/08/22. For TF-BPNN, the MAE of ATT and MED were 15.27 and 13.37 with the lowest values being 9.56 and 9.75, as presented in Figure 4. For MC-BPNN, the MAE of ATT and MED were 14.29 and 10.54 with the lowest values being 9.6 and 7.3, as presented in Figure 5.
To verify the effectiveness of the TF-BPNN and MC-BPNN, we experimented with two participants, using GSR. In the experiment, the room temperature was controlled between 25 and 27 °C. The participants completed the test based on the three-level Python programming questions. The experiment results are shown in Table 2.
The TF-BPNN and MC-BPNN accurately predicted ATT and MED. As the questions’ difficulty increased, Subject 2’s GSR values gradually decreased, indicating a greater pressure in answering difficult questions. To alleviate the pressure, the developed system integrated Gemini AI to annotate Python teaching materials. For example, after completing these questions, Subject 1 learned teaching materials annotated by Gemini AI and obtained a higher GSR compared to Subject 2, indicating a more relaxed emotional state.

4. Conclusions

The developed system included a GSR sensor for detecting student stress levels and a TGAM device for capturing brainwave data. All data were stored in an SQLite database and displayed the result on the Node-RED dashboard on a Raspberry Pi. Additionally, TF-BPNN and MC-BPNN evaluated student mindfulness meditation and relaxation based on GSR data when using teaching materials annotated by Gemini AI. When students encountered learning difficulties, Gemini AI effectively reduced their learning stress. In the future, it is necessary to integrate low-cost sensors into the system to improve the two BPNNs’ prediction accuracy for mindfulness meditation and relaxation.

Author Contributions

Conceptualization, C.-K.T.; methodology, L.-S.L.; software, C.-K.T. and C.-H.C.; validation, C.-W.H.; formal analysis, F.-J.W.; data curation, K.-H.Y.; writing—original draft preparation, C.-K.T.; writing—review and editing, L.-S.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science and Technology Council grant contract NSTC 113-2221-E-227-004-MY2.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The authors do not have permission to share data.

Acknowledgments

This study is supported by the National Science and Technology Council, Taiwan and the National Taipei University of Nursing and Health Sciences, Taiwan.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Eason, G.; Noble, B.; Sneddon, I.N. On Certain Integrals of Lipschitz-Hankel Type Involving Products of Bessel Functions. Philos. Trans. R. Soc. London. Ser. A Math. Phys. Sci. 1955, 247, 529–551. [Google Scholar] [CrossRef]
  2. Alemany-Arrebola, I.A.; Rojas-Ruiz, G.; Granda-Vaera, J.; Mingorance-Estrada, A.C. Influence of COVID-19 on the Perception of Academic Self-Efficacy, State Anxiety, and Trait Anxiety in College Students. Front. Psychol. 2020, 11. [Google Scholar] [CrossRef] [PubMed]
  3. Schwabe, L.; Wolf, O.T. Learning Under Stress Impairs Memory Formation. Neurobiol. Learn. Mem. 2010, 93, 183–188. [Google Scholar] [CrossRef] [PubMed]
  4. Ni, D.; Wang, S.; Liu, G. The EEG-Based Attention Analysis in Multimedia m-Learning. Comput. Math. Methods Med. 2020, 2020, 1–10. [Google Scholar] [CrossRef] [PubMed]
  5. Gaikwad, H.; Gandhi, S.; Kiwelekar, A.; Laddha, M. Analyzing Brain Signals for Predicting Students’ Understanding of Online Learning: A Machine Learning Approach. Int. J. Perform. Eng. 2023, 19, 462. [Google Scholar] [CrossRef]
  6. Juárez-Varón, D.; Bellido-García, I.; Gupta, B.-B. Analysis of stress, attention, interest, and engagement in onsite and online higher education: A neurotechnological study. Media Educ. Res. J. 2023, 31, 21–33. [Google Scholar] [CrossRef]
  7. Dong, Q.; Miao, R. Measuring Emotion in Education Using GSR and HR Data from Wearable Devices. In Proceedings of the 6th International Conference on Technology in Education, Hongkong, China, 19–21 December 2023; pp. 82–93. [Google Scholar]
  8. Zhao, Y.; Yusof, S.M.; Hou, M.; Li, Z. How Can Generative Artificial Intelligence help Teachers in Early Childhood Education with their Teaching? Analyses from the Perspective of Teaching Methods. Int. J. Acad. Res. Progress. Educ. Dev. 2024, 13, 2314–2324. [Google Scholar] [CrossRef] [PubMed]
  9. Imran, M.; Almusharraf, N. Google Gemini as a next generation AI educational tool: A review of emerging educational technology. Smart Learn. Environ. 2024, 11, 1–8. [Google Scholar] [CrossRef]
  10. Aydogdu, S. Predicting student final performance using artificial neural networks in online learning environments. Educ. Inf. Technol. 2020, 25, 1913–1927. [Google Scholar] [CrossRef]
  11. Huang, C.; Zhang, L.; He, T.; Wu, X.; Pan, Y.; Han, Z.; Zhao, W. The role of emotion regulation in predicting emotional engagement mediated by meta-emotion in online learning environments: A two-stage SEM-ANN approach. Educ. Psychol. 2023, 43, 736–755. [Google Scholar] [CrossRef]
  12. Neurosky. eSense(tm) Meters. Available online: https://developer.neurosky.com/docs/doku.php?id=esenses_tm (accessed on 16 April 2025).
  13. Raheel, A.; Majid, M.; Anwar, S.M. Dear-Mulsemedia: Dataset for emotion analysis and recognition in response to multiple sensorial media. Inf. Fusion. 2021, 65, 37–49. [Google Scholar] [CrossRef]
Figure 1. Proposed system.
Figure 1. Proposed system.
Engproc 92 00010 g001
Figure 2. Operational flow of developed system.
Figure 2. Operational flow of developed system.
Engproc 92 00010 g002
Figure 3. Proposed BPNN model structure.
Figure 3. Proposed BPNN model structure.
Engproc 92 00010 g003
Figure 4. Prediction results for ATT and MED for T/F questions.
Figure 4. Prediction results for ATT and MED for T/F questions.
Engproc 92 00010 g004
Figure 5. Prediction results for ATT and MED for multiple-choice questions.
Figure 5. Prediction results for ATT and MED for multiple-choice questions.
Engproc 92 00010 g005
Table 1. Extracted features.
Table 1. Extracted features.
TimeGSR_
MAX
GSR_
MIN
GSR_
MEAN
GSR_
STD
Answer TimeATTMEDTypeDegreeSubject ID
14:06:28527526526.50.70793867T/FSimpleSubject 1
14:11:354654514567.81945.328.6T/FNormalSubject 1
14:15:35479470474.73.351339.750.5T/FDifficultSubject 1
14:18:214744704721.593658.6MCSimpleSubject 1
14:22:10478472477.11.96944.153.3MCNormalSubject 1
14:23:324724554648.54643.349.3MCDifficultSubject 1
15:11:403403343383.46515.672.3T/FSimpleSubject 2
15:15:45296277295.23.411036.651.9T/FNormalSubject 2
15:18:23355343350.55.21775.567.3T/FDifficultSubject 2
15:23:23258237247.512.121311.532.6MCSimpleSubject 2
15:26:00260242251.15.691541.435.4MCNormalSubject 2
15:31:16272260266.35.681179.333MCDifficultSubject 2
Table 2. Predicted result.
Table 2. Predicted result.
TimeGSRATTMEDTypeDegreeSubject ID
15:59:0941733.443.4T/FSimpleSubject 1
16:09:3146031.745T/FNormalSubject 1
16:13:3247531.546.6T/FDifficultSubject 1
16:00:4645232.646.8MCSimpleSubject 1
16:11:2847831.745.8MCNormalSubject 1
16:14:5548431.545.4MCDifficultSubject 1
16:19:2119629.869.7T/FSimpleSubject 2
16:20:3518328.971.8T/FNormalSubject 2
16:23:0410525.594.8T/FDifficultSubject 2
16:25:5913557.946.3MCSimpleSubject 2
16:28:0310658.247.8MCNormalSubject 2
16:31:149152.847.1MCDifficultSubject 2
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tseng, C.-K.; Chan, C.-H.; Lin, L.-S.; Wang, F.-J.; Yao, K.-H.; Hsu, C.-W. Developing Frugal Internet of Things with Backpropagation Neural Network for Predicting Impact of Gemini Artificial Intelligence on Student Meditation and Relaxation. Eng. Proc. 2025, 92, 10. https://doi.org/10.3390/engproc2025092010

AMA Style

Tseng C-K, Chan C-H, Lin L-S, Wang F-J, Yao K-H, Hsu C-W. Developing Frugal Internet of Things with Backpropagation Neural Network for Predicting Impact of Gemini Artificial Intelligence on Student Meditation and Relaxation. Engineering Proceedings. 2025; 92(1):10. https://doi.org/10.3390/engproc2025092010

Chicago/Turabian Style

Tseng, Chun-Kai, Cheng-Hsiang Chan, Liang-Sian Lin, Fu-Jung Wang, Kai-Hsuan Yao, and Chao-Wei Hsu. 2025. "Developing Frugal Internet of Things with Backpropagation Neural Network for Predicting Impact of Gemini Artificial Intelligence on Student Meditation and Relaxation" Engineering Proceedings 92, no. 1: 10. https://doi.org/10.3390/engproc2025092010

APA Style

Tseng, C.-K., Chan, C.-H., Lin, L.-S., Wang, F.-J., Yao, K.-H., & Hsu, C.-W. (2025). Developing Frugal Internet of Things with Backpropagation Neural Network for Predicting Impact of Gemini Artificial Intelligence on Student Meditation and Relaxation. Engineering Proceedings, 92(1), 10. https://doi.org/10.3390/engproc2025092010

Article Metrics

Back to TopTop