Next Article in Journal
The Smart Governance Framework and Enterprise System’s Capability for Improving Bio-Business Licensing Services
Next Article in Special Issue
Analyzing Indo-European Language Similarities Using Document Vectors
Previous Article in Journal
Compact-Fusion Feature Framework for Ethnicity Classification
Previous Article in Special Issue
A Scientometric Study of the Stylometric Research Field
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detection of Abnormal Patterns in Children’s Handwriting by Using an Artificial-Intelligence-Based Method

by
William Villegas-Ch
1,*,
Isabel Urbina-Camacho
2 and
Joselin García-Ortiz
1
1
Escuela de Ingeniería en Ciberseguridad, Facultad de Ingenierías y Ciencias Aplicadas (FICA), Universidad de Las Américas, Quito 170125, Ecuador
2
Facultad de Filosofía, Letras y Ciencias de la Educación, Universidad Central del Ecuador, Quito 170129, Ecuador
*
Author to whom correspondence should be addressed.
Submission received: 28 April 2023 / Revised: 31 May 2023 / Accepted: 9 June 2023 / Published: 14 June 2023
(This article belongs to the Special Issue Digital Humanities and Visualization)

Abstract

:
Using camera-based algorithms to detect abnormal patterns in children’s handwriting has become a promising tool in education and occupational therapy. This study analyzes the performance of a camera- and tablet-based handwriting verification algorithm to detect abnormal patterns in handwriting samples processed from 71 students of different grades. The study results revealed that the algorithm saw abnormal patterns in 20% of the handwriting samples processed, which included practices such as delayed typing speed, excessive pen pressure, irregular slant, and lack of word spacing. In addition, it was observed that the detection accuracy of the algorithm was 95% when comparing the camera data with the abnormal patterns detected, which indicates a high reliability in the results obtained. The highlight of the study was the feedback provided to children and teachers on the camera data and any abnormal patterns detected. This can significantly impact students’ awareness and improvement of writing skills by providing real-time feedback on their writing and allowing them to adjust to correct detected abnormal patterns.

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.

2. Materials and Methods

The development of the method uses several concepts that form the basis for designing an algorithm that can identify the software that can detect problems such as excessive muscle tension or lack of coordination for writing in children. The description of materials begins with a general review of the related works that were considered vital in developing this proposal.

2.1. Review of Related Works

Writing is a complex skill involving a series of cognitive and motor processes that render it possible to generate language by producing graphemes or written symbols. Writing development begins early, learning the fine motor skills needed to hold a pencil and render basic strokes. As children get older and learn to write letters and words, writing becomes an increasingly sophisticated skill that requires good eye–motor coordination, short-term memory, attention, and language skills. Dysgraphia, on the other hand, is a specific learning disorder characterized by persistent difficulties in acquiring and automating writing skills, affecting the legibility, fluency, and coherence of writing. Children with dysgraphia may have difficulties writing letters and numbers, problems with space and size, and slow and disorganized writing. Often these problems negatively affect the quality of their academic work and their self-esteem.
Research in the area of dysgraphia has led to the identification of different subtypes of dysgraphia, such as motor dysgraphia, which refers to problems in planning and executing hand and arm movements necessary to write; spatial dysgraphia, which refers to difficulties in the spatial organization and orientation of written symbols on a page; and phonological dysgraphia, which refers to problems in the identification and production of speech sounds that are related to written characters. To address the challenges of dysgraphia, different intervention approaches have been developed, including occupational therapy, sensory integration therapy, writing therapy, and spelling therapy. These interventions can help children develop fine motor skills, improve visual–motor coordination, and develop strategies to improve organization and planning in writing. In addition, technological tools such as cameras to detect abnormal patterns in handwriting have been developed, which may provide valuable information for the diagnosis of and early intervention in dysgraphia.
Numerous studies have focused on writing development and dysgraphia in children. For example, [6] established that handwriting involves a complex process that requires the coordination of fine motor skills, the planning and organization of ideas, and the transcription of spoken language into written form. In addition, some studies suggest that dysgraphia may result from low muscle tone or poor eye–motor coordination [7]. Other studies point to central nervous system dysfunction as a contributing factor [8].
Regarding dysgraphia screening tools, a recent study by [9] evaluated using an artificial-intelligence-based tool to screen for dysgraphia in school-age children. The results showed high accuracy in dysgraphia detection and suggested that artificial-intelligence-based tools may be helpful for early assessment and intervention in dysgraphia.
In works such as [10], the relationship between fine motor skills and handwriting was examined in children with and without developmental coordination disorder (DCD). The results indicated that children with DCD had more excellent hand and arm muscle tension during the writing and had significantly lower writing quality than children without DCD. In addition, fine motor skills were cleverly related to writing grades in both groups of children. In [11], handwriting problems in elementary school children in Turkey were examined. Children with handwriting problems were found to have inadequate writing posture, weak pencil grip, a tendency to press too hard on the page, and slower writing speed. Furthermore, it was observed that children with handwriting problems also had difficulties with fine motor skills.
The work [12] identified the relationship between handwriting and cognitive development in preschool and school-age children. The results showed that handwriting quality was significantly related to children’s working memory, attention, and visual–spatial processing. Children with handwriting problems were also found to have limited working memory and attention spans compared to children without handwriting problems. In [13], a systematic review of the existing literature on handwriting difficulties in children with developmental disorders was conducted on coordination (DCC). Children with DCC were found to have significantly lower handwriting quality than children without DCC, and handwriting problems in DCC children were related to poor hand–eye coordination.
Papers that use artificial intelligence techniques to identify writing problems in children, such as [14], point out that they use an artificial neural network to develop a classification model for detecting developmental dysgraphia in children. The results showed that the model was approximately 93% accurate in detecting dysgraphia. Similarly, in [15], machine learning techniques were used to develop a system for detecting handwriting difficulties in children. The system analyzed movement data from the child’s hand while writing and used machine learning algorithms to identify patterns that indicate writing problems. In [16], motion sensors were used to monitor the kinematics of writing movement in children with developmental coordination disorders. They used a machine-learning model to identify writing problems in real-time. The system provided real-time visual feedback to help children improve their writing.
In [17], an intelligent tutoring system was developed that uses machine learning techniques to analyze children’s writing and provide real-time feedback to improve writing. The results showed that the system significantly improved the children’s writing. Finally, in [18], machine learning techniques were used to analyze children’s writing and detect dysgraphia. The results showed that the model was 93% accurate in detecting dysgraphia. These works demonstrate that artificial intelligence techniques can detect children’s writing problems and provide personalized interventions.

