<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <article-id pub-id-type="doi">10.1016/j.metabol.2017.01.011</article-id>
      <title-group>
        <article-title>Real-time Identification of the Emotional State in the Classroom to Improve the Teaching-learning Process</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Edward Flores</string-name>
          <email>eflores@unfv.edu.pe</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>José Livia</string-name>
          <email>jlivia@unfv.edu.pe</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alfredo García</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>María Dávila</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Universidad Nacional Federico Villarreal</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Perú.</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <abstract>
        <p>In recent years, the teaching-learning process has been changing from face-to-face to virtual mode, this process was significantly accelerated by the pandemic caused by COVID-19, where the classroom was virtualized at all educational levels to world level. The present objective was to identify the emotional state that students have in the virtual classroom to allow the teacher to improve their teaching-learning strategies in real time, as a methodology an application in artificial intelligence with neural networks was proposed that allows capturing the state of the students in the classroom by webcam. The results obtained allow to determine the states of the group so that the teacher can perceive the sensation inside the classroom at the time of the class and thus improve their strategies, concluding that it is an efficient form of continuous improvement for the processes of active learning within the classroom</p>
      </abstract>
      <kwd-group>
        <kwd>1 Neural Networks</kwd>
        <kwd>teaching-learning</kwd>
        <kwd>virtual teaching</kwd>
        <kwd>active learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>During the last years, Artificial Intelligence (AI) has been constantly growing in terms of its field of
application, it has been used in many areas such as medicine [1], justice [2] and education [3] among
other contexts , indicating its impact for the future of work [4] in the same way, little by little beginning
to have influence not only in technological areas or rigid processes, but also in other areas of the social
sciences, such as psychology [5,6] and psychiatry [7], where the need arises to interpret human patterns
and behaviors from the behavioral point of view, translating these data in the computer context and
applying mathematical models to be able to interpret and understand certain actions or patterns of
human behavior that allow a classification in order to understand their behavior.</p>
      <p>From the applications of mobile phones that locate our place of residence and where we work based
on the daily journey, we make daily, the various devices used to recognize voice, music, even cars that
circulate on the streets without a driver Some, Artificial Intelligence has taken a turn in our lives [8].
The technological context is rapidly updated with artificial intelligence, allowing it to be a main
component in the work and the processes that it entails, in making the right decisions in various ways.
However, within the context of education, AI must seek new ways of working within the complexity of
this area and go beyond the knowledge of disciplines such as computing or engineering [9].</p>
      <p>Artificial intelligence is based on a set of defined algorithms that make it possible for machines to
make decisions instead of human beings. This new technology allows to see an improvement in the
decision-making of end users in various areas [10]. In order to analyze the information that is constantly
growing exponentially, so-called deep learning techniques are regularly used that allow, in this way, to
achieve valid results. The success of deep learning for the development of IoT is possible thanks to the
constant growth of information that today is known as Big data, and also to the current processing power
[11]. Currently the use of recognizing images has been used in various fields of study, such as medicine,
pharmacology, treatment of diseases by images. This technique has been the subject of extensive study
[12].</p>
      <p>This is why the need arises today to understand the human factor within the teaching-learning
processes, mainly due to the situation in which we find ourselves as a result of the pandemic caused by
COVID-19, where , the students stopped attending their educational institutions in person and found
themselves in the need to listen to classes in virtual mode, thus virtualizing the entire service of the
teaching-learning process to be able to give continuity to the educational processes.</p>
      <p>One of the main problems encountered is communication between the student and the teacher, it is
the interaction and interpretation of the feelings of the students in front of the class, in a face-to-face
context, the teacher can appreciate at all times the emotions of the students and of Accordingly,
determine strategies to motivate or reconnect the student with the knowledge of the course, in order to
develop activities and capacities within the learning session. [13] have described the relationship
between emotional intelligence and academic performance, increasing the scores in this last variable as
the scores in emotional intelligence increase, as well as relationships between fear and academic
performance and Fear and emotional intelligence, these being inversely proportional.</p>
      <p>Within the context in which the human being develops, emotions allow to be an essential form of
