Program, information processing device and information processing method

The program adjusts stride and dilation parameters to control the trade-off between accuracy and computational complexity in a single convolutional neural network model, facilitating real-time processing on diverse hardware configurations with reduced memory usage.

JP2024151738AActive Publication Date: 2024-10-25KK TOSHIBA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023065376
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-25
Estimated Expiration
2043-04-13

AI Technical Summary

Technical Problem

Conventional techniques fail to provide a flexible implementation that controls the trade-off between computational complexity and accuracy using a single convolutional neural network model.

Method used

A program that functions as a storage control unit, conversion unit, first CNN unit, and second CNN unit, which reads and converts stride and dilation parameters to control output and input resolution, enabling flexible implementation of a single model to adjust between accuracy and computational complexity.

Benefits of technology

Enables flexible control of the trade-off between accuracy and computational complexity using a single model, allowing real-time processing on computers with varying capabilities and reducing memory requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024151738000001_ABST
    Figure 2024151738000001_ABST
Patent Text Reader

Abstract

To provide flexible implementation that performs control over a trade-off between computational complexity and precision using one model when a convolutional neural network model is used.SOLUTION: A program causes a computer to function as a storage control unit, a conversion unit, a first CNN unit, and a second CNN unit. The storage control unit reads a first stride parameter and a first dilation parameter from a storage device. The conversion unit uses a conversion parameter to convert the first stride parameter into a second stride parameter and also the first dilation parameter into a second dilation parameter. The first CNN unit uses at least the second stride parameter to execute first CNN processing on a feature vector. The second CNN unit uses at least the second dilation parameter to execute second CNN processing based upon the output vector of the first CNN unit as an input.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] An embodiment of the present invention relates to a program, an information processing device, and an information processing method. [Background technology]

[0002] Frame skipping has been known as a method for reducing the amount of calculations in neural networks. This method is a technique that halves the amount of calculations by performing neural network processing and outputting only odd-numbered frames, and not processing even-numbered frames and using the odd-numbered outputs. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 6453917 Summary of the Invention [Problem to be solved by the invention]

[0004] However, in conventional techniques, when using a convolutional neural network model, it has not been possible to realize a flexible implementation that controls the trade-off between computational complexity and accuracy using a single model. [Means for solving the problem]

[0005] The program of the embodiment causes a computer to function as a memory control unit, a conversion unit, a first CNN unit, and a second CNN unit. The memory control unit reads out a first stride parameter for controlling an output resolution and a first duration parameter for controlling an input resolution from a storage device. The conversion unit converts the first stride parameter into a second stride parameter and converts the first duration parameter into a second duration parameter using the conversion parameter. The first CNN unit uses at least the second stride parameter to perform a first CNN (Convolutional Neural Network) process on a feature vector. The second CNN unit uses at least the second duration parameter to perform a second CNN process using an output vector of the first CNN unit as an input. [Brief description of the drawings]

[0006] [Figure 1] FIG. 2 is a diagram showing an example of a hardware configuration of the information processing apparatus according to the first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of the functional configuration of the information processing apparatus according to the first embodiment. [Diagram 3] FIG. 4 is a diagram showing an example of correspondence information between keywords and commands according to the first embodiment. [Figure 4] FIG. 2 is a diagram showing an example of the functional configuration of a detection control unit according to the first embodiment. [Diagram 5] FIG. 2 is a diagram showing Example 1 of a convolutional neural network process according to the first embodiment. [Figure 6] FIG. 11 is a diagram showing Example 2 of the convolutional neural network processing according to the first embodiment. [Figure 7] 4 is a flowchart showing an example of an information processing method according to the first embodiment. [Figure 8] FIG. 13 is a diagram showing an example of the functional configuration of an information processing apparatus according to a second embodiment. [Figure 9] FIG. 11 is a diagram showing an example of parameters according to the second embodiment. [Figure 10] FIG. 11 is a diagram showing an example of conversion parameters according to calculation resources in the second embodiment. [Figure 11]FIG. 11 is a diagram showing an input example 1 of the interpolation unit according to the second embodiment. [Figure 12] FIG. 13 is a diagram showing an input example 2 of the interpolation unit according to the second embodiment. [Figure 13] FIG. 13 is a diagram showing an input example 3 of the interpolation unit according to the second embodiment. [Figure 14] 10 is a flowchart showing an example of an information processing method according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Hereinafter, embodiments of a program, an information processing device, and an information processing method will be described in detail with reference to the accompanying drawings.

[0008] (First embodiment) First, an example of the hardware configuration of the information processing device 100 of the first embodiment will be described.

