Piano playing posture and gesture recognition method and system based on RCF network

Through the piano playing posture and gesture recognition method based on the RCF network, the problem of low recognition accuracy of the traditional edge detection algorithm in piano playing posture and gesture recognition is solved. By constructing a rich training set and test set, a binary cross-entropy loss is set Function and back-propagation algorithm significantly improve the recognition accuracy and stability.

CN118644874APending Publication Date: 2024-09-13XIAMEN UNIV

Patent Information

Application Number
CN202410623791.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Traditional edge detection algorithms have problems with edge fragmentation, noise interference, and low recognition accuracy in piano playing posture and gesture recognition. It is difficult to form a complete edge area in high-detail areas, resulting in poor recognition accuracy.

Method used

The piano playing posture and gesture recognition method based on the RCF network is used to construct training sets and test sets by acquiring piano playing images of different image qualities, setting a binary cross-entropy loss function, and training the model through the back propagation algorithm, using Mini- Batch and sigmoid layers constrain the loss value to avoid overfitting and network errors, and improve recognition accuracy.

Benefits of technology

It has significantly improved the accuracy of piano playing posture and gesture recognition, can better handle noise and images in real scenes, prevent over-fitting and optimizer output errors, and improve the recognition effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644874A
    Figure CN118644874A
Patent Text Reader

Abstract

The invention provides a piano playing posture and gesture recognition method and system based on an RCF network in the technical field of piano playing recognition, and the method comprises the following steps: S1, obtaining a large number of piano playing images with different image qualities, and constructing a training set and a test set based on each piano playing image; s2, creating a piano playing posture and gesture recognition model based on the RCF network, setting a loss function of the piano playing posture and gesture recognition model as a dichotomy cross entropy loss function, and adding a sigmoid layer in front of the dichotomy cross entropy loss function; s3, training the piano playing posture and gesture recognition model through the training set, and testing the trained piano playing posture and gesture recognition model through the test set; and S4, carrying out piano playing posture and gesture recognition through the tested piano playing posture and gesture recognition model. The method has the advantage that the piano playing posture and gesture recognition precision is greatly 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 piano performance recognition, and in particular to a piano performance posture and hand gesture recognition method and system based on an RCF network. Background Art

[0002] With the development of economy and science and technology, standardized development has gradually shown its advantages, and the standardization of music education has been put on the agenda. However, in terms of piano teaching, it is difficult for students to obtain systematic and standardized teaching due to the level of piano teachers, the professionalism and artistry of piano education itself. Different piano teachers have different teaching concepts, which makes it difficult to promote the standardization of piano teaching. Computer technology is an effective way to achieve standardized teaching, so there is a need to identify piano playing postures and gestures. Correctly identifying the postures and gestures of pianists is of great significance for subsequent analysis and correction.

[0003] Edge detection algorithms are traditionally used to identify piano playing postures and gestures. As an image processing technology with a long history of development, edge detection algorithms retain important image information and reduce redundant image information, thereby greatly simplifying unnecessary information during the performance of the pianist and focusing on the key information of playing postures and gestures. However, traditional edge detection algorithms have the following shortcomings, resulting in poor recognition accuracy of piano playing postures and gestures:

[0004] 1. The continuity or closure of the edge cannot be guaranteed, resulting in edge fragmentation, and unreasonable threshold setting may lead to misjudgment of edge points, especially for noise points and edges with small amplitudes. For high-detail areas, a large number of fragmented edges may be generated, making it difficult to form a complete large area; 2. Images with rich noise and rough edges bring redundant interference information to edge detection, which will cause some discontinuous detection edges and may also lose some edge information.

[0005] Therefore, how to provide a piano playing posture and gesture recognition method and system based on RCF network to improve the piano playing posture and gesture recognition accuracy has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a piano playing posture and hand gesture recognition method and system based on RCF network, so as to improve the piano playing posture and hand gesture recognition accuracy.

[0007] In a first aspect, the present invention provides a piano playing posture and gesture recognition method based on an RCF network, comprising the following steps:

[0008] Step S1, obtaining a large number of piano performance images with different image qualities, and constructing a training set and a test set based on the piano performance images;

[0009] Step S2, creating a piano playing posture and gesture recognition model based on the RCF network, and setting the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function;

[0010] Step S3, training the piano playing posture and gesture recognition model by using the training set, and testing the trained piano playing posture and gesture recognition model by using the test set;