2.2. Writing Problems in Children

Handwriting problems in children can affect the quality and efficiency of handwriting. Excessive muscle tension and lack of coordination are two common problems. Excessive muscle tension refers to excessive tension or stiffness in the muscles that are used for writing. This can render typing uncomfortable and painful, leading to slow and unclear typing. In addition, children who have excessive muscle tension may have difficulty controlling pencil pressure and may over-squeeze the pencil when writing.
The idea of capturing the biomechanical complexity of handwriting through the term “(in)coordination” is somewhat oversimplified. Children can have difficulty writing due to a lack of fine motor coordination and a variety of factors, including problems with planning, attentional control, working memory, and cognitive processing. Therefore, it is essential to recognize that handwriting is a complex neurocognitive skill that involves multiple interconnected cognitive and biomechanical processes. Therefore, any evaluation of handwriting must consider this complexity and use appropriate measurement tools and techniques to reliably capture the various aspects of the writing process.

2.3. AI Tools and Techniques to Detect Typing Problems

AI is being increasingly used in education and rehabilitation to help improve children’s ability to write. While there is no specific AI algorithm to identify writing problems specifically, there are AI technologies that can help assess children’s writing and provide real-time feedback to improve their ability. 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. In addition, there are also AI tools that can give personalized writing therapy for children. These tools use machine learning algorithms to adapt to each child’s needs and abilities and provide individualized writing therapy that improves writing accuracy, speed, and legibility.
In this work, Python is used as the programming language, considering that this is a tool with greater penetration in using AI libraries to solve any user need. For example, various Python packages can help detect typing problems, such as excessive muscle tension or lack of coordination [19]. One of the most widely used packages for handwriting analysis is “PyDTW”, which calculates the distance between two handwriting sequences. The DTW (Dynamic Time Warping) algorithm used by PyDTW can detect abnormal typing patterns that may indicate problems such as excessive muscle tension or lack of coordination. In addition, PyDTW can compare a child’s handwriting with a reference handwriting model and detect significant discrepancies. Another valuable package for handwriting analysis is “OpenCV”, which is used for image processing. OpenCV can analyze a child’s handwriting for coordination problems, such as crooked lines or mis-shapen letters. This proposal uses several libraries to detect children’s writing problems and provide real-time feedback to improve their ability. Finally, specific recommendations are established for tutors to help identify writing issues in students and take corrective measures in real-time; these libraries are detailed in Appendix A.

2.4. Method

Figure 1 represents the flowchart, which covers the stages considered as part of detecting writing problems in children by using AI techniques. First, data acquisition includes regular and abnormal strokes representing abnormal writing patterns in children. In the next phase, the write speed for each writing stroke is calculated from the data. Writing speed can be calculated by dividing the stroke length (in mm) by the stroke duration (in seconds). Based on descriptive statistics of the data, write speed thresholds are established, which are considered normal and abnormal [20]. The average and standard deviation of write speeds can be used to set points, considering that strokes of which the rates are above or below specific multiples of the standard deviation are considered abnormal.
In the next phase, the write speed thresholds are applied to the data, and the write traces that exceed the established abnormal thresholds are identified as bizarre. To evaluate the algorithm’s accuracy in detecting abnormal patterns, the calculation of sensitivity, specificity, positive predictive value, negative predictive value, and other performance evaluation metrics of the algorithm are included [21]. Based on the results obtained in the validation, adjustments and optimizations are performed on the algorithm to improve its accuracy and performance in detecting abnormal patterns in children’s writing. Finally, the results obtained are presented, and feedback is provided to the tutors to carry out corrective actions for the students who require it.

2.4.1. Data Collection