[0009] [Example of hardware configuration] Fig. 1 is a diagram illustrating an example of a hardware configuration of an information processing device 100 according to a first embodiment. The example in Fig. 1 illustrates a case in which the information processing device 100 according to the first embodiment is realized as a keyword utterance detection device and a command activation device mounted on a smart device such as a smartphone.

[0010] The information processing device 100 of the first embodiment includes a CPU (Central Processing Unit) 301, a RAM (Random Access Memory) 302, a ROM (Read Only Memory) 303, an operation input device 304, a display device 305, a storage device 306, a communication device 307, and an audio input device 308. The CPU 301, the RAM 302, the ROM 303, the operation input device 304, the display device 305, the storage device 306, the communication device 307, and the audio input device 308 are connected by a bus 309.

[0011] The CPU 301 is a processor that executes arithmetic processing, control processing, etc. according to a program. The CPU 301 uses a predetermined area of ​​the RAM 302 as a working area and executes various processes in cooperation with programs stored in the ROM 303, the storage device 306, etc.

[0012] The RAM 302 is a memory such as a Synchronous Dynamic Random Access Memory (SDRAM), and functions as a work area for the CPU 301. The ROM 303 is a memory that stores programs and various information in a non-rewritable manner.

[0013] The operation input device 304 is an input device such as a touch screen, a keyboard, etc. The operation input device 304 receives information input by a user as an instruction signal, and outputs the instruction signal to the CPU 301.

[0014] The display device 305 is a display device such as an LCD (Liquid Crystal Display), etc. The display device 305 displays various information based on a display signal from the CPU 301.

[0015] The storage device 306 is a device that writes and reads data to a semiconductor storage medium such as a flash memory, or a magnetically or optically recordable storage medium, etc. The storage device 306 writes and reads data to the storage medium in response to control from the CPU 301.

[0016] The communication device 307 communicates with external devices via a network under the control of the CPU 301 .

[0017] The voice input device 308 is composed of a microphone, an AD conversion (analog / digital conversion) device, and the like, and converts a voice signal uttered by the user into a digital signal and outputs it to the CPU 301 .

[0018] [Example of functional configuration] 2 is a diagram showing an example of a functional configuration of the information processing device 100 of the first embodiment. The information processing device 100 of the first embodiment operates as a command activation device that recognizes a predetermined keyword included in a user's speech and executes an appropriate command implemented on, for example, a smart device. The information processing device 100 of the first embodiment includes a voice acquisition unit 101, a computational resource acquisition unit 102, a detection control unit 103, a startup unit 104, and a storage unit 105.

[0019] The voice acquisition unit 101 acquires a voice input to a microphone, converts the voice into a digital signal, and inputs the voice signal represented by the digital signal to the detection control unit 103 .

[0020] The computational resource acquisition unit 102 acquires computational resource information including the computational capacity and load of the CPU 301, and inputs computational resource information available to the detection control unit 103 at that time to the detection control unit 103. For example, if the computational capacity of the CPU 301 is 1000 MIPS (Million Instructions Per Second) and the load of the CPU 301 is 80%, the computational resource acquisition unit 102 inputs computational resource information indicating that the available computational resource is 200 MIPS to the detection control unit 103.

[0021] The detection control unit 103 executes a process of detecting a keyword utterance from the voice signal input from the voice acquisition unit 101, and when a keyword utterance is detected, inputs a keyword ID corresponding to the keyword utterance to the startup unit 104. At this time, the detection control unit 103 refers to the calculation resource information input from the calculation resource acquisition unit 102, and executes the keyword detection process within the range of the calculation amount indicated by the calculation resource information.

[0022] The starting unit 104 starts a command associated with the keyword ID input from the detection control unit 103 .

[0023] The storage unit 105 stores information. For example, the storage unit 105 stores information referenced by the detection control unit 103 in a keyword detection process.

[0024] Fig. 3 is a diagram showing an example of correspondence information between keywords and commands in the first embodiment. In the information processing device 100 of the first embodiment, the command launching device of the first embodiment is configured to register three keyword IDs shown in Fig. 3 and execute the corresponding commands.

[0025] The correspondence information of the keyword and the command in the first embodiment includes an ID, a notation, a pronunciation, and a command. The ID is identification information for identifying the keyword. The notation indicates the notation of the keyword. The pronunciation indicates the pronunciation of the keyword. The command indicates the command associated with the keyword.

[0026] For example, the "current time" of ID=1 is associated with a command to launch a clock application and display the current time.

[0027] Next, detailed operation of the detection control unit 103 of the first embodiment will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the functional configuration of the detection control unit 103 of the first embodiment. The detection control unit 103 of the first embodiment includes a storage control unit 201, a generation unit 202, a conversion unit 203, an extraction unit 204, a first CNN (Convolutional Neural Network) unit 205, a second CNN unit 206, and a recognition unit 207.

