Study of Mental States in Online Classes caused by COVID-19, using Brain-Computer Interface Lucas Herreraa, Wilver Auccahuasib, Karin Rojasc, Francisco Hilariod, Edward Florese, Max Huaranjaf, Oscar Linaresg, Milner Liendoh, Christian Ovallei, Patricia Bejaranoj, Alfonso Fuentesk , Leonidas Zamalloal and Fernando Sernaquem a Universidad Continental, Huancayo, Perú b,i,k Universidad Privada del Norte, Lima, Perú c Universidad Tecnológica del Perú, Lima, Perú e,f Universidad Nacional Federico Villarreal, Huancayo, Perú d,g,i,j,m Universidad César Vallejo, Lima, Perú h Universidad Femenina del Sagrado Corazón, Lima, Perú l Universidad Norbert Wiener, Lima, Perú Abstract The pandemic caused by COVID-19, has achieved the confinement of people around the world, changing many habits and customs. Education is one of the areas where this aspect has caused many changes in the way of studying, mainly in the physical place where the classes are received, in the educational process they went from studying in a classroom to a room in the house And in many cases in the classroom, this new way of studying is causing changes in many aspects, one of the most important and which is the object of this study are changes in the levels of attention provided by students, because they are being affected by agents. distractors such as television, family members among others. The present work focuses on being able to analyze how the concentration and meditation levels are presenting at the time they do their classes, these measurements are made through a brain-computer interface, where the brain signals are recorded and presents concentration and meditation in a range of 0 to 100%, the results show that the children present a low level of concentration at the beginning and at the end of the class sessions, the maximum attention values are presented between 10 to 15 minutes of classes with values above 80%. Keywords 1 Education, concentration, meditation, levels, bci. 1. Introduction Educational activities are changing considerably with the progressive use of information and communication technologies, and are being influenced to a greater degree at times when we are being affected by the pandemic caused by COVID-19. Students are doing their school activities from home, through mobile devices, personal computers, among other mechanisms that can be used for this purpose. By attending their classes from home, they are exposed to various factors that can cause students to be distracted, causing them to be unable to take full advantage of their online class. The use of the brain-computer interface is being used more frequently to measure certain behaviors of the brain in people that is why we have works where the activities of the brain are measured when activities related to video games are being carried out, where it is measured attention span in children [1]. In the area of video games there are many approaches we can take advantage of the use of BCI to find different problems and difficulties. Being able to design, extend and take advantage of games Algorithms, Computing and Mathematics Conference, August 19 – 20, 2021, Chennai, India. EMAIL: wilver.auccahuasi@upn.edu.pe (Wilver Auccahuasi) ORCID: 0000-0001-8820-4013 (Wilver Auccahuasi) © 2021 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings (CEUR-WS.org) 30 with devices that can measure brain activity [2]. We also find works where developments based on the use of the BCI for IT learning are presented, these are currently used in people with motor disabilities, where they cannot access the learning of Information Technologies in Educational Institutions, because it does not have the appropriate tools to impart this type of education. [3]. In the educational area we find studies that measure the signs of degrees of stress and centralism received from the stimuli in the mathematical and humanities areas applied to a group of children with one who is between six and seven years of age, where used as a BCI device as a Neurosky interface and the development of a software application created with C ++ in the Qt Creator improvement environment, through which we can expand our knowledge of BCI, from which it can be said that this interface has been using electrical activity of the brain as a signal that represents the messages or commands that a person sends to the outside world [4]. In the analysis of the behavior of the brain we found works where the EEG electroencephalography signals are measured, presenting the parameters of voltage and periodicity through a web application in real time and the application of the OpenBCI hardware. These signals were pre-processed in Matlab and by examining FP1 and FP2 a foreign connector was controlled by means of the voluntary wink. Also, the method allows the recipient to pay attention to the behavior of the brain waves and the evoked potentials produced during the examination [5] [6]. The use of the brain-computer interface is a fundamental tool in the study of visual evoked potentials, with which they can be applied to children, young people and adults, from where many parameters present in the cerebral cortex can be analyzed [7] [8]. Its use is also related to the analysis of EEG signals, in the process of studying brain behavior when listening to music [9]. For the case studies of the different types of visual and auditory evoked potentials, the standard is the use of EEG signal recording, measurement and analysis equipment, and in most cases the measurement of brain signals is carried out with BCI devices [10]. In this proposal, the use of a BCI device is used to measure the levels of attention and meditation in children when they are taking online classes, at this time of confinement as a result of the pandemic caused by COVID-19. 2. Materials and Methods The experimentation consists of being able to measure the levels of attention and meditation in the students, in the different moments that are related to the realization of the online classes, for which the use of the BCI device "NeuroSky MindWave" is used. , which is connected in the student, in the head, because it has the shape of a headband, this device provides us through a wireless communication the levels of attention and meditation. That subsequent to the registration your analysis will be carried out. The methodology presented is the use of a BCI device, whose function is to measure and record the signals produced by the brain and interpret them, providing the level of concentration and the level of meditation that you are presenting at the time of signal log. The components of the methodology are presented below: Blocks Diagram Figure 1: Block Diagram of the Proposal 31 The first block corresponds to the installation of the BCI device in the child, the device is a headband that is placed at the height of the foreheads, allowing the child to carry out his activities normally, the correct location of the equipment in the child, will have as a result, the signal capture is as clean as possible, causing a better interpretation. The second block corresponds to the configuration of the reception equipment with the BCI device, this configuration must be carried out with all possible security, so that the signal can be registered without noise, because the communication of the equipment with the BCI device It is wireless. The configuration of the communication protocol will allow the signal to reach the receiving equipment with the highest possible fidelity. The third block corresponds to the signal reception block, which corresponds to the reception equipment and is where it receives the signal and processes them to indicate the concentration and meditation levels of the person under study. The fourth final block corresponds to the analysis and interpretation of the concentration and meditation levels, carried out in the conditions when the child is in her online classes. The analysis mechanism is the recording of brain signals at different times when taking classes and taking an average value for their interpretation. The measurements were made taking as a model different environment where they have been designated in the houses or apartments, to be able to carry out the virtual classes. The concentration levels measured by the BCI device is characterized by the presentation on a scale from 1 to 100, the level of attention that corresponds when the person to be evaluated is paying the most attention to the activity they are performing; The level of meditation is characterized by a scale from 1 to 100, where the level of meditation corresponds to the moment when the person being evaluated is distracted without paying much attention to the activity they are doing. 3. Results The results presented are related to the experimentation carried out on a group of children between the ages of 8 and 12, who are currently receiving online classes from home, where the BCI device was used to measure the degree of concentration and meditation when they are doing the activities of the class, the time interval where the measurement was made is related to three fundamental times in the development of an online class, looking from the student's perspective:  When the student prepares to enter the virtual campus.  When the student starts the class  When the student is in the first 10 to 15 minutes of class  When the student is in the middle of the class Although the classrooms of the schools are conditioned so that the child develops all his abilities, through conditioning, the educational resources available, adequate lighting, among others, make it possible for him to be paying attention to the teacher's class, this This characteristic changes dramatically when the child is attending his classes where the teacher is online, where he can only have interaction through audio or video camera, and added to the distracting agents that we find in the living room of the house, which is the place where in most cases he conditioned himself to receive classes online, among the distracting agents we can mention the television, toys, brothers. It should be noted that for this reason the living room of the house is not an appropriate place to carry out academic activities in children who are in training. Below are the results obtained in the average measurements of children in these four essential moments in the development of online classes: 32 Figure 2: Attention and Meditation Level when the Child is Getting Ready to Start her Online Class. In Figure 2, the concentration and meditation levels are presented, when the child is preparing to enter his online class, it can be seen that his concentration is at a level of 30 and the meditation level is at 49, indicating that the child is distracted without any concern at that time. Figure 3: Level of Attention and Meditation when the Child Started his Online Class. Figure 3 shows the levels of attention with a value of 52 and meditation at 95, these data indicate that the child is starting his online classes, the child is still distracted but begins to pay attention to the class. Figure 4: Level of Attention and Meditation when the Child is in the First 10 to 15 Minutes of her Online Class. In figure 4, the maximum peak of the concentration level is presented with a value of 84, which indicates that the child is highly concentrated in the activities of the online class, but also presents a value of 67 in the level of meditation what indicating that although you are paying attention to the online class, you are somewhat distracted, it would be expected at this point in the class, that the value of attention is as high as possible and the value of meditation is as low as possible. 33 Figure 5: Attention and Meditation Level when the Child is in the Middle of his Online Class. Figure 5 presents the results when the child is in the middle of the virtual class hours, on average after 20 minutes, of a class scheduled in 40 minutes, as it can be seen after about 20 minutes, the children begin to Losing attention to the online class caused by different factors, such as visual fatigue, discomfort, inappropriate environments and distracting agents such as television, toys, among others. 4. Conclusions The results presented show that virtual classes have an important application in the development of education in children in these times of quarantine, the measurements made show that the levels of attention are presented with higher levels in the first minutes of the online class., which is the moment where children have the greatest interest in being attentive to classes, if we make a comparison with the work presented by the author which is indicated in the first reference where levels of attention and meditation are measured when children They are playing video games, where children have high levels of attention with a main characteristic that these levels are maintained for a long time, depending on the duration of the game, on average 80% of the duration of the game, for this reason it is important to achieve develop recreational activities in the development of online classes with the intention that children can take advantage of interest in video games, applying to learning processes. In the development of this project, it was verified that online classes are producing changes in the development of children's study habits, being able to develop classes from home is one of the challenges that all families assume, by being able to condition the environments of the houses to be able to develop the online classes. There is a substantial difference between the facilities of a classroom and the environments of the houses, due to its fundamental use, it is for this main reason that distractors, such as toys, are present at home the room or children's rooms, these make it easier for children to be distracted compared to school environments. We can also indicate that in a normal session of online classes, the first 10 to 15 minutes the children present a high level of attention, which indicates that they are paying attention to the classes, after 20 minutes of a class scheduled in 40 minutes, children lose that first attention causing distractions, we can conclude that you should take advantage of these first minutes in order to present the most important knowledge, it is also recommended that online classes not only be able to observe the screens, interactive activities should be implemented which causes the children to be the majority of the class with the interest of participating and getting the most out of the classes. 5. References [1] Wilver Auccahuasi, Mónica Díaz, Fernando Sernaque, Edward Flores, Gabriel Aiquipa, Gloria Rojas, Percy Castro, and Nabilt Moggiano. 2019. Analysis of the comparison of the levels of 34 concentration and meditation in the realization of academic activities and activities related to videogames, based on brain computer interface. In Proceedings of the 5th International Conference on Communication and Information Processing (ICCIP ’19). Association for Computing Machinery, New York, NY, USA, 154–157. 2. DOI:https://doi.org/10.1145/3369985.3370017 [2] Dávila, J. A. V., Macías, J. V., & Lamas, M. V. (2017). Videojuegos basados en BCI (Interface cerebro computadora): Revisión Sistemática Literaria. Programación Matemática y Software, 9(2), 10-23 [3] VALENCIA-GARCÍA, A., JUAREZ-SANTIAGO, B., CORTÉS-GARCÍA, A., & VELAZQUEZ-GACHUZO, E. (2016). Estudio del estado del arte para el desarrollo de un motor gráfico que utilice Interfaz Cerebro-Computadora (BCI) para el aprendizaje de las TI. Revista de Sistemas Computacionales y TIC’s, 5. [4] RODRÍGUEZ-MIRANDA, G., SANTOS-OSORIO, R., LEDESMA-URIBE, N., & CAMACHO-RAMÍREZ, J. (2016). Estudio de las señales electroencefalográficas (EEG) desarrollando una aplicación basada en interfaz cerebro-computadora (BCI), para el apoyo del aprendizaje infantil. Revista de Sistemas Computacionales y TIC’s, 2(6), 1-4. [5] Vásquez Rodríguez, G. J., & Urgilés Cárdenas, D. F. (2017). Implementación de un Sistema BCI para el Análisis del Comportamiento de Bioseñales Neurológicas (Bachelor's thesis, Universidad del Azuay). [6] S. Nishifuji, T. Kuroda and S. Tanaka, "EEG changes associated with mental focusing to flicker stimuli under eyes closed condition for SSVEP-based BCI," 2012 Proceedings of SICE Annual Conference (SICE), 2012, pp. 475-480. [7] G. Pfurtscheller, T. Solis-Escalante, R. Ortner, P. Linortner and G. R. Muller-Putz, "Self-Paced Operation of an SSVEP-Based Orthosis With and Without an Imagery-Based “Brain Switch:” A Feasibility Study Towards a Hybrid BCI," in IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 18, no. 4, pp. 409-414, Aug. 2010, doi: 10.1109/TNSRE.2010.2040837. [8] A. Masuo, S. Kaga and S. Kato, "Discrimination of Brain Activity using Near-Infrared Spectroscopy Signal Change in Prefrontal Cortex During Mental Arithmetic Task," 2019 IEEE 8th Global Conference on Consumer Electronics (GCCE), 2019, pp. 734-735, doi: 10.1109/GCCE46687.2019.9015532. [9] S. Ito, Y. Mitsukura, K. Sato, S. Fujisawa and M. Fukumi, "A study on relationship between personal feature of EEG and human's characteristic for BCI based on mental state," 2009 35th Annual Conference of IEEE Industrial Electronics, 2009, pp. 4229-4232, doi: 10.1109/IECON.2009.5415062. [10] S. Nishifuji and Y. Sugita, "Eye-gaze independent brain machine interface using amplitude modulation of steady-state visual evoked potential with eyes-closed associated with mental concentration," 2014 IEEE 3rd Global Conference on Consumer Electronics (GCCE), 2014, pp. 607-611, doi: 10.1109/GCCE.2014.7031170. 35