For data collection, it is necessary to clearly define the variables to be measured, the indicators, and the population or sample that participates in the study. In addition, it is essential to have an adequate methodology for data collection, which can include various techniques such as surveys, interviews, observation, and document analysis, among others. Other essential aspects are ethical aspects, such as the informed consent of the participants, the confidentiality of the information, and the protection of the data collected. In this work, informed consent was requested from the parents of the participants. In addition, the work includes only those images that do not contain data that identify the study participants. Therefore, the photos or tables that are used do not have data that reveal the personal information of the participants.
Therefore, detailed information about how children write, including their posture, movement, and writing rhythm, was collected in this phase [22]. For this, cameras or motion sensors can be used. In this work, cameras and tablets were used. Therefore, the strategic location of the devices has been considered to capture children’s writing from various angles. Furthermore, these cameras are set to record at a suitable speed to obtain a clear and detailed image of the child’s handwriting.
In classrooms, high-speed, high-resolution cameras can be placed at different angles to capture the movement of children as they write [23]. These cameras can be placed in a fixed location or can be portable to track the child’s activity. In addition, it is essential to consider adequate lighting within the classroom environment to render the captured image clear and sharp. In addition, the data generated on the tablets through writing helps data acquisition.
The Table 1 presents the characteristics collected by tablets and cameras about muscle tension and lack of coordination in writing. These features include typing speed, slant, irregular word spacing, typing duration, stroke direction, and other relevant parameters. These data allow us to identify potential problems related to muscle tension and lack of coordination in students at the time of writing. This information is helpful for early detection, addressing potential writing difficulties, and providing appropriate intervention to improve writing skills in affected students.

2.4.2. Data Analysis with AI

Once the handwriting data have been collected, they must be processed to detect abnormal patterns. For this, various signal processing and computer vision techniques were used. These data identify abnormal patterns that could indicate excessive muscle tension or lack of coordination. On the other hand, computer vision was used to analyze the images captured by cameras during the writing process. Through image processing techniques, movement and posture patterns that could indicate handwriting problems can be detected [24]. Machine learning is used to train models that can identify abnormal patterns in children’s writing. Through classification and regression techniques, specific patterns can be detected that indicate problems with muscle tension or lack of coordination. Once the models are trained, they can see these patterns in real time and provide immediate feedback to children to improve their writing.
Figure 2 shows the flowchart considered for the design of the data analysis model, in which an image classification and processing algorithm are used. Data collection: The process begins with data collection as children write, including information about their posture, movement, rhythm, etc. Data that are collected through cameras undergo a series of pre-processing techniques to improve data quality [25]. For example, filters were applied to remove noise from the signal, normalize the data to be on a standard scale, etc. In the next phase, the relevant characteristics for the analysis are extracted. These characteristics are writing frequency, writing pressure, and writing speed. Once the relevant factors have been removed, these are analyzed to detect abnormal patterns in the children’s writing. Machine learning techniques, such as classification or regression algorithms, are used to identify abnormal patterns.
Write frequency refers to the number of times an act of writing is performed in each period. For example, if a student performs ten writing acts in one minute, the writing frequency would be ten writings per minute. As for the duration of the breaks, it refers to the time the student takes between each act of writing. For example, if a student performs an act of writing, takes a 5 s pause, and then performs another act of writing, the break would be 5 s.
These parameters are relevant to assess the rhythm and fluency of writing. For example, the frequency of writing can indicate how quickly the student can perform acts of writing, while the length of the breaks can reveal the pause or interruption in the writing flow. Both tablets and cameras can collect these data and are part of the comprehensive assessment of students’ writing skills.
The test data set must be large and diverse enough to represent a variety of children’s writing patterns and conditions. Finally, the algorithm is run on the test data set, and its ability to detect abnormal patterns in children’s handwriting is evaluated.

2.4.3. Set Speed Thresholds

To establish the speed thresholds, it is necessary to calculate the writing speed from the data considering the duration and length of children’s writing strokes [26]. The data of 10 writing strokes of children between 7 and 11 were considered for the calculation. Data include stroke duration in seconds and stroke length in mm. Table 2 shows the time and distance of writing strokes. In this, the writing strokes vary between 0.4 s and 1.2 s. The sizes of the writing strokes vary between 4.7 mm and 11.5 mm. The shortest writing strokes have a duration of 0.4 s and a length of 4.7 mm, while the most extended strokes have a time of 1.2 s and 11.5 mm.
The writing speed is calculated by dividing the length of the stroke by the duration of the stroke, obtaining values in mm/s. The writing speed varies between 8.5 mm/s and 11.75 mm/s. The slower writing strokes have a writing speed of 8.5 mm/s, while the faster writing strokes have a rate of 11.75 mm/s. This write speed calculation is essential for establishing write speed thresholds based on descriptive statistics. Writing speed is critical in assessing children’s writing and can help identify abnormal patterns or problems in developing writing skills.
The write speed threshold was set based on several factors. First, it was based on the existing literature that has reported on the writing speed of children of different ages and levels of handwriting ability. In addition, the ease of execution of the handwriting movements for the children was considered, and the threshold was set at a level considered achievable for most children of the age and ability included in the study. The children’s typing speed also evaluated the algorithm’s success rate, and the threshold was adjusted accordingly to maximize the algorithm’s accuracy.
Based on the data in the write speed calculation table, write speed thresholds can be set to identify abnormal traces. These thresholds can be determined by using descriptive statistics, such as the mean (average) and standard deviation of the data. For example, the low write speed threshold is set to mean write speed minus one standard deviation. This represents a significantly lower-than-average write speed, which may indicate slow or poor writing. For instance, if the mean write speed is 10 mm/s and the standard deviation is 0.5 mm/s, the low write speed threshold could be set to 9.5 mm/s.
To set the high write speed threshold is set as the mean of the write speed plus one standard deviation. This represents a significantly higher-than-average write speed, which may indicate fast or atypical writing. If the mean write speed is 10 mm/s and the standard deviation is 0.5 mm/s, the high write speed threshold could be set to 10.5 mm/s. These write speed thresholds are then used to identify abnormal strokes in the children’s handwriting or accurate data. For example, if a child’s handwriting stroke’s writing speed is below the low or above the high, it could indicate an abnormal handwriting stroke that requires further evaluation or follow-up. It is essential to adjust and optimize these thresholds based on the specific data and the context of the study or assessment of writing in children.