[0028] The storage control unit 201 performs storage control such as reading, writing, and deleting information stored in the storage unit 105. For example, the storage control unit 201 reads out a kernel size k1=3, a stride s1=1, a duration d1=1, and a weight parameter W1 as parameters of the first CNN unit 205 from the storage unit 105, and reads out a kernel size k2=3, a stride s2=1, a duration d2=2, and a weight parameter W2 as parameters of the second CNN unit 206 from the storage unit 105.

[0029] The generating unit 202 generates a conversion parameter r based on the calculation resource information input from the calculation resource acquiring unit 102. For example, if the calculation resource information is 100 MIPS or more, the generating unit 202 generates a conversion parameter r=1, and if the calculation resource information is less than 100 MIPS, the generating unit 202 generates a conversion parameter r=2. The generating unit 202 inputs the generated conversion parameter r to the converting unit 203.

[0030] The conversion unit 203 calculates the stride s1' to be input to the first CNN unit 205 and the duration d2' to be input to the second CNN unit 206 using the following formulas (1) and (2). s1' = rs1 (1) d2'=d2 / r (2)

[0031] The conversion unit 203 generates a stride s1' by multiplying the stride s1 by the conversion parameter r, and generates a duration d2' by multiplying the duration d2 by the inverse of the conversion parameter r. By converting the parameters in this way, it becomes possible to control the trade-off between accuracy (output time resolution) and the amount of calculation in a model with the same weight parameters.

[0032] In addition, since the value of the dilation needs to be an integer, the conversion parameter r needs to be a divisor of the dilation d2.

[0033] The conversion unit 203 inputs the kernel size k1, the stride s1′, the duration d1, and the weighting parameter W1 to the first CNN unit 205, and inputs the kernel size k2, the stride s2, the duration d2′, and the weighting parameter W2 to the first CNN unit 205.

[0034] The extraction unit 204 performs a short-time Fourier transform on the speech signal input from the speech acquisition unit 101 with a window length of 32 ms and a frame shift of 10 ms, and further converts the data after the short-time Fourier transform into a 32-dimensional Mel filter bank feature vector.

[0035] In addition to the Mel filter bank, various features such as Mel Frequency Cepstral Coefficient (MFCC) can be used for the feature vector indicating the feature of the input voice. A neural network for extracting features may also be used.

[0036] The first CNN unit 205 uses the parameters input from the conversion unit 203 to perform one-dimensional CNN processing in the time direction on the feature vector input from the extraction unit 204, and then sequentially executes batch normalization processing and activation processing using a ReLU (Rectified Linear Unit) function.

[0037] The second CNN unit 206 performs one-dimensional CNN processing in the time direction on the output data of the first CNN unit 205 using the parameters input from the conversion unit 203, and then sequentially executes batch normalization processing and activation processing using a ReLU function.

[0038] The recognition unit 207 recognizes speech using the output vector of the second CNN unit 206. Specifically, the recognition unit 207 performs one-layer fully connected neural network processing on the output of the second CNN unit 206, and then executes Softmax activation processing to generate a four-dimensional output vector y=[y0, y1, y2, y3] for each frame.

[0039] Here, y0 represents the probability that no keyword is included in the utterance, and y1, y2, and y3 represent the probability that the utterance contains keywords with keyword IDs 1, 2, and 3, respectively. When, for example, any one of y1, y2, or y3 is maximized among these four probability values, the recognition unit 207 outputs the keyword ID corresponding to the maximized probability value as the detection result.

[0040] Note that the speech recognition by the recognition unit 207 may be used for purposes other than detecting keywords contained in the input speech, such as converting the input speech into text.

[0041] Next, the operation of the detection control unit 103 of the first embodiment will be described in detail, focusing on the difference between when the available computational resources are large (for example, 200 MIPS) and when they are small (for example, 80 MIPS).

[0042] When the computational resource is 200 MIPS, the output of the generation unit 202 is r=1, so that s1'=s1=1 and d2'=d2=2 according to the above formulas (1) and (2). The relationship between the input vector, each frame of the output of the first CNN unit 205, each frame of the output of the second CNN unit 206, and the calculations in CNN in this case is shown in FIG. 5.

[0043] Fig. 5 is a diagram showing Example 1 of the convolutional neural network processing of the first embodiment. The circles in Fig. 5 represent input and output frames. The lines connecting the circles represent input frames that are referenced when generating an output frame by a convolution operation.

