Feature map pooling method, data processing method and computing device
By using a hole pooling layer with an expansion rate greater than 1 to pool the feature map in the convolutional neural network, the problem of limited receptive field of the pooling layer is solved, and the feature extraction capability and feature retention effect are improved.
Patent Information
- Application Number
- CN202110247088.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-03-05
AI Technical Summary
The existing convolutional neural network pooling layer has a limited receptive field, resulting in insufficient feature extraction capabilities.
A hole pooling layer with an expansion rate greater than 1 is used to pool the feature map, including hole average pooling, hole maximum pooling and hole sampling pooling, to expand the receptive field of the pooling kernel.
The feature extraction capability of the feature map is improved, and the retention and extraction of features are enhanced without increasing the amount of calculation.
Smart Images

Figure CN112949829B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of convolutional neural networks, and more specifically to a feature map pooling method, a data processing method, and a computing device. Background Art
[0002] Neural networks are part of the field of artificial intelligence research. The most popular neural network is convolutional neural networks (CNNs). Convolutional neural networks are currently used in many fields, such as speech recognition, image recognition, image segmentation, natural language processing, etc.
[0003] Convolutional neural networks usually include convolutional layers and pooling layers, among which the pooling layer is mainly used to reduce the number of parameters in the convolutional neural network, prevent overfitting of the network, and improve the accuracy of the network model. The pooling performed by the pooling layer usually includes maximum pooling and average pooling. Among them, maximum pooling has the effect of reducing the estimated mean offset caused by the error of the convolutional layer parameters, and retains more texture information; average pooling has the effect of reducing the increase in the variance of the estimated value caused by the limited neighborhood size, and retains more background information.
[0004] The pooling layer of the existing convolutional neural network is usually a standard pooling layer, that is, a pooling layer with a dilation rate (also called expansion rate or interval rate) of 1. Therefore, the maximum pooling and average pooling of the standard pooling layer are both performed by the pooling kernel in adjacent feature map areas, which limits the receptive field of the pooling layer and the feature extraction capability needs to be improved. Summary of the invention
[0005] According to one aspect of the present application, a method for pooling a feature map is provided, which is applied to a convolutional neural network including at least one atrous pooling layer, and the method includes: obtaining a feature map to be pooled; pooling the feature map based on the atrous pooling layer to obtain a pooled feature map, wherein the atrous pooling layer is a pooling layer with an expansion rate greater than 1.
[0006] In one embodiment of the present application, the pooling of the feature map to obtain the pooled feature map includes: performing hole average pooling on the feature map to obtain the pooled feature map; wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled as the value in the pooled feature map.
[0007] In one embodiment of the present application, the pooling of the feature map to obtain the pooled feature map includes: performing atrous maximum pooling on the feature map to obtain the pooled feature map; wherein the atrous maximum pooling refers to: finding the maximum value of all values in the acceptance domain of the atrous pooling kernel in the feature map to be pooled, as the value in the pooled feature map.
[0008] In one embodiment of the present application, the pooling of the feature map to obtain the pooled feature map includes: performing hole sampling pooling on the feature map to obtain the pooled feature map; wherein the hole sampling pooling refers to: maintaining all values in the receptive domain of the hole pooling kernel in the feature map to be pooled unchanged as the values in the pooled feature map.
[0009] In one embodiment of the present application, the pooling of the feature map includes at least two of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: maximizing all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged, as the value in the feature map after pooling; wherein the feature map after pooling includes at least two of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map.
[0010] In one embodiment of the present application, the dilation rate of the hole pooling layer is 2 or 3.
[0011] According to another aspect of the present application, a data processing method is provided, the method comprising: obtaining data to be processed; processing the data based on a convolutional neural network including at least one atrous pooling layer, the atrous pooling layer being a pooling layer with an expansion rate greater than 1; and outputting the data processed by the convolutional neural network.
[0012] In one embodiment of the present application, the processing of the data based on a convolutional neural network including at least one hole pooling layer includes pooling a feature map extracted from the data to obtain a pooled feature map.
[0013] In one embodiment of the present application, pooling is performed on the feature map, including at least one of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: maximizing all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged, as the value in the feature map after pooling; wherein the feature map after pooling includes at least one of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map.
[0014] According to another aspect of the present application, a computing device is provided, which includes a memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the processor executes the above method.
[0015] According to another aspect of the present application, a computing device is provided, on which a convolutional neural network is deployed, the convolutional neural network includes at least one dilated pooling layer, and the dilated pooling layer is a pooling layer with a dilation rate greater than 1.
[0016] According to the convolutional neural network used in the feature map pooling method, data processing method and computing device of the embodiment of the present application, the dilation rate is greater than 1. The receptive field (relative to the standard pooling layer) is expanded during the pooling of the feature map, thereby improving the feature extraction capability of the feature map without increasing the amount of calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 A schematic block diagram of an example electronic device for implementing a pooling method, a data processing method, and a computing device for a feature map according to an embodiment of the present invention is shown.
[0019] Figure 2A schematic flowchart of a feature map pooling method according to an embodiment of the present application is shown.
[0020] Figure 3 An example diagram showing the pooling kernel of a standard pooling layer in an existing convolutional neural network.
[0021] Figure 4 An example of a pooling kernel of a hole pooling layer of a convolutional neural network applied in the feature map pooling method according to an embodiment of the present application is shown.
[0022] Figure 5 An example diagram showing pooling of a feature map in a feature map pooling method according to an embodiment of the present application is shown.
[0023] Figure 6 A schematic flow chart of a data processing method according to an embodiment of the present application is shown.
[0024] Figure 7 A schematic block diagram of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present application more obvious, the example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application described in the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present application.
[0026] First, refer to Figure 1 An example electronic device 100 is described to implement the feature map pooling method, data processing method, and computing device of an embodiment of the present invention.
[0027] like Figure 1 As shown, the electronic device 100 includes one or more processors 102, one or more storage devices 104, an input device 106, and an output device 108, and these components are interconnected through a bus system 110 and / or other forms of connection mechanisms (not shown). It should be noted that Figure 1 The components and structures of the electronic device 100 shown are merely exemplary and non-limiting. The electronic device may also have other components and structures as required.
[0028] The processor 102 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
[0029] The storage device 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may run the program instructions to implement the client functions (implemented by the processor) and / or other desired functions in the embodiments of the present invention described below. Various applications and various data, such as various data used and / or generated by the application, may also be stored in the computer-readable storage medium.
[0030] The input device 106 may be a device used by a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, a touch screen, etc. In addition, the input device 106 may also be any interface for receiving information.
[0031] The output device 108 can output various information (such as images or sounds) to the outside (such as a user), and can include one or more of a display, a speaker, etc. In addition, the output device 108 can also be any other device with an output function.
[0032] Exemplarily, example electronic devices for implementing the pooling method, data processing method, and computing device of feature maps according to embodiments of the present invention may be implemented in terminals such as smart phones, tablet computers, and cameras.
[0033] Next, we will refer to Figure 2 A method 200 for pooling a feature map according to an embodiment of the present application is described, which is applied to a convolutional neural network including at least one hole pooling layer. Figure 2 As shown, the feature map pooling method 200 may include the following steps:
[0034] In step S210, a feature map to be pooled is obtained.
[0035] In step S220, the feature map is pooled based on the hole pooling layer to obtain a pooled feature map, wherein the hole pooling layer is a pooling layer with an expansion rate greater than 1.
[0036] In an embodiment of the present application, a dilated pooling layer in a convolutional neural network including at least one dilated pooling layer is used to pool feature maps to be pooled (such as feature maps output from the convolutional layer of the convolutional neural network). Among them, the dilated pooling layer is a pooling layer with a dilation rate greater than 1. The dilation rate can be understood as the number of intervals of the kernel in the pooling kernel of the pooling layer, or a more intuitive description is the number of intervals between every two non-zero values in the block data corresponding to the pooling kernel of the pooling layer. For example, when the dilation rate is 1, that is, the number of intervals is 1, it means that every two non-zero values are directly adjacent, which is understood as no interval; when the dilation rate is 2, that is, the number of intervals is 2, it means that every two non-zero values are not directly adjacent, but are separated by (including) 1 zero value, which is understood as one interval; when the dilation rate is 3, that is, the number of intervals is 3, it means that every two non-zero values are not directly adjacent, but are separated by (including) 2 zero values, which is understood as two intervals, and so on. Now combine Figure 3 and Figure 4 Exemplary description.
[0037] Figure 3 An example diagram showing the pooling kernel of a standard pooling layer in an existing convolutional neural network. Figure 3 As shown, the size of the pooling kernel 300 of the standard pooling layer (also called the ordinary pooling layer, relative to the hole pooling layer proposed in this application) is 2*2 (only exemplary), and the values in each cell of the 2*2 size data block are w 00 、w 01 、w 10 、w 11 , and they are all non-zero values. Obviously, every two non-zero values in the pooling kernel 300 are directly adjacent to each other without any interval, so the expansion rate of the standard pooling layer is 1. When the expansion rate of the pooling layer is 1, the receptive field of the pooling layer is limited, and the feature extraction capability is reduced.
[0038] Figure 4 An example of a pooling kernel of a hole pooling layer of a convolutional neural network applied in the feature map pooling method according to an embodiment of the present application is shown. Figure 4 As shown, the size of the pooling kernel 400 of the hole pooling layer is 3*3 (only exemplary), and the values in each cell of the 3*3 data block are w 00 , 0, w 01 ,0,0,0,w 10 , 0, w 11 , and w 00 、w 01 、w 10 、w 11 All are non-zero values. Figure 4 The pooling kernel 400 shown can be regarded as Figure 3The pooling core 300 shown in FIG. 1 is obtained after being hollowed out, wherein the hollowing out refers to: adding a hole in the pooling core 300, that is, in w 00 、w 01 、w 10 、w 11 Inserting 0 between every two of these values will expand the receptive field of the pooling kernel 300 (i.e., obtain the pooling kernel 400) without increasing the amount of calculation. Obviously, there is an interval between every two non-zero values in the pooling kernel 400, so the expansion rate of the pooling layer is 2. Compared with the standard pooling layer with an expansion rate of 1, the receptive field of the pooling layer (i.e., the hollow pooling layer) is expanded, so the hollow pooling layer (relative to the standard pooling layer) has a stronger feature extraction capability.
[0039] certainly, Figure 4 What is shown is only an example of the hole pooling layer used in the method of the present application. According to the method of the embodiment of the present application, a hole pooling layer with a higher expansion rate can also be used to pool the feature map, such as a pooling layer with an expansion rate of 3, 4 or higher. Since the convolutional neural network used in the feature map pooling method of the present application includes a hole pooling layer with an expansion rate greater than 1, the receptive field (relative to the standard pooling layer) is expanded during the pooling of the feature map, thereby improving the feature extraction capability of the feature map without increasing the amount of calculation.
[0040] The following describes the pooling operation that the hole pooling layer can perform on the feature map. In one embodiment of the present application, the pooling of the feature map in step S220 to obtain the pooled feature map may include: performing hole average pooling on the feature map to obtain the pooled feature map; wherein the hole average pooling refers to: averaging all values in the receptive domain of the hole pooling kernel in the feature map to be pooled, as the value in the pooled feature map. The hole pooling kernel is the pooling kernel of the hole pooling layer; the receptive domain of the hole pooling kernel is: the value corresponding to the non-zero value position in the hole pooling kernel in each data block corresponding to the size of the hole pooling kernel in the feature map to be pooled (to be combined later). Figure 5 In this embodiment, the feature map to be pooled is subjected to dilated average pooling. Since the receptive field is enlarged, a more concise feature map can be obtained quickly, and the number of channels will not change.
[0041] In another embodiment of the present application, the step S220 of pooling the feature map to obtain the pooled feature map may include: performing atrous maximum pooling on the feature map to obtain the pooled feature map; wherein the atrous maximum pooling refers to: taking the maximum value of all values in the atrous pooling kernel receptive domain in the feature map to be pooled as the value in the pooled feature map. In this embodiment, atrous maximum pooling is performed on the feature map to be pooled, and since the receptive field is expanded, a more concise feature map can be obtained quickly, and the number of channels will not change.
[0042] In another embodiment of the present application, the step S220 of pooling the feature map to obtain the pooled feature map may include: performing hole sampling pooling on the feature map to obtain the pooled feature map; wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged as the values in the pooled feature map. In this embodiment, hole sampling pooling is performed on the feature map to be pooled, and since the receptive field is expanded, a more concise feature map can be quickly obtained, and since all values in the acceptance domain of the hole pooling kernel remain unchanged, multiple feature maps can be obtained from one feature map to be pooled, thereby increasing the number of channels and enriching the extracted semantic information.
[0043] In another embodiment of the present application, the pooling of the feature map in step S220 may include at least two of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: maximizing all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged, as the value in the feature map after pooling; wherein the feature map after pooling includes at least two of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map. In this embodiment, at least two of the three methods of atrous average pooling, atrous maximum pooling and atrous sampling pooling are performed on the feature map to be pooled. Since the receptive field is enlarged, a more concise feature map can be quickly obtained, and at least two feature maps can be obtained from one feature map to be pooled, which increases the number of channels and enriches the extracted semantic information.
[0044] Combine the following Figure 5 An exemplary description is made based on the above-mentioned embodiments. Figure 5 An example diagram of pooling a feature map in a feature map pooling method according to an embodiment of the present application is shown. Figure 5 As shown, the feature map to be pooled is shown as 500, which is a 4*4 feature map. Assuming that Figure 4 The hole pooling layer shown in FIG. 5 is used to pool the hole pooling kernel, and the receiving domain of the hole pooling kernel is the value corresponding to the non-zero value position in the hole pooling kernel in each 3*3 size data block in the feature map 500. Figure 5 As shown, the feature map 500 includes 4 data blocks of size 3*3, namely the first data block: 1, 4, 2, 4, 6, 6, 3, 4, 6; the second data block: 4, 2, 3, 6, 6, 8, 4, 6, 5; the third data block: 4, 6, 6, 3, 4, 6, 3, 9, 7; the fourth data block: 6, 6, 8, 4, 6, 5, 9, 7, 1. Therefore, 4 hole pooling kernel receptive fields can be obtained, namely the first hole pooling kernel receptive field, the values of which include: 1, 2, 3, 6; the second hole pooling kernel receptive field, the values of which include: 4, 3, 4, 5; the third hole pooling kernel receptive field, the values of which include: 4, 6, 3, 7; the fourth hole pooling kernel receptive field, the values of which include: 6, 8, 9, 1.
[0045] Therefore, when the feature map 500 to be pooled is subjected to hole average pooling, all values in the receiving domain of the first hole pooling core are averaged to obtain result 3, all values in the receiving domain of the second hole pooling core are averaged to obtain result 4, all values in the receiving domain of the third hole pooling core are averaged to obtain result 5, and all values in the receiving domain of the fourth hole pooling core are averaged to obtain result 6. Thus, the obtained hole average pooling feature map is a 2*2 feature map, and the values in the feature map are 3, 4, 5, and 6.
[0046] Similarly, when the feature map 500 to be pooled is subjected to the hole maximum pooling, the maximum of all values in the receiving domain of the first hole pooling core is obtained to obtain the result 6, the maximum of all values in the receiving domain of the second hole pooling core is obtained to obtain the result 5, the maximum of all values in the receiving domain of the third hole pooling core is obtained to obtain the result 7, and the maximum of all values in the receiving domain of the fourth hole pooling core is obtained to obtain the result 9. Thus, the obtained hole maximum pooling feature map is a 2*2 feature map, and the values in the feature map are 6, 5, 7, and 9.
[0047] Similarly, when the feature map 500 to be pooled is subjected to hole sampling pooling, that is, all values in the receiving domain of the first hole pooling kernel are maintained unchanged, and the first feature map is obtained, and the values in the feature map are 1, 2, 3, and 6; all values in the receiving domain of the second hole pooling kernel are maintained unchanged, and the second feature map is obtained, and the values in the feature map are 4, 3, 4, and 5; all values in the receiving domain of the third hole pooling kernel are maintained unchanged, and the third feature map is obtained, and the values in the feature map are 4, 6, 3, and 7; all values in the receiving domain of the fourth hole pooling kernel are maintained unchanged, and the fourth feature map is obtained, and the values in the feature map are 6, 8, 9, and 1. These four feature maps are all hole sampling pooling feature maps.
[0048] As mentioned above, the pooling of the feature map to be pooled may include at least one of the three: hole average pooling, hole maximum pooling, and hole sampling pooling. Therefore, the obtained pooled feature map may include at least one of the three: hole average pooling feature map, hole maximum pooling feature map, and hole sampling pooling feature map. When hole average pooling or hole maximum pooling is performed, due to the expansion of the receptive field, a more concise feature map can be quickly obtained; when hole sampling pooling feature map is performed, due to the expansion of the receptive field, a more concise feature map can be quickly obtained, and since all values in the hole pooling kernel receptive domain remain unchanged, multiple feature maps can be obtained from a feature map to be pooled, the number of channels is increased, and the extracted semantic information is enriched; when at least two of the three: hole average pooling, hole maximum pooling, and hole sampling pooling are performed, due to the expansion of the receptive field, a more concise feature map can be quickly obtained, and at least two feature maps can be obtained from a feature map to be pooled, the number of channels is increased, and the extracted semantic information is enriched.
[0049] Based on the above description, the convolutional neural network used in the pooling method of the feature map according to the embodiment of the present application includes a hole pooling layer with an expansion rate greater than 1, so that the receptive field (relative to the standard pooling layer) is expanded during the pooling of the feature map, thereby improving the feature extraction capability of the feature map without increasing the amount of calculation. In addition, the pooling method of the feature map according to the embodiment of the present application can use a hole pooling layer to perform at least one of hole average pooling, hole maximum pooling, and hole sampling pooling on the feature map, which can quickly obtain a more concise feature map, and even increase the number of channels, thereby enriching the extracted semantic information.
[0050] The above exemplary shows the pooling method of the feature map according to the embodiment of the present application. Figure 6 A data processing method according to another aspect of the present application is described. Figure 6 FIG. 6 is a schematic flow chart of a data processing method 600 according to an embodiment of the present application. Figure 6As shown, the data processing method 600 may include the following steps:
[0051] In step S610, data to be processed is obtained.
[0052] In step S620, the data is processed based on a convolutional neural network including at least one dilated pooling layer, where the dilated pooling layer is a pooling layer with a dilation rate greater than 1.
[0053] In step S630, the data processed by the convolutional neural network is output.
[0054] According to the data processing method 600 of the embodiment of the present application, a convolutional neural network including at least one dilated pooling layer is used to process data (such as speech data, image data, etc.). Since the dilated pooling layer has an enlarged receptive field relative to the standard pooling layer (ordinary pooling layer), it has a stronger feature extraction capability relative to the standard pooling layer (as described in the previous embodiment, which will not be repeated here for the sake of brevity). Therefore, the data processed by the convolutional neural network including at least one dilated pooling layer (i.e., the feature data extracted from the speech data and image data) will have higher accuracy, which will be of great help to subsequent data processing, such as speech recognition and image recognition.
[0055] In one embodiment of the present application, processing the data based on a convolutional neural network including at least one hole pooling layer in step S620 may include pooling a feature map extracted from the data to obtain a pooled feature map. In one embodiment of the present application, the feature map is pooled, which may include at least one of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: maximizing all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled, as the value in the feature map after pooling; performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged, as the value in the feature map after pooling; wherein the feature map after pooling includes at least one of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map. The feature map pooling method has been described in detail in the previous embodiments, and will not be repeated here for the sake of brevity.
[0056] Combine the following Figure 7 A computing device is described according to yet another aspect of the present application. Figure 7FIG. 7 is a schematic block diagram of a computing device 700 according to an embodiment of the present application. Figure 7 As shown, the computing device 700 may include a memory 710 and a processor 720, and the memory 710 stores a computer program executed by the processor 720. When the computer program is executed by the processor 720, the processor 720 executes the pooling method and / or data processing method of the feature map according to the embodiment of the present application described above. Those skilled in the art can understand the specific operation of the computing device according to the embodiment of the present application in combination with the above content. For the sake of brevity, the specific details are not repeated here, and only some main operations of the processor 720 are described.
[0057] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 executes a feature map pooling method, which is applied to a convolutional neural network including at least one hole pooling layer, and the method includes: obtaining a feature map to be pooled; pooling the feature map based on the hole pooling layer to obtain a pooled feature map, wherein the hole pooling layer is a pooling layer with an expansion rate greater than 1.
[0058] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 performs pooling on the feature map to obtain a pooled feature map, including: performing hole average pooling on the feature map to obtain a pooled feature map; wherein the hole average pooling refers to: averaging all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled as the value in the pooled feature map.
[0059] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 performs pooling on the feature map to obtain a pooled feature map, including: performing void maximum pooling on the feature map to obtain a pooled feature map; wherein the void maximum pooling refers to: finding the maximum value of all values in the acceptance domain of the void pooling kernel in the feature map to be pooled, as the value in the pooled feature map.
[0060] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 performs pooling on the feature map to obtain a pooled feature map, including: performing hole sampling pooling on the feature map to obtain a pooled feature map; wherein the hole sampling pooling refers to: maintaining all values in the receptive domain of the hole pooling kernel in the feature map to be pooled unchanged as the values in the pooled feature map.
[0061] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 performs pooling on the feature map, including at least two of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the hole pooling kernel acceptance domain of the feature map to be pooled as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: The maximum value of all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled is calculated to serve as the value in the feature map after pooling; the feature map is subjected to hole sampling pooling to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged to serve as the value in the feature map after pooling; wherein the feature map after pooling includes at least two of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map.
[0062] In one embodiment of the present application, the dilation rate of the hole pooling layer is 2 or 3.
[0063] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 executes a data processing method, which includes: obtaining data to be processed; processing the data based on a convolutional neural network including at least one hole pooling layer, wherein the hole pooling layer is a pooling layer with an expansion rate greater than 1; and outputting the data processed by the convolutional neural network.
[0064] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 executes the convolutional neural network including at least one hole pooling layer to process the data, including pooling the feature map extracted from the data to obtain the pooled feature map.
[0065] In one embodiment of the present application, when the computer program is executed by the processor 720, the processor 720 performs pooling on the feature map, including at least one of the following: performing hole average pooling on the feature map to obtain a hole average pooling feature map, wherein the hole average pooling refers to: averaging all values in the hole pooling kernel acceptance domain of the feature map to be pooled as the value in the feature map after pooling; performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: The maximum value of all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled is calculated to serve as the value in the feature map after pooling; hole sampling pooling is performed on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the acceptance domain of the hole pooling kernel in the feature map to be pooled unchanged to serve as the value in the feature map after pooling; wherein the feature map after pooling includes at least one of the hole average pooling feature map, the hole maximum pooling feature map and the hole sampling pooling feature map.
[0066] In addition, according to an embodiment of the present application, a storage medium is also provided, on which program instructions are stored, and when the program instructions are run by a computer or a processor, the corresponding steps of the pooling method and / or data processing method of the feature map of the embodiment of the present application are used to execute. The storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0067] In addition, according to an embodiment of the present application, a computing device is also provided, on which a convolutional neural network is deployed, and the convolutional neural network includes at least one hole pooling layer, and the hole pooling layer is a pooling layer with an expansion rate greater than 1. Similar to the above embodiments, the computing device deployed with the convolutional neural network can realize the pooling of feature maps, and the receptive field (relative to the standard pooling layer) is expanded during the pooling of feature maps, thereby improving the feature extraction capability of feature maps, and will not increase the amount of calculation. The feature data processed by the computing device will have higher accuracy.
[0068] Based on the above description, the convolutional neural network used in the feature map pooling method, data processing method and computing device according to the embodiment of the present application includes a hole pooling layer with an expansion rate greater than 1, so that the receptive field (relative to the standard pooling layer) is expanded during the pooling of the feature map, thereby improving the feature extraction capability of the feature map without increasing the amount of calculation. In addition, the feature map pooling method, data processing method and computing device according to the embodiment of the present application can use a hole pooling layer to perform hole average pooling, hole maximum pooling and hole sampling pooling on the feature map, which can quickly obtain a more concise feature map, and even increase the number of channels, thereby enriching the extracted semantic information.
[0069] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.
[0070] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0071] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0072] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0073] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0074] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0075] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0076] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0077] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0078] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Acquiring data to be processed, wherein the data is voice data or image data; Processing the data based on a convolutional neural network including at least one atrous pooling layer, wherein the atrous pooling layer is a pooling layer with a dilation rate greater than 1; Outputting data processed by the convolutional neural network; The processing of the data based on a convolutional neural network including at least one dilated pooling layer comprises pooling a feature map extracted from the data to obtain a pooled feature map; Pooling the feature map at least includes: performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the receptive domain of the hole pooling kernel in the feature map to be pooled unchanged as the values in the feature map after pooling; wherein the hole pooling kernel is the pooling kernel of the hole pooling layer; and the receptive domain of the hole pooling kernel is the value corresponding to the non-zero value position in the hole pooling kernel in each data block corresponding to the size of the hole pooling kernel in the feature map to be pooled.
2. The method according to claim 1, characterized in that Pooling the feature map includes at least one of the following: Performing atrous average pooling on the feature map to obtain an atrous average pooling feature map, wherein the atrous average pooling refers to: averaging all values in the atrous pooling kernel receptive domain of the feature map to be pooled to serve as the value in the feature map after pooling; Performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: finding the maximum value of all values in the hole pooling kernel acceptance domain of the feature map to be pooled, so as to take the maximum value as the value of the feature map after pooling; Among them, the pooled feature map includes the hole sampling pooling feature map, or includes at least one of the hole average pooling feature map and the hole maximum pooling feature map and the hole sampling pooling feature map.
3. The method according to any one of claims 1 to 2, characterized in that: The dilation rate of the atrous pooling layer is 2 or 3.
4. A computing device, characterized in that The computing device comprises a memory and a processor, wherein a computer program executed by the processor is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 3.
5. A computing device, characterized in that: A convolutional neural network is deployed on the computing device, the convolutional neural network includes at least one dilated pooling layer, the dilated pooling layer is a pooling layer with an expansion rate greater than 1, and the convolutional neural network is used to process speech data or image data and output the processed data; Processing the data based on a convolutional neural network including at least one dilated pooling layer, including pooling a feature map extracted from the data to obtain a pooled feature map; The feature map is pooled, including: performing hole sampling pooling on the feature map to obtain a hole sampling pooling feature map, wherein the hole sampling pooling refers to: maintaining all values in the receptive domain of the hole pooling kernel in the feature map to be pooled unchanged as the values in the feature map after pooling; wherein the hole pooling kernel is the pooling kernel of the hole pooling layer; and the receptive domain of the hole pooling kernel is the value corresponding to the non-zero value position in the hole pooling kernel in each data block corresponding to the size of the hole pooling kernel in the feature map to be pooled.
6. The computing device according to claim 5, characterized in that Pooling the feature map further includes at least one of the following: Performing atrous average pooling on the feature map to obtain an atrous average pooling feature map, wherein the atrous average pooling refers to: averaging all values in the atrous pooling kernel receptive domain of the feature map to be pooled to serve as the value in the feature map after pooling; Performing hole maximum pooling on the feature map to obtain a hole maximum pooling feature map, wherein the hole maximum pooling refers to: finding the maximum value of all values in the hole pooling kernel acceptance domain of the feature map to be pooled, so as to take the maximum value as the value of the feature map after pooling; Among them, the pooled feature map includes the hole sampling pooling feature map, or includes at least one of the hole average pooling feature map and the hole maximum pooling feature map, as well as the hole sampling pooling feature map.
7. The computing device according to any one of claims 5 to 6, characterized in that: The dilation rate of the atrous pooling layer is 2 or 3.
