Music recognition method, device, equipment and storage medium for short videos

By constructing a background music seed library and combining video title information for text matching and audio fingerprint comparison, the problem of high music recognition threshold and large calculation amount in the existing technology is solved, and efficient recognition of background music in short videos is achieved.

CN112911331BActive Publication Date: 2024-09-10SHENZHEN YAYUE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010295073.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2024-09-10
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

Existing technology requires the construction of a large-scale song fingerprint database for music recognition, resulting in high recognition thresholds, large storage and computing power requirements, and the inability to effectively identify non-song background music and adapted music in short videos.

Method used

By constructing a background music seed library, we use the logo of the marked video, the background music logo and the audio fingerprint to establish a corresponding relationship, and combine the video title information to perform text matching, obtain alternative background music logos and perform audio fingerprint comparison, reducing the amount of calculation and improving identification efficiency.

Benefits of technology

While ensuring the accuracy of music recognition, it significantly reduces the amount of recognition calculations, improves recognition efficiency, and can recognize non-songs and adapted music in short videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112911331B
    Figure CN112911331B
Patent Text Reader

Abstract

The present application provides a music recognition method, device, equipment and storage medium for short videos; the method includes: obtaining the marked background music and the marked background music identifier of the marked video; constructing a background music seed library based on the marked video identifier, the marked background music identifier and the marked background music; obtaining the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified; when there is an alternative background music identifier that meets the text matching condition with the title information in the background music seed library, obtaining the audio fingerprint corresponding to the alternative background music identifier; when the audio fingerprint corresponding to the alternative background music identifier meets the similarity condition with the audio fingerprint of the background music to be identified, determining the alternative background music identifier as the identifier of the background music to be identified. In this way, the recognition calculation amount can be reduced while ensuring the accuracy of music recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a music recognition method, device, equipment and storage medium for short videos. Background Art

[0002] With the continuous development of Internet technology and smart terminals and the popularization of short video applications, people can record and publish short videos anytime and anywhere, and can also watch short videos published by others. When creating short / small videos, users generally choose a background music that matches the theme of the video. The background music is integrated with the original image information of the video as the final video. As another dimension of information outside the video image, the background music can strengthen the theme of the video, such as enhancing the rhythm of the dance through background music, so that viewers can more intuitively understand the theme of the video uploaded by the user through the background music.

[0003] When people watch short videos and hear interesting background music but don't know the name of the music, music recognition is particularly important. In related technologies, music recognition often requires building a large-scale song fingerprint library. Then, when performing song recognition, the fingerprint of the song to be recognized is matched with the fingerprint library, and the song name with a high matching degree is used as the recognition result. This not only has a high threshold for recognition, but also requires high storage and computing power of the recognition device. Summary of the invention

[0004] The embodiments of the present application provide a music recognition method, device and storage medium for short videos, which can reduce the recognition calculation amount while ensuring the accuracy of music recognition.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application embodiment provides a music recognition method for short videos, including:

[0007] Obtain the marked background music and marked background music identifier of the marked video;

[0008] Building a background music seed library based on the labeled video identifier, the labeled background music identifier and the labeled background music, wherein the background music seed library at least includes a correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music;

[0009] Obtaining background music to be identified in the video to be identified, title information of the video to be identified, and an audio fingerprint of the background music to be identified;

[0010] When there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, obtaining an audio fingerprint corresponding to the candidate background music identifier;

[0011] When the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition, the candidate background music identifier is determined as the identifier of the background music to be identified.

[0012] The present application embodiment provides a music recognition device for short videos, including:

[0013] A first acquisition module, used to acquire the marked background music and the marked background music identifier of the marked video;

[0014] A seed library creation module, used to construct a background music seed library based on the labeled video identifier, the labeled background music identifier and the labeled background music, wherein the background music seed library at least includes the corresponding relationship between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music;

[0015] The second acquisition module is used to acquire the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified;

[0016] A third acquisition module is used to acquire an audio fingerprint corresponding to the candidate background music identifier when there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship;

[0017] The first determination module is used to determine the candidate background music identifier as the identifier of the background music to be identified when the audio fingerprint corresponding to the candidate background music identifier meets a similarity condition with the audio fingerprint of the background music to be identified.

[0018] In some embodiments, the seed library construction module is further used to:

[0019] Based on the audio information of each marked background music, determine the audio fingerprint of each marked background music;

[0020] Establishing a first correspondence between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music;

[0021] A second corresponding relationship between the marked background music identifier and the marked video identifier is established.

[0022] In some embodiments, the seed library construction module is further used to:

[0023] Obtain each labeled video identifier and each labeled video corresponding to each labeled background music identifier;

[0024] When the number of tagged videos corresponding to the tagged background music is greater than a preset number threshold N, M target videos are determined from the tagged videos, where N is a positive integer greater than 2 and M is a positive integer less than or equal to N;

[0025] A second corresponding relationship between the marked background music identifier and the marked video identifiers of the M target videos is established.

[0026] In some embodiments, the music recognition device further includes:

[0027] A first matching module is used to perform text matching between the title information and each marked background music identifier in the second corresponding relationship; wherein, when the title information includes the first marked background music identifier in the second corresponding relationship, it is determined that there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information;

[0028] A second determining module is configured to determine the first marked background music identifier as a candidate background music identifier; or

[0029] A recognition module, used for recognizing each keyword in the title information by using the trained first neural network model;

[0030] The second matching module is used to perform text matching between each keyword in the title information and each marked background music identifier in the second corresponding relationship, wherein, when all keywords are included in the marked background music identifier, it is determined that there is a marked background music identifier in the corresponding relationship that meets the text matching conditions with the title information.

[0031] In some embodiments, the third acquisition module is further used to:

[0032] Based on the second corresponding relationship, determining each candidate video identifier corresponding to the candidate music identifier;

[0033] Based on the first corresponding relationship, determine the audio fingerprint corresponding to each candidate video identifier;

[0034] The audio fingerprint corresponding to each candidate video identifier is determined as the audio fingerprint corresponding to the candidate background music identifier.

[0035] In some embodiments, the music recognition device further includes:

[0036] A third determination module is used to respectively determine the similarity values ​​between the audio fingerprint corresponding to each candidate video identifier and the audio fingerprint of the background music to be identified;

[0037] The fourth determination module is used to determine that the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition when there is at least one similarity value greater than a similarity threshold.

[0038] In some embodiments, the music recognition device further includes:

[0039] A fifth determination module, configured to determine a depth representation vector of the background music to be identified when there is no candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship;

[0040] A fourth acquisition module is used to acquire a pre-built retrieval index, wherein the retrieval index is built based on the depth representation vector of each annotated background music in the background music seed library;

[0041] A sixth determination module, configured to determine K similar background music identifiers of the background music to be identified based on the depth representation vector of the background music to be identified and the search index;

[0042] The seventh determination module is used to determine the identifier of the background music to be identified from the K similar background music identifiers.

[0043] In some embodiments, the seventh determining module is further configured to:

[0044] Based on the first corresponding relationship, obtaining audio fingerprints corresponding to the K similar background music identifiers;

[0045] Respectively determine the similarity values ​​between the audio fingerprints corresponding to the K similar background music identifiers and the audio fingerprint of the background music to be identified;

[0046] The similar background music identifier corresponding to the highest similarity value is determined as the identifier of the background music to be identified.

[0047] The present application embodiment provides a music recognition device for short videos, including:

[0048] A memory for storing executable instructions;

[0049] The processor is used to implement the method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0050] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the method provided in the embodiment of the present application.

[0051] The embodiments of the present application have the following beneficial effects:

[0052] In the music recognition method for short videos provided in the embodiment of the present application, a background music seed library is constructed based on the labeled video identifier, the labeled background music identifier and the labeled background music stored in itself, and the background music seed library at least includes the corresponding relationship between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music. After obtaining the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified, the title information of the video to be identified is used to perform text matching with the labeled background music identifier in the corresponding relationship (which can also be considered as the background music seed library). After determining the background music that matches the title information After the matching alternative background music identification is obtained, an audio fingerprint comparison is further performed to determine the recognition result. In this way, a seed library is constructed by the background music in the video stored by itself, and the background music in the unlabeled video stored by itself is also identified. In other words, the video to be identified is the same source as the constructed seed video, which can ensure the correctness of the recognition. In addition, in the recognition process, text matching is first performed to obtain the alternative background music identification, and then the audio fingerprint corresponding to the alternative music identification is compared with the audio fingerprint of the background music to be identified. There is no need to compare the audio fingerprint of the background music to be identified with all the audio fingerprints in the seed library one by one, which can significantly improve the recognition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a network architecture of a music recognition method for short videos according to an embodiment of the present application;

[0054] Figure 2 It is a schematic diagram of the composition structure of the server 200 provided in the embodiment of the present application;

[0055] Figure 3 A schematic diagram of an implementation flow of a music recognition method for short videos provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the implementation process of obtaining a reply text using a trained neural network model provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of another implementation flow of the music recognition method for short videos provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of another implementation flow of the music recognition method for short videos provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of the framework of a network model for music recognition provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0061] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0062] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0064] 1) Short videos, also known as mini videos or short videos, are a form of Internet content dissemination, generally videos with a duration of less than 5 minutes that are disseminated on new Internet media;

[0065] 2) Background music of a video, also known as the accompaniment or soundtrack of a video, usually refers to a type of music used to adjust the atmosphere of the video. Inserting it into the dialogue can enhance the expression of emotions and make the audience feel as if they are in the scene.

[0066] 3) Long Short-Term Memory (LSTM) model is a time recurrent neural network model that can learn long-term dependency information and is suitable for processing and predicting important events with very long intervals and delays in time series;

[0067] 4) Bidirectional LSTM (BiLSTM) model: The forward LSTM and the backward LSTM are combined into BiLSTM. The BiLSTM model can effectively use past features (through the forward state) and future features (through the backward state) within a specified time range;

[0068] 5) Conditional Random Field (CRF) model can be used to construct a conditional probability distribution model of another set of output random variables under the condition of a given set of input random variables.

[0069] 6) BiLSTM+CRF model, which is a BI-LSTM-CRF network model that is formed by combining a BiLSTM network model and a CRF network model. This network model can utilize past input features and sentence-level label information, and can also utilize future input features;

[0070] 7) Approximate nearest neighbor search, using the characteristics of clustered distribution between data as the amount of data increases, classifies or encodes the data in the database through data analysis and clustering methods, predicts the data category to which the target data belongs based on its data characteristics, and returns part or all of the category as the search result. The core idea of ​​approximate nearest neighbor search: searching for data items that may be neighbors instead of just returning the most likely items, improving search efficiency at the expense of accuracy within an acceptable range.

[0071] In order to better understand the embodiments of the present application, the music recognition method and existence determination in the related art are first explained.

[0072] The existing song recognition method uses its large amount of music library resources to build a large-scale song fingerprint library. Then, when performing song recognition, the fingerprint of the song to be recognized is matched with the fingerprint library, and the song name with the highest matching degree is used as the recognition result.

[0073] This implementation requires abundant music library resources, resulting in a high threshold for building song recognition. In addition, in this implementation, it is necessary to build an audio fingerprint for the entire song in the song library. The size of the audio fingerprint is positively correlated with the length of the song, which makes the audio fingerprint very large, and the storage and comparison calculation costs are very high. However, short videos generally select a certain segment of the song, which is generally much shorter than the entire song, resulting in unnecessary storage and similarity comparison calculation costs for building fingerprints for the entire song in the music library.

[0074] In addition, this method does not take into account the characteristics of short videos. For example, the background music of some popular short videos is not songs, but music created by other users. As the video plays, it gains a certain popularity. Some are adapted versions of songs, which cannot be identified using the above method.

[0075] Based on this, the music recognition method provided in the embodiment of the present application integrates the distribution characteristics of the short video library, takes some videos in the video library with background music marked as the seed background music recognition library, and uses artificial intelligence to perform multi-dimensional similarity matching and recognition of titles and audios, so that the recognition accuracy is relatively high and the storage and computing costs can be effectively guaranteed.

[0076] The following describes an exemplary application of the apparatus for implementing the embodiment of the present application. The apparatus provided in the embodiment of the present application can be implemented as a terminal device. The following describes an exemplary application of the terminal device when the apparatus is implemented as a terminal device.

[0077] Figure 1 A schematic diagram of a network architecture of a music recognition method for short videos according to an embodiment of the present application is shown in FIG. Figure 1 As shown, the network architecture includes: a user terminal 100 (in Figure 1 , user terminals 100-1 and 100-2), server 200 and network 300 are exemplarily shown. To support an exemplary application, user terminal 100 is connected to server 200 through network 300. User terminal 100 may be a smart terminal, on which various applications (Application, App) may be installed, such as Apps for watching and making short videos. Network 300 may be a wide area network or a local area network, or a combination of the two, using a wireless link to achieve data transmission.

[0078] The server 200 may be a server corresponding to a video viewing App. Various videos are stored in the server 200, and the videos stored in the server 200 may generally have background music, but not all background music is marked. In the embodiment of the present application, the server 200 constructs a background music seed library through its own marked background music, and uses the background music seed library to identify the background music in the unmarked videos stored in itself, and marks the videos based on the identified results. After marking the videos stored in itself, the server 200 can count the popular background music and send it to the user terminal 100, so that the user corresponding to the user terminal 100 can use the popular background music to make short videos and upload them to the server 200 for publishing.

[0079] The device provided in the embodiments of the present application may be implemented in the form of hardware or a combination of hardware and software. Various exemplary implementations of the device provided in the embodiments of the present application are described below.

[0080] according to Figure 2The exemplary structure of the server 200 shown may foresee other exemplary structures of the server 200, and therefore the structure described here should not be considered as limiting. For example, some components described below may be omitted, or components not described below may be added to meet the special needs of certain applications.

[0081] Figure 2 The server 200 shown includes: at least one processor 210, a memory 240, at least one network interface 220 and a user interface 230. Each component in the server 200 is coupled together via a bus system 250. It is understood that the bus system 250 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 250 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 250 is not described in detail. Figure 2 Various buses are labeled as bus system 250 .

[0082] The user interface 230 may include a display, a keyboard, a mouse, a touch pad, a touch screen, and the like.

[0083] The memory 240 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM). The volatile memory may be a random access memory (RAM). The memory 240 described in the embodiments of the present application is intended to include any suitable type of memory.

[0084] The memory 240 in the embodiment of the present application can store data to support the operation of the server 200. Examples of such data include: any computer program used to operate on the server 200, such as an operating system and an application program. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program can include various application programs.

[0085] As an example of the method provided in the embodiment of the present application being implemented by software, the method provided in the embodiment of the present application can be directly embodied as a combination of software modules executed by the processor 210. The software module can be located in a storage medium, and the storage medium is located in the memory 240. The processor 210 reads the executable instructions included in the software module in the memory 240, and completes the method provided in the embodiment of the present application in combination with the necessary hardware (for example, including the processor 210 and other components connected to the bus 250).

[0086] As an example, the processor 210 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0087] The music recognition method for short videos provided by the embodiment of the present application will be explained in combination with the exemplary application and implementation of the terminal provided by the embodiment of the present application.

[0088] In order to better understand the method provided in the embodiments of the present application, artificial intelligence, its various branches, and the application fields involved in the method provided in the embodiments of the present application are first explained.

[0089] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making.

[0090] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning. The solution provided in the embodiments of this application involves technologies such as machine learning of artificial intelligence.

[0091] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning and other technologies.

[0092] See also Figure 3 , Figure 3 A schematic diagram of an implementation flow of a music recognition method for short videos provided in an embodiment of the present application, which is applied to Figure 1 The server shown, combined with Figure 3 The steps shown are explained.

[0093] Step S101, obtaining the marked background music and the marked background music identifier of the marked video.

[0094] Here, a marked video refers to a video whose background music identifier has been determined, and a marked background music refers to the background music in the marked video. The marked background music identifier is also the identifier of the marked background music, that is, the name of the music. In the embodiment of the present application, whether it is a marked video can be determined by determining whether the marking information in the attribute information of each video is not empty, wherein when the marking information of a certain video is not empty, the video is determined to be a marked video, and correspondingly, when the marking information of the video is empty, the video is determined to be an unmarked video, that is, a video to be identified.

[0095] A large number of videos created and uploaded by users are stored in the server, and background music is generally added to the videos in order to enhance the video effects. Among the large number of videos stored in the server, only the background music in some videos is marked with its identification information. When a user hears the background music of interest while watching a video and wants to use it in the video he / she created, he / she first needs to know the identification of the background music, that is, the name of the background music. In an embodiment of the present application, the server first obtains the marked video, extracts the background music in the marked video to obtain the marked background music, and determines the marking information of the marked video as the marked background music identification.

[0096] Step S102: construct a background music seed library based on the labeled video identifier, the labeled background music identifier and the labeled background music.

[0097] Here, the background music seed library at least includes the correspondence between the tagged video identifier, the tagged background music identifier and the audio fingerprint of the tagged background music. It should be noted that the tagged video identifier can be a unique identifier (ID) assigned to the video by the server when the user uploads the video, or a uniform resource locator (URL) address for viewing the tagged video.

[0098] In an embodiment of the present application, the correspondence may include a positive list of video-background music-audio fingerprints, that is, a first correspondence between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music, and may also include a negative list of video-background music, that is, a second correspondence between the labeled background music identifier and the labeled video identifier. Since a piece of background music is often used in multiple videos, the second correspondence is generally a one-to-many correspondence.

[0099] In some embodiments, the background music seed library may also include only a first correspondence relationship between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music.

[0100] In the embodiment of the present application, the background music seed library is constructed based on the annotated background music in the annotated videos stored in the system, and since the annotated background music is generally not a complete piece of music, compared to using the entire piece of music to construct the seed library, the storage and computing costs can be greatly reduced.

[0101] Step S103, obtaining the background music to be identified in the video to be identified, the title information of the video to be identified, and the audio fingerprint of the background music to be identified.

[0102] Here, the video to be identified may be an unlabeled video stored in the server. In some embodiments, the video to be identified may also be a video sent by a user to the server for identification. The title information of the video to be identified is the title set by the user for the video when uploading the video, and the title information is generally text information.

[0103] The audio fingerprint of the background music to be identified can be to construct a time spectrum graph corresponding to the music to be identified by performing a fast Fourier transform (FFT) on the music to be identified, and use the amplitude peak of the time spectrum graph as the audio fingerprint of the background music to be identified. The audio fingerprint is a one-dimensional vector. Generally speaking, the length of the audio fingerprint corresponding to background music of different durations is also different.

[0104] Step S104: when there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, an audio fingerprint corresponding to the candidate background music identifier is obtained.

[0105] Here, before step S104, it is also necessary to perform a judgment process of whether there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information. Furthermore, the judgment process can be implemented by text matching the title information with the marked background music identifier in the corresponding relationship. When there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information, the audio fingerprint corresponding to the alternative background music identifier can be obtained based on the alternative background music identifier and the corresponding relationship. For the same background music identifier, there may be corresponding background music of various styles or tunes, so the audio fingerprints corresponding to the alternative background music identifier are generally multiple.

[0106] Step S105: when the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition, the candidate background music identifier is determined as the identifier of the background music to be identified.

[0107] Here, when implementing step S105, the multiple audio fingerprints corresponding to the alternative background music identifier can be respectively calculated with the audio fingerprint of the background music to be identified. If at least one of the multiple similarity values ​​obtained is greater than the similarity threshold, it is considered that the audio fingerprint corresponding to the alternative background music identifier and the audio fingerprint of the background music to be identified meet the similarity condition. At this time, the alternative background music identifier is determined as the identifier of the background music to be identified.

[0108] In some embodiments, determining the candidate background music identifier as the identifier of the background music to be identified may be implemented by adding the candidate background music identifier to the annotation information of the video to be identified.

[0109] In the music recognition method for short videos provided in the embodiment of the present application, a background music seed library is constructed based on the labeled video identifier, the labeled background music identifier and the labeled background music stored in itself, and the background music seed library at least includes the corresponding relationship between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music. After obtaining the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified, the title information of the video to be identified is used to perform text matching with the labeled background music identifier in the corresponding relationship (which can also be considered as the background music seed library). After determining the background music that matches the title information After the matching alternative background music identification is obtained, an audio fingerprint comparison is further performed to determine the recognition result. In this way, a seed library is constructed by the background music in the video stored by itself, and the background music in the unlabeled video stored by itself is also identified. In other words, the video to be identified is the same source as the constructed seed video, which can ensure the correctness of the recognition. In addition, in the recognition process, text matching is first performed to obtain the alternative background music identification, and then the audio fingerprint corresponding to the alternative music identification is compared with the audio fingerprint of the background music to be identified. There is no need to compare the audio fingerprint of the background music to be identified with all the audio fingerprints in the seed library one by one, which can significantly improve the recognition efficiency.

[0110] In some embodiments, Figure 3 The step S102 shown can be implemented by the following steps S1021 to S1023, which are described below in combination with each step.

[0111] Step S1021: determining the audio fingerprint of each marked background music based on the audio information of each marked background music.

[0112] Here, when implementing step S1021, fast Fourier transform can be performed on the audio information of each labeled background music to construct a time spectrum graph corresponding to each audio information, and the amplitude peak of the time spectrum graph is used as the audio fingerprint of each labeled background music.

[0113] Step S1022: establishing a first correspondence between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music.

[0114] Here, the first correspondence may be a positive list of video-background music-audio fingerprints, and the first correspondence is a one-to-one correspondence. For example, the first correspondence may be:

[0115] Video 1-background music 1-background music fingerprint 1;

[0116] Video 2-background music 2-background music fingerprint 2;

[0117] Video 3 - Background music 3 - Background music fingerprint 3.

[0118] Step S1023: establishing a second corresponding relationship between the marked background music identifier and the marked video identifier.

[0119] Here, the second correspondence is a reverse list of video-background music, that is, the correspondence between the marked background music identifier and the marked video identifier. The second correspondence is generally one-to-many. Since some popular music may be used as background music in a large number of videos, the number of marked videos corresponding to the identifier of the popular music will also be quite surprising. In order to reduce the storage overhead of the background music seed library, step S1023 can be further implemented by the following steps:

[0120] Step S0231, obtaining each marked video identifier and each marked video corresponding to each marked background music identifier.

[0121] Here, when implementing step S0231, the first corresponding relationship may be used to obtain each marked video identifier and each marked video corresponding to each marked background music identifier.

[0122] Step S0232, determining whether the number of marked videos corresponding to the marked background music identifiers is greater than a preset number threshold N.

[0123] Here, when the number of marked videos corresponding to the marked background music identifier is greater than the preset number threshold N, enter step S0233; when the number of marked videos corresponding to the marked background music identifier is less than or equal to the preset number threshold N, enter step S0235.

[0124] Step S0233: When the number of tagged videos corresponding to the tagged background music identifiers is greater than a preset number threshold N, M target videos are determined from the tagged videos.

[0125] Wherein, N is a positive integer greater than 2, and M is a positive integer less than or equal to N. When determining M target videos from each labeled video, the labeled videos may be sorted according to popularity, and the M most popular videos are selected as target videos based on the sorting result; in addition, M videos may be randomly selected from each labeled video as target videos; in some embodiments, each labeled video may be sorted according to the size of the occupied space, and the M videos with the smallest occupied space are selected as target videos based on the sorting result.

[0126] Step S0234: establishing a second correspondence between the marked background music identifier and the marked video identifiers of the M target videos.

[0127] Here, the second corresponding relationship is a corresponding relationship between a pair of M.

[0128] Step S0235: establishing a second correspondence between the marked background music identifier and the marked video identifiers of each marked video.

[0129] Through the above-mentioned steps S1021 to S1023, a background music seed library is constructed using the labeled videos and corresponding labeled background music stored in the server itself to provide reference data for identifying background music in other videos to be identified, which not only ensures the comprehensiveness of the data but also reduces the computational complexity.

[0130] In some embodiments, when implementing the process of determining whether there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, at least the following two implementation methods can be used:

[0131] The first implementation method:

[0132] Step S001a: text matching is performed between the title information and each marked background music identifier in the second corresponding relationship.

[0133] Here, since the second correspondence is the correspondence between the marked background music identifier and the marked video identifier, that is, in the second correspondence, the marked background music identifiers are not repeated, therefore in step S001a, text matching is performed on the title information with the marked background music identifiers in the second correspondence, which is more efficient than matching with the marked background music identifiers in the first correspondence.

[0134] In some embodiments, if when constructing the background music seed library, the correspondence only includes the first correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music, then step S001a may be to perform text matching on the title information with each labeled background music identifier in the first correspondence.

[0135] Step S002a, determining whether the title information contains the first marked background music identifier in the second corresponding relationship.

[0136] Here, when the title information includes the first marked background music identifier in the second corresponding relationship, it is determined that there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information, and step S003a is entered at this time. When the title information does not include the first marked background music identifier in the second corresponding relationship, it is determined that there is no alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information, and the match is considered to have failed. At this time, step S001b can be entered, or step S106 can be entered.

[0137] For example, the title information is "You look so pretty when you smile - finger dance". The title information is matched with each marked background music identifier in the second correspondence. Assuming that the second correspondence includes the first marked background music identifier "You look so pretty when you smile", since "You look so pretty when you smile" is included in the title information, it is considered that there is an alternative background music identifier in the correspondence that meets the text matching condition with the title information.

[0138] Step S003a: determining the first marked background music identifier as a candidate background music identifier.

[0139] The second implementation method:

[0140] Step S001b: using the trained first neural network model to identify each keyword in the title information.

[0141] Here, when implementing step S001b, the first neural network model can be a bidirectional long short-term memory + conditional random field (BiLSTM+CRF, Bidirectional Long Short-Term Memory+Conditional Random Field) model, and identifying each keyword in the title information can be identifying each entity word in the title information.

[0142] Step S002b: text matching is performed between each keyword in the title information and each marked background music identifier in the second corresponding relationship.

[0143] Step S003b, determining whether there is a second marked background music identifier that contains all the keywords.

[0144] Among them, when there is a second marked background music identifier containing all keywords in the second corresponding relationship, it is determined that there is an alternative background music identifier in the corresponding relationship that meets the text matching conditions with the title information, and step S004b is entered at this time; when there is no second marked background music identifier containing all keywords in the second corresponding relationship, it is determined that there is no alternative background music identifier in the corresponding relationship that meets the text matching conditions with the title information, and step S106 can be entered at this time.

[0145] Step S004b: determining the second marked background music identifier as a candidate background music identifier.

[0146] It should be noted that these two implementation methods can be used separately or in combination. When used in combination, the first implementation method is generally used to determine the alternative music identifier. When the first implementation method cannot determine the alternative music identifier, the second implementation method is further used to determine the alternative background music identifier.

[0147] In some embodiments, on the basis of implementing step S102 through steps S1021 to S1023, step S104 "when there is an alternative background music identifier that meets the text matching condition with the title information in the corresponding relationship, obtaining the audio fingerprint corresponding to the alternative background music identifier" can be implemented by the following steps:

[0148] Step S1041: Based on the second corresponding relationship, determine each candidate video identifier corresponding to the candidate music identifier.

[0149] Here, since the second correspondence stores the correspondence between the marked background music identifier and the marked video identifier, the marked background music identifier in the second correspondence is not repeated. Therefore, after determining the alternative music identifier, the alternative video identifiers corresponding to the alternative music identifier can be determined by querying the second correspondence.

[0150] Step S1042: Based on the first corresponding relationship, determine the audio fingerprint corresponding to each candidate video identifier.

[0151] Here, since the first correspondence stores a one-to-one correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music, after determining the alternative video identifier, the audio fingerprint corresponding to each alternative video identifier can be obtained based on the first correspondence.

[0152] Step S1043: determine the audio fingerprints corresponding to the candidate video identifiers as the audio fingerprints corresponding to the candidate background music identifiers.

[0153] In the embodiment of steps S1041 to S1043, when determining the audio fingerprint corresponding to the alternative background music identifier, the second corresponding relationship is used to determine the alternative video identifier, and the first corresponding relationship is used to determine the audio fingerprint corresponding to the alternative video identifier, which can maximize the efficiency of determining the audio fingerprint, thereby improving the recognition efficiency.

[0154] In some embodiments, before step S105, the following steps need to be performed to determine whether the audio fingerprint corresponding to the candidate background music identifier meets the similarity condition with the audio fingerprint of the background music to be identified:

[0155] Step S41, respectively determining the similarity values ​​between the audio fingerprint corresponding to each candidate video identifier and the audio fingerprint of the background music to be identified.

[0156] Here, since the audio fingerprint is actually a vector, when determining the similarity value between the audio fingerprint corresponding to an alternative video identifier and the audio fingerprint of the background music to be identified, we can first determine the intersection between the audio fingerprint corresponding to the alternative video identifier and the audio fingerprint of the background music to be identified, and then sum the elements in the intersection, and divide the obtained sum by (the number of elements included in the audio fingerprint corresponding to the alternative video identifier + the number of elements included in the audio fingerprint of the background music to be identified).

[0157] Step S42: determine whether there is at least one similarity value greater than a similarity threshold.

[0158] Among them, when there is at least one similarity value greater than the similarity threshold, it is determined that the audio fingerprint corresponding to the alternative background music identifier and the audio fingerprint of the background music to be identified meet the similarity condition, and step S105 is entered at this time; when there is not at least one similarity greater than the similarity threshold, it is determined that the audio fingerprint corresponding to the alternative background music identifier and the audio fingerprint of the background music to be identified do not meet the similarity condition, and the identification fails.

[0159] In some embodiments, Figure 4 As shown, after step S103, the following steps may also be performed:

[0160] Step S103', determining whether there is a candidate background music identifier in the corresponding relationship that meets the text matching condition with the title information.

[0161] Here, when there is an alternative background music identifier that meets the text matching condition with the title information in the corresponding relationship, step S104 is entered; when there is no alternative background music identifier that meets the text matching condition with the title information in the corresponding relationship, step S106 is entered.

[0162] In some embodiments, step S103' may be implemented through the above-mentioned steps S001a to S003a or through steps S001b to S004b.

[0163] Step S106, determining the depth representation vector of the background music to be identified.

[0164] Here, when implementing step S106, the depth representation vector of the background music to be identified may be determined by a trained second neural network model. Furthermore, the audio information corresponding to the background music to be identified may be input into the trained second neural network model to obtain the depth representation vector of the background music to be identified. It should be noted that the number of elements in the depth representation vectors of different background music to be identified or labeled background music is the same.

[0165] Step S107, obtaining a pre-built search index.

[0166] Here, the retrieval index is constructed based on the depth representation vector of each annotated background music in the background music seed library. When constructing the retrieval index, firstly, the depth vector representation of each annotated background music is determined according to the trained second neural network model, and then the retrieval index is constructed according to the preset index construction algorithm and the depth vector representation of each annotated background music.

[0167] In the embodiment of the present application, the search index may be an approximate nearest neighbor (ANN) search index, and further, may be a tree-shaped ANN search index.

[0168] Step S108, determining K similar background music identifiers of the background music to be identified based on the depth representation vector of the background music to be identified and the search index.

[0169] Here, when implementing step S108, the first to Pth elements in the depth representation vector of the background music to be identified may be compared with the elements corresponding to each node in the search index to determine K similar background music identifiers of the background music to be identified.

[0170] Step S109: determining the identifier of the background music to be identified from the K similar background music identifiers.

[0171] Here, step S109 can be implemented by the following steps:

[0172] Step S1091: Based on the first corresponding relationship, obtain the audio fingerprints corresponding to the K similar background music identifiers.

[0173] Step S1092, respectively determine the similarity values ​​between the audio fingerprints corresponding to the K similar background music identifiers and the audio fingerprint of the background music to be identified.

[0174] Here, the implementation process of step S1092 may refer to the implementation process of step S41.

[0175] Step S1093: determine the similar background music identifier corresponding to the highest similarity value as the identifier of the background music to be identified.

[0176] In the music recognition method for short videos provided in an embodiment of the present application, when the identifier of the background music to be identified cannot be determined by text matching, the trained second neural network model can be used to determine the deep representation vector of the background music to be identified, and K similar background music identifiers can be quickly determined through a pre-constructed retrieval index and the deep representation vector of the background music to be identified, and then the audio fingerprint of the background music to be identified is compared one by one with the audio fingerprints corresponding to the K similar background music identifiers, without having to compare with all the audio fingerprints in the background music seed library, thereby improving the computing efficiency while ensuring the recognition accuracy.

[0177] In some instances, such as Figure 5 As shown, after step S103, the following steps may also be performed:

[0178] Step S103', determining whether there is a candidate background music identifier in the corresponding relationship that meets the text matching condition with the title information.

[0179] Here, when there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, the process proceeds to step S104; when there is no candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, the process proceeds to step S106'.

[0180] Step S106 ′, transforming the audio fingerprint of the background music to be identified to obtain a transformed audio fingerprint.

[0181] Here, when implementing step S106 ′, the audio fingerprint of the music to be identified is subjected to upsampling or downsampling transformation processing, so that the number of elements in the transformed audio fingerprint can reach a preset value, and the preset number may be 128, for example.

[0182] Step S107', obtaining a pre-built search index.

[0183] Here, the search index is constructed based on the transformed audio fingerprints of each annotated background music in the background music seed library. When constructing the search index, the audio fingerprints of each annotated background music are firstly transformed in the same way as step S106' to obtain the transformed audio fingerprints of each annotated background music, and then the search index is constructed according to the preset index construction algorithm and the transformed audio fingerprints of each annotated background music.

[0184] The number of elements in the transformed music fingerprint of each labeled background music is the same as the number of elements in the transformed audio fingerprint of the background music to be identified. In an embodiment of the present application, the search index may be an ANN search index, and further, may be a tree-shaped ANN search index.

[0185] Step S108': determining K similar background music identifiers of the background music to be identified based on the transformed audio fingerprint of the background music to be identified and the search index.

[0186] Here, when implementing step S108, the first to Pth elements in the depth representation vector of the background music to be identified may be compared with the elements corresponding to each node in the search index to determine K similar background music identifiers of the background music to be identified.

[0187] Step S109 ′: determining the identifier of the background music to be identified from the K similar background music identifiers.

[0188] In the music recognition method provided in the embodiment of the present application, the audio fingerprint of the marked background music is transformed to obtain an audio fingerprint of the same dimension, and then a retrieval index is constructed. When the identifier of the background music to be identified cannot be determined by text matching, the audio fingerprint of the background music to be identified can also be transformed accordingly, and then K similar background music identifiers are determined through the retrieval index, and then the original audio fingerprints corresponding to the K similar background music identifiers are calculated with the original audio fingerprint of the background music to be identified to determine the recognition result. In this way, when the dimensions of the original audio fingerprints of the marked background music are not much different, the recognition efficiency can be further improved without affecting the recognition accuracy.

[0189] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0190] In the embodiment of the present application, the music recognition method provided in the embodiment of the present application is explained by taking the recognition of background music in a short video as an example.

[0191] Figure 6 A schematic diagram of another implementation flow of the music recognition method for short videos provided in the embodiment of the present application is as follows: Figure 6 As shown, the method includes:

[0192] Step S601, constructing a background music seed library based on videos in the platform video library that have background music marked.

[0193] Here, there are some videos with marked background music in the platform video library. For example, the annotation information of the background music of "https: / / v.qq.com / x / page / m3003o7v1ci.html" is: "sugar (laughter version)", and the annotation information of the background music of "https: / / v.qq.com / x / page / f0894z1pcp7.html" is: "Very cheerful and funny laughter." After obtaining the videos with marked background music, the background music of these videos is used as the seed library for identification and matching. There is no need to construct the entire audio fingerprint of all songs in the entire music library. Since the video to be identified is the same source as the constructed seed video, it can meet the identification requirements.

[0194] This step generates statistics in the following format:

[0195] Video 1 Background Music 1;

[0196] Video 2 Background Music 2;

[0197] Video 3 Background Music 3;

[0198] …

[0199] Video n background music n.

[0200] The obtained "background music 1", "background music 2", etc. are used as a background music name list to provide a data basis for subsequent title-based background music recognition.

[0201] To extract the audio part of the seed video, the ffmpeg tool can be used to extract the audio from the video, and then the FFT (Fast Fourier Transform) is performed on the audio part to construct a time spectrum graph, and the amplitude peak of the time spectrum graph is used as the audio fingerprint of the video.

[0202] After obtaining the audio fingerprint of the video, construct the video-background music-audio fingerprint forward and reverse lists respectively, where the forward list format is as follows:

[0203] Video 1 Background music 1 Background music fingerprint 1;

[0204] Video 2 Background music 2 Background music fingerprint 2;

[0205] Video 3 Background music 3 Background music fingerprint 3;

[0206] …

[0207] Video n Background music n Background music fingerprint n.

[0208] The above-mentioned video 1, video 2, ..., video n may be video identifiers, and background music 1, background music 2, ..., background music n may be music names, such as "You look so good when you smile", "Painting", etc. The background music of a video and the corresponding music fingerprint may be queried through the positive ranking table, and the positive ranking table may be stored based on resid or other databases.

[0209] The inverted list groups videos with the same background music together. The format of the inverted list is as follows:

[0210] Cow is flying-funny version: (Video 1, Video 3, Video 13, ...);

[0211] You look so beautiful when you smile: (Video 4, Video 9, ...);

[0212] …

[0213] Drawing: (Video 18, Video 36, ...).

[0214] Based on the inverted list, a batch of seed videos under a certain background music can be queried. When making a background music seed library, some background music is very popular, resulting in many videos using it as background music. For example, there are hundreds of thousands of videos with the background music "Niu Zai Fei - Funny Version". In the embodiment of the present application, some videos are selected as seed videos through a sampling-based method, such as retaining a maximum of 10%, and no more than 500 videos with the same background music (Background Music, BGM), which can reduce the data storage overhead of the background music seed library.

[0215] Step S602, identifying background music based on the video title.

[0216] Here, when step S602 is implemented, background music can be identified by template rules and entity recognition. When background music is identified by the template rule method, the background music table name in the positive list constructed above is used to perform text comparison with the title of the video to be identified. When the title of the video to be identified hits the BGM name in the positive list, the part of the title of the video to be identified that hits is used as the identified candidate background music name. For example, the title of the video to be identified is "The Most Beautiful Expectation - The Bride Sings Very Well, So Beautiful". At this time, it is identified that the title of the video to be identified contains the background music name "The Most Beautiful Expectation", so "The Most Beautiful Expectation" is used as the candidate background music name.

[0217] When identifying background music through entity recognition, the title of the video to be identified is first input into a named entity recognition model (such as a BiLSTM+CRF model) to identify the entity words in the title, and then the identified entity words are matched with the background music names in the constructed positive list, and the matched background music is used as the alternative background music name.

[0218] After identifying the candidate background music name in the title by means of template rules and / or entity recognition, the background music corresponding to the candidate background music name is verified and compared with the background music in the video to be identified. The comparison process is: audio is extracted from the video to be identified, and an audio fingerprint is constructed, and then the video corresponding to the candidate background music name is determined by querying the constructed inverse list, and then the seed background music fingerprint of the video corresponding to this candidate background music name is obtained through the forward list, and the audio fingerprint of the video to be identified is compared with these seed background music fingerprints. When there is a seed background music fingerprint whose similarity with the audio fingerprint of the video to be identified exceeds a similarity threshold (such as 0.8), the candidate music name is determined to be the background music name of the video to be identified.

[0219] In the recognition method provided in step S602, the text dimension information of the video is used for music recognition. Since the recognition / matching speed of the text is faster, the recognition efficiency of only using audio dimension features can be improved.

[0220] If the background music cannot be identified through step S602, the music identification is continued using step S603.

[0221] Step S603: identification based on similar background music features.

[0222] Here, when implementing step S603, firstly, a deep representation model is constructed for the annotated background music. The deep representation model has the ability to return the corresponding deep representation of the input background music. For example, after the background music audio is input into the deep representation model, a 128-dimensional vector is obtained, which is the deep representation of the background music. Similar background music has similar deep representation vectors. Figure 7 A schematic diagram of the implementation process of obtaining music depth representation using a background music depth representation model provided in an embodiment of the present application, such as Figure 7 As shown, the process includes:

[0223] Step S701, input background music;

[0224] Step S702, extracting an audio frame sequence;

[0225] Step S703, obtaining Mel-spectrogram features of each audio frame in the audio frame sequence;

[0226] Step S704, inputting the Mel-spectrogram features of each audio frame into a Vggish or Yammet network to obtain a feature vector of each audio frame;

[0227] Step S705, using BiLSTM / NetValid to fuse the feature vectors of each audio frame in time sequence to obtain a fused feature vector of the background music;

[0228] Step S706, using N layers of fully connected layers to perform full connection processing on the fused feature vector to obtain a deep representation vector of the music.

[0229] Step S707: Use the depth representation vector of the background music to determine the music classification and output it.

[0230] In an embodiment of the present application, a deep representation model is trained based on labeled background music classification data (such as music style classification data), and the last fully connected hidden layer output of the deep representation model is used as the deep representation of the background music.

[0231] Using the trained deep representation model, the deep representation vector of each seed background music is constructed, and then the ANN nearest neighbor retrieval index is constructed. In the embodiment of the present application, the nearest neighbor retrieval can be implemented through ElasticFaiss. When it is necessary to identify the background music for the video to be identified, the deep representation model can be used to obtain the deep representation of the background music first, and the candidate list of similar background music of the background music can be obtained by querying the ANN retrieval index, where there are K similar candidate background music in the candidate list.

[0232] After obtaining K candidate background music, the audio fingerprint of the background music to be identified is compared with the audio fingerprints of the K candidate background music, and the candidate background music with the highest similarity and greater than the similarity threshold is used as the final background music identification result. In this way, there is no need to compare the audio fingerprint of the background music to be identified with the fingerprint corresponding to each background music in each background music seed library one by one, which can improve the computing efficiency while ensuring the recognition accuracy.

[0233] Through the music identification method provided in the embodiment of the present application, seed videos with marked background music in the platform video library can be used to identify videos without marked background music, which can not only make full use of the video library resources, but also reduce the storage and computing costs of building the fingerprint of the entire song. After the background music is identified, it can be used to display the background music name on the front end of the video player, retrieve and recommend videos based on the background music, etc., thereby improving the efficiency and experience of users in making short videos.

[0234] The following is a description of an exemplary structure of a music recognition device 80 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the music recognition device for short videos (hereinafter referred to as music recognition device) 80 in the memory 240 may include:

[0235] A first acquisition module 81 is used to acquire the marked background music and the marked background music identifier of the marked video;

[0236] A seed library creation module 82, configured to construct a background music seed library based on the labeled video identifier, the labeled background music identifier and the labeled background music, wherein the background music seed library at least includes a correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music;

[0237] The second acquisition module 83 is used to acquire the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified;

[0238] The third acquisition module 84 is used to acquire the audio fingerprint corresponding to the candidate background music identifier when there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship;

[0239] The first determination module 85 is used to determine the candidate background music identifier as the identifier of the background music to be identified when the audio fingerprint corresponding to the candidate background music identifier meets a similarity condition with the audio fingerprint of the background music to be identified.

[0240] In some embodiments, the seed library construction module 82 is further used to:

[0241] Based on the audio information of each marked background music, determine the audio fingerprint of each marked background music;

[0242] Establishing a first correspondence between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music;

[0243] A second corresponding relationship between the marked background music identifier and the marked video identifier is established.

[0244] In some embodiments, the seed library construction module 82 is further used to:

[0245] Obtain each labeled video identifier and each labeled video corresponding to each labeled background music identifier;

[0246] When the number of tagged videos corresponding to the tagged background music is greater than a preset number threshold N, M target videos are determined from the tagged videos, where N is a positive integer greater than 2 and M is a positive integer less than or equal to N;

[0247] A second corresponding relationship between the marked background music identifier and the marked video identifiers of the M target videos is established.

[0248] In some embodiments, the music recognition device further includes:

[0249] A first matching module is used to perform text matching between the title information and each marked background music identifier in the second corresponding relationship; wherein, when the title information includes the first marked background music identifier in the second corresponding relationship, it is determined that there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information;

[0250] A second determining module is configured to determine the first marked background music identifier as a candidate background music identifier; or

[0251] A recognition module, used for recognizing each keyword in the title information by using the trained first neural network model;

[0252] The second matching module is used to perform text matching between each keyword in the title information and each marked background music identifier in the second corresponding relationship, wherein, when all keywords are included in the marked background music identifier, it is determined that there is a marked background music identifier in the corresponding relationship that meets the text matching conditions with the title information.

[0253] In some embodiments, the third acquisition module 84 is further used for:

[0254] Based on the second corresponding relationship, determining each candidate video identifier corresponding to the candidate music identifier;

[0255] Based on the first corresponding relationship, determine the audio fingerprint corresponding to each candidate video identifier;

[0256] The audio fingerprint corresponding to each candidate video identifier is determined as the audio fingerprint corresponding to the candidate background music identifier.

[0257] In some embodiments, the music recognition device further includes:

[0258] A third determination module is used to respectively determine the similarity values ​​between the audio fingerprint corresponding to each candidate video identifier and the audio fingerprint of the background music to be identified;

[0259] The fourth determination module is used to determine that the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition when there is at least one similarity value greater than a similarity threshold.

[0260] In some embodiments, the music recognition device further includes:

[0261] A fifth determination module, configured to determine a depth representation vector of the background music to be identified when there is no candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship;

[0262] A fourth acquisition module is used to acquire a pre-built retrieval index, wherein the retrieval index is built based on the depth representation vector of each annotated background music in the background music seed library;

[0263] A sixth determination module, configured to determine K similar background music identifiers of the background music to be identified based on the depth representation vector of the background music to be identified and the search index;

[0264] The seventh determination module is used to determine the identifier of the background music to be identified from the K similar background music identifiers.

[0265] In some embodiments, the seventh determining module is further configured to:

[0266] Based on the first corresponding relationship, obtaining audio fingerprints corresponding to the K similar background music identifiers;

[0267] Respectively determine the similarity values ​​between the audio fingerprints corresponding to the K similar background music identifiers and the audio fingerprint of the background music to be identified;

[0268] The similar background music identifier corresponding to the highest similarity value is determined as the identifier of the background music to be identified.

[0269] The present application embodiment provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the method provided by the present application embodiment, for example, Figure 3 , Figure 4 and Figure 5 The method shown.

[0270] In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0271] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0272] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).

[0273] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0274] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A music recognition method for short videos, characterized in that: include: Obtaining the marked background music and the marked background music identifier of the marked video; the marked video is a video whose background music identifier has been determined; the marked background music is extracted from the marked video, and the marked background music identifier is the marking information of the marked video; The background music seed library is constructed based on the labeled video identifier, the labeled background music identifier and the labeled background music, wherein the background music seed library at least includes the corresponding relationship between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music; the background music seed library is constructed based on the labeled video identifier, the labeled background music identifier and the labeled background music, including: Based on the audio information of each marked background music, determine the audio fingerprint of each marked background music; Establishing a first correspondence between the labeled video identifier, the labeled background music identifier, and the audio fingerprint of the labeled background music; the first correspondence is one-to-one; Obtain each labeled video identifier and each labeled video corresponding to each labeled background music identifier; When the number of tagged videos corresponding to the tagged background music is greater than a preset number threshold N, M target videos are determined from the tagged videos, where N is a positive integer greater than 2 and M is a positive integer less than or equal to N; Establishing a second correspondence between the labeled background music identifier and the labeled video identifiers of the M target videos; the second correspondence is a one-to-many correspondence; Obtaining background music to be identified in the video to be identified, title information of the video to be identified, and an audio fingerprint of the background music to be identified, wherein both the marked video and the video to be identified are short videos with a duration less than a preset threshold; When there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, obtaining an audio fingerprint corresponding to the candidate background music identifier; When the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition, the candidate background music identifier is determined as the identifier of the background music to be identified.

2. The method according to claim 1, characterized in that The method further comprises: Performing text matching between the title information and each marked background music identifier in the second corresponding relationship; wherein, when the title information includes the first marked background music identifier in the second corresponding relationship, determining that there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information; The first marked background music identifier is determined as a candidate background music identifier.

3. The method according to claim 1, characterized in that The method further comprises: Using the trained first neural network model to identify each keyword in the title information; Text matching is performed on each keyword in the title information and each marked background music identifier in the second corresponding relationship, wherein, when all keywords are contained in the marked background music identifier, it is determined that there is a marked background music identifier in the corresponding relationship that meets the text matching condition with the title information.

4. The method according to claim 1, characterized in that The method further comprises: When there is no candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship, determining the depth representation vector of the background music to be identified; Acquire a pre-built retrieval index, wherein the retrieval index is built based on the depth representation vector of each labeled background music in the background music seed library; Determine K similar background music identifiers of the background music to be identified based on the depth representation vector of the background music to be identified and the search index; The identifier of the background music to be identified is determined from the K similar background music identifiers.

5. The method according to claim 4, characterized in that The step of determining the identifier of the background music to be identified from the K similar background music identifiers includes: Based on the first corresponding relationship, obtaining audio fingerprints corresponding to the K similar background music identifiers; Respectively determine the similarity values ​​between the audio fingerprints corresponding to the K similar background music identifiers and the audio fingerprint of the background music to be identified; The similar background music identifier corresponding to the highest similarity value is determined as the identifier of the background music to be identified.

6. A music recognition device for short videos, characterized in that: The device comprises: A first acquisition module is used to acquire the marked background music and the marked background music identifier of the marked video; the marked video is a video whose background music identifier has been determined; the marked background music is extracted from the marked video, and the marked background music identifier is the marking information of the marked video; A seed library creation module is used to construct a background music seed library based on the labeled video identifier, the labeled background music identifier and the labeled background music, wherein the background music seed library at least includes the correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music; based on the audio information of each labeled background music, determine the audio fingerprint of each labeled background music; establish a first correspondence between the labeled video identifier, the labeled background music identifier and the audio fingerprint of the labeled background music; the first correspondence is one-to-one; obtain each labeled video identifier and each labeled video corresponding to each labeled background music identifier; when the number of labeled videos corresponding to the labeled background music is greater than a preset number threshold N, determine M target videos from each labeled video, wherein N is a positive integer greater than 2, and M is a positive integer less than or equal to N; establish a second correspondence between the labeled background music identifier and the labeled video identifiers of the M target videos; the second correspondence is a one-to-many correspondence; The second acquisition module is used to acquire the background music to be identified in the video to be identified, the title information of the video to be identified and the audio fingerprint of the background music to be identified; A third acquisition module is used to acquire an audio fingerprint corresponding to the candidate background music identifier when there is a candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship; The first determination module is used to determine the candidate background music identifier as the identifier of the background music to be identified when the audio fingerprint corresponding to the candidate background music identifier meets a similarity condition with the audio fingerprint of the background music to be identified.

7. A music recognition device for short videos according to claim 6, characterized in that: The music recognition device also includes: A first matching module is used to perform text matching between the title information and each marked background music identifier in the second corresponding relationship; wherein, when the title information includes the first marked background music identifier in the second corresponding relationship, it is determined that there is an alternative background music identifier in the corresponding relationship that meets the text matching condition with the title information; a second determination module, configured to determine the first marked background music identifier as a candidate background music identifier; or a recognition module, configured to recognize each keyword in the title information using a trained first neural network model; The second matching module is used to perform text matching between each keyword in the title information and each marked background music identifier in the second corresponding relationship, wherein when all keywords are contained in the marked background music identifier, it is determined that there is a marked background music identifier in the corresponding relationship that meets the text matching conditions with the title information.

8. The music recognition device for short videos according to claim 6, characterized in that: The third acquisition module is also used for: Based on the second corresponding relationship, determining each candidate video identifier corresponding to the candidate background music identifier; Based on the first corresponding relationship, determine the audio fingerprint corresponding to each candidate video identifier; The audio fingerprints corresponding to the candidate video identifiers are determined as the audio fingerprints corresponding to the candidate background music identifiers.

9. The music recognition device for short videos according to claim 6, characterized in that: The music recognition device also includes: A third determination module is used to respectively determine the similarity values ​​between the audio fingerprint corresponding to each candidate video identifier and the audio fingerprint of the background music to be identified; The fourth determination module is used to determine that the audio fingerprint corresponding to the candidate background music identifier and the audio fingerprint of the background music to be identified meet a similarity condition when there is at least one similarity value greater than a similarity threshold.

10. The music recognition device for short videos according to claim 6, characterized in that: The music recognition device also includes: A fifth determination module, configured to determine a depth representation vector of the background music to be identified when there is no candidate background music identifier that meets the text matching condition with the title information in the corresponding relationship; A fourth acquisition module is used to acquire a pre-built retrieval index, wherein the retrieval index is built based on the depth representation vector of each annotated background music in the background music seed library; A sixth determination module, configured to determine K similar background music identifiers of the background music to be identified based on the depth representation vector of the background music to be identified and the search index; The seventh determination module is used to determine the identifier of the background music to be identified from the K similar background music identifiers.

11. A music recognition device for short videos according to claim 10, characterized in that: The seventh determination module is also used for: Based on the first corresponding relationship, obtaining audio fingerprints corresponding to the K similar background music identifiers; Respectively determine the similarity values ​​between the audio fingerprints corresponding to the K similar background music identifiers and the audio fingerprint of the background music to be identified; The similar background music identifier corresponding to the highest similarity value is determined as the identifier of the background music to be identified.

12. A music recognition device for short videos, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 5 when executing the executable instructions stored in the memory.

13. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Similar video search method and apparatus, and storage medium

    CN107066621A

  • Massive digital audio fingerprint storage and retrieval method

    CN109857898A

  • Background music prompt and recognition methods and devices, equipment and medium

    CN110335625A

  • Apparatus, method and computer readable recording medium for providing music related information by recognition of music output through television

    US20140007171A1