[0044] Focusing on frame 11, one of the outputs of the second CNN unit 206, three frames of the output of the first CNN unit 205 are referenced to generate frame 11, and seven frames of the input feature vector are referenced to output these three frames. Also, in the example of Fig. 5, the number of output frames of the second CNN unit 206 is the same as the number of frames of the input feature vector, and it can be seen that the time resolution is maintained.

[0045] On the other hand, when the computational resource is 80 MIPS, the output of the generation unit 202 is r=2, so that s1'=2s1=2 and d2'=d2 / 2=1 according to the above formulas (1) and (2). The relationship between the input vector, each frame of the output of the first CNN unit 205, each frame of the output of the second CNN unit 206, and the calculations in CNN in this case is shown in FIG. 6.

[0046] Fig. 6 is a diagram showing Example 2 of the convolutional neural network processing of the first embodiment. Focusing on one frame 12 of the output of the second CNN unit 206, the input / output dependency is the same as in the case of Fig. 5, so the output value is equal to the output of the corresponding frame 11 in Fig. 5. However, the number of output frames of the second CNN unit 206 is half the number of frames of the input feature vector, and although there is a slight decrease in performance due to a decrease in time resolution, the necessary amount of calculation is reduced to half compared to the case of Fig. 5.

[0047] The detection control unit 103 of the first embodiment is set so that real-time processing is possible with a computational load of 100 MIPS in the configuration shown in Fig. 5. Therefore, when the available computational resources are 100 MIPS or more, an output is generated with high time resolution with emphasis on detection accuracy. Even if the available computational resources are less than 100 MIPS, real-time processing is possible by halving the computational load using the configuration in Fig. 6, and keyword utterance detection can be performed with a slight degradation in performance.

[0048] [Examples of information processing methods] 7 is a flowchart showing an example of the information processing method according to the first embodiment. First, the computational resource acquisition unit 102 acquires the computational resource information (step S1). Next, the generation unit 202 generates a conversion parameter r based on the computational resource information acquired in step S1 (step S2).

[0049] Next, the conversion unit 203 converts the stride parameter s1′ input to the first CNN unit 205 and the duration parameter d2′ input to the second CNN unit 206 using the above-mentioned formulas (1) and (2) (step S3).

[0050] Next, the extraction unit 204 extracts a feature vector indicating the feature amount of the voice from the voice signal input from the voice acquisition unit 101 (step S4).

[0051] Next, the first CNN unit 205 performs one-dimensional CNN processing in the time direction on the feature vector extracted in step S4 using the stride parameter s1' converted in step S3 (step S5). Next, the second CNN unit 206 performs one-dimensional CNN processing in the time direction on the output data of the first CNN unit 205 using the duration parameter d2' converted in step S3 (step S6).

[0052] Next, the recognition unit 207 detects a keyword included in the voice using the output vector of the second CNN unit 206 (step S7), and the activation unit 104 activates a command associated with the keyword (step S20).

[0053] As described above, in the information processing device 100 of the first embodiment, the storage control unit 201 reads out the stride s1 (first stride parameter) that controls the resolution of the output and the dilation d2 (first duration parameter) that controls the resolution of the input from the storage unit 105. The conversion unit 203 converts the stride s1 into the stride s1' (second stride parameter) and converts the dilation d2 into the dilation d2' (second duration parameter) using the conversion parameter r. The first CNN unit 205 performs the first CNN process on the feature vector using at least the second stride parameter. Then, the second CNN unit 206 performs the second CNN process using the output vector of the first CNN unit 205 as input using at least the second duration parameter.

[0054] As a result, according to the information processing device 100 of the first embodiment, even when a convolutional neural network model is used, flexible implementation that controls the trade-off between the amount of calculation and accuracy using one model can be realized. For example, in a convolutional neural network with two or more layers, it is possible to switch between accuracy emphasis (large amount of calculation but high output resolution) and calculation amount emphasis (small amount of calculation but thinned output) by controlling the conversion parameter r. In other words, there is an effect that the same neural network model can be executed by various computers with different calculation capabilities.

[0055] Specifically, the detection control unit 103 of the first embodiment is capable of performing highly accurate detection using a convolutional neural network model, and is also capable of flexibly controlling the trade-off between accuracy and amount of calculation. This has the effect of enabling real-time processing by changing the configuration when calculation resources are limited.

[0056] Such flexible processing can also be achieved by preparing multiple models in advance and switching between them, but in that case, the increase in memory capacity required to store the models becomes an issue. In contrast, the first embodiment can handle the processing with a single model, which has the advantage of allowing for memory-saving implementation.

