## 4 System Implementation
### Implementing the Didactic Twin Layer
#### 4.2.2 Assessment Algorithm Module  
The Assessment algorithm module was developed to monitor and evaluate the student's experiments based on the teacher's digital twin. This application was divided into two elements:  
* Assessment experiment:  
The assessment experiment element occurs when the student starts running the experiment. The student's program is inserted into the experiment by clicking the Start My Experiment button, and the application begins checking the differences between the teacher's and student's solutions. However, to obtain the student's solution, it is necessary to use the same process as the teacher's experiment: capture the data from the management element, pass it through the learning algorithm, and finish with the pattern returned by the generative AI API. In this correction process, the digital twin data from the teacher's and the student's experiments are initially saved in.txt files to be later uploaded to the database. This procedure occurs because of the speed of the input and output signals when executed in the experimental process. These files also serve as a backup in case of latency in communication with the database and are saved on the local machine of the remote laboratory. This application works with three files: one being the correction template (digital twin of the teacher for that experiment), the current correction file (student experiment), and a response file. Number 1 (one) is stored for equal steps in the response file, and 0 (zero) is stored for each difference; these files are uploaded to the database in table form. Figure 11 shows how the experimental correction methodology was applied, where TS stands for the teacher step, SS for the student step, and ER for the experimental result; all steps are integers that were taken from the AI generative return pattern and were compared only, and the response was inserted into the database table to be available for the next element. All steps are compared, and the response is inserted into the database table to be available for the Assessment Result element. Figure 10: Image classification environment of the experimental classifier. * Assessment Results:  
The Assessment Result element was implemented to come into action when the student clicks on the Assess My Experiment button. Then, the experimental response data are collected and prepared to show to the student. First, this element checks the response table created by the assessment experiment, capturing the differences between the experiments and organizing the images of the steps according to the correctness of the experiment. If there are errors, the images of the incorrect steps are retrieved and presented to the student as a form of learning. In addition, red is inserted for each incorrect step in the response table shown to the student. If there are correct answers, green is inserted for each correct step in the response table. Figure 12 shows the student response screen created by the Assessment Result element. It presents a table with each step, with a column with the student's and teacher's data and the colors and words correct and incorrect as a result in addition to presenting the steps in which the student got wrong. In Step 4 of Figure 12, it is observed that the Step 4 value in the professor's experiment is 43, while the value in the student's experiment is 28. Since these values are different, the implemented system should consider the student's experiment incorrect at this point. Consequently, the system displays the Step 4 experiment image from both the student and  
Figure 11: Element assessment experimental methodology. Figure 12: Assessment Result element screen. the professor, allowing the student to identify where the error occurred at this stage of the experiment. This correction becomes complete when the formation of the didactic twin is finished. This didactic twin stores the characteristics of the student's digital twin, the execution images of the student's experiment, and the student's monitoring data.