2.4.4. Apply Thresholds and Detect Abnormal Traces

To apply the write speed thresholds that were previously established in a data set to detect abnormal traces, the data in Table 3 are shown with parameters such as write speed in mm/s.
With previously established write speed, thresholds are applied to the data to identify abnormal traces, as presented in Table 4.
  • Low write speed threshold: 9.5 mm/s
  • High write speed threshold: 10.5 mm/s
In the table, traces G, H, and J are identified as abnormal, as their write speed is below the low write speed threshold of 9.5 mm/s or above the high write speed threshold of 10.5 mm/s. The other strokes are not abnormal since their writing speed is within the established ranges. However, it is essential to consider that determining deviant strokes or applying writing speed thresholds may vary depending on the context and the population under study. Once abnormal tracings are identified, further analysis can be performed to investigate the possible causes of these abnormalities, such as motor problems, neuromuscular deficits, or cognitive dysfunction.

2.4.5. Statistical Analysis

To evaluate the algorithm for detecting abnormal patterns in writing in children, several parameters are involved depending on the specific nature of the algorithm and the data used. The parameter that is considered to measure the efficiency of this proposal is precision; this is an indicator of the proportion of correct predictions compared to the total number of predictions made [27]. This is calculated as the quotient between the number of accurate predictions and the total number of predictions. Sensitivity is the algorithm’s ability to detect abnormal patterns, while specificity refers to the algorithm’s ability to identify typical patterns correctly. These parameters are essential in assessing whether the proper balance between sensitivity and specificity is desirable. The positive predictive value is the proportion of true positives compared to the total optimistic predictions. In contrast, the negative predictive value is the proportion of true negatives compared to the full pessimistic predictions. These parameters are essential to understand the ability of the algorithm to form accurate predictions in the positive and negative classes.
Another important parameter for evaluation is the receiver operating characteristic (ROC) curve, which is a graphical representation of the sensitivity versus the specificity of the algorithm at various classification thresholds. It allows for evaluation of the algorithm’s performance over a range of points and selection of the optimal topic that balances sensitivity and specificity [28]. Cross-validation is a technique that allows evaluation of the algorithm’s performance in various data sets, which helps to estimate the generalization capacity of the algorithm. It can be used to split the data into training and test sets or perform k-fold cross-validation to better assess the algorithm’s performance. Depending on the specific nature of the problem of detecting abnormal patterns in children’s writing, there may be additional relevant metrics. For example, if it is a binary classification problem, precision, F1-score, accuracy, or area under the ROC curve, among others, can be used. The equations that are used for these parameters are:
Accuracy = ( T P + T N ) ( T P + T N + F P + F N )
Recall = T P ( T P + F N )
Specificity = T N ( T N + F P )
Positive Predictive Value = T P ( T P + F P )
Negative Predictive Value = T N T N + F N
In the evaluation, it is essential to select the appropriate metrics based on the specific problem and the available data and consider the results together to obtain a complete review of the performance of the algorithm; in Figure 3, the flow chart used for the process is presented for an algorithm evaluation [29]. In addition, it is essential to consider that the review of algorithms for detecting abnormal patterns in children must be carried out in collaboration with professionals who are specialized in writing and child development.
The evaluation process begins with dividing the data set into training and test sets: one to train the algorithm and the other to evaluate its performance (test assigned). This division allows evaluation of how the algorithm generalizes to previously unseen data. In the next phase, the algorithm is trained by using the training set, which contains examples of writing in children with normal and abnormal patterns. During training, the algorithm learns to detect un-natural patterns in children’s handwriting [30]. Once trained, the algorithm is used to generate predictions on the test set, which contains examples of writing in children that were not used during training. Finally, the algorithm predicts whether each documented instance in the test set has abnormal patterns.
Next, several evaluation metrics are calculated to measure the algorithm’s performance in detecting abnormal patterns in children’s writing. These metrics include precision, sensitivity, specificity, positive predictive value, negative predictive value, and ROC curve [31]. These metrics provide a quantitative measure of the algorithm’s performance in detecting abnormal patterns in children’s handwriting. In addition, cross-validation can be performed, which involves dividing the data set into k subsets (k-fold cross-validation), training and evaluating the algorithm on each subset, and averaging the evaluation results. This helps obtain a more robust and reliable evaluation of the algorithm’s performance. Finally, the results are presented, and the algorithm is adjusted if necessary.

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.

5. Conclusions