[0057] In addition, since the detection control unit 103 in the first embodiment is capable of real-time processing in accordance with the computing capabilities of processors of various capabilities, there is no need to develop a neural network model for each processor, which has the effect of reducing development costs.

[0058] For example, the information processing device 100 (first information processing device) may perform parameter conversion processing in accordance with a processor of an arbitrary device (second information processing device) in response to an operational input by a developer, and the converted parameters may be incorporated into the second information processing device. In this case, it is not essential for the first information processing device to execute CNN processing, and the second information processing device may not include a function for performing parameter conversion processing.

[0059] That is, an information processing method including the steps of: a first information processing device reading from a storage device a first stride parameter that controls an output resolution and a first duration parameter that controls an input resolution; a first information processing device converting the first stride parameter into a second stride parameter and converting the first duration parameter into a second duration parameter using a conversion parameter; a first information processing device storing at least the second stride parameter in a second information processing device as a parameter used in a first CNN processing of a feature vector; and a first information processing device storing at least the second duration parameter in a second information processing device as a parameter used in a second CNN processing using an output vector of the first CNN processing as an input.

[0060] In the past, in the case of a model in which the output could be calculated from only one frame of input, it was possible to adjust the amount of calculation by changing the number of skip frames without changing the model. However, in a convolutional neural network, since it refers to not only one frame of input but also the input before and after it, changing the number of skip frames affects the output, so it was not possible to change the number of skip frames. Therefore, when using a convolutional neural network model, it was not possible to realize flexible implementation that controls the trade-off between computational amount and accuracy using one model. In order to realize such flexibility, it was necessary to learn and load multiple models with different computational amounts in advance and switch between them, which posed issues such as an increase in memory capacity to store the models and an increase in the cost of developing the models.

[0061] Second embodiment Next, a second embodiment will be described. In the description of the second embodiment, the description of the same parts as in the first embodiment will be omitted, and only the parts different from the first embodiment will be described.

[0062] [Example of functional configuration] 8 is a diagram showing an example of the functional configuration of an information processing device according to the second embodiment. The same components as those in the first embodiment are given the same reference numbers and will not be described. The main differences between the second embodiment and the first embodiment are that the convolutional neural network has three layers, each of which is a two-dimensional convolutional neural network, and that an interpolation unit 409 is added.

[0063] The detection control unit 103-2 in the second embodiment includes a memory control unit 401, a generation unit 402, a conversion unit 403, an extraction unit 204, a first CNN unit 405, a second CNN unit 406, a third CNN unit 408, an interpolation unit 409, and a recognition unit 207.

[0064] The storage control unit 401 stores the parameters shown in FIG. 9 in the storage unit 105 as parameters corresponding to the first CNN unit 405, the second CNN unit 406, and the third CNN unit 408, respectively.

[0065] Fig. 9 is a diagram showing an example of parameters in the second embodiment. The example in Fig. 9 shows a case where the parameters in the second embodiment are stored in a table format. In the second embodiment, a two-dimensional convolutional neural network in the time direction (an example of a first direction) and the frequency direction (an example of a second direction) is used, so that each parameter of the kernel size, stride, and duration is expressed as a pair of parameters in the time direction and the frequency direction.

[0066] For example, the kernel size k2=(5,3) of the second CNN unit 406 indicates that the kernel size in the time direction is 5 and the kernel size in the frequency direction is 3. Some of the stride and duration parameters (e.g., the stride of the first CNN unit 405) are represented by a list of five parameters.

[0067] Each of the stride parameters included in the list includes a parameter for controlling an output resolution in the frequency direction and a parameter for controlling an output resolution in the time direction. Similarly, each of the duration parameters included in the list includes a parameter for controlling an input resolution in the frequency direction and a parameter for controlling an input resolution in the time direction.

[0068] The generating unit 402 generates a conversion parameter r based on the computational resource information input from the computational resource acquiring unit 102. Specifically, the generating unit 402 converts the MIPS value included in the computational resource information into the conversion parameter r according to the table shown in FIG.

[0069] Fig. 10 is a diagram showing an example of conversion parameters according to the computational resources of the second embodiment. The example of Fig. 10 shows a case where the conversion parameters of the second embodiment are stored in a table format. For example, a MIPS value of 100 or more and less than 200 is converted to a conversion parameter r=3.

[0070] The conversion unit 403 uses the conversion parameter r shown in FIG. 10 as an index to select the stride s1' of the first CNN unit 405, the stride s2' and dilation d2' of the second CNN unit 406, and the dilation d3' of the third CNN unit 408 from the list of parameters shown in FIG. 9.

