Feature extraction device, feature extraction method, and program
By employing a time-frequency expression rearrangement and convolution process for one-dimensional waveforms, the technique addresses inefficiencies in existing methods, reducing processing time and improving feature extraction efficiency.
Patent Information
- Application Number
- JP2021134047
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-19
AI Technical Summary
Existing feature extraction techniques for one-dimensional waveforms, such as acoustic signals, face inefficiencies due to varying convolution intervals requiring increased time to process harmonic components, particularly in technologies like harmonic convolution.
The technique involves a time-frequency expression acquisition and rearrangement process, followed by a convolution operation using a rearranged time-frequency representation, where the frequency scale is multiplied by k/n, reducing the need for interval changes during convolution.
This approach significantly reduces the time required for feature extraction by minimizing the need to change data intervals during convolution, thereby enhancing processing efficiency.
Smart Images

Figure 0007539088000032 
Figure 0007539088000024 
Figure 0007539088000029
Abstract
Description
[Technical field]
[0001] The present invention relates to a feature extraction device, a feature extraction method, and a program. [Background technology]
[0002] Feature extraction techniques for extracting features of an acoustic signal are used in various techniques that use acoustic signals, such as sound source separation, speech recognition, noise suppression, etc. One example of the feature extraction technique is the harmonic convolution technique described in Non-Patent Document 1. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Z. Zhang, Y. Wang, C. Gan, J. Wu, JBTenenbaum, A. Torralba, and WT Freeman, “Deep audio priors emerge from harmonic convolutional networks,” in Proc. ICLR , 2020. Summary of the Invention [Problem to be solved by the invention]
[0004] Some one-dimensional waveforms, including audio signals, contain a fundamental wave and waves (called harmonics) whose frequencies are roughly integer multiples of the fundamental wave as their components. For example, it is known that sounds that humans hear and perceive as high-pitched, such as voiced sounds in human speech, are composed of such components. In such sounds, the fundamental wave and harmonics of the sound waves may have a unique relationship in terms of their properties, such as their frequency, amplitude, and the way in which they change. Such relationships are collectively called harmonic relationships. One of the techniques for extracting features using the harmonic relationship explicitly is called harmonic convolution. More specifically, harmonic convolution is a technique for extracting features of one-dimensional waveforms using a convolution kernel that can convolute harmonic components at once.
[0005] However, in the technology described in Non-Patent Document 1, in order to convolute harmonic components, the convolution is performed in such a way that the interval (dilation) of data referenced by the kernel changes every time the frequency index that discretizes the frequency axis changes in the time-frequency representation of the input waveform. Therefore, it may take time to refer to the data during the convolution. As a result, the time required to acquire the features of the acoustic signal may increase.
[0006] In view of the above circumstances, an object of the present invention is to provide a technique for suppressing an increase in the time required for extracting features of a one-dimensional waveform. [Means for solving the problem]
[0007] One aspect of the present invention is a feature extraction device that includes a time-frequency representation acquisition unit that acquires a time-frequency representation of a one-dimensional waveform, a time-frequency representation rearrangement unit that acquires a rearranged time-frequency representation, which is a time-frequency representation in which the frequency scale of the time-frequency representation is multiplied by k / n (k and n are predetermined natural numbers), and a convolution calculation unit that performs convolution using the rearranged time-frequency representation.
[0008] One aspect of the present invention is a feature extraction method having a time-frequency representation acquisition step of acquiring a time-frequency representation of a one-dimensional waveform, a time-frequency representation rearrangement step of acquiring a rearranged time-frequency representation, which is a time-frequency representation in which the frequency scale of the time-frequency representation is multiplied by k / n (k and n are predetermined natural numbers), and a convolution operation step of performing convolution using the rearranged time-frequency representation.
[0009] One aspect of the present invention is a program for causing a computer to function as the feature extraction device described above. Effect of the Invention
[0010] The present invention makes it possible to provide a technique for suppressing an increase in the time required to acquire the characteristics of a one-dimensional waveform. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is an explanatory diagram for explaining a feature extraction device according to a first embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating rearrangement of time-frequency representation in the first embodiment. [Diagram 3] FIG. 2 is a diagram showing an example of the hardware configuration of a feature extraction device according to the first embodiment. [Figure 4] FIG. 2 is a diagram showing an example of the configuration of a control unit in the first embodiment. [Diagram 5] 5 is a flowchart showing an example of a flow of processing executed by a control unit in the first embodiment. [Figure 6] FIG. 4 is a diagram showing an example of a linear interpolation program in the first embodiment. [Figure 7] FIG. 4 is a diagram showing an example of an algorithm for a first time-frequency representation rearrangement process and a convolution operation process in the first embodiment. [Figure 8] FIG. 11 is an explanatory diagram for explaining a feature extraction device according to a second embodiment. [Figure 9] FIG. 11 is an explanatory diagram illustrating rearrangement of time-frequency representation in the second embodiment. [Figure 10]FIG. 11 is a diagram showing an example of a hardware configuration of a feature extraction device according to a second embodiment. [Figure 11] FIG. 11 is a diagram showing an example of the configuration of a control unit in a second embodiment. [Figure 12] 10 is a flowchart showing an example of a flow of processing executed by a feature extraction device according to the second embodiment. [Figure 13] FIG. 1 shows an example of the settings for the first experiment. [Figure 14] FIG. 11 is a diagram showing an example of the results of a first experiment. [Figure 15] FIG. 11 is a diagram showing an example of the results of a second experiment. [Figure 16] FIG. 11 is a first explanatory diagram illustrating symmetric harmonic convolution in the modified example. [Figure 17] FIG. 2 is a second explanatory diagram illustrating symmetric harmonic convolution in the modified example. [Figure 18] FIG. 13 is a diagram showing an example of an experimental result of a third experiment according to the modified example. [Figure 19] FIG. 13 is a diagram showing an example of an experimental result of a fourth experiment according to the modified example. [Figure 20] FIG. 13 is a diagram showing an example of an experimental result of a fifth experiment according to the modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (First embodiment) FIG. 1 is an explanatory diagram for explaining a feature extraction device 1 of a first embodiment. The feature extraction device 1 executes a first time-frequency representation acquisition process, a first time-frequency representation rearrangement process, and a convolution operation process. The first time-frequency representation acquisition process is a process for acquiring a time-frequency representation of an input one-dimensional waveform signal. Here, the time-frequency representation refers to a representation of the properties of the signal on two axes of time and frequency. For example, an amplitude spectrum calculated by a short-time Fourier transform arranged along time (amplitude spectrogram) is one example.
[0013] For simplicity of explanation, the feature extraction device 1 will be described below taking as an example a case where the time-frequency representation is an amplitude spectrogram based on a short-time Fourier transform. However, the time-frequency representation is not limited to this, and the time-frequency representation may be any time-frequency representation having a linear frequency axis, including a power spectrogram.
[0014] The first time-frequency representation rearrangement process is a process of rearranging the time-frequency representation obtained by the first time-frequency representation acquisition process by changing the frequency axis. In this specification, rearrangement means generating a time-frequency representation (hereinafter referred to as a "rearranged spectrogram") in which the frequency axis of the original time-frequency representation is changed. This process will be described in more detail with reference to Fig. 2. Fig. 2 is an explanatory diagram for explaining rearrangement of the time-frequency representation in the first embodiment. That is, Fig. 2 is an explanatory diagram for explaining the first time-frequency representation rearrangement process in the first embodiment.
[0015] In the first embodiment, the rearrangement of the time-frequency representation is performed by generating a time-frequency representation in which the frequency scale of the original time-frequency representation is reduced by k times, where k is a predetermined natural number ranging from 1 to K. f In Figure 2, K f = 3. Reducing the frequency scale by a factor of k means that the frequencies corresponding to the same frequency index in the time-frequency representation in which the frequency axis is discretized are multiplied by k.
[0016] 2 shows an original time-frequency representation, a time-frequency representation in which the frequency scale is reduced by a factor of two, and a time-frequency representation in which the frequency scale is reduced by a factor of three as examples. In the first time-frequency representation rearrangement process, time-frequency representations in which the frequency scale is multiplied by k are generated, and these time-frequency representations including the original time-frequency representation are arranged on a storage medium. In this specification, "arranged on a storage medium" does not mean "placed in contact with the storage medium." "Arranged on a storage medium" means "recorded on the storage medium."
[0017] The convolution operation process is a process of performing a product-sum calculation between a predetermined kernel and a time-frequency representation. Here, the kernel is a set of values used in the product-sum calculation, and corresponds to a filter coefficient. Specifically, it is a matrix that stores filter coefficients related to frequency and time. In that a kernel is placed at a point of interest and a product-sum calculation is repeated while changing the point of interest to extract features, it is similar to the process using a convolutional neural network that is frequently used in known image processing. Note that feature extraction is a process of extracting features of the target of processing.
[0018] However, there is a difference between the convolution in the convolution calculation process and the known image processing technology. In the known image processing technology, the kernel is generally a coefficient for performing a product-sum calculation on neighboring pixel values. On the other hand, in the convolution in the convolution calculation process, the data to be multiplied by the kernel is not necessarily data adjacent to the neighbor in the frequency axis direction.
[0019] The data to be integrated with the kernel in the convolution in the convolution operation (hereinafter referred to as "harmonic convolution") is data that satisfies the condition that the value in the frequency axis direction is k / n times (k and n are predetermined natural numbers) the frequency value of the point on the time-frequency representation that is the point of interest. Since n=1 in the feature extraction device 1, the target data condition is that the value in the frequency axis direction is an integer multiple of the frequency value of the point on the time-frequency representation that is the point of interest. In the known method, this difference is the cause of the time required for data reference. Note that the point of interest means a point on the time-frequency representation that satisfies a predetermined condition among candidates of a point on the time-frequency representation that indicates the data to be integrated with the kernel in the convolution operation.
[0020] The first time-frequency representation rearrangement process and the convolution operation process will be described in more detail using mathematical expressions. Hereinafter, A^{^} represents the character A with a circumflex accent. For example, ω^{^} represents the following formula (1).
[0021]
number
[0022] Harmonic convolution is expressed, for example, by the following equation (2).
[0023]
number
[0024] ω^{^} indicates the frequency of the point of interest. Note that there is a one-to-one relationship between frequency and each frequency, so ω may also represent angular frequency. τ^{^} indicates the coordinate value on the time axis of the point of interest (i.e., time). For simplicity's sake, we will consider the case where both time and frequency are discretized in the time-frequency representation, and explain the case where ω^{^} and τ^{^} are integers.
[0025] The term expressed by the following formula (3) is a function representing the extraction of the time-frequency representation, for example, a term representing an amplitude spectrogram by short-time Fourier transform. Formula (3) represents that for a point of interest, time τ^{^} and frequency ω^{^}, that is, a point on the time-frequency representation, the amplitude spectrogram at a point where the frequency is multiplied by k / n and the time is shifted by τ is referred to. Note that in the first embodiment, n=1. Referencing a reference object means reading the reference object from a storage device that stores the reference object.
[0026]
number
[0027] The term in the following equation (4) represents the previously set kernel. The kernel is K f×K t where K f、 K t is a predefined integer, k ranges from 1 to K f , τ ranges from 1 to K t The value of the pre-set value is an integer that takes a value up to 100. Note that the pre-set value means that the pre-set value is determined in advance.
[0028]
number
[0029] Equation (2) is 1 to K f For each k through 1 and K t This represents a multiplication and accumulation calculation for each τ up to τ. In other words, equation (2) is an example of convolution using harmonic relationships.
[0030] The right-hand side of equation (2) is transformed into the right-hand side of equation (7) by substituting the following equations (5) and (6).
[0031]
number
[0032]
number
[0033]
number
[0034] The left side of equation (5) represents the amplitude of the fundamental wave of frequency ω^{^} indicated by the rearranged kth spectrogram at time τ^{^}.
[0035] Equation (6) means that the original kernel is decomposed to correspond to the time-frequency representation after rearrangement, as shown in FIG. 2 (FIG. 2 illustrates the case of n=1, since it is a diagram for explaining the processing in the feature extraction device 1). Decomposing to correspond means taking out the rows of the matrix representing the kernel for each value of k, f K rows t This means making it a column matrix.
[0036] That is, K' is K f Here, we denote the value of the element (k, τ) of the kernel that operates on the rearranged spectrograms. Equation (6) shows that the kernel K' is derived by decomposing the kernel K.
[0037] The convolution performed in the convolution calculation process is not the convolution of equation (2) but the convolution of equation (7).
[0038] In the case of the convolution of equation (2), the data interval (dilation) referenced by the kernel needs to be changed every time ω^{^} changes. On the other hand, in the case of the convolution of equation (7), unlike the convolution of equation (2), the data interval referenced by the kernel does not need to be changed even if ω^{^} changes. Therefore, when using the convolution of equation (7), the increase in the time required to refer to data during convolution is suppressed compared to when using the convolution of equation (2).
[0039] 3 is a diagram showing an example of a hardware configuration of the feature extraction device 1 in the first embodiment. The feature extraction device 1 includes a control unit 11 including a processor 91 such as a CPU (Central Processing Unit) and a memory 92 connected by a bus, and executes a program. The feature extraction device 1 functions as a device including the control unit 11, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15 by executing the program.
[0040] More specifically, the processor 91 reads out a program stored in the storage unit 14, and stores the read out program in the memory 92. The processor 91 executes the program stored in the memory 92, whereby the feature extraction device 1 functions as a device including a control unit 11, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15.
[0041] The control unit 11 controls the operation of various functional units included in the feature extraction device 1. The control unit 11 executes, for example, a first time-frequency representation acquisition process, a first time-frequency representation rearrangement process, and a convolution operation process. The control unit 11 controls, for example, the operation of the output unit 15. The control unit 11 records, for example, various pieces of information generated by the execution of the convolution operation in the storage unit 14.
[0042] The input unit 12 includes input devices such as a mouse, a keyboard, a touch panel, etc. The input unit 12 may be configured as an interface that connects these input devices to the feature extraction device 1. The input unit 12 accepts input of various information to the feature extraction device 1.
[0043] The communication unit 13 includes a communication interface for connecting the feature extraction device 1 to an external device. The communication unit 13 communicates with the external device via wired or wireless communication. The external device is, for example, a device that transmits a one-dimensional waveform signal.
[0044] The storage unit 14 is configured using a computer-readable storage medium device such as a magnetic hard disk device or a semiconductor storage device. The storage unit 14 stores various information related to the execution of the first time-frequency representation acquisition process. The storage unit 14 stores information input via the input unit 12 or the communication unit 13, for example. The storage unit 14 stores various information generated by the execution of the convolution operation process, for example. The storage unit 14 stores a kernel in advance, for example.
[0045] The output unit 15 outputs various information. The output unit 15 includes a display device such as a CRT (Cathode Ray Tube) display, a liquid crystal display, or an organic EL (Electro-Luminescence) display. The output unit 15 may be configured as an interface that connects these display devices to the feature extraction device 1. The output unit 15 outputs, for example, information input to the input unit 12. The output unit 15 may display, for example, the result of executing a convolution operation.
[0046] 4 is a diagram showing an example of the configuration of the control unit 11 in the first embodiment. The control unit 11 includes a signal acquisition unit 110, a spectrogram acquisition unit 120, a spectrogram rearrangement unit 121, a convolution operation unit 130, a memory control unit 140, a communication control unit 150, and an output control unit 160. The signal acquisition unit 110 acquires a one-dimensional waveform signal input to the communication unit 13. The spectrogram acquisition unit 120 acquires a spectrogram of the signal by performing, for example, a short-time Fourier analysis on the one-dimensional waveform signal acquired by the signal acquisition unit 110. That is, the spectrogram acquisition unit 120 executes a first time-frequency representation acquisition process on the signal acquired by the signal acquisition unit 110.
[0047] Spectrogram rearrangement unit 121 creates a rearranged spectrogram, which is a spectrogram obtained by executing a first time-frequency representation rearrangement process on the spectrogram acquired by spectrogram acquisition unit 120 and in which the scale of the frequency axis has been changed, and places the rearranged spectrogram in storage unit 14. That is, spectrogram rearrangement unit 121 executes the first time-frequency representation rearrangement process on the spectrogram acquired by spectrogram acquisition unit 120.
[0048] The convolution calculation unit 130 performs a convolution calculation using a predetermined kernel with reference to the rearranged spectrogram obtained by the spectrogram rearrangement unit 121. That is, the convolution calculation unit 130 executes a convolution calculation process on the rearranged spectrogram obtained by the spectrogram rearrangement unit 121.
[0049] The memory control unit 140 records various information in the memory unit 14. The communication control unit 150 controls the operation of the communication unit 13. The output control unit 160 controls the operation of the output unit 15.
[0050] FIG. 5 is a flowchart showing an example of the flow of processing executed by the spectrogram acquisition unit 120, the spectrogram rearrangement unit 121, and the convolution operation unit 130 in the first embodiment. That is, FIG. 5 is a flowchart showing an example of the flow of processing executed by the control unit 11. First, the spectrogram acquisition unit 120 executes a first time-frequency representation acquisition process on a one-dimensional waveform signal acquired by the signal acquisition unit 110 to acquire a spectrogram (step S101). Next, the spectrogram rearrangement unit 121 executes a first time-frequency representation rearrangement process on the spectrogram acquired in step S101 (step S102). A rearranged spectrogram is obtained by executing the first time-frequency representation rearrangement process. Next, the convolution operation unit 130 refers to the rearranged spectrogram and a predetermined kernel and performs a convolution operation (step S103).
[0051] <Interpolation of time-frequency representation> In the process of multiplying the scale of the time-frequency representation in the frequency axis direction by k / n in the first time-frequency representation rearrangement process, it may be preferable to perform interpolation. Any method of interpolation may be applied, for example, linear interpolation or rational interpolation. Although k / n is a rational number, in such a case, for example, linear interpolation may be performed by executing the algorithm shown in Fig. 6 below. This is because, while in general α-fold linear interpolation, the interpolation coefficients and interpolation points are calculated one by one, in rational-number-fold linear interpolation, the interpolation coefficients and interpolation points are periodic, and calculations can be reduced.
[0052] FIG. 6 is a diagram showing an example of a linear interpolation program in the first embodiment. X in FIG. iThe size of the frequency and the size of the time having a channel are F and T, which are spectrograms. In the for loop from line 8 to line 21 of the algorithm in FIG. 6, multiplication and division except for line 16 are performed only on integers. Therefore, the algorithm in FIG. 6 can reduce the amount of calculation. In addition, the algorithm in FIG. 6 can perform parallel calculations for F and T. Therefore, the algorithm in FIG. 6 can reduce the time required for calculation.
[0053] Fig. 7 is a diagram showing an example of an algorithm for the first time-frequency representation rearrangement process and the convolution operation process in the first embodiment. Fig. 7 shows that the value of the left side of equation (7) can be obtained by the described procedure.
[0054] The feature extraction device 1 of the first embodiment configured as described above executes the first time-frequency representation rearrangement process and the convolution of equation (7), and therefore can suppress an increase in the time required to refer to data during convolution. Therefore, the feature extraction device 1 can suppress an increase in the time required to acquire the features of a one-dimensional waveform signal.
[0055] Second embodiment 8 is an explanatory diagram for explaining a feature extraction device 1a of the second embodiment. The feature extraction device 1a executes a second time-frequency representation acquisition process, a second time-frequency representation rearrangement process, and a convolution operation process. The second time-frequency representation acquisition process is a process for acquiring a time-frequency representation of an input one-dimensional waveform signal, and then converting the time-frequency representation so that the frequency axis becomes a logarithmic frequency axis. The time-frequency representation is acquired, for example, by a short-time Fourier transform.
[0056] For simplicity of the following explanation, the feature extraction device 1a will be described taking as an example a case where the time-frequency representation is a spectrogram in which the frequency axis of an amplitude spectrogram based on a short-time Fourier transform is converted to a logarithmic frequency axis. However, the time-frequency representation is not limited to this, and the time-frequency representation may be any time-frequency representation having a logarithmic frequency axis, including a power spectrogram.
[0057] The second time-frequency representation rearrangement process is a process of rearranging the time-frequency representation obtained by the second time-frequency representation acquisition process by changing the frequency axis. This process will be described in more detail with reference to Fig. 9. Fig. 9 is an explanatory diagram for explaining the rearrangement of the time-frequency representation in the second embodiment. That is, Fig. 9 is an explanatory diagram for explaining the second time-frequency representation rearrangement process in the second embodiment.
[0058] In the second embodiment, the rearrangement of the time-frequency representation is performed by reducing the frequency scale of the original time-frequency representation by k times, where k is a predetermined natural number ranging from 1 to K. f Figure 9 shows the integers up to K f = 3. Reducing the frequency scale by a factor of k means that the frequencies corresponding to the same frequency index in the time-frequency representation in which the frequency axis is discretized are multiplied by k.
[0059] In Fig. 9, the original time-frequency representation, a time-frequency representation in which the frequency scale is reduced by two times, and a time-frequency representation in which the frequency scale is reduced by three times are shown as examples. In Fig. 9, the frequency axis is logarithmic. In the second time-frequency representation rearrangement process, time-frequency representations in which the frequency scale is multiplied by k and the frequency axis is a logarithmic frequency axis are generated, and these time-frequency representations including the original time-frequency representation are arranged on a storage medium. The frequency axis being a logarithmic frequency axis means that the frequency values arranged at equal intervals on the frequency axis are in a geometric progression. In this case, reduction in the second time-frequency representation rearrangement process means translation on the frequency axis.
[0060] 9, the feature extraction device 1a of the second embodiment executes a second time-frequency representation acquisition process, a second time-frequency representation rearrangement process, and a convolution operation process. In the second time-frequency representation acquisition process, a logarithmic frequency spectrogram is generated. The logarithmic frequency spectrogram is a spectrogram whose frequency axis is a value obtained by performing a logarithmic transformation on the frequency axis of the original spectrogram.
[0061] An example of the process of acquiring a logarithmic frequency spectrogram for a one-dimensional waveform will be described more specifically below, taking as an example a case where the process is performed using a short-time Fourier transform.
[0062] The convolution process in the second embodiment is similar to the convolution process in the first embodiment.
[0063] An example of the process of generating a log-frequency spectrogram (i.e., the process of obtaining the second time-frequency representation) and the convolution process will be described in further detail using mathematical expressions.
[0064] Since the above equation (3) is the value of the elements of the original spectrogram, the value of the elements of the logarithmic frequency spectrogram is expressed by the following equation (8).
[0065]
number
[0066] Just as equation (5) holds for equation (3), equation (9) holds for equation (8).
[0067]
number
[0068] Expanding the right hand side of equation (9), we obtain the following equation (10).
[0069]
number
[0070] Just as formula (7) is obtained from formula (2), the following formula (11) can be obtained from formula (2) using formulas (8) to (10).
[0071]
number
[0072] The convolution performed by the second time-frequency representation acquisition process is not the convolution of equation (2) but the convolution of equation (11).
[0073] In the case of the convolution of equation (2), the data interval referenced by the kernel needs to be changed every time ω^{^} changes. On the other hand, in the case of the convolution of equation (11), unlike the convolution of equation (2), the data interval referenced by the kernel does not need to be changed even if ω^{^} changes. Therefore, when using the convolution of equation (11), the increase in the time required to refer to data during convolution is suppressed compared to when using the convolution of equation (2).
[0074] Furthermore, because of the relationship in equation (10), in the case of convolution using equation (11), unlike equation (7), the convolution result can be obtained simply by shifting the original logarithmic frequency spectrogram by log(k / n) along the frequency axis. Therefore, in the case of convolution using equation (11), the result can be obtained with an even smaller amount of calculation than in convolution using equation (7).
[0075] 10 is a diagram showing an example of a hardware configuration of a feature extraction device 1a in the second embodiment. The feature extraction device 1a includes a control unit 11a including a processor 91a such as a CPU and a memory 92a connected by a bus, and executes a program. The feature extraction device 1a functions as a device including the control unit 11a, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15 by executing the program.
[0076] More specifically, the processor 91a reads out a program stored in the storage unit 14 and stores the read out program in the memory 92a. The processor 91a executes the program stored in the memory 92a, whereby the feature extraction device 1a functions as a device including a control unit 11a, an input unit 12, a communication unit 13, a storage unit 14, and an output unit 15.
[0077] For ease of explanation, among the functional units included in the feature extraction device 1a, those similar to the functional units included in the feature extraction device 1 are given the same reference numerals as those in FIGS. 3 and 4 and explanations thereof will be omitted.
[0078] The control unit 11a controls the operation of various functional units included in the feature extraction device 1a. The control unit 11a executes, for example, a second time-frequency representation acquisition process, a second time-frequency representation rearrangement process, and a convolution operation process. The control unit 11a controls, for example, the operation of the output unit 15. The control unit 11a records, for example, various information generated by the execution of the convolution operation in the storage unit 14.
[0079] 11 is a diagram showing an example of the configuration of control unit 11a in the second embodiment. Control unit 11a differs from control unit 11 in that control unit 11a includes spectrogram acquisition unit 120a instead of spectrogram acquisition unit 120 and in that control unit 11a includes spectrogram rearrangement unit 121a instead of spectrogram rearrangement unit 121.
[0080] Spectrogram acquisition unit 120a differs from spectrogram acquisition unit 120 in that spectrogram acquisition unit 120a executes a second time-frequency representation acquisition process instead of the first time-frequency representation acquisition process. Spectrogram rearrangement unit 121a executes a second time-frequency representation rearrangement process on the frequency representation acquired by spectrogram acquisition unit 120a.
[0081] 12 is a flowchart showing an example of the flow of processing executed by the feature extraction device 1a of the second embodiment. For the sake of simplicity, the same processes as those executed by the feature extraction device 1 are denoted by the same reference numerals as those in FIG. 5 and will not be described.
[0082] In step S101a, spectrogram acquisition unit 120a acquires a logarithmic frequency spectrogram (step S101a). More specifically, spectrogram acquisition unit 120a acquires a logarithmic frequency spectrogram by executing a second time-frequency representation acquisition process on the one-dimensional waveform signal acquired by signal acquisition unit 110. Note that the second time-frequency representation acquisition process may be a process of acquisition by using a bandpass filter bank set so that center frequencies are equally spaced on the logarithm. Next, spectrogram rearrangement unit 121a executes a second time-frequency representation rearrangement process (step S102a).
[0083] As described above, in the second time-frequency representation rearrangement process in which the frequency axis is logarithmic, unlike cases other than when the frequency axis is a logarithmic frequency axis, the change in the scale of the frequency axis direction of the time-frequency representation is realized as a shift of data in the frequency direction. Therefore, the amount of calculation in the shift process is equal to or less than the amount of calculation required for rational interpolation. In other words, the amount of calculation required to execute the second time-frequency representation rearrangement process is equal to or less than the amount of calculation required to execute the first time-frequency representation rearrangement process.
[0084] The feature extraction device 1a of the second embodiment configured as described above executes the second time-frequency representation acquisition process, the second time-frequency representation rearrangement process, and the convolution of equation (11), and therefore can suppress an increase in the time required to refer to data during convolution. Therefore, the feature extraction device 1a can suppress an increase in the time required to acquire the features of a one-dimensional waveform signal.
[0085] (First Experimental Result Common to the First and Second Embodiments) Here, the results of a first experiment (hereinafter referred to as "first experiment") using the feature extraction device 1 of the first embodiment and the feature extraction device 1a of the second embodiment will be described. For simplicity of the following explanation, when there is no distinction between the first time-frequency representation acquisition process and the second time-frequency representation acquisition process, they will be referred to as time-frequency representation acquisition process. Also, for simplicity of the following explanation, when there is no distinction between the first time-frequency representation rearrangement process and the second time-frequency representation rearrangement process, they will be referred to as time-frequency representation rearrangement process.
[0086] In the first experiment, the calculation time and maximum memory usage required for feature extraction in the time-frequency representation rearrangement process were measured for the cases where the frequency axis was linear and where the frequency axis was logarithmic. In general, there is a trade-off between calculation time and memory usage, so the calculation time and maximum memory usage were measured. In the first experiment, the kernel size (K f , K t The computation time and maximum memory usage were measured for various values of n and anchor n. In the first experiment, an experiment was also conducted using a technology that acquires acoustic features using Deformable Convolution (hereinafter referred to as the "first conventional method").
[0087] FIG. 13 is a diagram showing an example of the settings of the first experiment. "Setting 1", "Setting 2", "Setting 3", "Setting 1a", "Setting 2a" and "Setting 3a" in FIG. 13 are identifiers for identifying the settings used in the first experiment. f is the padding size in the frequency direction. t is the padding size in the time direction.
[0088] In the first experiment, 100 measurements were performed using random inputs and differential outputs for each of the first conventional method and the process executed by the feature extraction device 1 or the feature extraction device 1a (when the frequency axis in the time-frequency representation rearrangement process is linear and when it is logarithmic). Other parameters in the first experiment that are not shown in FIG. 13 were the patch size, the number of input channels, the number of output channels, the size of the input spectrogram, the dilation, the stride, and the group parameters. The values of the patch size, the number of input channels, the number of output channels, the size of the input spectrogram, the dilation, the stride, and the group parameters were 16, 16, 32, 256×256, 1, 1, and 1, respectively. The device used in the first experiment was the same when executing the first conventional method and when executing the time-frequency representation rearrangement process.
[0089] Figure 14 shows an example of the results of the first experiment. The bar graph shows the average time measured. The lower part shows the measurement time in the forward direction, and the upper part shows the measurement time in the reverse direction. Figure 14 also shows the normal convolution calculation time to refer to as the lower limit of the calculation time. In the first experiment, "normal" refers to the case where a convolution calculation is performed on nearby values on an acoustic spectrogram, similar to the convolution calculation generally performed on an image, rather than harmonic convolution. The dots in Figure 14 show the maximum memory used on the GPU used in the first experiment.
[0090] FIG. 14 shows that the method according to the present invention achieves shorter calculation time with less memory usage than the first conventional method in any of the settings "Setting 1", "Setting 2", "Setting 3", "Setting 1a", "Setting 2a" and "Setting 3a". FIG. 14 shows that in the time-frequency representation rearrangement process (when the frequency axis is linear and when it is logarithmic), the calculation is completed in 1.5 to 3 times the calculation time of the normal convolution. FIG. 14 shows that in the first conventional method, the calculation is completed in 9 to 15 times the calculation time of the normal convolution. Therefore, FIG. 14 shows that the process executed by the feature extraction device 1 or the feature extraction device 1a uses less memory and takes less calculation time than the first conventional method.
[0091] In addition, in FIG. 14, "Harmonic Convolution (Deformable)1" indicates the forward calculation time by the first conventional method. In FIG. 14, "Ours (Harmonic Lowering)1" indicates the forward calculation time by the processing executed by feature extraction device 1. In FIG. 14, "Ours (Logarithmic Harmonic Lowering)1" indicates the forward calculation time by the processing executed by feature extraction device 1a. In FIG. 14, "Normal Convolution (only for ref.)1" indicates the forward calculation time by normal convolution.
[0092] In addition, in FIG. 14, "Harmonic Convolution (Deformable)2" indicates the calculation time in the reverse direction by the first conventional method. In FIG. 14, "Ours (Harmonic Lowering)2" indicates the calculation time in the reverse direction by the processing executed by feature extraction device 1. In FIG. 14, "Ours (Logarithmic Harmonic Lowering)2" indicates the calculation time in the reverse direction by the processing executed by feature extraction device 1a. In FIG. 14, "Normal Convolution (only for ref.)2" indicates the calculation time in the reverse direction by normal convolution.
[0093] (Second Experimental Result Common to the First and Second Embodiments) The results of a second experiment (hereinafter referred to as "second experiment") using the feature extraction device 1 of the first embodiment and the feature extraction device 1a of the second embodiment will be described. It is widely known that the hit rate of a cache memory changes depending on the memory arrangement of data. This is also true for calculations on a GPU. There are two types of memory arrangement: NHWC array and NCHW array. N is the batch size, C is the number of channels, H is the vertical size of the image, and W is the horizontal size of the image.
[0094] In the time-frequency representation rearrangement process, an experiment was conducted to see which of the FT array and the TF array requires less time to acquire acoustic features. This experiment is the second experiment. F indicates the size of the spectrogram in the frequency axis direction. T indicates the size of the spectrogram in the time axis direction.
[0095] Anchor n=1, K f =K t The second experiment was conducted under the condition of = 7. Other settings of the second experiment were the same as those of the first experiment.
[0096] Fig. 15 is a diagram showing an example of the results of the second experiment. Fig. 15 shows that the average calculation time is shorter for both the NCFT array and the NCTF array when the time axis in the time-frequency representation rearrangement process is logarithmic than when it is linear. Fig. 15 also shows that the time is shorter for the NCFT array than for the NCTF array in both cases when the time axis in the time-frequency representation rearrangement process is linear and logarithmic.
[0097] Thus, the results in FIG. 15 show that in the time-frequency representation rearrangement process, whether the time axis is linear or logarithmic, the time-frequency representation to be calculated is preferably a four-dimensional tensor in the form of an NCFT array.
[0098] (Modification) <Symmetric harmonic convolution> The feature extraction device 1 of the first embodiment and the feature extraction device 1a of the second embodiment may perform symmetric harmonic convolution. Details of symmetric harmonic convolution will be described later, and the effects of symmetric harmonic convolution will be described first. Symmetric harmonic convolution requires a small amount of space-time calculation for convolution calculation, and is a process with high scalability due to its simple formulation. Symmetric harmonic convolution will be described with reference to Figs. 16 and 17.
[0099] FIG. 16 is a first explanatory diagram for explaining symmetric harmonic convolution in a modified example. More specifically, FIG. 16 is an explanatory diagram for first explaining mixed harmonic convolution (Anchor Mixing) in order to facilitate understanding of symmetric harmonic convolution. Mixed harmonic convolution means a case where n is not 1 in equation (2) (a case where fractional multiple frequencies are subject to convolution calculation). In FIG. 16, the vertical axis indicates frequency. Circle O 1 indicates the origin. fo indicates the frequency of the point of interest, and circles P1, P2, and P3 indicate the execution of convolution processing at n=1, 2, and 3, respectively. Mixing P4 indicates the execution of the mixing processing of the convolution.
[0100] FIG. 17 is a second explanatory diagram for explaining symmetric harmonic convolution in the modified example. More specifically, FIG. 17 is an explanatory diagram for explaining symmetric harmonic convolution (symmetric mixing). The vertical axis indicates frequency. 2 indicates the origin. Circle P5 indicates the execution of the convolution process.
[0101] Mixed harmonic convolution is a convolution method that combines multiple harmonic convolutions. Mixed harmonic convolution is expressed by the following equation (12).
[0102]
number
[0103] N is the number of harmonic convolutions to be mixed. In other words, N is a predetermined natural number. As shown in equation (12), the mixed harmonic convolution mixes N types of harmonic convolutions of base frequency ω / n. Therefore, it is expected that the performance of noise reduction and sound source separation can be improved compared to the harmonic convolution with n=1.
[0104] On the other hand, symmetric harmonic convolution is expressed by the following equation (13).
[0105]
number
[0106] In addition, in equations (12) and (13), K h =K f =N.
[0107] In mixed harmonic convolution and symmetric harmonic convolution, the meaning of setting n to be greater than 1 is to include in the calculation harmonic components and fundamental frequency components of frequencies lower than the target point, assuming that the target point is a harmonic component of the frequency component contained in the target waveform. In this sense, both mixed harmonic convolution and symmetric harmonic convolution are considered to be suitable for the purpose. However, comparing Figure 16 and Figure 17, in mixed harmonic convolution, the relationship between the components to be added is complicated, and the component of the target point fo is added many times (three times in the example of Figure 16). In contrast, in symmetric harmonic convolution, when it is noted that the scalar k and the inverse element 1 / k are in a mutually reciprocal relationship, the relationship between the components to be added is simple, and no components are added multiple times. From these points, it can be seen that in symmetric harmonic convolution, the amount of calculation is reduced compared to mixed harmonic convolution while maintaining the above-mentioned purpose.
[0108] In more mathematical terms, the set {1, , K h} and form a group for multiplication, which is K s It is. sSince K is a group, it is symmetric in the sense that an inverse exists for every convolution parameter. s is also symmetric in the logarithmic scale.
[0109] By transforming equation (13), we obtain the following equation (14).
[0110]
number
[0111] Equation (13) and equation (14) are equivalent. Equation (14) is an equation with the same form as equation (2) except that the range of Σ is twice as large. Therefore, the time-frequency representation rearrangement process of equation (7) can be applied to equation (14).
[0112] More specifically, the feature extraction device 1 of the first embodiment may execute equation (14) in place of equation (7) in the convolution process. When equation (14) is executed, the time-frequency representation is rearranged for each pair of k and n in the time-frequency representation rearrangement process.
[0113] When executing equation (14) in this way, in the time-frequency representation rearrangement process, K f In addition to the rearranged time-frequency representations 1 through K f K to the th f The latter is a spectrogram whose frequency scale of the kth spectrogram is 1 / k times the frequency scale of the original time-frequency representations.
[0114] In addition, in equation (14), the frequency axis in the time-frequency representation can also be logarithmic.
[0115] <Effects of symmetric harmonic convolution> Mixed harmonic convolution involves a lot of computational or semantic waste because it mixes multiple harmonic convolutions. Specifically, even if the harmonic convolution at the target frequency (kω) / n has already been calculated in the calculation of the harmonic convolution, the harmonic convolution at the target frequency (kω) / n is calculated again using the harmonic convolution of a different base frequency, which is wasteful in mixed harmonic convolution. In mixed harmonic convolution, the process of obtaining the sum is tripled as shown in equation (12). On the other hand, in symmetric harmonic convolution, the process of obtaining the sum is doubled as shown in equation (13). In this respect, too, symmetric harmonic convolution can reduce the amount of calculations compared to mixed harmonic convolution.
[0116] In addition, while mixed harmonic convolution incorporates information below the target frequency as shown in the above formula (12), symmetric harmonic convolution convolves (1 / n) times the components, and is therefore formulated as a simpler formula than mixed harmonic convolution as shown in formula (13). Therefore, symmetric convolution enables processing using a scheme for accelerating harmonic convolution, such as time-frequency representation rearrangement, and can reduce the amount of calculation.
[0117] <Experiments using symmetric harmonic convolution> We explain the results of three experiments using symmetric harmonic convolution. Hereafter, one of the three experiments is called the third experiment, the other the fourth experiment, and the remaining one the fifth experiment.
[0118] In the third experiment, we performed three convolutions, including symmetric harmonic convolution, that transform the tensor size from (16,16,256,256) to (16,32,256,256). The numbers in the tensor size represent the batch, channel, frequency, and time sizes, respectively. The input tensor was sampled from a normal distribution.
[0119] Fig. 18 is a diagram showing an example of the experimental results of the third experiment of the modified example. Fig. 18 shows the measurement results of the average time when forward or backward calculations were performed 100 times. All times in Fig. 18 are in ms. Note that the kernel size of the mixed harmonic convolution is N=K f"Mixed harmonic" in Fig. 18 means mixed harmonic convolution. "Symmetric harmonic" in Fig. 18 means symmetric harmonic convolution. "Normal" in Fig. 18 means normal convolution. The normal convolution in the third experiment does not mean harmonic convolution, but convolution of adjacent data in the time-frequency representation, similar to the convolution generally performed in image processing.
[0120] Fig. 19 is a diagram showing an example of the experimental results of the fourth experiment of the modified example. Fig. 19 shows the results of comparing the memory occupation amount required for forward or backward calculation by each method. However, since there is memory that is not required for calculation but has not yet been released, it is difficult to observe the truly required memory amount even if the memory usage is observed. Therefore, in the fourth experiment, instead of directly observing the memory usage, the maximum number of layers that can be stacked for convolution processing was measured.
[0121] The maximum number of layers was the maximum value when the convolution process was increased by one layer at a time until the forward or backward calculation could no longer be performed correctly. Note that when calculations could not be performed correctly, errors such as CUDA OUT OF MEMORY errors occurred in the experimental system used, indicating that calculations could not continue due to insufficient memory. The tensor sizes calculated in the convolution process were (32,16,256,256) before conversion and (32,16,256,256) after conversion. Other settings were the same as in the third experiment.
[0122] In the fifth experiment, a noise removal task was performed on a mathematical model that incorporates mixed harmonic convolution, symmetric harmonic convolution, and normal convolution into Unet, a type of machine learning model. Note that normal convolution in the fifth experiment does not mean harmonic convolution, but rather convolution that is carried out on adjacent data in the time-frequency representation, similar to the convolution generally performed in image processing. Hereinafter, the Unet that incorporates mixed harmonic convolution and performs the noise removal task is referred to as the first net model.
[0123] Hereinafter, the Unet incorporating symmetric harmonic convolution and performing the noise reduction task is referred to as the second net model. Hereinafter, the Unet incorporating normal convolution and performing the noise reduction task is referred to as the third net model.
[0124] In the fifth experiment, the performance of each convolution, including mixed harmonic convolution, symmetric harmonic convolution, and normal convolution, was evaluated based on the results of the noise reduction task. Specifically, the noise reduction task was Deep Audio Prior described in the following non-patent document 1.
[0125] In the fifth experiment, a waveform s' was generated by adding Gaussian noise n to speech waveform data s obtained from the LJSpeech dataset so that the SNR was 0 dB. In the fifth experiment, a short-time Fourier transform was performed on the waveform s' to generate a complex spectrogram S'.
[0126] In the fifth experiment, the complex spectrogram S' was input to the first net model, which then performed a noise reduction task on the complex spectrogram S'.
[0127] In the fifth experiment, the complex spectrogram S' was input to the second net model, which then performed a noise reduction task on the complex spectrogram S'.
[0128] In the fifth experiment, the complex spectrogram S' was input to the third net model, which then performed a noise reduction task on the complex spectrogram S'.
[0129] In the fifth experiment, the number of learning epochs was uniformly 4000. In the fifth experiment, the model fitting speed, the maximum SNR, and the final SNR were evaluated. The model fitting speed and the final SNR are indicators of the degree to which the appropriate solution search range is restricted by the deep learning model structure. The maximum SNR is an indicator of the degree to which the appropriate solution search range is too restricted by the deep learning model structure.
[0130] FIG. 20 is a diagram showing an example of the experimental results of the fifth experiment of the modified example. The horizontal axis of FIG. 20 indicates the number of epochs. The vertical axis of FIG. 20 indicates the SNR. The unit of the vertical axis is decibels. "Anchor Mixing" in FIG. 20 indicates the first net model. "Symmetric" in FIG. 20 indicates the second net model. "Normal" in FIG. 20 indicates the third net model. Line L1 in FIG. 20 indicates the SNR of the noisy signal used in the fifth experiment.
[0131] Fig. 20 shows that the final SNR of the second net model is about 5.9 dB higher than that of the first net model, and the learning time of the second net model is about four times shorter than that of the first net model.
[0132] Each of the feature extraction devices 1 and 1a may be implemented using a plurality of information processing devices communicably connected via a network. In this case, each functional unit of each of the feature extraction devices 1 and 1a may be distributed and implemented in the plurality of information processing devices.
[0133] The spectrogram acquisition units 120 and 120a are examples of a time-frequency representation acquisition unit. The rearranged spectrogram is an example of a rearranged time-frequency representation. The spectrogram rearrangement units 121 and 121a are examples of a time-frequency representation rearrangement unit.
[0134] Note that the scale of the rearranged spectrogram in the frequency axis direction does not necessarily have to be k times the scale of the original spectrogram in the frequency axis direction, and may be n times (n is a predetermined natural number) the scale of the original spectrogram in the frequency axis direction.
[0135] The rearranged time-frequency representation acquired by the time-frequency representation rearrangement unit does not need to be only one in which the scale in the frequency axis direction is reduced by k times. The rearranged spectrogram acquired by the time-frequency representation rearrangement unit may be a first rearranged time-frequency representation and a second rearranged time-frequency representation. The first rearranged time-frequency representation is a time-frequency representation in which the scale in the frequency axis direction of the original time-frequency representation is reduced by k times. The second rearranged time-frequency representation is a time-frequency representation in which the scale in the frequency axis direction of the original time-frequency representation is expanded by n times.
[0136] All or part of the functions of the feature extraction devices 1 and 1a may be realized using hardware such as an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field Programmable Gate Array). The program may be recorded on a computer-readable recording medium. Examples of computer-readable recording media include portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. The program may be transmitted via a telecommunications line.
[0137] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Explanation of symbols]
[0138] 1, 1a... feature extraction device, 11, 11a... control unit, 12... input unit, 13... communication unit, 14... storage unit, 15... output unit, 110... signal acquisition unit, 120, 120a... spectrogram acquisition unit, 121, 121a... spectrogram rearrangement unit, 130... convolution operation unit, 140... storage control unit, 150... communication control unit, 160... output control unit, 91, 91a... processor, 92, 92a... memory
Claims
1. a time-frequency representation acquisition unit for acquiring a time-frequency representation of a one-dimensional waveform; a time-frequency representation rearrangement unit that acquires a rearranged time-frequency representation, which is a time-frequency representation in which the frequency scale of the time-frequency representation is multiplied by k / n (k and n are predetermined natural numbers); a convolution calculation unit that performs convolution using the rearranged time-frequency representation; A feature extraction device comprising:
2. the time-frequency representation rearrangement unit obtains a rearranged time-frequency representation, which is a time-frequency representation obtained by reducing the frequency scale of the time-frequency representation by k times (k is a predetermined natural number); The feature extraction device according to claim 1 .
3. the time-frequency representation rearrangement unit acquires a rearranged time-frequency representation, which is a time-frequency representation obtained by expanding the frequency scale of the time-frequency representation by n times (n is a predetermined natural number); The feature extraction device according to claim 1 or 2.
4. the time-frequency representation rearrangement unit generates a first rearranged time-frequency representation, which is a time-frequency representation obtained by reducing the frequency scale of the time-frequency representation by a factor k (k is a predetermined natural number); a second rearranged time-frequency representation, which is a time-frequency representation obtained by expanding the frequency scale of the time-frequency representation by a factor of n (n is a predetermined natural number); The feature extraction device according to claim 1 .
5. In the convolution, the time-frequency representation is represented by a four-dimensional tensor, and the tensor is a tensor in the form of an NCFT array, where N is a batch size, C is the number of channels, F is the size of the time-frequency representation in the frequency axis direction, and T is the size of the time-frequency representation in the time axis direction. The feature extraction device according to claim 1 .
6. The time-frequency representation acquisition unit acquires a time-frequency representation in which the frequency axis is a logarithmic frequency axis. The feature extraction device according to claim 1 .
7. The time-frequency representation rearrangement unit performs interpolation in a frequency axis direction of the time-frequency representation. The feature extraction device according to claim 1 .
8. A time-frequency representation acquisition step of acquiring a time-frequency representation of a one-dimensional waveform; a time-frequency representation rearrangement step of acquiring a rearranged time-frequency representation, which is a time-frequency representation in which the frequency scale of the time-frequency representation is multiplied by k / n (k and n are predetermined natural numbers); a convolution operation step of performing convolution using the rearranged time-frequency representation; The feature extraction method has the following structure:
9. The time-frequency representation acquisition step acquires a time-frequency representation in which the frequency axis is logarithmic. The feature extraction method according to claim 8.
10. A program for causing a computer to function as the feature extraction device according to any one of claims 1 to 7.
Citation Information
Patent Citations
METHOD FOR IMPROVING AN AUDIO SIGNAL INCLUDING NOISY
JP2003507764A
Apparatus, method or computer program for generating a bandwidth-extended audio signal using a neural network processor
JP2021502588A
Audiovisual source separation and localization using generative adversarial networks
JP2022529553A
Method and apparatus for speech source separation based on convolutional neural networks
JP2022541707A
