A method and system for semantic translation of music notation

By creating a word meaning table and a grammar table, and using a convolutional recurrent neural network model to automatically translate musical notation, the problem of simple musical notation identification and translation is solved, a complete automatic translation of music musical notation is achieved, and a tool to assist teaching is provided.

CN114202763BActive Publication Date: 2024-09-13XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111473849.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-09-13
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

The existing technology lacks an automatic recognition and translation method of musical notation, making it difficult to effectively assist music beginners in learning and playing music.

Method used

By obtaining simplified musical notation files and preprocessing them, we create word meaning tables and grammar tables, annotate simplified musical notation pictures, use convolutional recurrent neural networks to create semantic translation models, and conduct training to achieve automatic translation of simplified musical notation.

Benefits of technology

It realizes the automatic translation of music musical notation, ensures the integrity of the translation, makes up for the lack of musical notation data set, and provides a tool to assist teaching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202763B
    Figure CN114202763B
Patent Text Reader

Abstract

The present invention provides a method and system for semantic translation of music notation in the field of music score recognition technology. The method comprises the following steps: step S10, obtaining a large number of notation files, converting each of the notation files into a notation picture and preprocessing it; step S20, creating a meaning table and a grammar table, annotating each preprocessed notation picture based on the meaning table and the grammar table, and obtaining a notation picture set; step S30, creating a semantic translation model based on a convolutional recurrent neural network, and training the semantic translation model using the notation picture set; step S40, automatically translating the music notation using the trained semantic translation model. The present invention has the advantages of realizing automatic translation of notation and retaining the information of the notes themselves.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of music score recognition, and in particular to a method and system for semantic translation of music notation. Background Art

[0002] Musical notation is a method of recording music using symbols. For music beginners, knowing how to read music notation is crucial. If you cannot master the music notation, you cannot play beautiful music. Therefore, there is a need to recognize music notation for auxiliary teaching, similar to how an English reading machine recognizes English words.

[0003] However, the recognition of musical scores is mainly based on five-line scores, and the recognition of simplified musical scores is still a blank area. Therefore, how to provide a semantic translation method and system for musical simplified musical scores to achieve automatic translation of simplified musical scores has become a technical problem to be solved urgently. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and system for semantic translation of music notation to achieve automatic translation of the notation.

[0005] In a first aspect, the present invention provides a method for semantic translation of music notation, comprising the following steps:

[0006] Step S10, obtaining a large number of simple musical notation files, converting each of the simple musical notation files into a simple musical notation picture and performing preprocessing;

[0007] Step S20, creating a word meaning table and a grammar table, and annotating the preprocessed musical notation pictures based on the word meaning table and the grammar table to obtain a musical notation picture set;

[0008] Step S30, creating a semantic translation model based on a convolutional recurrent neural network, and using the musical notation picture set to train the semantic translation model;

[0009] Step S40: Automatically translate the musical notation using the trained semantic translation model.

[0010] Furthermore, the step S10 is specifically as follows:

[0011] A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

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

[0013] A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

[0014] Furthermore, the step S30 specifically includes:

[0015] Step S31, creating a semantic translation model based on a convolutional recurrent neural network;

[0016] The semantic translation model includes a convolution module and a loop module; the convolution module includes four convolution layers of size 3*3 and four pooling layers of size 2*2; the loop module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm;

[0017] Step S32, setting a ratio, an accuracy threshold and a convergence condition, and dividing the musical notation picture set into a training set and a verification set based on the ratio;

[0018] Step S33, training the semantic translation model using the training set until the convergence condition is met;

[0019] Step S34, using the verification set to verify the trained semantic translation model, to determine whether the recognition accuracy is greater than the accuracy threshold, if so, the training is completed and the process proceeds to step S40; if not, the training set is expanded and the process proceeds to step S33.

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

[0021] A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.

[0022] In a second aspect, the present invention provides a music notation semantic translation system, comprising the following modules:

[0023] The simplified musical notation picture acquisition module is used to acquire a large number of simplified musical notation files, convert each of the simplified musical notation files into a simplified musical notation picture and perform preprocessing;

[0024] A simplified musical notation picture annotation module is used to create a word meaning table and a grammar table, and annotate each pre-processed simplified musical notation picture based on the word meaning table and the grammar table to obtain a simplified musical notation picture set;

[0025] A semantic translation model training module, used to create a semantic translation model based on a convolutional recurrent neural network, and train the semantic translation model using the musical notation picture set;

[0026] The music notation translation module is used to automatically translate the music notation using the trained semantic translation model.

[0027] Furthermore, the music notation picture acquisition module is specifically:

[0028] A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

[0029] Furthermore, the musical notation picture annotation module is specifically:

[0030] A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

[0031] Furthermore, the semantic translation model training module specifically includes:

[0032] A semantic translation model creation unit, used to create a semantic translation model based on a convolutional recurrent neural network;

[0033] The semantic translation model includes a convolution module and a loop module; the convolution module includes four convolution layers of size 3*3 and four pooling layers of size 2*2; the loop module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm;

[0034] A training initialization unit, used to set a ratio, an accuracy threshold and a convergence condition, and divide the musical notation picture set into a training set and a verification set based on the ratio;

[0035] A model training unit, used to train the semantic translation model using the training set until the convergence condition is met;

[0036] The model verification unit is used to verify the trained semantic translation model using the verification set to determine whether the recognition accuracy is greater than the accuracy threshold. If so, the training is completed and the music notation translation module is entered; if not, the training set is expanded and the model training unit is entered.

[0037] Furthermore, the music notation translation module is specifically:

[0038] A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.

[0039] The advantages of the present invention are:

[0040] A large number of musical notation files are obtained and converted into musical notation pictures for preprocessing, and the preprocessed musical notation pictures are annotated using the created word meaning table and grammar table to obtain a musical notation picture set. The created semantic translation model is then trained using the musical notation picture set. Finally, the trained semantic translation model can be used to automatically translate the musical notation. The information of the notes themselves will not be lost during the translation process, thus ensuring the integrity of the translation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 It is a flow chart of a method for semantic translation of music notation of the present invention.

[0043] Figure 2 It is a structural schematic diagram of a music notation semantic translation system of the present invention.

[0044] Figure 3 It is a schematic diagram of the translation process of the semantic translation model of the present invention.

[0045] Figure 4 It is a schematic diagram of the musical notation of the present invention.

[0046] Figure 5 It is a schematic diagram of piano grouping of the present invention. DETAILED DESCRIPTION

[0047] The technical solution in the embodiments of the present application has the following overall idea: a large number of musical notation pictures are annotated using the created word meaning table and grammar table to obtain a musical notation picture set, and then the musical notation picture set is used to train the created semantic translation model, and finally the trained semantic translation model can be used to automatically translate the musical notation and make up for the lack of musical notation data sets in optical recognition of musical scores.

[0048] Please refer to Figures 1 to 5 As shown, a preferred embodiment of a method for semantic translation of music notation of the present invention comprises the following steps:

[0049] Step S10, using Python crawler technology to obtain a large number of simple musical notation files, converting each of the simple musical notation files into simple musical notation images and performing preprocessing;

[0050] Step S20, creating a word meaning table and a grammar table, and annotating the preprocessed musical notation pictures based on the word meaning table and the grammar table to obtain a musical notation picture set;

[0051] Step S30, creating a semantic translation model based on a convolutional recurrent neural network (CRNN), and using the musical notation picture set to train the semantic translation model;

[0052] Step S40: Automatically translate the musical notation using the trained semantic translation model.

[0053] The step S10 is specifically as follows:

[0054] A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

[0055] Grayscale is used to convert the color music score image into a grayscale image with only one channel, binarization is used to convert the music score image into only black and white, noise reduction is used to remove the noise of the music score image, and tilt correction is used to better identify each line of the music score.

[0056] The picture of the simple musical notation is as follows Figure 4 The simplified notation is a monophonic digital notation to be translated. The digital notation is based on the movable solfeggio method, and uses 1, 2, 3, 4, 5, 6, and 7 to represent the 7 basic levels in the scale. The pronunciations are do, re, mi, fa, sol, la, and ti (si in China), and rest is represented by "0". The simplified notation includes the attributes of the simplified notation and the content of the simplified notation. The attributes of the simplified notation are composed of the time signature, the number of beats played per minute, the key signature, etc. The content of the simplified notation is the notes, which are symbols that record different long and short notes; the notes include the note value and the pitch level information. The note value is the relative duration between each note, and the pitch level information indicates the high and low of the note. The note can be a whole note, a half note, a quarter note, an eighth note, a dotted note, a rest, etc., and different notes represent different values. Commonly used notes include whole notes, half notes, quarter notes, eighth notes, and sixteenth notes, among which the durations of half notes, quarter notes, eighth notes, and sixteenth notes are 1 / 2, 1 / 4, 1 / 8, and 1 / 16 of the whole note, respectively. Dotted notes are notes with a small dot in the lower right corner, indicating that the duration of the current note is extended by half. Rests, which indicate that the sound is resting, are represented by "0". Usually the piano is divided into 9 groups, and the pitch of the piano gradually increases from left to right. 1, 2, 3, 4, 5, 6, and 7 are used to represent the small notes in the piano, which also correspond to the seven basic pitches in the scale. The seven basic pitches are dotted under the corresponding numbers to represent the seven low octave pitches in the scale, and the seven basic pitches are dotted on the corresponding numbers to represent the seven high octave pitches in the scale.

[0057] The step S20 is specifically as follows:

[0058] A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

[0059] The word meaning table is specifically:

[0060]

[0061]

[0062] The syntax table is specifically:

[0063]

[0064]

[0065] The symbols in the word meaning table are classified into keyword symbols and functional symbols according to their functions.

[0066] The keyword symbols specifically include:

[0067]

[0068] The functional symbols specifically include:

[0069]

[0070] The keyword symbols serve as markings, such as "keysignature" means that the current field represents the key signature; the values ​​of the functional symbols represent some meanings in the music theory of simplified notation, such as the value of "diatonicpitch" "{'A'|'B'|'C'|'D'|'E'|'F'|'G'}" corresponds to 6, 7, 1, 2, 3, 4, and 5 of the simplified notation respectively.

[0071] Simplified musical notation attribute annotation (translation) is to combine the meanings of words to represent a symbol on the simplified musical notation. The general format is "keyword" + '-' + "function character". For example, the time signature is represented by "timesignature sepsymbol (interger slashinterger)", where "timesignature" is the keyword indicating that the current field represents the time signature, and the symbols "sepsymbol", "interger", and "slash" represent the symbols "-", "("0" .. "9") +", and " / " respectively. Therefore, we can translate the time signature "4 / 4" of the simplified musical notation, and the translation result is "timesignature-4 / 4". The key signature "1=C" indicates that the current simplified musical notation is C major, and it is translated into "Keysignature-CM" according to the grammatical rules.

[0072] The content of the musical notation is marked (translated) as follows:

[0073] The 88 keys of a piano are usually divided into 9 groups, namely, large note group 2, large note group 1, large note group, small note group, small note group 1, small note group 2, small note group 3, small note group 4, and small note group 5. The note names corresponding to each group are different, such as Figure 5 shown.

[0074] 1=C means that the number 1 corresponds to c1 in the first group of small notes. According to music theory, we can get the corresponding relationship between numbers and note names: 1=c1, 2=d1, 3=e1, 4=f1, 5=g1, 6=a1, 7=b1. Notes include low notes, middle notes, and high notes. In order to distinguish their relative positions, the note name in the first group of small notes where the middle C (c1) is located is marked with the number 4, the corresponding note name in the second group of small notes is marked with 5, and the note name in the small group is marked with 3. Figure 4 The field corresponding to the whole note such as "1----" is "whole", the field corresponding to the half note such as "1-" is "half", the field corresponding to the quarter note such as "1" is "quarter", the field corresponding to the eighth note such as "1" is "eighth", and the field corresponding to the sixteenth note such as "1" is "sixteenth". According to the rules of the grammar table, the method of expressing notes is "note-tone corresponding to the number + sharp and flat + group number_note corresponding to the number + (dotted note)", so the code corresponding to the quarter note "1" is "note-C4_quarter", the code corresponding to the quarter note "2" is "note-D4_quarter", the code corresponding to the quarter note "3" is "note-E4_quarter", the bar line is represented by "barliine", the code corresponding to the quarter note "4" is "note-F4_quarter", the code corresponding to the half note "5-" is "note-G5_half", the code corresponding to the dotted eighth note "5." is "note-G4_eighth.", the corresponding code for the sixteenth note "6" is "note-A4_sixteenth", and the code corresponding to the terminator "||" is "end".

[0075] The step S30 specifically includes:

[0076] Step S31, creating a semantic translation model based on a convolutional recurrent neural network;

[0077] The semantic translation model includes a convolutional module (CNN) and a recurrent module (RNN); the convolutional module includes four convolutional layers of size 3*3 and four pooling layers of size 2*2; the recurrent module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm; CTCloss is used to optimize the CRNN parameters so that the model can give the correct sequence Y (coding / simplified musical notation attributes and simplified musical notation content) when the input X (simplified musical notation picture) is given;

[0078] Step S32, setting a ratio, an accuracy threshold and a convergence condition, and dividing the musical notation picture set into a training set and a verification set based on the ratio;

[0079] Step S33, training the semantic translation model using the training set until the convergence condition is met;

[0080] Before training, the images of the training set are normalized. Normalization can make the training data have the same distribution in each batch training and accelerate the convergence of the model. Then, the Conv2D and Pooling layers of the CNN network are used to extract the features of the image. Then, the feature map obtained by the convolution process is processed and transmitted to the circulation layer using Map-to-Sequence. The BLSTM model outputs a probability distribution matrix of all notes for the feature vector of each time step. Finally, the transcription layer (CTCloss) decodes the probability matrix and converts it into the corresponding coding sequence (simplified notation attributes and simplified notation content). At the same time, CTCloss can optimize the parameters of the convolution process and the circulation process.

[0081] Step S34, using the verification set to verify the trained semantic translation model, to determine whether the recognition accuracy is greater than the accuracy threshold, if so, the training is completed and the process proceeds to step S40; if not, the training set is expanded and the process proceeds to step S33.

[0082] The step S40 is specifically as follows:

[0083] A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.

[0084] A preferred embodiment of a music notation semantic translation system of the present invention includes the following modules:

[0085] The simplified musical notation picture acquisition module is used to acquire a large number of simplified musical notation files using Python crawler technology, convert each of the simplified musical notation files into a simplified musical notation picture and perform preprocessing;

[0086] A simplified musical notation picture annotation module is used to create a word meaning table and a grammar table, and annotate each pre-processed simplified musical notation picture based on the word meaning table and the grammar table to obtain a simplified musical notation picture set;

[0087] A semantic translation model training module, used to create a semantic translation model based on a convolutional recurrent neural network (CRNN), and train the semantic translation model using the musical notation picture set;

[0088] The music notation translation module is used to automatically translate the music notation using the trained semantic translation model.

[0089] The music notation picture acquisition module is specifically:

[0090] A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

[0091] Grayscale is used to convert the color music score image into a grayscale image with only one channel, binarization is used to convert the music score image into only black and white, noise reduction is used to remove the noise of the music score image, and tilt correction is used to better identify each line of the music score.

[0092] The picture of the simple musical notation is as follows Figure 4The simplified notation is a monophonic digital notation to be translated. The digital notation is based on the movable solfeggio method, and uses 1, 2, 3, 4, 5, 6, and 7 to represent the 7 basic levels in the scale. The pronunciations are do, re, mi, fa, sol, la, and ti (si in China), and rest is represented by "0". The simplified notation includes the attributes of the simplified notation and the content of the simplified notation. The attributes of the simplified notation are composed of the time signature, the number of beats played per minute, the key signature, etc. The content of the simplified notation is the notes, which are symbols that record different long and short notes; the notes include the note value and the pitch level information. The note value is the relative duration between each note, and the pitch level information indicates the high and low of the note. The note can be a whole note, a half note, a quarter note, an eighth note, a dotted note, a rest, etc., and different notes represent different values. Commonly used notes include whole notes, half notes, quarter notes, eighth notes, and sixteenth notes, among which the durations of half notes, quarter notes, eighth notes, and sixteenth notes are 1 / 2, 1 / 4, 1 / 8, and 1 / 16 of the whole note, respectively. Dotted notes are notes with a small dot in the lower right corner, indicating that the duration of the current note is extended by half. Rests, which indicate that the sound is resting, are represented by "0". Usually the piano is divided into 9 groups, and the pitch of the piano gradually increases from left to right. 1, 2, 3, 4, 5, 6, and 7 are used to represent the small notes in the piano, which also correspond to the seven basic pitches in the scale. The seven basic pitches are dotted under the corresponding numbers to represent the seven low octave pitches in the scale, and the seven basic pitches are dotted on the corresponding numbers to represent the seven high octave pitches in the scale.

[0093] The musical notation picture annotation module is specifically:

[0094] A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

[0095] The word meaning table is specifically:

[0096]

[0097]

[0098] The syntax table is specifically:

[0099]

[0100] The symbols in the word meaning table are classified into keyword symbols and functional symbols according to their functions.

[0101] The keyword symbols specifically include:

[0102]

[0103] The functional symbols specifically include:

[0104]

[0105]

[0106] The keyword symbols serve as markings, such as "keysignature" means that the current field represents the key signature; the values ​​of the functional symbols represent some meanings in the music theory of simplified notation, such as the value of "diatonicpitch" "{'A'|'B'|'C'|'D'|'E'|'F'|'G'}" corresponds to 6, 7, 1, 2, 3, 4, and 5 of the simplified notation respectively.

[0107] Simplified musical notation attribute annotation (translation) is to combine the meanings of words to represent a symbol on the simplified musical notation. The general format is "keyword" + '-' + "function character". For example, the time signature is represented by "timesignature sepsymbol (interger slashinterger)", where "timesignature" is the keyword indicating that the current field represents the time signature, and the symbols "sepsymbol", "interger", and "slash" represent the symbols "-", "("0" .. "9") +", and " / " respectively. Therefore, we can translate the time signature "4 / 4" of the simplified musical notation, and the translation result is "timesignature-4 / 4". The key signature "1=C" indicates that the current simplified musical notation is C major, and it is translated into "Keysignature-CM" according to the grammatical rules.

[0108] The content of the musical notation is marked (translated) as follows:

[0109] The 88 keys of a piano are usually divided into 9 groups, namely, large note group 2, large note group 1, large note group, small note group, small note group 1, small note group 2, small note group 3, small note group 4, and small note group 5. The note names corresponding to each group are different, such as Figure 5 shown.

[0110] 1=C means that the number 1 corresponds to c1 in the first group of small notes. According to music theory, we can get the corresponding relationship between numbers and note names: 1=c1, 2=d1, 3=e1, 4=f1, 5=g1, 6=a1, 7=b1. Notes include low notes, middle notes, and high notes. In order to distinguish their relative positions, the note name in the first group of small notes where the middle C (c1) is located is marked with the number 4, the corresponding note name in the second group of small notes is marked with 5, and the note name in the small group is marked with 3. Figure 4The field corresponding to the whole note such as "1----" is "whole", the field corresponding to the half note such as "1-" is "half", the field corresponding to the quarter note such as "1" is "quarter", the field corresponding to the eighth note such as "1" is "eighth", and the field corresponding to the sixteenth note such as "1" is "sixteenth". According to the rules of the grammar table, the method of expressing notes is "note-tone corresponding to the number + sharp and flat + group number_note corresponding to the number + (dotted note)", so the code corresponding to the quarter note "1" is "note-C4_quarter", the code corresponding to the quarter note "2" is "note-D4_quarter", the code corresponding to the quarter note "3" is "note-E4_quarter", the bar line is represented by "barliine", the code corresponding to the quarter note "4" is "note-F4_quarter", the code corresponding to the half note "5-" is "note-G5_half", the code corresponding to the dotted eighth note "5." is "note-G4_eighth.", the corresponding code for the sixteenth note "6" is "note-A4_sixteenth", and the code corresponding to the terminator "||" is "end".

[0111] The semantic translation model training module specifically includes:

[0112] A semantic translation model creation unit, used to create a semantic translation model based on a convolutional recurrent neural network;

[0113] The semantic translation model includes a convolutional module (CNN) and a recurrent module (RNN); the convolutional module includes four convolutional layers of size 3*3 and four pooling layers of size 2*2; the recurrent module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm; CTCloss is used to optimize the CRNN parameters so that the model can give the correct sequence Y (coding / simplified musical notation attributes and simplified musical notation content) when the input X (simplified musical notation picture) is given;

[0114] A training initialization unit, used to set a ratio, an accuracy threshold and a convergence condition, and divide the musical notation picture set into a training set and a verification set based on the ratio;

[0115] A model training unit, used to train the semantic translation model using the training set until the convergence condition is met;

[0116] Before training, the images of the training set are normalized. Normalization can make the training data have the same distribution in each batch training and accelerate the convergence of the model. Then, the Conv2D and Pooling layers of the CNN network are used to extract the features of the image. Then, the feature map obtained by the convolution process is processed and transmitted to the circulation layer using Map-to-Sequence. The BLSTM model outputs a probability distribution matrix of all notes for the feature vector of each time step. Finally, the transcription layer (CTCloss) decodes the probability matrix and converts it into the corresponding coding sequence (simplified notation attributes and simplified notation content). At the same time, CTCloss can optimize the parameters of the convolution process and the circulation process.

[0117] The model verification unit is used to verify the trained semantic translation model using the verification set to determine whether the recognition accuracy is greater than the accuracy threshold. If so, the training is completed and the music notation translation module is entered; if not, the training set is expanded and the model training unit is entered.

[0118] The music notation translation module is specifically:

[0119] A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.

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

[0121] A large number of musical notation files are obtained and converted into musical notation pictures for preprocessing, and the preprocessed musical notation pictures are annotated using the created word meaning table and grammar table to obtain a musical notation picture set. The created semantic translation model is then trained using the musical notation picture set. Finally, the trained semantic translation model can be used to automatically translate the musical notation. The information of the notes themselves will not be lost during the translation process, thus ensuring the integrity of the translation.

[0122] 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 method for semantic translation of musical notation, characterized in that: The steps include: Step S10, obtaining a large number of simple musical notation files, converting each of the simple musical notation files into a simple musical notation picture and performing preprocessing; Step S20, creating a word meaning table and a grammar table, and annotating the preprocessed musical notation pictures based on the word meaning table and the grammar table to obtain a musical notation picture set; Step S30, creating a semantic translation model based on a convolutional recurrent neural network, and training the semantic translation model using the musical notation picture set; specifically comprising: Step S31, creating a semantic translation model based on a convolutional recurrent neural network; The semantic translation model includes a convolution module and a loop module; the convolution module includes four convolution layers of size 3*3 and four pooling layers of size 2*2; the loop module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm; Step S32, setting a ratio, an accuracy threshold and a convergence condition, and dividing the musical notation picture set into a training set and a verification set based on the ratio; Step S33, training the semantic translation model using the training set until the convergence condition is met; Step S34, using the verification set to verify the trained semantic translation model, to determine whether the recognition accuracy is greater than the accuracy threshold, if so, the training is completed and the process proceeds to step S40; if not, the training set is expanded and the process proceeds to step S33; Step S40: Automatically translate the musical notation using the trained semantic translation model.

2. A method for semantic translation of music notation as claimed in claim 1, characterized in that: The step S10 is specifically as follows: A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

3. A method for semantic translation of music notation as claimed in claim 1, characterized in that: The step S20 is specifically as follows: A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

4. A method for semantic translation of music notation as claimed in claim 1, characterized in that: The step S40 is specifically as follows: A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.

5. A music notation semantic translation system, characterized by: Includes the following modules: The simplified musical notation picture acquisition module is used to acquire a large number of simplified musical notation files, convert each of the simplified musical notation files into a simplified musical notation picture and perform preprocessing; A simplified musical notation picture annotation module is used to create a word meaning table and a grammar table, and annotate each pre-processed simplified musical notation picture based on the word meaning table and the grammar table to obtain a simplified musical notation picture set; A semantic translation model training module, used to create a semantic translation model based on a convolutional recurrent neural network, and train the semantic translation model using the musical notation picture set; The semantic translation model training module specifically includes: A semantic translation model creation unit, used to create a semantic translation model based on a convolutional recurrent neural network; The semantic translation model includes a convolution module and a loop module; the convolution module includes four convolution layers of size 3*3 and four pooling layers of size 2*2; the loop module includes two bidirectional LSTM neurons and a fully connected layer; the loss function of the semantic translation model adopts the CTC algorithm; A training initialization unit, used to set a ratio, an accuracy threshold and a convergence condition, and divide the musical notation picture set into a training set and a verification set based on the ratio; A model training unit, used to train the semantic translation model using the training set until the convergence condition is met; A model verification unit is used to verify the trained semantic translation model using the verification set to determine whether the recognition accuracy is greater than the accuracy threshold. If so, the training is completed and the music notation translation module is entered; if not, the training set is expanded and the model training unit is entered; The music notation translation module is used to automatically translate the music notation using the trained semantic translation model.

6. A music notation semantic translation system as claimed in claim 5, characterized in that: The music notation picture acquisition module is specifically: A large number of simple musical notation files are obtained, each of the simple musical notation files is converted into a simple musical notation picture in PNG format, and the simple musical notation pictures are preprocessed by grayscale conversion, binarization, noise reduction and tilt correction in sequence.

7. A music notation semantic translation system as claimed in claim 5, characterized in that: The musical notation picture annotation module is specifically: A word meaning table and a grammar table are created, and the pre-processed simple musical notation images are annotated with simple musical notation attributes and simple musical notation contents based on the word meaning table and the grammar table to obtain a simple musical notation image set.

8. A music notation semantic translation system as claimed in claim 5, characterized in that: The music notation translation module is specifically: A music notation picture to be identified in PNG format is obtained, and after preprocessing the music notation picture to be identified, the trained semantic translation model is input to obtain the translation of the corresponding notation attribute and notation content.