[0071] For example, when the transformation parameter r = 1, the first element in the parameter list is selected. In this case, the stride s1' of the first CNN unit 405, the stride s2' and dilation d2' of the second CNN unit 406, and the dilation d3' of the third CNN unit 408 are s1' = (1,2), s2' = (6,1), d2' = (1,1), and d3' = (1,1), respectively.

[0072] For example, when the transformation parameter r=3, the third element in the parameter list is selected. In this case, the stride s1' of the first CNN unit 405, the stride s2' and dilation d2' of the second CNN unit 406, and the dilation d3' of the third CNN unit 408 are s1'=(1,1), s2'=(3,1), d2'=(1,2), and d3'=(2,2), respectively.

[0073] In the second embodiment, possible combinations of the stride of the first CNN unit 405 and the duration of the second CNN unit 406, and the stride of the second CNN unit 406 and the duration of the third CNN unit 408 are stored in advance as a list in the storage unit 105. Therefore, the conversion of the parameters is performed by selecting an element of the list using the conversion parameter r as an index, and there is no restriction on the divisor of r as in the first embodiment.

[0074] The first CNN unit 405 uses the parameters input from the conversion unit 403 to perform two-dimensional CNN processing in the time direction and frequency direction on the feature vector input from the extraction unit 204, and then sequentially executes batch normalization processing and activation processing using a ReLU function.

[0075] The second CNN unit 406 uses the parameters input from the conversion unit 403 to perform two-dimensional CNN processing in the time direction and frequency direction on the output vector of the first CNN unit 405, and then sequentially executes batch normalization processing and activation processing using a ReLU function.

[0076] The third CNN unit 408 uses the parameters input from the conversion unit 403 to perform two-dimensional CNN processing in the time direction and frequency direction on the output vector of the second CNN unit 406, and then sequentially executes batch normalization processing and activation processing using a ReLU function.

[0077] The interpolation unit 409 interpolates the output vector of the third CNN unit 408 in the time direction and the frequency direction as necessary and outputs the result. That is, when at least one of the time resolution and the frequency resolution of the output vector of the third CNN unit 408 is insufficient, the interpolation unit 409 interpolates at least one of the time resolution and the frequency resolution of the output vector.

[0078] The output vector to be processed by the interpolation unit 409 is not limited to two dimensions and may be any. For example, as in the first embodiment, the process of the interpolation unit 409 may be applied even when the output vector of the third CNN unit 408 is one-dimensional. Also, for example, the process of the interpolation unit 409 may be applied to an output vector of three or more dimensions.

[0079] 11, 12, and 13 are diagrams showing input examples 1 to 3 of the interpolation unit 409 in the second embodiment. Input examples 1 to 3 in Fig. 11, 12, and 13 show a case where outputs of the third CNN unit 408 corresponding to feature vectors for 43 frames are input to the interpolation unit 409.

[0080] For example, when the transformation parameter r=5, the strides in the time direction and frequency direction are all 1, so that a vector of 32 dimensions in the frequency direction and 43 frames in the time direction is output, similar to the input feature vector, as shown in Fig. 11. In this case, the interpolation unit 409 does not perform the interpolation process, and outputs the output vector of the third CNN unit 408 as is.

[0081] For example, when the conversion parameter r=3, the stride in the time direction of the second CNN unit 406 is 3, so the number of output frames is thinned to 1 / 3, and the output of the third CNN unit 408 is shown in Fig. 12. Here, the hatched squares indicate that output data exists, and the white squares indicate that output data does not exist because they have been skipped by the stride. In this case, the interpolation unit 409 performs, for example, linear interpolation in the time direction to insert data corresponding to the white squares, thereby making the output vector the same data size as in Fig. 11.

[0082] Furthermore, for example, when the conversion parameter r=1, the stride in the frequency direction of the first CNN unit 405 is 2 and the stride in the time direction of the second CNN unit 406 is 6, so the number of output frames is thinned to 1 / 2 in the frequency direction and 1 / 3 in the time direction, and the output of the third CNN unit 408 is shown in Fig. 13. In this case, the interpolation unit 409 performs, for example, linear interpolation in the time direction and frequency direction to insert data corresponding to white squares, and makes the output vector the same data size as in Fig. 11.

[0083] 12 and 13, when the time resolution or frequency resolution of the neural network output is reduced (thinned out) in a setting that prioritizes the amount of calculation, the interpolation unit 409 generates the thinned out output by interpolation. This has the effect of making the output data specifications common regardless of whether the setting prioritizes accuracy (setting to improve accuracy) or calculation amount (setting to reduce the amount of calculation) and thus making it possible to standardize subsequent processing.

