1. Introduction
The actors involved in teaching–learning analyze students’ needs during their school life. Among the most critical needs is the ability to write; since the mid-twentieth century, a series of action guidelines and public policies focused on reading and writing have been built that create spaces for educational practices. However, learning to read and write has elements that must be identified as they are typical of the age of the people who start learning [
1]. Children usually begin writing between the ages of 3 and 4. At this point, they can scribble and form bare traces with pencils or crayons. Their writing skills improve as they age, and they begin to write more complex letters, words, and sentences. However, it is essential to remember that each child develops at their own pace, and some may start writing before or after the age of 3 or 4. In addition, some children may face writing challenges due to coordination problems, excessive muscle tension, or other difficulties and may require additional support to develop their writing skills [
2].
Writing ability refers to the ability to generate language through various means, such as typing or texting. On the other hand, handwriting refers specifically to the ability to create italics or print hyphens by using a handwriting tool. That is, while writing can include various forms of written communication, handwriting is a specific skill that focuses on handwriting and its quality. Therefore, it is essential to keep this difference in mind when discussing detecting abnormal patterns in handwriting, as this skill is crucial in developing cognitive and communication skills in children.
Excessive muscle tension or lack of coordination also affects a child’s writing. For example, suppose a child overly tenses their hand or arm muscles while writing. In that case, they may experience muscle fatigue and hand pain, affecting their ability to write effectively and comfortably. Additionally, a lack of coordination can render it difficult for a child to execute precise movements to write clearly and legibly. Suppose a child is experiencing problems with muscle tension or incoordination while writing. In that case, working with an occupational therapist who can help them improve their fine motor control and posture while writing may be helpful. It may also be beneficial to offer the child writing tools such as colored pencils or special grips to help reduce muscle tension and improve writing accuracy.
Excessive muscle tension or lack of coordination when writing is due to various reasons, including lack of practice; if a child does not have enough experience or training in writing, they may have difficulty coordinating the movements necessary to write fluently and precisely [
3]. In some cases, incoordination and muscle tightness may result from developmental problems, such as autism spectrum disorders, neuromotor development disorders, or Tourette syndrome. Poor writing posture can also lead to excessive muscle tension in the hand, wrist, arm, or shoulder, rendering writing difficult. In addition, there are problems related to uncorrected vision problems, which hinder the child’s ability to see what they are writing [
4]. As well as emotional factors, in some cases, this may result from the child’s stress, anxiety, or frustration when facing the task of writing.
To identify if a child has problems with excessive muscle tension or lack of coordination in writing, some signs and symptoms that can be observed, such as incorrect pencil grip, if the child holds the pencil too tightly or too loosely, or if they have difficulty changing their grip, may be a sign of excessive muscle tension. If the child’s handwriting is difficult to read, inconsistent in size and shape, or if letters and words are skipped, it may be a sign of a lack of coordination. If the child complains of fatigue or pain in the hand, wrist, or arm after writing for a short period, it may indicate excessive muscle tension. Another symptom is if the child is slow to write or takes longer than they should to complete writing tasks; it may be a sign of a lack of coordination.
Some software programs are specifically designed to assist in evaluating handwriting and identifying problems with excessive muscle tension or lack of coordination. These programs use motion-tracking technology to analyze a child’s handwriting, pencil grip, writing speed, pressure on the page, posture, and other factors. Examples of writing assessment software include WriteWell, a writing assessment software that uses motion-tracking technology to analyze the quality of writing and provide detailed feedback on speed, readability, and other aspects of writing [
5]. SENSE-Writing uses a digital pen and tablet to generate a child’s report and provide feedback on pen grip, speed, pressure on the page, and other aspects of writing. KiddyWriting uses a digital pen and tablet to generate a child’s report and provide feedback on pen grip, speed, pressure on the page, and other aspects of writing.
This work proposes using artificial intelligence (AI) algorithms to identify and analyze student muscle tension patterns. These algorithms can analyze children’s movement patterns and muscle tension and detect areas of weakness or excessive muscle tension. For example, motion sensors or tablets can measure the hand while the child writes. The collected data can be analyzed by using AI algorithms to identify the child’s movement patterns and muscle tension. AI algorithms identify patterns that indicate a lack of coordination or excessive muscle tension and can provide recommendations to improve a child’s writing. By designing an AI algorithm, it is possible to evaluate children’s handwriting and provide feedback on the writing’s legibility, speed, and accuracy. By analyzing children’s writing patterns, the software can detect problems such as excessive muscle tension or lack of coordination and provide feedback to improve writing.
3. Results
The system was applied in a primary school that was interested in identifying possible writing problems in its students. According to the information acquired from the tutors, they determined that some children had difficulties in writing, such as irregular strokes, excessive pencil pressure, or inappropriate speed. With the system, it is hoped to detect possible abnormal patterns in children’s writing early to provide them with adequate intervention and support. For this, reporting data from 71 primary school children were collected. Of the total population, 46 were men, which corresponds to 65%, while 25 girls made up 35% of the total population.
Table 5 presents the general data of the people participating in this study.
In the application, the writing data of the 71 children were collected by using digital tablets that recorded the children’s writing with a digital pen and a camera to identify the parameters included in the report. The data provide writing speed, pen pressure, writing tilt, and other relevant parameters. These data are preprocessed and segmented for analysis.
Table 6 shows the results obtained from applying the writing anomaly verification algorithm.
The table provides the results from when 210 writing samples were processed. The algorithm detected abnormal patterns in 42 writing samples, representing 8.4% of the samples processed. Abnormal patterns included delayed writing speed, excessive pen pressure, irregular slant, and lack of word spacing. In addition, abnormal patterns were identified in writing samples from students from various grade levels, with 8 examples in 1st grade, 12 in 2nd grade, 10 in 3rd grade, 7 in 4th grade, and 5 in 5th grade. The percentage of coincidence between abnormal patterns detected by the algorithm and teacher observations coincided by 85% with teachers’ words in detecting abnormal patterns in the children’s writing. According to the results, 36 children were referred to exceptional education specialists or occupational therapists for intervention based on the abnormal patterns detected by the algorithm.
For the children referred to specialists, a 30% improvement in writing skills was observed. In addition, additional data from the monitoring camera were obtained in the evaluations, including average writing time (1.5 s per word), average pen pressure (45 g), average pen tilt (12 degrees), pen spacing, and intermediate between words (1.2 cm). From this, the algorithm’s detection accuracy was 95% when the camera data were compared with the detected abnormal patterns. With these results, feedback was provided to the children and teachers on the data from the camera and the abnormal patterns detected by the algorithm. These results indicate that the camera-based handwriting verification algorithm that was used in the study showed effective detection of anomalous patterns in children’s handwriting, allowing early identification of handwriting problems and appropriate intervention to improve writing skills and writing in affected children.
The evaluation of the system’s effectiveness is presented in
Table 7, for which the 210 writing samples of the children were used. The results indicate that the algorithm has a high accuracy of 92%, a sensitivity of 85%, a specificity of 96%, a positive predictive value of 89%, and a negative predictive value of 95%. The F1-Score is 0.87, and the area under the ROC curve is 0.92, indicating good model performance in binary classification. The false positive rate is 4%, and the false negative rate is 15%.
The 15% false negative rate indicates a significant percentage of abnormal traces that the algorithm does not detect. One reason that has been identified is that established writing speed thresholds are unsuitable for all children, especially those with atypical writing skills. To reduce the false negative rate, some measures are considered, such as:
Adjust typing speed thresholds for each child based on their writing skills. This could be achieved by using an adaptive approach based on individual child performance.
Add more features and measurements to assess writing quality, such as pen pressure, rate of pressure change, and stroke direction.
Improve the accuracy of the sensor that is used to capture write data. This could be achieved by using more advanced and precise sensors or by conducting more rigorous tests to assess the quality of the data captured.
In general, it is essential to remember that no algorithm is perfect, and there will always be limitations and areas for improvement. The detection of abnormal strokes in handwriting is a constantly evolving and improving area of research.
The ROC curve evaluates the ability of the model to distinguish between positive and negative classes. The curve is plotted by using the sensitivity and specificity values obtained by varying the decision threshold of the model. The area under the curve (AUC) is used to measure the model’s ability to discriminate between classes. It is interpreted as the probability that the model correctly classifies a random sample from the positive class and a random sample from the negative type. The ROC curve in
Figure 4 shows that the model performs well in classifying the positive and negative classes since the AUC is 0.97, which indicates a high probability that the model correctly classifies a sample randomly. Furthermore, the curve shows a reasonable balance between sensitivity and specificity, which suggests that the model can correctly type both classes without significant bias. The choice of the appropriate decision threshold depends on the application’s specific requirements and the relative cost of misclassification of each class.
4. Discussion
The results obtained from the handwriting verification algorithm show high effectiveness in accuracy, sensitivity, specificity, positive predictive value, and negative predictive value. The algorithm’s accuracy is 92%, which indicates that the algorithm can correctly classify 92% of the writing samples of the children in the model that was used [
32]. Furthermore, the sensitivity of 85% suggests that the algorithm can accurately detect 85% of the cases with abnormal writing patterns, which indicates that the algorithm performs well in detecting abnormal writing.
The specificity of 96% is high, indicating that the algorithm can correctly identify 96% of standard write cases, which reduces the false positive rate and improves the algorithm’s ability to avoid incorrectly classifying the script of normal children’s writing as abnormal. The positive predictive value of 89% indicates that the algorithm has a high probability of giving a correct prediction when it identifies a write as abnormal. It is essential to minimize false positives and ensure that anomalous write detections are accurate [
33]. The 95% negative predictive value indicates that the algorithm has a high probability of giving a correct prediction when it identifies a write as usual. Minimizing false negatives and ensuring that regular write detections are accurate are essential.
The F1-Score of 0.87 is a measure that combines the accuracy and sensitivity of the algorithm and shows a good balance between the algorithm’s ability to classify both abnormal and typical cases of writing correctly. The area under the ROC curve of 0.92 indicates that the algorithm performs well in discriminating between abnormal and normal writing cases [
34,
35]. However, a false negative rate of 15% is observed, which means that there is a 15% rate of bizarre writing instances that the algorithm does not detect. This could indicate that the algorithm still has room for improvement in sensitivity, which could lead to insufficient early detection of writing problems in some children.
Some limitations of the write verification algorithm need to be considered. First, the accuracy and effectiveness of the algorithm largely depend on the quality and quantity of sample data used in training. The algorithm’s performance may negatively affect if the sample data are limited or skewed. In addition, the algorithm is based on signal processing and computer vision techniques, which means that it is subject to possible errors in the processing or interpretation of the writing by the system [
36]. Additionally, external factors such as image quality, lighting, and camera position can affect handwriting verification through a camera, which could influence the algorithm’s accuracy.
The handwriting verification algorithm developed in this study can be a complementary tool for evaluating students’ writing progress. It could also be used in clinical settings to detect potential neuromotor or developmental disorders that may affect writing in children [
37,
38]. However, it is essential to note that the handwriting verification algorithm developed in this study is complementary and should not replace assessment and diagnosis by health or education professionals. Writing is a complex process that can be influenced by various factors, including cognitive and emotional factors.
Teacher assessments are an essential source of feedback in the AI use process. Teachers must be trained in using AI and understand how it works, what kind of data they can use, and how to integrate it into their teaching activities. In addition, teachers must understand the learning objectives and the skills that students are expected to acquire with AI. Teacher feedback can also help identify areas in which the AI teaching process needs improvement or adaptation to meet specific student or curriculum needs. Teachers can provide valuable information on the effectiveness of the tools and techniques used in the teaching process, which can help identify best practices and areas for improvement. Combining student data and teacher feedback can provide a more complete and accurate view of the success of the AI use process.
The use of technology such as cameras and tablets to detect abnormal patterns in children’s handwriting has proven to be a promising tool in education and occupational therapy. However, it is essential to note that there are limitations to the ability of these technologies to capture specific data, such as muscle tension during typing. Although muscle tension is a critical factor in handwriting production, it cannot be directly recorded through the technology used in this study. Instead, muscle tension is inferred from the collected data streams, which can be problematic due to one-too-many assignments and the multitude of degrees of freedom at each level of control of the neurocognitive processes involved in muscle tension handwriting production. Furthermore, the inference of muscle dynamics from digitized kinematics also presents additional challenges. Digitized kinematics refers to the analysis of the movements of objects and the body by recording and measuring positions and velocities over time. However, digitized kinematics cannot capture the complexity of muscle dynamics, such as electromyographic activity and the distribution of muscle forces in the production of handwriting. Therefore, caution is needed when interpreting the data collected through these technologies and considering their limitations in capturing specific information.
Although the use of technologies such as cameras and tablets helps detect abnormal patterns in children’s handwriting, it is essential to be aware of the limitations of these technologies in capturing specific information, such as muscle tension. In addition, it is necessary to consider the full neurocognitive context in which handwriting occurs and how the technologies used in this study may have difficulty capturing the complexity of these processes. More research is needed to address these limitations and to develop new technologies that can capture more precise information about the neurocognitive processes involved in the production of handwriting.