Video writing brush holding posture identification technology based on deep learning

By embedding the CA coordinate attention module and AFPN feature pyramid network in the YOLOv8n model, the detection accuracy and real-time problems in brush calligraphy detection are solved, efficient and accurate pen holding posture recognition is achieved, and the quality and efficiency of calligraphy teaching are improved.

CN118609218APending Publication Date: 2024-09-06BEIJING NORTH INTELLIGENT MAP INFORMATION TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410793489.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing computer vision technology has the problem of reduced detection accuracy and real-time performance in the detection of brush holding postures in calligraphy. In particular, due to factors such as the complexity of the details of the pen holding postures, background diversity, and lighting changes, the detection results are poor.

Method used

Adopt deep learning-based video brush holding gesture recognition technology, use the YOLOv8n model combined with the CA coordinate attention module and AFPN feature pyramid network to improve the model's recognition ability of pen holding gestures, and improve detection accuracy and robustness through large image data set training Great sex.

Benefits of technology

Significantly improve the detection accuracy, improve the model's recognition ability and robustness in complex backgrounds, optimize the operating efficiency, ensure real-time and detection accuracy, reduce the false detection rate, and achieve efficient pen holding gesture recognition .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609218A
    Figure CN118609218A
Patent Text Reader

Abstract

The invention discloses a video writing brush holding posture identification technology based on deep learning, and the technology comprises a camera which is used for obtaining the image information of a writing brush holding motion and posture; the writing evaluation system is used for comparing the image information acquired by the camera with an image sample in a pre-constructed data set and evaluating the pen holding action and posture; the writing evaluation display subsystem is used for displaying a standard font, a writer font and an evaluation result; according to the writing evaluation system, a YOLOv8n model backbone network part adopts a Darknet-53 framework, a CA coordinate attention module is embedded, a YOLOv8 target detection model is improved by integrating a CA coordinate attention mechanism and adopting a progressive feature pyramid network AFPN, and therefore the accuracy and robustness of writing brush holding posture detection are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of learning auxiliary equipment, and specifically to a video writing brush holding posture recognition technology based on deep learning. Background Art

[0002] With the rapid development of artificial intelligence and machine vision technology, target detection technology has been widely used in various fields. In the field of calligraphy education, real-time and accurate detection of brush holding posture is of great significance to improving the quality and efficiency of calligraphy teaching. However, in the existing computer vision and calligraphy education fields, there is no efficient and accurate brush holding posture detection technology, especially for the rich details, diversity and high real-time requirements of brush calligraphy holding posture. Although the current general target detection algorithms such as the YOLO series perform well in many application scenarios, when processing specific brush calligraphy scenarios, the complexity of the details of the holding posture, background diversity, lighting changes, and dynamic hand movements may cause a decrease in detection accuracy and real-time performance.

[0003] The Chinese patent "CN114801552A Intelligent Brush Writing and Evaluation System and Application Method" provides an innovative intelligent writing device and writing evaluation system for beginners of Chinese calligraphy. The system can monitor and guide the pen holding posture in real time, and provide intuitive pen holding correction feedback to beginners through the verticality indicator light on the pen holder. At the same time, the intelligent brush is also equipped with a battery compartment and related electronic modules to support the posture detection function. In addition, the writing evaluation system uses a visual method to compare the pen strokes of the picture outlines of the standard font and the beginner font, and gives the beginner's writing pen stroke evaluation based on the comparison results.

[0004] However, since the system integrates multiple electronic modules, it may increase product costs and make maintenance more difficult. In addition, the smart brush requires power support, and the battery life and convenience of replacement may affect the user experience.

[0005] To this end, a video brush holding posture recognition technology based on deep learning is proposed. Summary of the invention

[0006] The purpose of the present invention is to provide a video brush holding posture recognition technology based on deep learning to solve the problems raised in the above-mentioned background technology.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a video writing brush holding posture recognition technology based on deep learning, comprising: a camera, used to obtain image information of writing brush holding action and posture; a writing evaluation system, which compares the image information obtained by the camera with the image samples in a pre-constructed data set to evaluate the writing brush holding action and posture; a writing evaluation display subsystem, used to display the standard font, the writer's font and the evaluation results; wherein, the writing evaluation system adopts the YOLOv8n model, and the backbone network (Backbone), neck (Neck), and detection head (Head) are composed of three parts. The backbone network part adopts the Darknet-53 framework, which mainly extracts features of the input image, the neck part mainly integrates and enhances the extracted features, and the detection head part is mainly responsible for predicting the position and category information of the target, and the CA coordinate attention module is embedded in the backbone network structure.