[0084] [Examples of information processing methods] Fig. 14 is a flowchart showing an example of the information processing method of the second embodiment. First, the computational resource acquisition unit 102 acquires the computational resource information described above (step S11). Next, the generation unit 402 generates a conversion parameter r from the MIPS value included in the computational resource information acquired in step S11 according to the table shown in Fig. 10 (step S12).

[0085] Next, the conversion unit 403 converts the parameters of the first CNN unit 405, the second CNN unit 406, and the third CNN unit 408 (step S13). Specifically, the conversion unit 403 uses the conversion parameter r shown in Fig. 10 as an index to select the stride s1' of the first CNN unit 405, the stride s2' and dilation d2' of the second CNN unit 406, and the dilation d3' of the third CNN unit 408 from the parameter list shown in Fig. 9.

[0086] Next, the extraction unit 204 extracts a feature vector indicating the feature amount of the voice from the voice signal input from the voice acquisition unit 101 (step S14).

[0087] Next, the first CNN unit 405 executes two-dimensional CNN processing in the time direction and the frequency direction on the feature vector extracted in step S14, using the stride parameter s1' converted in step S13 (step S15).

[0088] Next, the second CNN unit 406 performs two-dimensional CNN processing in the time direction and the frequency direction on the output data of the first CNN unit 405, using the stride parameter s2' and duration parameter d2' converted in step S13 (step S16).

[0089] Next, the third CNN unit 408 performs two-dimensional CNN processing in the time direction and the frequency direction on the output data of the second CNN unit 406 by using the duration parameter d3′ converted in step S13 (step S17).

[0090] Next, the interpolation unit 409 interpolates the output vector of the third CNN unit 408 in the time direction and the frequency direction as necessary, and outputs the result (step S18).

[0091] Next, the recognition unit 207 detects a keyword included in the voice using the output vector of the third CNN unit 408 (step S19), and the activation unit 104 activates a command associated with the keyword (step S20).

[0092] As described above, in the second embodiment, the storage unit 105 stores a plurality of strides s' (second stride parameters) and a plurality of durations d' (second duration parameters). The conversion unit 403 converts the stride s (first stride parameter) by selecting one second stride parameter from the plurality of second stride parameters based on the conversion parameter r, and converts the duration d2 (first duration parameter) by selecting one second duration parameter from the plurality of (second duration parameters) based on the conversion parameter r.

[0093] As a result, according to the second embodiment, the same effects as those of the first embodiment can be obtained.

[0094] In the second embodiment described above, since a three-layer two-dimensional convolutional neural network is used, more detailed modeling is possible than in the first embodiment, and detection accuracy is improved. In addition, by converting the stride parameter and the duration parameter not only in the time direction but also in the frequency direction, the adjustment range of the amount of calculation is expanded and fine adjustment in multiple stages is possible. This has the effect of enabling real-time processing to be performed without reducing accuracy as much as possible in accordance with the second available calculation resources.

[0095] In the above-mentioned first CNN unit 205 and second CNN unit 206 of the first embodiment, and the first CNN unit 405, second CNN unit 406, and third CNN unit 408 of the second embodiment, an example in which a batch normalization process and a ReLU activation process are executed following a CNN process has been described, but the present invention is not limited to these, and various normalization processes and activation processes can be used. In addition, a pooling process or the like may be applied, or a skip connection or the like may be added. In addition, although the description of the parameter for the number of output channels in these CNN processes has been omitted, any value can be set.

[0096] In the first and second embodiments, keyword utterance detection has been described as an example, but the present invention is not limited thereto, and can be applied to any application using a convolutional neural network with two or more layers. For example, the above-mentioned first and second embodiments can be naturally applied to a voice recognition device capable of recognizing not only keyword utterances but also continuous utterances. In addition, for example, the above-mentioned first and second embodiments can be applied to various sensor signal processing such as temperature, acceleration, or light other than voice, and image or video processing. In such processing other than voice, there is an effect that real-time processing can be performed without degrading performance as much as possible according to available computational resources.

[0097] Furthermore, the convolutional neural networks of the first and second embodiments have been described above as one-dimensional or two-dimensional examples, but they are also applicable to three- or more-dimensional convolutional neural networks.

[0098] Moreover, the above-mentioned first and second embodiments have been described as examples realized by a smartphone, but they may also be applied to a PC (Personal Computer), a tablet, and various other embedded devices, etc. Furthermore, the configurations of the above-mentioned first and second embodiments may be realized by software (programs), or may be realized in part or in whole by hardware circuits.

[0099] In addition, the program executed by the computer is provided as a file in a format that can be installed on the computer or in a format that can be executed by the computer, and is recorded on a computer-readable recording medium such as a CD-ROM, a flexible disk, a CD-R, or a DVD (Digital Versatile Disk).

[0100] This program may also be configured to be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. This program may also be configured to be provided or distributed via a network such as the Internet.

[0101] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]

[0102] 100 Information processing device 101 Voice Acquisition Unit 102 Computational Resource Acquisition Department 103 Detection control section 104 Starting part 105 Storage section 201 Memory control unit 202 Generation part 203 Conversion unit 204 Extraction part 205 1st CNN Department 206 2nd CNN Department 207 Recognition part 301 CPU 302 RAM 303 ROM 304 Operation input device 305 Display device 306 Storage device 307 Communication Equipment 308 Voice input device 309 Bus 401 Memory control unit 402 Generator 403 Conversion Unit 405 1st CNN Department 406 2nd CNN Department 408 3rd CNN Department 409 Interpolation

Claims

1. Computer, a memory control unit that reads out from a memory device a first stride parameter that controls an output resolution and a first duration parameter that controls an input resolution; a conversion unit that converts the first stride parameter into a second stride parameter and converts the first duration parameter into a second duration parameter using a conversion parameter; a first convolutional neural network (CNN) unit that performs a first CNN process on the feature vector using at least the second stride parameter; a second CNN unit that executes a second CNN process using at least the second dilation parameter and an output vector of the first CNN unit as an input; A program to function as a

2. the conversion unit generates the second stride parameter by multiplying the first stride parameter by the conversion parameter, and generates the second duration parameter by multiplying the first duration parameter by the reciprocal of the conversion parameter. The program according to claim 1.

3. the storage device stores a plurality of the second stride parameters and a plurality of the second duration parameters; the conversion unit converts the first stride parameter by selecting one of the plurality of second stride parameters based on the conversion parameter, and converts the first duration parameter by selecting one of the plurality of second duration parameters based on the conversion parameter. The program according to claim 1.

4. each of the plurality of second stride parameters includes a parameter that controls an output resolution in a first direction and a parameter that controls an output resolution in a second direction; each of the plurality of second dilation parameters includes a parameter for controlling an input resolution in a first direction and a parameter for controlling an input resolution in a second direction; The program according to claim 3.

5. The dimension of the output vector of the second CNN unit is one or more dimensions; an interpolation unit that, when the resolution of at least one dimension of the output vector of the second CNN unit is insufficient, interpolates the resolution of the at least one dimension that is insufficient in resolution; The program according to claim 1 , further comprising:

6. The feature vector indicates a feature amount of the input speech, an extraction unit that extracts the feature amount from the input speech to generate the feature vector; a recognition unit that recognizes the speech using the output vector of the second CNN unit; The program according to claim 1 , further comprising:

7. The recognition unit detects keywords included in the speech using the output vector of the second CNN unit, a launching unit that launches a command associated with the keyword; The program according to claim 6, further functioning as:

8. a memory control unit that reads out from a memory device a first stride parameter that controls an output resolution and a first duration parameter that controls an input resolution; a conversion unit that converts the first stride parameter into a second stride parameter and converts the first duration parameter into a second duration parameter using a conversion parameter; a first convolutional neural network (CNN) unit that performs a first CNN process on the feature vector using at least the second stride parameter; A second CNN unit that executes a second CNN process using at least the second dilation parameter and an output vector of the first CNN unit as an input; An information processing device comprising:

9. An information processing device reads out from a storage device a first stride parameter that controls an output resolution and a first duration parameter that controls an input resolution; a step of converting the first stride parameter into a second stride parameter and converting the first duration parameter into a second duration parameter by the information processing device using a conversion parameter; The information processing device performs a first CNN (Convolutional Neural Network) process on the feature vector using at least the second stride parameter; The information processing device executes a second CNN process using at least the second duration parameter, the second CNN process receiving an output vector of the first CNN process as an input; An information processing method comprising:

10. A step in which a first information processing device reads out from a storage device a first stride parameter that controls an output resolution and a first duration parameter that controls an input resolution; a step of converting the first stride parameter into a second stride parameter and converting the first duration parameter into a second duration parameter by the first information processing device using a conversion parameter; The first information processing device stores at least the second stride parameter in a second information processing device as a parameter used in a first CNN (Convolutional Neural Network) process of the feature vector; The first information processing device stores at least the second dilation parameter in the second information processing device as a parameter used in a second CNN process that uses the output vector of the first CNN process as an input; An information processing method comprising:

Citation Information

Patent Citations

  • Parameter optimization device, parameter optimization method, and parameter optimization program

    WO2021111633A1

  • Convolutional neural network acceleration device, convolutional neural network acceleration method, and convolutional neural network acceleration program

    WO2024053120A1

  • Separate conveying device of parts

    JP1989053917A