The results show that the algorithm used to detect abnormal patterns in children’s writing was adequate, with a detection accuracy of 95% when comparing the camera data with the detected abnormal patterns. This indicates that the algorithm is a reliable and accurate tool for identifying abnormal patterns in children’s writing, which is essential for early and appropriate intervention. However, it has been determined that the results obtained are limited since the numbers of children in the different age groups are low to draw a general conclusion about the method’s performance in each age group. In addition, the false cases may be concentrated mainly in one group, which could affect the overall results. Therefore, more data and analysis are needed to draw more precise conclusions about the method’s performance in different age groups.
The feedback provided to the children and teachers on the data from the camera and the abnormal patterns that were detected turned out to be an effective strategy for improving the student’s writing skills. The possibility of having real-time information about their writing and adjusting correctly meant that abnormal patterns can significantly impact the awareness and improvement of children’s writing skills, highlighting the importance of feedback in the process of intervention. Follow-up results from the study showed a 30% improvement in writing skills in children who received intervention based on the abnormal patterns detected by the algorithm. This indicates that early detection and appropriate intervention can positively impact affected children’s writing skills, reinforcing the algorithm’s usefulness and effectiveness in the intervention process.
The camera-based handwriting verification algorithm’s application for detecting abnormal patterns in children’s handwriting has important implications for special education and occupational therapy. Early detection of abnormal patterns in writing may allow education and occupational therapy professionals to intervene early and tailor to the needs of each student, which may improve the effectiveness of the intervention and facilitate progress in writing skills. However, it is essential to note that the study has some limitations. For example, the sample of students tested was limited, and the results may not be generalizable to other populations. In addition, the study relied on a unique camera-based handwriting verification algorithm, so it is essential to consider various approaches and technologies for abnormal handwriting pattern detection in future research.
The application of a camera-based handwriting verification algorithm raises ethical and privacy concerns. It is essential to protect student data, ensuring it is obtained and used ethically and legally. Therefore, obtaining informed consent from students and parents or guardians is necessary before using camera-based handwriting verification technology and ensuring compliance with applicable privacy policies and regulations. It is important to note that the success rate of our dysgraphia detection method has not been validated by using a standardized dysgraphia assessment. Therefore, future studies are needed to validate and improve our process by using standardized rating scales to compare results and establish a more accurate success rate.

Author Contributions

Conceptualization, W.V.-C. and I.U.-C.; methodology, W.V.-C.; software, J.G.-O.; validation, I.U.-C.; formal analysis, W.V.-C.; investigation, J.G.-O.; data curation, W.V.-C. and I.U.-C.; writing—original draft preparation, J.G.-O.; writing—review and editing, J.G.-O.; visualization, J.G.-O.; supervision, W.V.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

This research study uses data that have already been collected and anonymized so that participants cannot be identified; therefore, ethical review and approval are considered waived.

Informed Consent Statement

Informed consent was obtained from the students who participated in the study; however, the work does not present data that allow the identification of the participants. In the same way, images or photographs that include personal data were omitted.

Data Availability Statement

The source code is available after direct contact with the author.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

During the development of the software used in the study, various libraries were used to facilitate the processing, analysis, and visualization of the collected data. The main libraries that were used are described in detail below:
PyDWT (Python Discrete Wavelet Transform):
  • Purpose: This library performed Discrete Wavelet Transform (DWT) on the collected write signals.
  • Description: PyDWT is a Python library that provides tools for performing wavelet analysis on data. It rendered it possible to extract relevant characteristics of the writing signals, such as speed, inclination, spacing between words, and direction of the strokes.
  • OpenCV (Open-Source Computer Vision Library):
  • Purpose: OpenCV was used to process images and videos captured by cameras.
  • Description: OpenCV is a widely used computer vision library that provides various functions and algorithms for image and video processing. In the context of this study, it was used to analyze visual data and detect abnormal patterns in children’s writing.
  • NumPy:
  • Purpose: NumPy was used to perform calculations and numerical manipulations on the collected data.
  • Description: NumPy is an entire Python library for number processing. It provides an efficient data structure and tools for mathematical operations, matrices, and vector manipulations. In the study, NumPy facilitated the analysis of the collected data and the extraction of relevant features.
  • Pandas:
  • Purpose: Pandas were used to organize and manipulate the collected data.
  • Description: Pandas is a Python library used for data analysis and the manipulation of tabular data structures. It provides flexible and efficient data structures, such as DataFrames, allowing you to organize and manipulate data conveniently. In the study, Pandas rendered it easy to manage and process the collected data.
  • Matplotlib:
  • Purpose: Matplotlib was used to generate plots and visualizations of the study results.
  • Description: Matplotlib is a Python data visualization library that allows you to create static plots, interactive plots, and custom visualizations. In the study context, Matplotlib was used to visualize the analysis results of the collected data, rendering it easier to understand and present the findings.