[0011] Step S4, recognizing piano playing postures and gestures through the tested piano playing posture and gesture recognition model.

[0012] Furthermore, the step S1 is specifically as follows:

[0013] A large number of piano performance images with different image qualities are obtained, each of the piano performance images at least includes one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance images contain certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance images;

[0014] An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in turn.

[0015] Furthermore, the step S2 further includes:

[0016] A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. The cumulative value of the loss function is output once each Batch is trained.

[0017] Furthermore, the step S3 is specifically as follows:

[0018] The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold value, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than a preset accuracy threshold value, and if so, the test passes; if not, the test fails, and the training set is expanded to continue the training;

[0019] During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision and recall rate are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and OIS-F value are calculated based on the precision and recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and OIS-F value.

[0020] Furthermore, the step S4 is specifically as follows:

[0021] The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

[0022] In a second aspect, the present invention provides a piano playing posture and gesture recognition system based on an RCF network, comprising the following modules:

[0023] A piano performance image acquisition module, used to acquire a large number of piano performance images with different image qualities, and to construct a training set and a test set based on the piano performance images;

[0024] A piano playing posture and gesture recognition model creation module is used to create a piano playing posture and gesture recognition model based on an RCF network, and set the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function;

[0025] A piano playing posture and gesture recognition model training module, used for training the piano playing posture and gesture recognition model through the training set, and testing the trained piano playing posture and gesture recognition model through the test set;

[0026] The piano playing posture and gesture recognition module is used to recognize piano playing posture and gesture through the tested piano playing posture and gesture recognition model.

[0027] Furthermore, the piano performance image acquisition module is specifically used for:

[0028] A large number of piano performance images with different image qualities are obtained, each of the piano performance images at least includes one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance images contain certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance images;

[0029] An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in turn.

[0030] Furthermore, the piano playing posture and gesture recognition model creation module is also used for:

[0031] A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. The cumulative value of the loss function is output once each Batch is trained.

[0032] Furthermore, the piano playing posture and gesture recognition model training module is specifically used for:

[0033] The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold value, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than a preset accuracy threshold value, and if so, the test passes; if not, the test fails, and the training set is expanded to continue the training;

[0034] During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision and recall rate are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and OIS-F value are calculated based on the precision and recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and OIS-F value.

[0035] Furthermore, the piano playing posture and gesture recognition module is specifically used for:

[0036] The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

[0037] The advantages of the present invention are:

[0038] 1. By acquiring a large number of piano playing images with different image qualities, a training set and a test set are constructed based on each piano playing image, and then a piano playing posture and gesture recognition model is created based on the RCF network, and the loss function of the piano playing posture and gesture recognition model is set as a binary cross entropy loss function. The piano playing posture and gesture recognition model is trained through the training set, and the trained piano playing posture and gesture recognition model is tested through the test set. Finally, the piano playing posture and gesture recognition model is used to recognize piano playing postures and gestures after the test; that is, the piano playing posture and gesture recognition model is trained through piano playing images with rich samples, so that the piano playing posture and gesture recognition model can better recognize piano playing images taken in real scenes. By setting the loss function of the piano playing posture and gesture recognition model as a binary cross entropy loss function, a convex optimization problem can be obtained in the propagation process, which is helpful to find the global optimal solution in the process of gradient descent, and ultimately greatly improves the piano playing posture and gesture recognition accuracy.

[0039] 2. The piano playing posture and gesture recognition model is trained by constructing training sets and test sets through various piano playing images to avoid overfitting during the training process of the piano playing posture and gesture recognition model.

[0040] 3. By adding a sigmoid layer before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, the piano playing posture and gesture recognition model (neural network) is prevented from additionally training the network layer therein, causing the optimizer to convert the output value to nan and cause network errors.

[0041] 4. By setting the minimum training batch for the piano playing posture and gesture recognition model, that is, by reducing the amount of data required to update the gradient, the training speed can be increased while reducing the impact of poor convergence performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0043] Figure 1 It is a flow chart of a piano playing posture and hand gesture recognition method based on RCF network of the present invention.

[0044] Figure 2 It is a structural schematic diagram of a piano playing posture and hand gesture recognition system based on RCF network of the present invention. DETAILED DESCRIPTION