communication that originates in the gregarious nature. In general, all living forms, regardless of culture
or species, require the use of emotions so that they can express or transmit the way of informing other
people about the feelings they have [14]. An important challenge to take into account when integrating
educational technology is to get students involved with various affective forms. On this, in addition,
there is still no way how technology can shape the attitude and in the same way the behavior at the time
of learning. What was found in educational psychology and also what was found in the learning
sciences, result in the lack of interest in the research [15]. Within cyberspace, the essential means that
allow us to communicate feelings are social networks, this has been due to the rapid growth of internet
access. Various people through social networks use audio and video content, images or text to make
their feelings or achievements known [16]. Likewise, over time it has been possible to process video
and audio on the same platform, allowing to reduce the scope of the solution with considerable energy
savings, if the time factor were a critical factor, it could currently work in real time, achieving in this
way, keep under control the time of use of the system and the different connected devices [17].</p>
      <p>Another context that focuses on the student is active learning, where the student resorts to discussion,
in the same way in the play of various roles, about collaborative solution in problem solving, in order
to involve little by little. little to the student, however, this process has been relatively diminished due
to the current situation, today, these process activities that were previously focused on the classroom
are carried out virtually [18]. Active learning is currently part of a strategic approach to be part of an
educational principle. When students commit themselves, they generate a greater concern, many studies
have been carried out on how to support this approach, but there is a problem on how to evaluate
progress and performance effectively [19]. Large study groups generally face new challenges in order
to improve active learning, classroom feedback and repetition in some way, as they are essential to
promote student learning [20].</p>
      <p>The biometric technique often used for face identification is facial recognition. It is a technique that
is responsible for facial recognition through multimedia photographs. With the growth of the society
and its advanced, it is now an important requirement to have it. This technique has been gradually
increasing worldwide [21]. Convolutional neural networks are the support for identifying images as
vectors. Similarity needs are identified in a pair of images, and it is sought that they are as similar as
different. This type of similarity can be calculated by various forms or metrics, such as Euclidean
distance, cosine similarity, or through the L2 form. Usually, the configuration that is used in the main
is cosine similarity [22].</p>
      <p>The present objective is to identify the emotional state that students have in the virtual classroom to
allow the teacher to improve their teaching-learning strategies in real time, in this way, always keep
students motivated and in constant attention within the context of the course, This may be based on the
strategies used by the teacher, either through motivation, participatory, collaborative activities, among
others, this will allow to improve active learning in real time within the classroom.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <p>In the present investigation, the constructivist paradigm was used, since in constructivism relativism
affirms that there are no unique and determined realities, but constructions that respond to the individual
perception of each individual, which builds diverse needs and interpretations of what surrounds them.
individuals [23], the research approach is quantitative by collecting information from the individuals
observed and in the same way, by determining the probability of their occurrence. For data analysis, the
data-based approach was used, an approach widely used within artificial intelligence and machine
learning. Within the developed method, the non-experimental design has been used, of a descriptive
transectional type that aims to investigate the incidence and the values in which it manifests one or more
times, for which, a software solution in artificial intelligence with networks was developed.
Convolutional neurons in Python programming language that allows to identify through the webcam,
using biometric analysis, collect people's emotions such as angry, fear, neutral, sad, displeased, happy
and surprised, using the application libraries with high precision facial recognition models Deepface
and DeepID based on experiments, Dlib obtained 99.38%; DeepID scored 97.05; ArcFace got 99.41%;
FaceNet / w 128d got 99.2%; FaceNet, VGG-Cara, ArcFace and dlib above Openface, VGG-Face
obtained 98.78%; As support, FaceNet / w 512d scored 99.65%; OpenFace had 93.80% accuracy in the
LFW dataset, compared to people who only have 97.53% [22].</p>
      <p>The described model, As mentioned [24], for facial recognition three steps are required, as can be