References

  1. Cao, M.; Gu, T.; Jin, C.; Li, X.; Jing, J. Sugar-Sweetened Beverage Intake and Motor Function Among Autistic and Typically Developed Children. Front. Nutr. 2022, 9, 905025. [Google Scholar] [CrossRef] [PubMed]
  2. Al-Mukdad, S. Investigating English Academic Writing Problems Encountered by Arab International University Students. Theory Pract. Lang. Stud. 2019, 9, 300–306. [Google Scholar] [CrossRef] [Green Version]
  3. Younes, Z.B.; Albalawi, F.S. Exploring the Most Common Types of Writing Problems among English Language and Translation Major Sophomore Female Students at Tabuk University. Asian J. Basic Appl. Sci. 2015, 3, 7–26. [Google Scholar]
  4. Benchekri, A.; Fradet, L.; Tisserand, R.; Bidet-Ildei, C.; Bidet, C. Fine Morphocinetic Motions in ASD Children: Effect of Writing Amplitude on the Isochrony Principle; HAL (Hyper articles en ligne): Montpellier, France, 2021. [Google Scholar]
  5. Afrin, S. Writing Problems of Non-English Major Undergraduate Students in Bangladesh: An Observation. Open J. Soc. Sci. 2016, 4, 104–115. [Google Scholar] [CrossRef] [Green Version]
  6. Nagy, W.; Berninger, V.W.; Abbott, R.D. Contributions of Morphology beyond Phonology to Literacy Outcomes of Upper Elementary and Middle-School Students. J. Educ. Psychol. 2006, 98, 134. [Google Scholar] [CrossRef] [Green Version]
  7. Maeland, A.F. Handwriting and Perceptual-Motor Skills in Clumsy, Dysgraphic, and ‘Normal’ Children. Percept. Mot. Ski. 1992, 75, 1207–1217. [Google Scholar] [CrossRef] [Green Version]
  8. Smits-Engelsman, B.C.M.; Van Galen, G.P. Dysgraphia in Children: Lasting Psychomotor Deficiency or Transient Developmental Delay? J. Exp. Child. Psychol. 1997, 67, 164–184. [Google Scholar] [CrossRef] [Green Version]
  9. Hopcan, S.; Tokel, S.T. Exploring the Effectiveness of a Mobile Writing Application for Supporting Handwriting Acquisition of Students with Dysgraphia. Educ. Inf. Technol. 2021, 26, 3967–4002. [Google Scholar] [CrossRef]
  10. Chang, S.H.; Yu, N.Y. Characterization of Motor Control in Handwriting Difficulties in Children with or without Developmental Coordination Disorder. Dev. Med. Child. Neurol. 2010, 52, 244–250. [Google Scholar] [CrossRef]
  11. Asher, A.V. Handwriting Instruction in Elementary Schools. Am. J. Occup. Ther. 2006, 60, 461–471. [Google Scholar] [CrossRef] [Green Version]
  12. Adams, A.M.; Simmons, F.R. Exploring Individual and Gender Differences in Early Writing Performance. Read. Writ. 2019, 32, 235–263. [Google Scholar] [CrossRef] [Green Version]
  13. Dionne, E.; Bolduc, M.È.; Majnemer, A.; Beauchamp, M.H.; Brossard-Racine, M. Academic Challenges in Developmental Coordination Disorder: A Systematic Review and Meta-Analysis. Phys. Occup. Ther. Pediatr. 2023, 43, 34–57. [Google Scholar] [CrossRef] [PubMed]
  14. Davies, S.; Lucas, A.; Ricolfe-Viala, C.; Di Nuovo, A. A Database for Learning Numbers by Visual Finger Recognition in Developmental Neuro-Robotics. Front. Neurorobot. 2021, 15, 619504. [Google Scholar] [CrossRef] [PubMed]
  15. Wu, Z.; Lin, T.; Li, M. Automated Detection of Children at Risk of Chinese Handwriting Difficulties Using Handwriting Process Information: An Exploratory Study. IEICE Trans. Inf. Syst. 2019, 102, 147–155. [Google Scholar] [CrossRef] [Green Version]
  16. Kushki, A.; Schwellnus, H.; Ilyas, F.; Chau, T. Changes in Kinetics and Kinematics of Handwriting during a Prolonged Writing Task in Children with and without Dysgraphia. Res. Dev. Disabil. 2011, 32, 1058–1064. [Google Scholar] [CrossRef] [PubMed]
  17. Park, W.; Babushkin, V.; Tahir, S.; Eid, M. Haptic Guidance to Support Handwriting for Children with Cognitive and Fine Motor Delays. IEEE Trans. Haptics 2021, 14, 626–634. [Google Scholar] [CrossRef]
  18. Kunhoth, J.; Al Maadeed, S.; Saleh, M.; Akbari, Y. Exploration and Analysis of On-Surface and In-Air Handwriting Attributes to Improve Dysgraphia Disorder Diagnosis in Children Based on Machine Learning Methods. Biomed. Signal Process. Control 2023, 83, 104715. [Google Scholar] [CrossRef]
  19. Kloska, M.; Grmanova, G.; Rozinajova, V. Expert Enhanced Dynamic Time Warping Based Anomaly Detection. Expert Syst. Appl. 2023, 225, 120030. [Google Scholar] [CrossRef]
  20. Mekyska, J.; Faundez-Zanuy, M.; Mzourek, Z.; Galaz, Z.; Smekal, Z.; Rosenblum, S. Identification and Rating of Developmental Dysgraphia by Handwriting Analysis. IEEE Trans. Hum. Mach. Syst. 2017, 47, 235–248. [Google Scholar] [CrossRef]
  21. Faundez-Zanuy, M.; Fierrez, J.; Ferrer, M.A.; Diaz, M.; Tolosana, R.; Plamondon, R. Handwriting Biometrics: Applications and Future Trends in e-Security and e-Health. Cogn. Comput. 2020, 12, 940–953. [Google Scholar] [CrossRef]
  22. Dimauro, G.; Bevilacqua, V.; Colizzi, L.; Di Pierro, D. TestGraphia, a Software System for the Early Diagnosis of Dysgraphia. IEEE Access 2020, 8, 19564–19575. [Google Scholar] [CrossRef]
  23. Lopez, C.; Hemimou, C.; Golse, B.; Vaivre-Douret, L. Developmental Dysgraphia Is Often Associated with Minor Neurological Dysfunction in Children with Developmental Coordination Disorder (DCD). Neurophysiol. Clin. 2018, 48, 207–217. [Google Scholar] [CrossRef] [PubMed]
  24. Knickenberg, M.; Zurbriggen, C.L.A.; Venetz, M.; Schwab, S.; Gebhardt, M. Assessing Dimensions of Inclusion from Students’ Perspective–Measurement Invariance across Students with Learning Disabilities in Different Educational Settings. Eur. J. Spec. Needs Educ. 2020, 35, 287–302. [Google Scholar] [CrossRef]
  25. Lomurno, E.; Dui, L.G.; Gatto, M.; Bollettino, M.; Matteucci, M.; Ferrante, S. Deep Learning and Procrustes Analysis for Early Dysgraphia Risk Detection with a Tablet Application. Life 2023, 13, 598. [Google Scholar] [CrossRef] [PubMed]
  26. Wu, X.; Liu, Y.; Zhang, C.; Qi, H.; Jacques, S. Implementation of a Fusion Classification Model for Efficient Pen-Holding Posture Detection. Electronics 2023, 12, 2208. [Google Scholar] [CrossRef]
  27. Deuel, R.K. Developmental Dysgraphia and Motor Skills Disorders. J. Child. Neurol. 1995, 10, S6–S8. [Google Scholar] [CrossRef] [PubMed]
  28. Isa, I.S.; Syazwani Rahimi, W.N.; Ramlan, S.A.; Sulaiman, S.N. Automated Detection of Dyslexia Symptom Based on Handwriting Image for Primary School Children. Procedia Comput. Sci. 2019, 163, 440–449. [Google Scholar] [CrossRef]
  29. Kunhoth, J.; Al-Maadeed, S.; Kunhoth, S.; Akbari, Y. Automated Systems for Diagnosis of Dysgraphia in Children: A Survey and Novel Framework. arXiv 2022, arXiv:2206.13043. [Google Scholar]
  30. Sari, Y.I.; Sumarmi; Utomo, D.H.; Astina, I.K. The Effect of Problem Based Learning on Problem Solving and Scientific Writing Skills. Int. J. Instr. 2021, 14, 11–26. [Google Scholar] [CrossRef]
  31. Toba, R.; Noor, W.N.; Sanu, L.O. The Current Issues of Indonesian EFL Students’ Writing Skills: Ability, Problem, and Reason in Writing Comparison and Contrast Essay. Din. Ilmu 2019, 19, 57–73. [Google Scholar] [CrossRef] [Green Version]
  32. Beltran-Hernandez, J.G.; Ruiz-Pinales, J.; Lopez-Rodriguez, P.; Lopez-Ramirez, J.L.; Avina-Cervantes, J.G. Multi-Stroke Handwriting Character Recognition Based on SEMG Using Convolutional-Recurrent Neural Networks. Math. Biosci. Eng. 2020, 17, 5432–5448. [Google Scholar] [CrossRef]
  33. Al-Seyabi, F.; Tuzlukova, V. Writing Problems and Strategies: An Investigative Study in the Omani School and University Context. Aisian J. Soc. Sci. Humanit. 2014, 3, 37–48. [Google Scholar]
  34. Sari, M.K. An Analysis of Students’ Problem in Writing Recount Text. J. Educ. 2017, 2, 14–21. [Google Scholar] [CrossRef]
  35. Bagheri, M.S.; Riasati, M.J. Efl Graduate Students’ Ielts Writing Problems and Students’ and Teachers’ Beliefs and Suggestions Regarding Writing Skill Improvement. J. Lang. Teach. Res. 2016, 7, 198. [Google Scholar] [CrossRef] [Green Version]
  36. Yang, A.; Stockwell, S.; McDonnell, L. Writing in Your Own Voice: An Intervention That Reduces Plagiarism and Common Writing Problems in Students’ Scientific Writing. Biochem. Mol. Biol. Educ. 2019, 47, 589–598. [Google Scholar] [CrossRef]
  37. Kurowski, M.; Sroczyński, A.; Bogdanis, G.; Czyżewski, A. An Automated Method for Biometric Handwritten Signature Authentication Employing Neural Networks. Electronics 2021, 10, 456. [Google Scholar] [CrossRef]
  38. Zakraoui, J.; Saleh, M.; Al-Maadeed, S.; AlJa’am, J.M. A Study of Children Emotion and Their Performance While Handwriting Arabic Characters Using a Haptic Device. Educ. Inf. Technol. 2023, 28, 1783–1808. [Google Scholar] [CrossRef]