[0045] The technical solution in the embodiments of the present application has the following overall idea: the piano playing posture and gesture recognition model is trained through piano playing images with rich samples, so that the piano playing posture and gesture recognition model can better recognize piano playing images taken in real scenes, and by setting the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function, a convex optimization problem can be obtained in the propagation process, which helps to find the global optimal solution in the process of gradient descent to improve the accuracy of piano playing posture and gesture recognition.

[0046] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a piano playing posture and gesture recognition method based on an RCF network of the present invention comprises the following steps:

[0047] Step S1, obtaining a large number of piano performance images with different image qualities, and constructing a training set and a test set based on the piano performance images;

[0048] Step S2, creating a piano playing posture and gesture recognition model based on the RCF network, and setting the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function (binary_cross_entropy);

[0049] The rich convolutional features of the RCF network and the different feature representations of the deep and shallow networks are used to identify the posture and gesture details in the piano performance images;

[0050] Step S3, training the piano playing posture and gesture recognition model through the training set, and testing the trained piano playing posture and gesture recognition model through the test set; in specific implementation, ODS and OIS can be calculated to judge the recognition effect of the piano playing posture and gesture recognition model;

[0051] Step S4, recognizing piano playing postures and gestures through the tested piano playing posture and gesture recognition model.

[0052] The step S1 is specifically as follows:

[0053] A large number of piano performance images of different image qualities are obtained, each of which contains at least one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance image contains certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance image, so as to simulate the specific needs of the project image coming from daily photography, and simulate the experimental environment that meets the project needs by finding noise images; in specific implementation, the piano performance image can be obtained through channels such as image websites, performance videos, paper data sets, and manual collection; the piano performance image may only contain a piano performance posture or a piano performance gesture, or may contain both a piano performance posture and a piano performance gesture, and there are three situations;

[0054] An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in sequence. Annotation is to judge each pixel value in the piano performance image, if the pixel value of a certain position is 255 and the adjacent pixel value is 0, then this position is an edge, that is, the edge of the posture or gesture.

[0055] The piano playing posture and gesture recognition model is trained by constructing a training set and a test set through various piano playing images to avoid overfitting during the training process of the piano playing posture and gesture recognition model.

[0056] The step S2 further comprises:

[0057] A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. After each Batch is trained, the cumulative value of the loss function is output once, and the learning rate of each convolutional layer of the piano playing posture and gesture recognition model is set respectively.

[0058] By adding a sigmoid layer before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, the piano playing posture and gesture recognition model (neural network) is prevented from additionally training the network layer therein, causing the optimizer to convert the output value into nan and cause network errors.

[0059] By setting Mini-Batch, the amount of data required to update the gradient can be reduced to increase the training speed, while reducing the impact of poor convergence performance.

[0060] The step S3 is specifically as follows:

[0061] The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm (BP algorithm) is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than the preset accuracy threshold, if so, the test passes; if not, the test fails, and the training set is expanded to continue the training;

[0062] During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision (Precision) and the recall rate (Recall) are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and the OIS-F value are calculated based on the precision and the recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and the OIS-F value.

[0063] In specific implementation, dataset loaders train_loader and test_loader can be created to load image sets in batches, and labels of train and test can be set respectively for classifying training sets and test sets.

[0064] The step S4 is specifically as follows:

[0065] The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

[0066] A preferred embodiment of a piano playing posture and gesture recognition system based on an RCF network of the present invention includes the following modules:

[0067] A piano performance image acquisition module, used to acquire a large number of piano performance images with different image qualities, and to construct a training set and a test set based on the piano performance images;

[0068] A piano playing posture and gesture recognition model creation module is used to create a piano playing posture and gesture recognition model based on an RCF network, and set the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function (binary_cross_entropy);

[0069] The rich convolutional features of the RCF network and the different feature representations of the deep and shallow networks are used to identify the posture and gesture details in the piano performance images;

[0070] A piano playing posture and gesture recognition model training module is used to train the piano playing posture and gesture recognition model through the training set, and to test the trained piano playing posture and gesture recognition model through the test set; in specific implementation, ODS and OIS can be calculated to judge the recognition effect of the piano playing posture and gesture recognition model;

[0071] The piano playing posture and gesture recognition module is used to recognize piano playing posture and gesture through the tested piano playing posture and gesture recognition model.

[0072] The piano performance image acquisition module is specifically used for:

[0073] A large number of piano performance images of different image qualities are obtained, each of which contains at least one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance image contains certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance image, so as to simulate the specific needs of the project image coming from daily photography, and simulate the experimental environment that meets the project needs by finding noise images; in specific implementation, the piano performance image can be obtained through channels such as image websites, performance videos, paper data sets, and manual collection; the piano performance image may only contain a piano performance posture or a piano performance gesture, or may contain both a piano performance posture and a piano performance gesture, and there are three situations;

[0074] An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in sequence. Annotation is to judge each pixel value in the piano performance image, if the pixel value of a certain position is 255 and the adjacent pixel value is 0, then this position is an edge, that is, the edge of the posture or gesture.

[0075] The piano playing posture and gesture recognition model is trained by constructing a training set and a test set through various piano playing images to avoid overfitting during the training process of the piano playing posture and gesture recognition model.

[0076] The piano playing posture and gesture recognition model creation module is also used for:

[0077] A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. After each Batch is trained, the cumulative value of the loss function is output once, and the learning rate of each convolutional layer of the piano playing posture and gesture recognition model is set respectively.

[0078] By adding a sigmoid layer before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, the piano playing posture and gesture recognition model (neural network) is prevented from additionally training the network layer therein, causing the optimizer to convert the output value into nan and cause network errors.

[0079] By setting Mini-Batch, the amount of data required to update the gradient can be reduced to increase the training speed, while reducing the impact of poor convergence performance.

[0080] The piano playing posture and gesture recognition model training module is specifically used for:

[0081] The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm (BP algorithm) is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than the preset accuracy threshold, if so, the test passes; if not, the test fails, and the training set is expanded to continue the training;

[0082] During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision (Precision) and the recall rate (Recall) are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and the OIS-F value are calculated based on the precision and the recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and the OIS-F value.

[0083] In specific implementation, dataset loaders train_loader and test_loader can be created to load image sets in batches, and labels of train and test can be set respectively for classifying training sets and test sets.

[0084] The piano playing posture and gesture recognition module is specifically used for:

[0085] The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

[0086] In summary, the advantages of the present invention are:

[0087] 1. By acquiring a large number of piano playing images with different image qualities, a training set and a test set are constructed based on each piano playing image, and then a piano playing posture and gesture recognition model is created based on the RCF network, and the loss function of the piano playing posture and gesture recognition model is set as a binary cross entropy loss function. The piano playing posture and gesture recognition model is trained through the training set, and the trained piano playing posture and gesture recognition model is tested through the test set. Finally, the piano playing posture and gesture recognition model is used to recognize piano playing postures and gestures after the test; that is, the piano playing posture and gesture recognition model is trained through piano playing images with rich samples, so that the piano playing posture and gesture recognition model can better recognize piano playing images taken in real scenes. By setting the loss function of the piano playing posture and gesture recognition model as a binary cross entropy loss function, a convex optimization problem can be obtained in the propagation process, which is helpful to find the global optimal solution in the process of gradient descent, and ultimately greatly improves the piano playing posture and gesture recognition accuracy.

[0088] 2. The piano playing posture and gesture recognition model is trained by constructing training sets and test sets through various piano playing images to avoid overfitting during the training process of the piano playing posture and gesture recognition model.

[0089] 3. By adding a sigmoid layer before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, the piano playing posture and gesture recognition model (neural network) is prevented from additionally training the network layer therein, causing the optimizer to convert the output value to nan and cause network errors.

[0090] 4. By setting the minimum training batch for the piano playing posture and gesture recognition model, that is, by reducing the amount of data required to update the gradient, the training speed can be increased while reducing the impact of poor convergence performance.

[0091] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A piano playing posture and gesture recognition method based on RCF network, characterized by: The steps include: Step S1, obtaining a large number of piano performance images with different image qualities, and constructing a training set and a test set based on the piano performance images; Step S2, creating a piano playing posture and gesture recognition model based on the RCF network, and setting the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function; Step S3, training the piano playing posture and gesture recognition model by using the training set, and testing the trained piano playing posture and gesture recognition model by using the test set; Step S4, recognizing piano playing postures and gestures through the tested piano playing posture and gesture recognition model.

2. A piano playing posture and hand gesture recognition method based on RCF network as claimed in claim 1, characterized in that: The step S1 is specifically as follows: A large number of piano performance images with different image qualities are obtained, each of the piano performance images at least includes one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance images contain certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance images; An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in turn.

3. A piano playing posture and hand gesture recognition method based on RCF network as claimed in claim 1, characterized in that: The step S2 further comprises: A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. The cumulative value of the loss function is output once each Batch is trained.

4. The piano playing posture and hand gesture recognition method based on RCF network as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold value, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than a preset accuracy threshold value, and if so, the test passes; if not, the test fails, and the training set is expanded to continue the training; During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision and recall rate are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and OIS-F value are calculated based on the precision and recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and OIS-F value.

5. The piano playing posture and hand gesture recognition method based on RCF network as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

6. A piano playing posture and gesture recognition system based on RCF network, characterized by: Includes the following modules: A piano performance image acquisition module, used to acquire a large number of piano performance images with different image qualities, and to construct a training set and a test set based on each of the piano performance images; A piano playing posture and gesture recognition model creation module is used to create a piano playing posture and gesture recognition model based on an RCF network, and set the loss function of the piano playing posture and gesture recognition model to a binary cross entropy loss function; A piano playing posture and gesture recognition model training module, used for training the piano playing posture and gesture recognition model through the training set, and testing the trained piano playing posture and gesture recognition model through the test set; The piano playing posture and gesture recognition module is used to recognize piano playing postures and gestures through the tested piano playing posture and gesture recognition model.

7. A piano playing posture and gesture recognition system based on RCF network as claimed in claim 6, characterized in that: The piano performance image acquisition module is specifically used for: A large number of piano performance images with different image qualities are obtained, each of the piano performance images at least includes one of a piano performance posture or a piano performance gesture; the different image qualities specifically refer to that the piano performance images contain certain noise information, and the noise information includes brightness noise interference and color noise interference caused by a dark light environment, high ISO, and long exposure, and distortion, distortion, and blur in the piano performance images; An image set is constructed based on each of the piano performance images, the piano performance posture or piano performance gesture in each of the piano performance images in the image set is annotated, the image set is divided into a training set and a test set based on a preset segmentation ratio, and each of the piano performance images in the training set is pre-processed by grayscale and binarization in turn.

8. The piano playing posture and hand gesture recognition system based on RCF network as claimed in claim 6, characterized in that: The piano playing posture and gesture recognition model creation module is also used for: A sigmoid layer is added before the binary cross entropy loss function to constrain the loss value of the binary cross entropy loss function between 0 and 1, and the Mini-Batch of the piano playing posture and gesture recognition model is set to 200 to group the data in the training set into units of 200. The cumulative value of the loss function is output once each Batch is trained.

9. A piano playing posture and hand gesture recognition system based on RCF network as claimed in claim 6, characterized in that: The piano playing posture and gesture recognition model training module is specifically used for: The piano playing posture and gesture recognition model is trained by the training set, and a back propagation algorithm is added during the training process until the loss value of the binary cross entropy loss function is less than a preset loss threshold value, and the trained piano playing posture and gesture recognition model is tested by the test set to determine whether the recognition accuracy is greater than a preset accuracy threshold value, and if so, the test passes; if not, the test fails, and the training set is expanded to continue the training; During the training process of the piano playing posture and gesture recognition model, the TP value, TN value, FP value and FN value are saved, the precision and recall rate are calculated based on the TP value, TN value, FP value and FN value, the ODS-F value and OIS-F value are calculated based on the precision and recall rate, and the recognition effect of the piano playing posture and gesture recognition model is judged by the ODS-F value and OIS-F value.

10. The piano playing posture and hand gesture recognition system based on RCF network as claimed in claim 6, characterized in that: The piano playing posture and gesture recognition module is specifically used for: The tested piano playing posture and gesture recognition model is run locally, and the piano playing posture and gesture are recognized by the running piano playing posture and gesture recognition model.

Citation Information

Patent Citations

  • Semantic edge assisted high-resolution remote sensing target fine extraction method

    CN110443822A

  • Small-scale target detection method based on weak edge

    CN110852317A

  • Handwriting layout analysis and multi-style ancient book background fusion method

    CN110852326A

  • Wrinkle detection method

    CN110929681A

  • AI detection method for various defects of brush

    CN111667455A

Cited By

  • Piano gesture recognition method for complex scene and electronic equipment

    CN119851341A