seen in figure 1. First an image is identified that may even be in a video. Second, the image is aligned
with the normalized canonical coordinates Third, the veracity of the image is identified to rule out any
falsification, in this way, any type of attack is avoided, after this, facial recognition can be performed
[24]. In the same way, in the third part of figure 1 the image processing model can be determined, where
a set of image processing and another to perform the tests against the processed images are determined,
all of them supported by convolutional neural networks.</p>
      <p>With the purpose of evaluating the situational status of all students in the classroom in real time,
processing the information, and in this way, sending the information to the teacher so that through their
computer they can identify the total status of the classroom in Based on the seven states indicated, a test
was carried out, for which, the software solution to be developed requires that the participants have
their cameras turned on during class, in such a way that the system collects the emotions of each student
in real time and send them to the teacher at all times.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <p>In the prototype process carried out, in figure 2, the collection of information from a student is
appreciated, according to the emotions that they can register at different times in a class.</p>
      <p>The proposed system will evaluate the different images in real time through artificial intelligence
algorithms of regular convolutional neural networks and will determine probabilistically the results
corresponding to the images collected from the person, in such a way that it can be collected at any time
during the class. the probability of the seven states described and estimate the highest acceptable value
as a result of their expression.</p>
      <p>The following code is the result of the information obtained within the prototype made, which shows
us a set of parameters established to indicate a person in a normal (neutral) state.</p>
      <p>program (Output)
{'emotion': {'angry': 0.019127620907966048,
'disgust': 0.0019221228285459802,
'fear': 23.840796947479248,
'happy': 18.211452662944794,
'sad': 21.598833799362183,
'surprise': 0.0010724763342295773,
'neutral': 36.326801776885986},
'dominant_emotion': 'neutral'}</p>
      <p>As can be seen, a set of relevant information about the emotional states of the student is verified,
where we can find the seven states indicated for the present study, which are detailed in Table 1.</p>
      <p>As can be seen in table 1, the emotional state with the highest probability is the Neutral state, which
means that at that moment the student is in a normal condition within the class.</p>
      <p>Additionally, for the present study, the developed application also shows the average states of age,
gender, and race, where it also determines a probabilistic study on the possible races of the student
between Indian, black, white, Middle Eastern and Latino. Hispanic, from which the probability of the
dominant race is also obtained.</p>
      <p>Once the information of all the students has been collected, the real statistics will be determined in
the application by the number of students from the different states found in the classroom, visually
determining the results that can be viewed on the teacher's monitor in real time while the class is
developing, this data will be permanently updated throughout the session.</p>
      <p>In the figure 3 shows us a prototype example of the application that the teacher will see, as you can
see, it will not display percentages for each identified state of the students, nor the name or location of
the students within the virtual classroom, with the purpose To avoid value judgments about any of the
students during the class, you will only have to visualize the various states so that the teacher can
validate and properly choose which is the most appropriate strategy within the teaching-learning process
to develop their class. In the same way, taking into account that the teacher cannot be permanently
looking at the situational state of his classroom, it has been determined to incorporate a representative
image to the state of the class and related to the indicated color, in this way, distraction will be avoided
or constant concern on the part of the teacher.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Discussion</title>
      <p>According to [24], it tells us that to manage student attendance at classes, this is a task that is