[0008] According to the above technical solution, the CA coordinate attention module uses the coordinate attention mechanism to strengthen the model's learning of key hand features in the image, captures and highlights the key information of the pen-holding gesture based on the rich details of the brush holding posture, and suppresses the interference of irrelevant background information, thereby improving the model's ability to recognize pen-holding gestures in complex backgrounds.

[0009] According to the above technical solution, the YOLOv8n model neck adopts the Advanced Feature Pyramid Network (AFPN).

[0010] According to the above technical solution, AFPN constructs a multi-scale feature pyramid from top to bottom and gradually integrates feature information of different resolutions.

[0011] According to the above technical solution, the data set contains a large-scale image data set of 12 typical brush holding posture types, with a total of 20,651 image samples. The data set covers various situations such as various angles, pen holding strength, and degree of finger bending.

[0012] According to the above technical solution, the camera is used to collect real-time video of calligraphy writing, and the YOLOv8 model detects the video in real time and locates the hand area, and further identifies the pen holding posture category.

[0013] Compared with the prior art, the beneficial effects achieved by the present invention are: the present invention has achieved significant improvement in the field of brush holding posture detection, which is mainly reflected in the following aspects:

[0014] 1. Significantly improved detection accuracy: By embedding the CA coordinate attention mechanism in the YOLOv8 backbone network, the present invention effectively improves the model's ability to extract key hand features and improves the recognition accuracy of brush holding posture details. Experimental verification shows that the mean average precision (mAP@0.5) of the improved YOLOv8 model in the pen holding posture detection task is 2.8% higher than that of the original model, reaching 93.7%, demonstrating extremely high detection accuracy.

[0015] 2. Enhanced robustness and generalization ability: By introducing the AFPN progressive feature pyramid network to replace the original PAN structure, the present invention improves the model's pen-holding posture detection stability under different backgrounds and lighting conditions, and enhances the model's adaptability to individual differences. Even in the face of complex real-world writing environments, the improved YOLOv8 model can still maintain high accuracy, reduce the false detection rate, and achieve stable and reliable pen-holding posture recognition under various conditions.

[0016] 3. Operation efficiency optimization: While ensuring detection accuracy, the present invention focuses on optimizing operation efficiency, so that the improved YOLOv8 model can achieve a significant increase in detection efficiency while maintaining real-time performance, that is, the number of frames per second (FPS) remains unchanged or even increases. This ensures the accuracy and stability of pen-holding posture detection, demonstrating the good balance achieved by the present invention between processing speed and detection performance.

[0017] To sum up, through technological innovation, the present invention has achieved the acceleration of data processing speed, the improvement of detection accuracy and the improvement of resource utilization in the field of brush holding posture detection. At the same time, it also embodies good adaptability and ease of use, which helps to reduce the labor intensity in calligraphy teaching, promote the improvement of teaching quality and the modernization of calligraphy education. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0019] Figure 1 It is a schematic diagram of the data set construction process of the present invention;

[0020] Figure 2 It is a schematic diagram of the YOLOv8 structure of the present invention;

[0021] Figure 3 It is a schematic diagram of the AFPN network structure of the present invention; DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1-3 The present invention provides a technical solution: a video brush holding posture recognition technology based on deep learning, comprising: a camera for acquiring image information of the pen holding action and posture, the camera can be hidden inside the paperweight, or a separate camera can be set to shoot the pen holding posture and pen holding action during writing; a writing evaluation system, which compares the image information acquired by the camera with the image samples in the pre-constructed data set to evaluate the pen holding action and posture; a writing evaluation display subsystem, which is used to display the standard font, the writer's font and the evaluation result;

[0024] Among them, the writing evaluation system adopts the YOLOv8n model, which consists of the backbone network (Backbone), neck (Neck), and detection head (Head). The backbone network part adopts the Darknet-53 framework, which mainly extracts features from the input image. The neck part mainly integrates and enhances the extracted features. The detection head part is mainly responsible for predicting the location and category information of the target. The CA coordinate attention module is embedded in the backbone network structure;

[0025] Specifically, the CA mechanism uses the coordinate attention mechanism to strengthen the model's learning of key hand features in the image, especially for the rich details of the brush holding posture, which can effectively capture and highlight the key information of the pen holding gesture and suppress the interference of irrelevant background information, thereby improving the model's ability to recognize pen holding gestures in complex backgrounds and improving the accuracy and stability of detection.