Figure 1. Flowchart with the steps for the identification of abnormal patterns in children’s handwriting.
Figure 1. Flowchart with the steps for the identification of abnormal patterns in children’s handwriting.
Informatics 10 00052 g001
Figure 2. Flowchart for the evaluation of abnormal pattern identification systems in children’s handwriting.
Figure 2. Flowchart for the evaluation of abnormal pattern identification systems in children’s handwriting.
Informatics 10 00052 g002
Figure 3. Flowchart for the statistical analysis of the results of the identification systems of abnormal patterns in children’s handwriting.
Figure 3. Flowchart for the statistical analysis of the results of the identification systems of abnormal patterns in children’s handwriting.
Informatics 10 00052 g003
Figure 4. Handwriting classification ROC curve.
Figure 4. Handwriting classification ROC curve.
Informatics 10 00052 g004
Table 1. Characteristics collected by the tablets and the camera related to muscle tension and lack of coordination.
Table 1. Characteristics collected by the tablets and the camera related to muscle tension and lack of coordination.
CharacteristicRelated withCollection Method
Write speedMuscle tension, lack of coordinationTablets
Writing tiltMuscle tension, lack of coordinationTablets, camera
Irregular spacing between wordsLack of coordinationTablets, camera
Pen pressureMuscle tensionTablets
Write durationMuscle tensionTablets, camera
The direction of the strokesLack of coordinationTablets, camera
Other relevant parametersMuscle tension, lack of coordinationTablets, camera
Table 2. Table with calculation of writing speed.
Table 2. Table with calculation of writing speed.
StreakDuration (s)Length (mm)Speed (mm/s)
10.55.611.2
20.87.99.875
31.210.28.5
40.66.811.333
51.08.58.5
60.77.110.143
70.99.310.333
80.44.711.75
91.111.510.455
100.87.89.75
Table 3. Writing speed data table in mm/s for a group of children.
Table 3. Writing speed data table in mm/s for a group of children.
ChildStrokeDuration (s)Length (mm)Writing Speed (mm/s)
1A0.81012.5
2B1.21210
3C0.9910
4D1.51510
5E0.7811.4
6F0.5510
7G188
8H1.31813.8
9I1.11110
10J0.977.8
Table 4. Application of thresholds to identify abnormal traces.
Table 4. Application of thresholds to identify abnormal traces.
ChildStrokeDuration (s)Length (mm)Writing Speed (mm/s)Abnormal
1A0.81012.5No
2B1.21210No
3C0.9910No
4D1.51510No
5E0.7811.4No
6F0.5510No
7G188Yes
8H1.31813.8Yes
9I1.11110No
10J0.977.8Yes
Table 5. Descriptive data of the population considered in the study.
Table 5. Descriptive data of the population considered in the study.
Age of the ParticipantsNumber of ParticipantsPercentage
7–9 years1521%
9–10 years3144%
10–11 years2535%
Total71100%
Table 6. Results obtained from the evaluation of parameters in the recognition of problems.
Table 6. Results obtained from the evaluation of parameters in the recognition of problems.
ResultAmount
Writing samples processed210
Writing samples with abnormal patterns detected42
Percentage of writing pieces with abnormal patterns detected8.40%
Types of abnormal patterns detectedDelayed writing speed, Excessive pen pressure, Irregular slant, Lack of word spacing
Distribution by school grade of the samples with detected abnormal patterns
  • 1st grade