presented repeatedly and requires a lot of time for school administrators and teachers, for which reason
it was thought to automate this task. activity with the implementation of known advances within
machine learning. In conducting his research, he develops a proposal for an assistance system
characterized by the use of facial recognition. Inside the classroom he permanently photographs himself
with a camera. Then an in-depth analysis is carried out on obtaining the captured images in order to
identify and extract the facial features, thus allowing facial recognition of their identity, which allows
us to identify relevant concordances with the proposal presented in the present article, by using artificial
intelligence with neural networks to register facial images within the processes that are necessary to
facilitate the development of classes. On the other hand, [25], they tell us that IoT uses various sensors
and certain existing devices together with different algorithms that allow developing a learning
experience that can be more efficient and intelligent for both teachers and students. Based on the
bibliographic survey carried out in the research carried out, it suggests identifying moments in which
students are distracted from class and warns the advisors or sends an alert through smart applications to
the students. The system is in charge of asking students about the subject and if they make a mistake,
the advisors are notified so that they can provide a better learning experience, which also shows us the
concern of the use of artificial intelligence in a similar way to the present study, to improve
teachinglearning processes. Finally, [20], describes about digital technologies that offer new possibilities to
increase development through active learning, repetition and feedback in very large classes. They
developed a form that allows evaluating the implementation of various digital tools on perception in
active learning, repetition and feedback. All these important factors mentioned are important for the
effectiveness of learning, which allows them to agree on the concern to improve the teaching-learning
process more and more.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>It was determined that there is an improvement in the teaching-learning process from the
accompaniment of the teacher making use of artificial intelligence and convolutional neural networks,
being able to verify that appropriate strategies can be developed from the knowledge of the emotional
state of the students. This allows the future to improve the conditions of active learning in the classroom.</p>
      <p>It is concluded that the prototype of the proposed solution can be applied at any educational level in
virtual environments, being able to identify that a main factor is the emotional state of the student. This
allows the teaching-learning processes to participate actively and thus establish in the future a process
of continuous improvement between the students and the teacher.</p>
      <p>The proposed model based on artificial intelligence is a low-cost solution since it does not transmit
video in real time, but rather captures images at various time intervals, allowing not to saturate the
internet service in which the teaching-learning process is developed and contributes to identifying the
emotional state of students to improve the strategies of the teaching-learning process within the
classroom.</p>
      <p>Future work can be carried out from the present solution that allows to measure other aspects of the
students, such as participation in class, collaborative learning, monitoring of evaluations, among others.</p>
    </sec>
    <sec id="sec-6">
      <title>6. References</title>
      <p>[3] Talan, T. (2021). Artificial intelligence in education: A bibliometric study. International Journal
of Research in Education and Science (IJRES), 7(3), 822-837. https://doi.org/10.46328/ijres.2409
[4] Howard J. (2019). Artificial intelligence: Implications for the future of work. Am J Ind Med. 2019</p>
      <p>Nov;62(11):917-926. doi: 10.1002/ajim.23037.22. PMID: 31436850.
[5] Tahan M. (2019). Artificial Intelligence applications and psychology: an overview.</p>
      <p>Neuropsychopharmacol Hung. 21(3):119-126. PMID: 31537752.
[6] de Mello FL &amp; de Souza SA (2019) Psychotherapy and Artificial Intelligence: A Proposal for</p>
      <p>Alignment. Front. Psychol. 10:263. doi: 10.3389/fpsyg.2019.00263
[7] Fakhoury M. (2019) Artificial Intelligence in Psychiatry. Adv Exp Med Biol.1192:119-125. doi:
10.1007/978-981-32-9721-0_6. PMID: 31705492.
[8] El Hechi, M., Ward, T. M., An, G. C., Maurer, L. R., Moheb, M. El, Tsoulfas, G., &amp; Kaafarani, H.</p>
      <p>M. (2021). Artificial Intelligence, Machine Learning, and Surgical Science: Reality Versus Hype.
https://doi.org/10.1016/j.jss.2021.01.046
[9] Xu, J. J., &amp; Babaian, T. (2021). Artificial intelligence in business curriculum: The pedagogy and
learning outcomes. The International Journal of Management Education, 19(3), 100550.
https://doi.org/10.1016/J.IJME.2021.100550
[10] Tarik, A., Aissa, H., &amp; Yousef, F. (2021). Artificial intelligence and machine learning to predict
student performance during the COVID-19. Procedia Computer Science, 184, 835–840.
https://doi.org/10.1016/j.procs.2021.03.104
[11] Wang, G., Yin, J., Shamim Hossain, M., &amp; Muhammad, G. (2021). Incentive mechanism for
collaborative distributed learning in Artificial Intelligence of Things. Future Generation Computer
Systems, 125, 376–384. https://doi.org/10.1016/j.future.2021.06.015
[12] Yang, L., Li, Z., Ma, S., &amp; Yang, X. (2021). Artificial intelligence image recognition based on 5G
deep learning edge algorithm of Digestive endoscopy on medical construction. Alexandria
Engineering Journal. https://doi.org/10.1016/j.aej.2021.07.007
[13] Pulido Acosta, F., &amp; Herrera Clavero, F. (2017). La influencia de las emociones sobre el
rendimiento académico. Ciencias Psicológicas, 11(1),
2939. https://dx.doi.org/10.22235/cp.v11i2.1344https://doi.org/10.1016/j.heliyon.2021.e07014
[14] Yee Chung, J. W., Fuk So, H. C., Tak Choi, M. M., Man Yan, V. C., &amp; Shing Wong, T. K. (2021).</p>
      <p>Artificial Intelligence in education: Using heart rate variability (HRV) as a biomarker to assess
emotions objectively. Computers and ducation: Artificial Intelligence, 2(December 2020), 100011.
https://doi.org/10.1016/j.caeai.2021.100011
[15] Nazari, N., Shabbir, M. S., &amp; Setiawan, R. (2021). Application of Artificial Intelligence powered
digital writing assistant in higher education: randomized controlled trial. Heliyon, 7(5), e07014.
[16] Nandwani, P., &amp; Verma, R. (2021). A review on sentiment analysis and emotion detection from
text. 11, 81. https://doi.org/10.1007/s13278-021-00776-6
[17] Aiquipa, W. A., Flores, E., Sernaque, F., Fuentes, A., Cueva, J., &amp; Núñez, E. O. (2019). Integrated
low-cost platform for the capture, processing, analysis and control in real time of signals and
images. ACM International Conference Proceeding Series, 35–39.
https://doi.org/10.1145/3365245.3365249.
[18] Hasnine, M. N., Ahmed, M. M. H., &amp; Ueda, H. (2021). Learner-Centric Technologies to Support
Active Learning Activity Design in New Education Normal: Exploring the Disadvantageous
Educational Contexts. International Journal of Emerging Technologies in Learning, 16(10), 150–
162. https://doi.org/10.3991/ijet.v16i10.20081
[19] Jirapanthong, W. (2020). A Tool for Supporting the Evaluation of Active Learning Activities.</p>
      <p>https://doi.org/10.1007/978-3-030-53956-6_43
[20] Tautz, D., Sprenger, D. A., &amp; Schwaninger, A. (2021). Evaluation of four digital tools and their
perceived impact on active learning, repetition and feedback in a large university class. Computers
&amp; Education, 175, 104338. https://doi.org/10.1016/J.COMPEDU.2021.104338
[21] Shetty, A. B., Bhoomika, Deeksha, Rebeiro, J., &amp; Ramyashree. (2021). Facial Recognition using
Haar Cascade and LBP Classifiers. Global Transitions Proceedings, 0–12.
https://doi.org/10.1016/j.gltp.2021.08.044
[22] Serengil, S. I., &amp; Ozpinar, A. (2020). LightFace: A Hybrid Deep Face Recognition Framework.
2020 Innovations in Intelligent Systems and Applications Conference (ASYU), 23–27.
https://doi.org/10.1109/ASYU50717.2020.9259802.
[23] Ramos, C. A. (2015). Los paradigmas de la investigación científica. Avances En Psicología, 23(1),
9–17. https://doi.org/10.33539/avpsicol.2015.v23n1.167.
[24] Wang, M., &amp; Deng, W. (2018). Deep Face Recognition: {A} Survey. CoRR, abs/1804.06655.
http://arxiv.org/abs/1804.06655.</p>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>