[0026] Specifically, the YOLOv8n model adopts the Advanced Feature Pyramid Network (AFPN) at the neck, abandoning the original Path Aggregation Network (PAN) structure.

[0027] Specifically, AFPN builds a multi-scale feature pyramid from top to bottom and gradually integrates feature information of different resolutions, which not only ensures the understanding of global semantics, but also strengthens the expression of local details, especially under different backgrounds and lighting conditions, improving the model's adaptability to individual pen-holding differences and the robustness and generalization ability of pen-holding posture detection. The improved YOLOv8 model structure is shown in the figure below: Figure 2As shown, the AFPN network structure diagram is as follows Figure 3 As shown;

[0028] Specifically, the dataset contains a large-scale image dataset of 12 typical brush holding postures, with a total of 20,651 image samples. The dataset covers a variety of different angles, pen holding strength, finger bending degree, etc., to fully reflect the diversity of pen holding postures. The specific dataset construction process is as follows: Figure 1 As shown in the figure, the improved YOLOv8 model is trained using a self-built pen-holding posture dataset. The loss function is iteratively optimized and the network weight parameters are adjusted to achieve the highest detection accuracy and the fastest real-time response speed.

[0029] Specifically, the camera is used to capture real-time video of calligraphy writing. The YOLOv8 model detects the video in real time and locates the hand area, and further identifies the pen-holding posture category. Once the pen-holding posture is identified, the system immediately gives feedback and provides correction suggestions for incorrect pen-holding posture.

[0030] Through comparative experiments, it is confirmed that after adding the CA attention mechanism and AFPN structure, the mAP value of the improved YOLOv8 model in the pen holding posture detection task has been significantly improved compared with the original YOLOv8, reaching 93.7%, while maintaining a high precision, recall rate and real-time performance, which is better than the existing YOLOv5n, YOLOv6n and YOLOv7-tiny algorithms.

[0031] When the present invention is used, the pen-holding action and posture are captured by a camera, and features of the input image are extracted through the YOLOv8n model. The extracted features are integrated and enhanced, and the position and category information of the target are predicted. The pen-holding posture and pen-holding action are identified, compared with the standard action posture in the data set, and an evaluation is given, which is displayed in the writing evaluation display subsystem.

[0032] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0033] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A video brush holding posture recognition technology based on deep learning, characterized by: include: A camera is used to obtain image information of pen holding movements and postures; A writing evaluation system, which compares the image information obtained by the camera with the image samples in a pre-constructed data set to evaluate the pen holding action and posture; A writing evaluation display subsystem, used to display the standard font, the writer's font and the evaluation results; Among them, the writing evaluation system adopts the YOLOv8n model, which consists of three parts: the backbone network (Backbone), the neck (Neck), and the detection head (Head). The backbone network part adopts the Darknet-53 framework, which mainly extracts features of the input image. The neck part mainly integrates and enhances the extracted features. The detection head part is mainly responsible for predicting the location and category information of the target. The CA coordinate attention module is embedded in the backbone network structure.

2. According to the deep learning-based video brush holding posture recognition technology of claim 1, it is characterized by: The CA coordinate attention module uses the coordinate attention mechanism to strengthen the model's learning of key hand features in the image. It captures and highlights the key information of the brush holding gesture based on the rich details of the brush holding posture, and suppresses the interference of irrelevant background information, thereby improving the model's ability to recognize pen holding gestures in complex backgrounds.

3. According to the deep learning-based video brush holding posture recognition technology of claim 2, it is characterized by: The YOLOv8n model neck adopts the Advanced Feature Pyramid Network AFPN (Advanced Feature Pyramid Network).

4. According to the deep learning-based video brush holding posture recognition technology of claim 3, it is characterized by: AFPN constructs a multi-scale feature pyramid from top to bottom and gradually integrates feature information of different resolutions.

5. According to the deep learning-based video brush holding posture recognition technology of claim 4, it is characterized by: The dataset contains a large-scale image dataset of 12 typical brush holding posture types, with a total of 20,651 image samples. The dataset covers various situations such as various angles, pen holding strength, and degree of finger bending.

6. The video brush holding posture recognition technology based on deep learning according to claim 5 is characterized by: The camera is used to capture real-time video of calligraphy writing. The YOLOv8 model detects the video in real time and locates the hand area, and further identifies the pen holding posture category.

Citation Information

Cited By

  • Pier crack detection method based on improved YOLOv8n

    CN121033027A

  • A pier crack detection method based on improved YOLOv8n

    CN121033027B

  • Visual inspection method for cleaning effect of precast concrete member mold

    CN121391861A