8
  • 2nd grade
12
  • Grade 3
10
  • 4th grade
7
  • 5th grade
5
Percentage of agreement between abnormal patterns detected by the algorithm and teacher observations85%
Number of children referred to exceptional education specialists or occupational therapists for intervention36
Follow-up results30% improvement in writing skills in children who received the intervention
Additional data obtained from the camera
Average write time1.5 s per word
Average pen pressure45 g
Average pencil tilt12 degrees
The average spacing between words1.2 cm
Comparison of camera data with abnormal patterns detected by the algorithm to confirm detection accuracy95%
Feedback was provided to children and teachers on camera data and abnormal patterns detectedYes
Table 7. Results obtained from the evaluation of the abnormal patterns in children’s handwriting identification algorithm.
Table 7. Results obtained from the evaluation of the abnormal patterns in children’s handwriting identification algorithm.
MetricsValue
Sample used210 samples
Accuracy92%
Sensitivity85%
Specificity96%
Positive predictive value89%
Negative predictive value95%
F1-Score0.87
Area under the ROC curve0.92
False positive rate4%
False Negative Rate15%
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

Villegas-Ch, W.; Urbina-Camacho, I.; García-Ortiz, J. Detection of Abnormal Patterns in Children’s Handwriting by Using an Artificial-Intelligence-Based Method. Informatics 2023, 10, 52. https://0-doi-org.brum.beds.ac.uk/10.3390/informatics10020052

AMA Style

Villegas-Ch W, Urbina-Camacho I, García-Ortiz J. Detection of Abnormal Patterns in Children’s Handwriting by Using an Artificial-Intelligence-Based Method. Informatics. 2023; 10(2):52. https://0-doi-org.brum.beds.ac.uk/10.3390/informatics10020052

Chicago/Turabian Style

Villegas-Ch, William, Isabel Urbina-Camacho, and Joselin García-Ortiz. 2023. "Detection of Abnormal Patterns in Children’s Handwriting by Using an Artificial-Intelligence-Based Method" Informatics 10, no. 2: 52. https://0-doi-org.brum.beds.ac.uk/10.3390/informatics10020052

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop