Information processing method
A generative model-based method corrects hand shape estimation in musical instrument performance images by processing image and performance data, addressing imprecision from finger crossing and blurring, thereby enhancing accuracy.
Patent Information
- Application Number
- JP2023025012
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-09-02
AI Technical Summary
Existing techniques struggle to accurately estimate the shape of a user's hand while playing a keyboard instrument due to issues like finger crossing and blurring, leading to imprecise hand shape determination in captured images.
An information processing method utilizing a trained generative model that processes image and performance data to correct the position of analysis points on a user's hand, incorporating a deep neural network to enhance accuracy by adding auxiliary components based on performance data and hand detection.
The method achieves high-precision estimation of hand shape during musical performance by correcting unclear or hidden hand positions, ensuring accurate representation of hand posture.
Smart Images

Figure 2024118627000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to technology for analyzing musical instrument performance. [Background technology]
[0002] Various techniques for analyzing a user's performance of a musical instrument have been proposed. For example, Patent Document 1 discloses a technique for estimating the shape of a user's hand by analyzing an image including the keys of a keyboard instrument and the user's hand. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2021 / 157691 Summary of the Invention [Problem to be solved by the invention]
[0004] However, it is practically difficult to estimate the shape of a hand with high accuracy by only analyzing an image including the keys of a keyboard instrument and the user's hand. For example, when the fingers operating the keys are hidden behind other fingers due to a playing technique such as finger under-hiding, or when the fingers moving at high speed are blurred in the image, it is not possible to estimate the shape of the user's hand with high accuracy by analyzing the image. In consideration of the above circumstances, one aspect of the present disclosure aims to estimate the shape of a user's hand with high accuracy while playing a musical instrument. [Means for solving the problem]
[0005] In order to solve the above problems, an information processing method according to one aspect of the present disclosure acquires input data including image data representing an image of the hand of a user playing a musical instrument, first finger position data representing the positions of each of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument, and processes the input data using a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected in accordance with the hand position represented by the image data and the performance represented by the performance data. [Brief description of the drawings]
[0006] [Figure 1] 1 is a block diagram of an information processing system according to a first embodiment. [Diagram 2] FIG. 4 is an explanatory diagram of image data and area data. [Diagram 3] FIG. 2 is a block diagram illustrating an example of a functional configuration of an information processing system. [Figure 4] FIG. 13 is an explanatory diagram of analysis data. [Diagram 5] 2 is a block diagram illustrating a configuration of an analysis processing unit. FIG. [Figure 6] FIG. 4 is a schematic diagram of finger position data. [Figure 7] FIG. 4 is a block diagram of an input data acquisition unit. [Figure 8] 13 is a flowchart of a replenishment process. [Figure 9] 13 is a flowchart of an analysis process. [Figure 10] FIG. 13 is an explanatory diagram of a training processing unit. [Figure 11] 13 is a flowchart of a training process. [Figure 12] FIG. 13 is a block diagram of an electronic keyboard instrument according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] A: First embodiment 1 is a block diagram illustrating the configuration of an information processing system 10 according to a first embodiment. The information processing system 10 is a computer system for analyzing a performance of an electronic musical instrument 20 by a user (i.e., a performer). The electronic musical instrument 20 and an imaging device 30 are connected to the information processing system 10 by wire or wirelessly.
[0008] The electronic musical instrument 20 is an electronic keyboard instrument that includes a keyboard 21. The keyboard 21 is made up of a number of keys 22 that correspond to different pitches. A user plays a desired piece of music by operating each key 22 in sequence.
[0009] The electronic musical instrument 20 transmits performance data E representing a performance by the user to the information processing system 10. The performance data E is data representing the pitch of the note played by the user. The performance data E is transmitted sequentially from the electronic musical instrument 20 each time the user operates each key 22. For example, the performance data E specifies the pitch and key pressing strength corresponding to the key 22 operated by the user. The performance data E is, for example, event data that complies with the MIDI (Musical Instrument Digital Interface) standard.
[0010] The imaging device 30 is an image input device that captures the performance of the electronic musical instrument 20 by a user. Specifically, the imaging device 30 generates image data G for each unit period (frame) on a time axis. The unit period is a period of a predetermined length of time. The time series of image data G constitutes moving image data. The imaging device 30 includes, for example, an optical system such as a photographing lens, an imaging element that receives incident light from the optical system, and a processing circuit that generates image data G according to the amount of light received by the imaging element. Note that, although the first embodiment illustrates an example in which a separate imaging device 30 is connected to the information processing system 10, the imaging device 30 may be mounted on the information processing system 10.
[0011] The imaging device 30 of the first embodiment is installed above the electronic musical instrument 20, and captures images of the keyboard 21 of the electronic musical instrument 20 and the user's right hand HR and left hand HL. Therefore, as illustrated in Fig. 2, image data G of images including the keyboard 21 of the electronic musical instrument 20 and the user's right hand HR and left hand HL (hereinafter referred to as "captured images") are generated in chronological order by the imaging device 30. In other words, the image data G is data representing images (captured images) of the right hand HR and left hand HL of the user playing the electronic musical instrument 20. Video data representing a video of the user playing the electronic musical instrument 20 is generated in parallel with the user's performance.
[0012] The information processing system 10 in Fig. 1 is a computer system that analyzes a user's performance of an electronic musical instrument 20. The information processing system 10 is realized by an information device such as a smartphone, a tablet terminal, or a personal computer. The information processing system 10 includes a control device 11, a storage device 12, a display device 13, an operation device 14, a sound source device 15, and a sound emission device 16. The information processing system 10 may be realized as a single device, or may be realized as a plurality of devices configured separately from each other.
[0013] The control device 11 is a single or multiple processors that control each element of the information processing system 10. Specifically, the control device 11 is configured by one or more types of processors, such as a central processing unit (CPU), a graphics processing unit (GPU), a sound processing unit (SPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC).
[0014] The storage device 12 is one or more memories that store the programs executed by the control device 11 and various data used by the control device 11. For example, a known recording medium such as a semiconductor recording medium or a magnetic recording medium, or a combination of multiple types of recording media, is used as the storage device 12. Note that, for example, a portable recording medium that is detachable from the information processing system 10, or a recording medium that the control device 11 can access via a communication network (for example, cloud storage) may be used as the storage device 12.
[0015] The display device 13 displays an image under the control of the control device 11. For example, various display panels such as a liquid crystal display panel or an organic EL (Electroluminescence) panel are used as the display device 13. The operation device 14 is an instruction input device that receives instructions from a user. For example, an operator operated by a user or a touch panel integrated with the display device 13 is used as the operation device 14. Note that the display device 13 or the operation device 14, which are separate from the information processing system 10, may be connected to the information processing system 10 by wire or wirelessly.
[0016] The sound source device 15 generates an audio signal corresponding to the performance data E. Specifically, the sound source device 15 generates an audio signal representing a waveform of a musical sound represented by the performance data E. The control device 11 may execute a program to realize the function of the sound source device 15. The sound emitting device 16 emits the musical sound represented by the audio signal. For example, a speaker or a headphone is used as the sound emitting device 16. The sound emitting device 16, which is separate from the information processing system 10, may be connected to the information processing system 10 by wire or wirelessly.
[0017] 3 is a block diagram illustrating an example of a functional configuration of the information processing system 10. The control device 11 executes a program stored in the storage device 12 to realize a plurality of functions (an analysis processing unit 40 and a training processing unit 50) for analyzing a performance of the electronic musical instrument 20 by a user.
[0018] [Analysis Processing Unit 40] The analysis processing unit 40 processes the image data G supplied from the imaging device 30 and the performance data E supplied from the electronic musical instrument 20 to generate analysis data F. The analysis data F is data representing the results of an analysis of the performance of the electronic musical instrument 20 by the user. Specifically, the analysis data F is data representing the state of the user's right hand HR and left hand HL during performance. The analysis data F is generated sequentially in parallel with the performance by the user. Specifically, the analysis processing unit 40 generates the analysis data F for each unit period.
[0019] 4 is an explanatory diagram of the analysis data F. The analysis data F includes analysis data FR and analysis data FL. The analysis data FR is data representing the coordinates of each of a plurality of analysis points P corresponding to the user's right hand HR. The analysis data FL is data representing the coordinates of each of a plurality of analysis points P corresponding to the user's left hand HL.
[0020] Analysis points P are points on the user's right hand HR and left hand HL that are the subject of analysis. Specifically, the analysis points P are exemplified by the tips and joints of each of the user's fingers and a point corresponding to the wrist. Each analysis point P is set in space α. Space α is a three-dimensional space that is set for each of the right hand HR and left hand HL. For example, space α is set with analysis point P corresponding to the user's wrist as a reference (e.g., the origin). As can be understood from the above explanation, analysis data F is data that represents the posture of the user's hand during playing.
[0021] 5 is a block diagram illustrating an example of the configuration of the analysis processing unit 40. The analysis processing unit 40 includes an input data acquisition unit 41, a finger position data generation unit 42, and an analysis data generation unit 43. The input data acquisition unit 41 acquires input data C1 for each unit period. The input data C1 for each unit period includes image data G, performance data E, and finger position data Y. The finger position data Y is data representing the positions of each of a plurality of analysis points P on the user's right hand HR and left hand HL.
[0022] 6 is a schematic diagram of finger position data Y. The finger position data Y includes finger position data YR corresponding to the user's right hand HR and finger position data YL corresponding to the user's left hand HL. The finger position data YR includes a plurality of unit data U corresponding to different analysis points P (PR1, PR2, ...) of the user's right hand HR. The finger position data YL includes a plurality of unit data U corresponding to different analysis points P (PL1, PL2, ...) of the user's left hand HL.
[0023] The unit data U corresponding to one analysis point P is data representing the probability distribution of the analysis point P in the space α. As illustrated in FIG. 6, a plurality of lattice points K are set in the space α. Each lattice point K is a point (grid) set at equal intervals in each direction of three mutually orthogonal axes in the space α. The unit data U represents a probability Q for each of the plurality of lattice points K in the space α. The probability Q of each lattice point K is the likelihood that the lattice point K corresponds to the analysis point P. For example, the greater the probability Q of one lattice point K in the space α, the higher the likelihood that the lattice point K corresponds to the analysis point P. Therefore, the distribution of the plurality of probabilities Q represented by the unit data U corresponds to the probability distribution of the analysis point P in the space α. That is, the finger position data YR represents the probability distribution in the space α for each of the plurality of analysis points P corresponding to the user's right hand HR. Similarly, the finger position data YL represents the probability distribution in the space α for each of the plurality of analysis points P corresponding to the user's left hand HL.
[0024] 5 processes input data C1 to generate output data C2. The output data C2 is generated for each unit period in parallel with a performance by a user. The output data C2 includes area data D and finger position data Z.
[0025] 2, the area data D is data representing a right hand area AR and a left hand area AL in the captured image represented by the image data G. The right hand area AR is the area in the captured image where the user's right hand HR exists. The left hand area AL is the area in the captured image where the user's left hand HL exists. The area data D is used by the input data acquisition unit 41 to generate finger position data Y, as described later.
[0026] The finger position data Z, like the finger position data Y, is data that represents the positions of each of the multiple analysis points P on the user's right hand HR and left hand HL. Specifically, the finger position data Z is data obtained by correcting the positions of the analysis points P in the finger position data Y in accordance with the positions of the right hand HR and left hand HL represented by the image data G and the performance represented by the performance data E.
[0027] As illustrated in FIG. 6, the finger position data Z has the same format as the finger position data Y. Specifically, the finger position data Z includes finger position data ZR corresponding to the user's right hand HR and finger position data ZL corresponding to the user's left hand HL. The finger position data ZR includes a plurality of unit data U corresponding to different analysis points P (PR1, PR2, ...) of the user's right hand HR. The finger position data ZL includes a plurality of unit data U corresponding to different analysis points P (PL1, PL2, ...) of the user's left hand HL. The unit data U of each analysis point P represents the probability distribution of the analysis point P in the space α. The finger position data Y is an example of the "first finger position data", and the finger position data Z is an example of the "second finger position data".
[0028] As illustrated in FIG. 5, a generative model M is used for generating output data C2 by the finger position data generating unit 42. The generative model M is a trained model that has learned the relationship between the input data C1 and the output data C2 through machine learning. The generative model M is also expressed as a trained model that has acquired the relationship between the input data C1 and the output data C2 through training (machine learning). The finger position data generating unit 42 processes the input data C1 of each unit period using the generative model M to generate output data C2. That is, the finger position data generating unit 42 generates output data C2 by inputting the input data C1 to the generative model M.
[0029] The generative model M is configured, for example, by a deep neural network (DNN). For example, any type of deep neural network, such as a recurrent neural network (RNN) or a convolutional neural network (CNN), is used as the generative model M. The generative model M may be configured by combining multiple types of deep neural networks. In addition, additional elements such as a long short-term memory (LSTM) or attention may be installed in the generative model M.
[0030] The finger position data generation unit 42 includes an area detection unit 421 and a correction processing unit 422. The generation model M includes a detection model Ma and a correction model Mb. Each of the detection model Ma and the correction model Mb is realized by a combination of a program that causes the control device 11 to execute a predetermined calculation and a plurality of variables (specifically, weights and biases) that are applied to the calculation. The program and the plurality of variables that realize the detection model Ma and the correction model Mb are stored in the storage device 12. The plurality of variables are set in advance by machine learning.
[0031] The detection model Ma outputs region data D in response to input of image data G. That is, the detection model Ma is a trained model for object detection (semantic segmentation) that extracts a right hand region AR and a left hand region AL from a captured image represented by the image data G. The detection model Ma is also expressed as a trained model that has learned the relationship between the image data G and the region data D. For example, a U-Net type model composed of an encoder and a decoder is exemplified as the detection model Ma. The region detection unit 421 generates the region data D by processing the image data G using the detection model Ma.
[0032] The correction model Mb outputs finger position data Z in response to input of finger position data Y and performance data E. That is, the correction model Mb is a trained model that has learned the relationship between the set of finger position data Y and performance data E and the finger position data Z. For example, an autoencoder composed of an encoder and a decoder is exemplified as the correction model Mb. The correction processing unit 422 generates the finger position data Z by processing the finger position data Y and performance data E by the correction model Mb. Note that intermediate data generated by the detection model Ma in the process of generating the area data D may be input to the correction model Mb together with the finger position data Y and performance data E. The intermediate data input to the correction model Mb is, for example, data output by an encoder of the first half of the detection model Ma.
[0033] 5 generates analysis data F from the finger position data Z generated by the finger position data generation unit 42 (correction processing unit 422). Specifically, the analysis data generation unit 43 generates analysis data FR from the finger position data ZR of the right hand HR in the finger position data Z, and generates analysis data FL from the finger position data ZR of the left hand HL in the finger position data Z.
[0034] For example, the analysis data generation unit 43 determines the point (e.g., lattice point K) where the probability Q is maximum in the probability distribution represented by each unit data U of the finger position data ZR as the analysis point P of the right hand HR. The analysis data generation unit 43 performs the above process on each unit data U of the finger position data ZR to generate analysis data FR representing the coordinates of each analysis point P of the right hand HR. Similarly, the analysis data generation unit 43 determines the point (e.g., lattice point K) where the probability Q is maximum in the probability distribution represented by each unit data U of the finger position data ZL as the analysis point P of the left hand HL. The analysis data generation unit 43 performs the above process on each unit data U of the finger position data ZL to generate analysis data FL representing the coordinates of each analysis point P of the left hand HL. The analysis points P of the right hand HR and the left hand HL represented by the analysis data F are displayed on the display device 13 as analysis results.
[0035] The process of generating the analysis data F from the finger position data Z by the analysis data generating unit 43 is not limited to the above example. For example, the analysis data generating unit 43 may determine each analysis point P under a constraint condition on the positional relationship of each analysis point P or a constraint condition on the moving speed of each analysis point P. The constraint condition on the positional relationship is, for example, a condition that the distance between two adjacent analysis points P on one finger does not change. Also, the constraint condition on the moving speed is a condition that the moving speed of each analysis point P is lower than a predetermined value.
[0036] 7 is a block diagram illustrating an example of the configuration of the input data acquisition unit 41. The input data acquisition unit 41 includes an information acquisition unit 411, a position estimation unit 412, and a component addition unit 413. The information acquisition unit 411 receives image data G sequentially supplied from the imaging device 30 and performance data E sequentially supplied from the electronic musical instrument 20. The position estimation unit 412 and the component addition unit 413 generate the above-mentioned finger position data Y for each unit period. As can be understood from the above explanation, the "acquisition" of data by the input data acquisition unit 41 encompasses "reception" and "generation".
[0037] The position estimation unit 412 in Fig. 7 generates finger position data X from image data G. Like the finger position data Y, the finger position data X is data that represents the positions of each of a plurality of analysis points P on the user's right hand HR and left hand HL. Note that the finger position data X is an example of "initial data."
[0038] The finger position data X has the same format as the finger position data Y. Specifically, the finger position data X includes finger position data XR corresponding to the user's right hand HR and finger position data XL corresponding to the user's left hand HL. The finger position data XR includes a plurality of unit data U corresponding to different analysis points P of the user's right hand HR. The finger position data XL includes a plurality of unit data U corresponding to different analysis points P of the user's left hand HL. The unit data U of each analysis point P represents the probability distribution of the analysis point P in the space α. Any known technique may be adopted to generate the finger position data Y.
[0039] However, in the captured image represented by the image data G, the user's hand may be partially blurred. For example, a part of the user's hand that moves quickly may become blurred due to shaking. In addition, a part of the user's hand that is hidden behind other fingers may become blurred. As described above, the probability distribution in the space α is not specified for the analysis point P that corresponds to the blurred part in the captured image. Therefore, the unit data U of the finger position data X may be null. The "null value" of the unit data U refers to a state in which the unit data U does not contain a significant value for any of the multiple lattice points K in the space α. For example, the "null value" refers to a state in which the probability Q of all lattice points K in the unit data U is zero.
[0040] 7 generates finger position data Y from finger position data X. Specifically, the component adding unit 413 generates finger position data Y by executing a supplementary process for each null unit data U (hereinafter referred to as "null data U0") among the multiple unit data U of the finger position data X. The supplementary process is a process of adding an auxiliary component (hereinafter referred to as "auxiliary component R") to each null data U0 of the finger position data X. The region data D and performance data E are used for the supplementary process.
[0041] Fig. 8 is a flow chart of the replenishment process. The replenishment process is executed for each unit period. The component adding unit 413 is realized by the control device 11 executing the replenishment process of Fig. 8.
[0042] When the supplementation process is started, the control device 11 extracts one or more null data U0 from the multiple unit data U of the finger position data XR (Sa41). The control device 11 adds an auxiliary component R to the probability Q (=0) corresponding to each lattice point K in the right hand area AR among the multiple probabilities Q designated by each null data U0 (Sa42). The auxiliary component R is a predetermined positive number less than 1. Since the right hand HR of the user is present in the right hand area AR, a probability distribution should exist in principle. If the unit data U is null despite the above circumstances, it is highly likely that the probability distribution was not appropriately estimated because the captured image was unclear. The addition of the auxiliary component R is a process that supplements the lack of the probability distribution described above. In a unit period in which the right hand area AR is not detected, the addition of the auxiliary component R (Sa41, Sa42) is not executed.
[0043] The same process is performed for the finger position data XL corresponding to the left hand HL. That is, the control device 11 extracts one or more null data U0 from the multiple unit data U of the finger position data XL (Sa43). The control device 11 adds an auxiliary component R to the probability Q (=0) corresponding to each lattice point K in the left hand area AL among the multiple probabilities Q designated by each null data U0 (Sa44). Note that the addition of the auxiliary component R (Sa43, Sa44) is not performed in the unit period in which the left hand area AL is not detected.
[0044] After executing the above process, the control device 11 judges whether the performance data E represents a key press (Sa45). If the performance data E represents a key press (Sa45: YES), the control device 11 extracts one or more null data U0 from the multiple unit data U included in the finger position data X (XR, XL) (Sa46). The control device 11 adds an auxiliary component R to the probability Q corresponding to each lattice point K in the vicinity of the pressed key 22, among the multiple probabilities Q designated by each null data U0 (Sa47). For example, a normal distribution centered on a point in the space α corresponding to the pressed key 22 is added as the auxiliary component R.
[0045] As can be understood from the above description, when the performance data E represents a key press or when the user's hand is detected in the area data D, the component adding unit 413 generates finger position data Y by adding the auxiliary component R to the finger position data X. When the performance data E does not represent a key press and the user's hand is not detected in the area data D, the finger position data X is determined as the finger position data Y as it is.
[0046] The specific procedure of the supplementation process is as described above. The correction processing unit 422 of the finger position data generation unit 42 processes the finger position data Y generated by the supplementation process and the performance data E acquired by the information acquisition unit 411 using the correction model Mb to generate finger position data Z. The generation model M (correction model Mb) is constructed by prior machine learning so that finger position data Z in which the position of each analysis point P in the finger position data Y is corrected according to the hand position represented by the image data G and the performance represented by the performance data E is output. For example, as a result of correcting the position of each analysis point P, unit data U (null data U0) that was null in the finger position data Y is changed to unit data U containing a significant numerical value in the finger position data Z. That is, the number of null data U0 (for example, zero) in the finger position data Z is less than the number of null data U0 in the finger position data Y.
[0047] Fig. 9 is a flowchart of the process (hereinafter referred to as "analysis process") in which the control device 11 generates analysis data F. The analysis process in Fig. 9 is executed for each unit period. When the analysis process starts, the control device 11 (information acquisition unit 411) acquires image data G and performance data E (Sa1). The control device 11 (area detection unit 421) processes the image data G using the detection model Ma to generate area data D (Sa2).
[0048] The control device 11 (position estimation unit 412) generates finger position data X by analyzing the image data G (Sa3). The control device 11 (component addition unit 413) generates finger position data Y by executing the above-mentioned supplementation process using the area data D and the performance data E on the finger position data X (Sa4).
[0049] The control device 11 (correction processing unit 422) processes the finger position data Y and the performance data E by the correction model Mb to generate finger position data Z (Sa5). The control device 11 (analysis data generating unit 43) generates analysis data F from the finger position data Z (Sa6).
[0050] As described above, in the first embodiment, the finger position data Z is generated by correcting the position of each analysis point P in the finger position data Y according to the hand position represented by the image data G and the performance represented by the performance data E. That is, even if the analysis point P is missing in the finger position data X because it is unclear in the captured image, the analysis point P is complemented by using the image data G and the performance data E. Specifically, it is possible to generate finger position data Z (and further analysis data F) that accurately represents the analysis point P in the unclear part of the captured image. Therefore, it is possible to generate finger position data Z (and further analysis data F) that accurately represents the analysis point P in the unclear part of the captured image. That is, it is possible to estimate the shape of the user's hand while playing the electronic musical instrument 20 with high accuracy.
[0051] As described above, according to the first embodiment, the shape of the user's hands while playing the electronic musical instrument 20 is estimated with high accuracy. Therefore, the user can enjoy a variety of customer experiences, such as products or services, that utilize the estimation results.
[0052] In particular, in the first embodiment, the finger position data Y and the finger position data Z include unit data U that represents the probability distribution of each analysis point P. Therefore, in the training stage of establishing the generative model M, there is an advantage in that the training data T used for machine learning can be easily generated by adding the auxiliary component R to the finger position data Z generated by the generative model M.
[0053] [Training Processing Unit 50] 3 constructs the correction model Mb by machine learning. Note that the detection model Ma has already been trained before the correction model Mb is constructed.
[0054] FIG. 10 is an explanatory diagram of the training processing unit 50. A plurality of basic data B are used for machine learning of the correction model Mb. The plurality of basic data B are prepared in advance and stored in the storage device 12. Each of the basic data B includes training image data Gt and training performance data Et. The image data Gt and performance data Et are prepared in advance by recording a performance of the electronic musical instrument 20 by a specific performer. In other words, the performance represented by the image data Gt and the performance represented by the performance data Et are common.
[0055] In the machine learning of the correction model Mb, the input data acquisition unit 41 generates training data T including image data Gt, performance data Et, and finger position data Yt. The training data T corresponds to the above-mentioned input data C1. Specifically, the finger position data Yt of the training data T is generated by executing the above-mentioned supplementation process on the finger position data Xt generated from the image data Gt.
[0056] The finger position data generating unit 42 generates region data Dt and finger position data Zt by processing the training data T. Specifically, the region detecting unit 421 generates region data Dt by processing the image data Gt with a detection model Ma. The correction processing unit 422 generates finger position data Zt by processing the finger position data Yt and the performance data Et with an initial or provisional correction model Mb (hereinafter referred to as a "provisional model M0").
[0057] 10, the training processing unit 50 includes a component adding unit 51 and an update processing unit 52. The component adding unit 51 generates the reference data L by executing the above-mentioned supplementation process on the finger position data Zt. Specifically, when the performance data Et represents a key press or when the user's hand is detected in the area data Dt, the component adding unit 51 generates the reference data L by adding an auxiliary component R to the finger position data Zt.
[0058] The update processing unit 52 updates the provisional model M0 so as to reduce the difference between the finger position data Yt and the reference data L. Specifically, the update processing unit 52 calculates an error function that represents the difference between the finger position data Yt and the reference data L, and updates multiple variables of the provisional model M0 so as to reduce the error function.
[0059] 11 is a flowchart of a process (hereinafter, referred to as a "training process") in which the control device 11 updates the provisional model M0. For example, the training process is started when an operation on the operation device 14 is performed.
[0060] When the training process is started, the control device 11 (training processing unit 50) selects one of the multiple basic data B (hereinafter referred to as "selected basic data B") (Sb1). The control device 11 (area detection unit 421) processes the image data Gt of the selected basic data B using the detection model Ma to generate area data Dt (Sb2).
[0061] The control device 11 (position estimation unit 412) generates finger position data Xt by analyzing image data Gt of the selected basic data B (Sb3). The control device 11 (component addition unit 413) generates finger position data Yt by executing the above-mentioned supplementation process using the area data Dt and performance data Et on the finger position data Xt (Sb4). That is, training data T including the image data Gt, performance data Et, and finger position data Yt is generated. The control device 11 (correction processing unit 422) generates finger position data Zt by processing the finger position data Yt and performance data Et using the provisional model M0 (Sb5).
[0062] The control device 11 (component adding unit 51) generates reference data L by executing the above-mentioned supplementation process using the region data Dt and the performance data Et on the finger position data Zt (Sb6). The control device 11 (update processing unit 52) calculates a loss function that represents the error between the finger position data Yt and the reference data L (Sb7). The control device 11 (update processing unit 52) updates multiple variables of the provisional model M0 so that the loss function is reduced (ideally minimized) (Sb8). For example, the backpropagation method is used to update each variable according to the loss function.
[0063] The control device 11 judges whether a predetermined termination condition is satisfied (Sb9). The termination condition is that the loss function falls below a predetermined threshold, or that the amount of change in the loss function falls below a predetermined threshold. If the termination condition is not satisfied (Sb9: NO), the control device 11 selects the unselected basic data B as new selected basic data B (Sb1). That is, the process of updating multiple variables of the provisional model M0 (Sb2 to Sb8) is repeated until the termination condition is satisfied (Sb9: YES). If the termination condition is satisfied (Sb9: YES), the control device 11 terminates the training process. The provisional model M0 at the time when the termination condition is satisfied is determined as the trained corrected model Mb.
[0064] According to the correction model Mb constructed by the above training process, finger position data Z can be generated in which the position of each analysis point P in the finger position data Y is corrected according to the image data G and the performance data E. Specifically, even if an analysis point P is missing in the finger position data X because the captured image is unclear, the analysis point P is complemented by using the image data G and the performance data E. That is, a correction model Mb capable of appropriately complementing the analysis point P is constructed by the training process. Therefore, it is possible to generate finger position data Z (and further analysis data F) that accurately represents analysis points P even in unclear parts of the captured image.
[0065] B: Second embodiment A second embodiment will be described. Note that, for elements having the same functions as those in the first embodiment in each of the following exemplary aspects, the same reference numerals as those in the first embodiment will be used, and detailed descriptions of each will be omitted as appropriate.
[0066] The area data D in the first embodiment is data representing the right hand area AR and the left hand area AL in the captured image. The area data D in the second embodiment is depth data representing the depth of the surface of the user's hand (right hand HR and left hand HL) in the captured image. An area in which the depth represented by the depth data exceeds a threshold is identified as the right hand area AR or the left hand area AL. That is, the area data D in the second embodiment is data representing the right hand area AR and the left hand area AL, similar to the first embodiment. The area data Dt used in the training process is also depth data.
[0067] As in the first embodiment, when a user's hand is detected in the region data D, the component adding unit 413 generates finger position data Y by adding an auxiliary component R to the finger position data X. As in the first embodiment, when a user's hand is detected in the region data Dt, the component adding unit 51 also generates reference data L by adding an auxiliary component R to the finger position data Zt.
[0068] The second embodiment is similar to the first embodiment except that the region data D and the region data Dt are depth data. Therefore, the second embodiment achieves the same effects as the first embodiment. In the second embodiment, depth data representing the depth of the surface of the hand represented by the image data G is generated as the region data D. Therefore, even if the user's hand is unclear in the captured image represented by the image data G, for example, the shape of the user's hand while playing the electronic musical instrument 20 can be estimated with high accuracy.
[0069] C: Third embodiment In the first embodiment, the auxiliary component R is added to the finger position data X when the user's hand is detected in the area data D. In the third embodiment, the auxiliary component R is added to the finger position data X when the hand detected in the area data D overlaps with the keyboard 21.
[0070] The area detection unit 421 generates area data D that indicates an area of the keyboard 21 (hereinafter referred to as the "keyboard area") in addition to the right hand area AR and the left hand area AL. For example, a detection model Ma is used to detect the keyboard area. The area detection unit 421 may detect the keyboard area in response to the operation of the keyboard 21 by the user. For example, the user operates the first key 22 located near the left end (end on the low note side) of the keyboard 21 and the second key 22 located near the right end (end on the high note side). The area detection unit 421 identifies the first key 22 and the second key 22 from the image data G, and identifies the area between the first key 22 and the second key 22 as the keyboard area.
[0071] When the right hand area AR or the left hand area AL overlaps with the keyboard area in the area data D, the component adding unit 413 generates finger position data Y by adding an auxiliary component R to the finger position data X. Similarly, when the right hand area AR or the left hand area AL overlaps with the keyboard area in the area data D, the component adding unit 51 generates reference data L by adding an auxiliary component R to the finger position data Zt.
[0072] The third embodiment also achieves the same effects as the first embodiment. Moreover, in the third embodiment, when the user's hand overlaps the keyboard 21, the addition of the auxiliary component R is executed. That is, not only whether the user's hand is detected but also the relationship between the keyboard 21 and the hand is taken into consideration when adding the auxiliary component R. Therefore, the shape of the user's hand while playing the electronic musical instrument 20 can be estimated with high accuracy.
[0073] D: Fourth embodiment 12 is a block diagram illustrating the configuration of an electronic keyboard instrument 60 according to a fourth embodiment. In the first embodiment, the information processing system 10, the electronic musical instrument 20, and the imaging device 30 are configured as separate entities. The electronic keyboard instrument 60 of the fourth embodiment is an electronic musical instrument in which the information processing system 10, the electronic musical instrument 20, and the imaging device 30 are installed in a single housing (not shown). Note that the imaging device 30, which is separate from the electronic keyboard instrument 60, may be connected to the electronic keyboard instrument 60 by wire or wirelessly.
[0074] The configuration and functions of the information processing system 10 are the same as those of the first embodiment. Therefore, the fourth embodiment also achieves the same effects as those of the first embodiment. The configurations of the second and third embodiments may be adopted in the electronic keyboard instrument 60 of the fourth embodiment.
[0075] E: Variation Specific modified embodiments added to each of the above-mentioned embodiments are exemplified below. Two or more embodiments selected from the following examples may be appropriately combined as long as they are not mutually contradictory.
[0076] (1) In each of the above-described embodiments, the position estimation unit 412 of the input data acquisition unit 41 generates the finger position data X from the image data G. However, in a form in which the finger position data X is supplied from an external device, the generation of the finger position data X may be omitted. That is, the position estimation unit 412 may be omitted from the input data acquisition unit 41.
[0077] (2) In the above-described embodiments, the information processing system 10 includes both the analysis processing unit 40 and the training processing unit 50. However, the analysis processing unit 40 and the training processing unit 50 may be mounted on separate systems. The information processing system 10 (performance analysis system) equipped with the analysis processing unit 40 analyzes a performance of the electronic musical instrument 20 by a user. The information processing system 10 (machine learning system) equipped with the training processing unit 50 constructs a generative model M (corrected model Mb) by machine learning. The performance analysis system is realized by an information device such as a smartphone, a tablet terminal, or a personal computer. The machine learning system is realized by a server device such as a web server. The generative model M constructed by the machine learning system is transmitted to the performance analysis system.
[0078] (3) In each of the above-described embodiments, a configuration has been exemplified in which the information processing system 10 (analysis processing unit 40) includes an input data acquisition unit 41, a finger position data generation unit 42, and an analysis data generation unit 43, but at least one of these elements may be omitted.
[0079] For example, the input data acquisition unit 41 (input data generation unit) that acquires the input data C1 can be established independently without requiring the finger position data generation unit 42 and the analysis data generation unit 43. That is, the finger position data generation unit 42 and the analysis data generation unit 43 may be omitted from the analysis processing unit 40. Furthermore, an element (for example, the component addition unit 413) that generates the finger position data Y in the input data acquisition unit 41 can also be established independently.
[0080] Similarly, finger position data generation unit 42 may stand alone without requiring input data acquisition unit 41 and analysis data generation unit 43. That is, input data acquisition unit 41 and analysis data generation unit 43 may be omitted from analysis processing unit 40. Furthermore, an element of finger position data generation unit 42 that generates finger position data Z (e.g., correction processing unit 422) may also stand alone.
[0081] (4) In the above-mentioned embodiments, the performance of a keyboard instrument (electronic instrument 20) by a user is analyzed, but the instrument to be analyzed is not limited to a keyboard instrument. For example, the performance of various instruments such as string instruments or wind instruments can be analyzed by the same configuration and processing as the above-mentioned embodiments. The instrument to be analyzed may be either a natural instrument or an electronic instrument (or an electric instrument). Electronic instruments include electronic string instruments (electric string instruments) or electronic wind instruments (electric wind instruments) in addition to the electronic keyboard instrument 60 exemplified in the above-mentioned fourth embodiment.
[0082] (5) In each of the above-described embodiments, a deep neural network is exemplified as the generative model M, but the configuration of the generative model M is not limited to the above examples. For example, a statistical model such as a hidden Markov model (HMM) or a support vector machine (SVM) can also be used as the generative model M.
[0083] (6) The information processing system 10 may be realized by a server device that communicates with an information device such as a smartphone or a tablet terminal. For example, the information processing system 10 generates analysis data F using image data G and performance data E received from the information device, and transmits the analysis data F to the information device.
[0084] (7) The functions of the information processing system 10 exemplified above are realized by the cooperation of one or more processors constituting the control device 11 and the program stored in the storage device 12, as described above. The program according to the present disclosure can be provided in a form stored in a computer-readable recording medium and installed in a computer. The recording medium is, for example, a non-transitory recording medium, and a good example is an optical recording medium (optical disk) such as a CD-ROM, but also includes any known type of recording medium such as a semiconductor recording medium or a magnetic recording medium. Note that the non-transitory recording medium includes any recording medium except for a transient propagating signal, and does not exclude volatile recording media. In addition, in a configuration in which a distribution device distributes a program via a communication network, the storage medium that stores the program in the distribution device corresponds to the non-transitory recording medium described above.
[0085] F: Notes From the above-described exemplary embodiments, the following configurations can be understood, for example.
[0086] An information processing method according to one aspect (aspect 1) of the present disclosure acquires input data including image data representing an image of the hand of a user playing a musical instrument, first finger position data representing the positions of each of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument, and processes the input data using a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected in accordance with the hand position represented by the image data and the performance represented by the performance data.
[0087] In the above-mentioned aspect, the second finger position data is generated by correcting the position of each analysis point in the first finger position data according to the hand position represented by the image data and the performance represented by the performance data. Therefore, the second finger position data is generated that represents the position of each analysis point of the user with high accuracy compared to the first finger position data. In other words, the shape of the user's hand while playing the musical instrument can be estimated with high accuracy.
[0088] A "musical instrument" is any type of instrument that is played by a user using his or her hands. A typical example of a musical instrument is a keyboard instrument, but it can also include string instruments or wind instruments, for example.
[0089] "Image data" is data in any format that is generated by capturing an image of a user playing a musical instrument. For example, the image data may be an image of the keys of a keyboard instrument and the user's hands (left and right hands).
[0090] An "analysis point" is a point on a user's hand whose position is to be analyzed. For example, the tips and joints of each of the user's fingers are typical examples of analysis points.
[0091] "(First / second) finger position data" is data that represents the position of each analysis point. For example, the finger position data includes unit data for each of a plurality of analysis points. The unit data for each analysis point is data that represents the position of that analysis point. Specifically, it is data that represents the probability distribution of analysis points in space. For example, the unit data is data that represents the probability that each of a plurality of points (e.g., lattice points) in space corresponds to an analysis point.
[0092] "Performance data" is data in any format that represents the content of a performance by a user. A typical example of performance data is MIDI data that specifies the pitch of a note played by a user. Note that performance data may also be generated by analyzing the sounds produced by a musical instrument during performance.
[0093] The generative model is a trained model constructed by prior machine learning. The generative model is constructed so that the positions of the multiple analysis points in the first finger position data are corrected according to the hand position represented by the image data and the performance represented by the performance data. Specifically, the generative model (correction model) is constructed so that the analysis points that are unclear in the image data are complemented by using the image data and the performance data.
[0094] In a specific example (Aspect 2) of Aspect 1, the first finger position data includes a plurality of unit data respectively corresponding to the plurality of analysis points, and the unit data corresponding to each of the plurality of analysis points represents a probability distribution of the analysis point in a three-dimensional space. In a specific example (Aspect 3) of Aspect 1 or Aspect 2, the second finger position data includes a plurality of unit data respectively corresponding to the plurality of analysis points, and the unit data corresponding to each of the plurality of analysis points represents a probability distribution of the analysis point in a three-dimensional space. In the above aspects, the first finger position data or the second finger position data includes unit data representing a probability distribution of each analysis point. Therefore, there is an advantage that, in a training stage for establishing a generative model, by adding a predetermined probability distribution to the finger position data of the generative model, training data used for machine learning can be easily generated.
[0095] In a specific example (Aspect 4) of Aspect 2 or Aspect 3, as a result of correcting the positions of each of the plurality of analysis points, unit data that was null in the first finger position data is changed to unit data containing a significant value in the second finger position data. According to the above aspect, even if an analysis point is missing in the first finger position data due to blurring in the captured image, the analysis point is complemented by using the image data and the performance data.
[0096] In a specific example (Aspect 5) of any one of Aspects 1 to 4, the performance data is event data that complies with the MIDI standard. According to the above aspects, event data generated by various devices that comply with the MIDI standard can be used as performance data.
[0097] In a specific example (aspect 6) of any one of aspects 1 to 5, acquiring the input data includes acquiring the image data and the performance data, generating initial data representing a probability distribution of each of the analysis points on the hand from the image data, and generating the first finger position data from the initial data. In the specific example of aspect 6, the generation model includes a detection model and a correction model, and in generating the second finger position data, the image data is processed by the detection model to generate region data representing the region of the hand in the image represented by the image data, in generating the first finger position data, if the performance data represents an operation of the musical instrument or if the hand is detected in the region data, the first finger position data is generated by adding an auxiliary component to the initial data, and in generating the second finger position data, the first finger position data is generated by processing the first finger position data and the performance data by the correction model to generate the second finger position data.
[0098] In a specific example (Aspect 8) of Aspect 7, the musical instrument is a keyboard instrument including a keyboard, and when the hand is detected in the area data, the hand detected in the area data overlaps with the keyboard. In the above aspect, when the user's hand overlaps with the keyboard, an auxiliary component is added to the initial data. That is, not only whether the user's hand is detected but also the relationship between the keyboard and the hand is taken into account when adding the auxiliary component. Therefore, the shape of the user's hand while playing a keyboard instrument can be estimated with high accuracy.
[0099] In a specific example (aspect 9) of aspect 7 or aspect 8, the region data is depth data representing the depth of the surface of the hand represented by the image data. In the above aspects, the depth data representing the depth of the surface of the hand represented by the image data is generated as the region data. Therefore, even if the user's hand is unclear in the image represented by the image data, for example, the shape of the user's hand while playing a keyboard instrument can be estimated with high accuracy.
[0100] An information processing method according to one aspect (aspect 10) of the present disclosure includes acquiring image data representing an image of a hand of a user playing a musical instrument, first finger position data representing each of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument, generating region data representing the region of the hand in the image represented by the image data, generating second finger position data by processing the first finger position data and the performance data using a correction model, and constructing the correction model, wherein, in acquiring the image data, the first finger position data, and the performance data, the image data and the performance data are acquired, and initial data representing a probability distribution of each of the plurality of analysis points on the hand is generated from the image data, and when the performance data represents the operation of the musical instrument or when the hand is detected in the region data, the first finger position data is generated by adding an auxiliary component to the initial data, and when constructing the correction model, when the performance data represents the operation of the musical instrument or when the hand is detected in the region data, reference data is generated by adding an auxiliary component to the second finger position data, and the correction model is updated so that a difference between the first finger position data and the reference data is reduced.
[0101] In the above-mentioned aspects, when the performance data represents the operation of a musical instrument, or when the user's hand is detected in the area data, the addition of an auxiliary component to the initial data and the addition of an auxiliary component to the second finger position data generated by the correction model are performed, and the provisional correction model is updated so that the difference between the first finger position data and the reference data is reduced. Therefore, it is possible to generate second finger position data in which the positions of the analysis points in the first finger position data are corrected according to the image data and the performance data. Specifically, even if an analysis point is missing because the image represented by the image data is unclear, the analysis point is complemented by using the image data and the performance data. That is, a correction model capable of appropriately complementing the analysis point is constructed by the training process. Therefore, it is possible to generate second finger position data that accurately represents the analysis point even in the unclear part of the image. The present disclosure is also specified as an information processing system that executes the information processing method of aspect 10, or a program that causes a computer system to execute the information processing method of aspect 10.
[0102] In a specific example (Aspect 11) of Aspect 10, the musical instrument is a keyboard instrument including a keyboard, and when the hand is detected in the area data, the hand detected in the area data overlaps with the keyboard. In the above aspect, when the user's hand overlaps with the keyboard, an auxiliary component is added to the initial data and an auxiliary component is added to the second finger position data. That is, not only whether the user's hand is detected but also the relationship between the keyboard and the hand is taken into account when adding the auxiliary component. Therefore, the shape of the user's hand while playing a keyboard instrument can be estimated with high accuracy.
[0103] In a specific example (aspect 12) of aspect 10 or aspect 11, the region data is depth data representing the depth of the surface of the hand represented by the image data. In the above aspects, the depth data representing the depth of the surface of the hand represented by the image data is generated as the region data. Therefore, for example, even if the user's hand is unclear in the image represented by the image data, the shape of the user's hand while playing a keyboard instrument can be estimated with high accuracy.
[0104] An information processing system according to one aspect (aspect 13) of the present disclosure includes an input data acquisition unit that acquires input data including image data representing an image of a user's hand playing a musical instrument, first finger position data representing the positions of each of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument, and a finger position data generation unit that processes the input data using a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected according to the hand position represented by the image data and the performance represented by the performance data. The above-mentioned forms of the information processing method according to aspect 1 are similarly applied to the information processing system of aspect 13.
[0105] A program according to one aspect (Aspect 14) of the present disclosure causes a computer system to function as an input data acquisition unit that acquires input data including image data representing an image of a user's hand playing a musical instrument, first finger position data representing the positions of each of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument, and a finger position data generation unit that processes the input data using a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected according to the hand position represented by the image data and the performance represented by the performance data. The above-mentioned forms of the information processing method according to Aspect 1 are similarly applied to the program of Aspect 14.
[0106] An electronic keyboard instrument according to one aspect (aspect 15) of the present disclosure includes a keyboard including a plurality of keys, an input data acquisition unit that acquires input data including image data representing an image of a user's hand playing the keyboard, first finger position data representing the positions of each of a plurality of analysis points on the hand, and performance data representing a performance of the keyboard, and a finger position data generation unit that processes the input data using a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected according to the hand position represented by the image data and the performance represented by the performance data. The above-mentioned forms of the information processing method according to aspect 1 are similarly applicable to the electronic keyboard instrument of aspect 15. [Explanation of symbols]
[0107] 10...information processing system, 11...control device, 12...memory device, 13...display device, 14...operation device, 15...sound source device, 16...sound emission device, 20...electronic musical instrument, 21...keyboard, 22...key, 30...imaging device, 40...analysis processing unit, 41...input data acquisition unit, 411...information acquisition unit, 412...position estimation unit, 413...component addition unit, 42...finger position data generation unit, 421...area detection unit, 422...correction processing unit, 43...analysis data generation unit, 50...training processing unit, 51...component addition unit, 52...update processing unit, 60...electronic keyboard musical instrument.
Claims
[Claim 1] acquiring input data including image data representing an image of a user's hand playing a musical instrument, first finger position data representing the positions of a plurality of analysis points on the hand, and performance data representing the performance of the musical instrument; The input data is processed by a trained generative model to generate second finger position data in which the positions of each of the plurality of analysis points in the first finger position data are corrected according to the hand position represented by the image data and the performance represented by the performance data. An information processing method implemented by a computer system.
Citation Information
Patent Citations
Data processing device and program
JP2017062347A
Performance analyzing method, performance analyzing system, and program
JP2022149157A
Information processing device, information processing method, and information processing program
WO2021157691A1
