Power intelligent control method for vacuum cleaner used in intelligent textile workshop
By analyzing the surveillance video of the textile workshop through a deep neural network, the power of the vacuum cleaner is intelligently controlled, solving the problems of vacuum cleaner noise and high temperature, and improving the working environment and dust collection efficiency of workers.
Patent Information
- Application Number
- CN202011519454.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-21
AI Technical Summary
Existing vacuum cleaners make loud noises and generate high temperatures in textile workshops, exposing workers to noise pollution and high temperatures, affecting their health.
A deep neural network is used to extract the high-dimensional hidden features of the density and density changes of fly ash and fly lint from the surveillance video collected by the camera. Based on the classifier, the power of the vacuum cleaner is intelligently controlled and the working mode is adjusted to adapt to the density changes of fly ash and fly lint.
It effectively reduces the noise and heat output of the vacuum cleaner, improves the working environment of workers, and increases dust collection efficiency and safety.
Smart Images

Figure CN112651320B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a power intelligent control method, system and electronic device for a vacuum cleaner used in an intelligent textile workshop. Background Art
[0002] Textile machines, also called spinning machines, looms, cotton spinning machines, etc., are tools that process natural fibers or chemical fibers into textiles. During the production process of textile machines, yarns are prone to produce flying dust and flying lint, which have a serious impact on the products produced. For this phenomenon, vacuum cleaners are usually installed in textile workshops to absorb the flying dust and flying lint produced by the yarns.
[0003] However, the working modes of existing vacuum cleaners are relatively fixed: either the vacuum cleaner is turned on to work at a fixed power, or the vacuum cleaner is turned off to stop vacuuming. In actual practice, the vacuum cleaner produces a lot of noise, exposing workers in textile workshops to noise pollution; moreover, the vacuum cleaner generates a lot of heat during operation, causing workers in textile workshops to work in high temperatures all year round, which is prone to respiratory diseases.
[0004] Therefore, an optimized control scheme for controlling a vacuum cleaner in an intelligent textile workshop is desired.
[0005] At present, deep learning and neural networks have been widely used in computer vision, natural language processing, text signal processing and other fields. In addition, deep learning and neural networks have also shown a level close to or even beyond that of humans in image classification, object detection, semantic segmentation, text translation and other fields.
[0006] In recent years, the development of deep learning and neural networks has provided new solutions and solutions for power control of vacuum cleaners in textile workshops. Summary of the invention
[0007] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a power intelligent control method, system and electronic device for a vacuum cleaner in an intelligent textile workshop, which uses the monitoring video of the intelligent textile workshop collected by a camera as input, and extracts the high-dimensional implicit features of the density of flying dust and flying velvet in the workshop and the change of density in time series through a deep neural network, and classifies based on the high-dimensional features with a classifier to obtain a classification result, which is used to represent the power change trend of the vacuum cleaner, and in this way, the working mode of the vacuum cleaner is intelligently controlled.
[0008] According to one aspect of the present application, a power intelligent control method for a vacuum cleaner in an intelligent textile workshop is provided, which includes:
[0009] Obtain surveillance video of intelligent textile workshops;
[0010] Intercepting a first image frame, a second image frame, and a third image frame from the surveillance video in chronological order;
[0011] Passing the first image frame, the second image frame, and the third image frame through multiple convolutional layers to obtain a first feature map, a second feature map, and a third feature map;
[0012] Passing the first feature map, the second feature map, and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map, and a third spatial attention feature map;
[0013] Calculating the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map;
[0014] Passing the first differential feature map and the second differential feature map through a convolutional neural network to obtain a first depth feature map and a second depth feature map, and activating the last layer of the second convolutional neural network with a Sigmoid function to obtain the first depth feature map and the second depth feature map;
[0015] Multiplying the first depth feature map and the second depth feature map to obtain a temporal attention map;
[0016] Multiplying the temporal attention map with the third spatial attention feature map and activating with a nonlinear activation function to obtain a tracking feature map; and
[0017] A classification result is obtained based on the tracking feature graph through a classification function, and the classification result represents a power change trend of the vacuum cleaner.
[0018] In the above-mentioned intelligent power control method for a vacuum cleaner in an intelligent textile workshop, obtaining a monitoring video of the intelligent textile workshop includes: in response to the textile machine in the intelligent textile workshop being turned on, starting a camera to collect the monitoring video of the intelligent textile workshop.
[0019] In the above-mentioned intelligent power control method for a vacuum cleaner in an intelligent textile workshop, the multi-layer convolutional layer includes N convolutional layers, and the number N is greater than or equal to 4 and less than or equal to 6.
[0020] In the above-mentioned power intelligent control method for a vacuum cleaner in an intelligent textile workshop, the first feature map, the second feature map and the third feature map are passed through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map, including: passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first attention map, a second attention map and a third attention map respectively; and multiplying the first attention map, the second attention map and the third attention map with the first feature map, the second feature map and the third feature map respectively by position to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map.
[0021] In the above-mentioned power intelligent control method for a vacuum cleaner in an intelligent textile workshop, the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map is calculated to obtain a first differential feature map and a second differential feature map, including: calculating the difference between the first spatial attention feature map and the second spatial attention feature map to obtain the first differential feature map; and, calculating the difference between the second spatial attention feature map and the third spatial attention feature map to obtain the second differential feature map.
[0022] In the above-mentioned intelligent power control method for a vacuum cleaner in an intelligent textile workshop, the first image frame, the second image frame and the third image frame are three image frames with a preset time interval between each other.
[0023] According to another aspect of the present application, a video-based power intelligent control system for a vacuum cleaner in an intelligent textile workshop is provided, comprising:
[0024] A monitoring video acquisition unit, used to acquire monitoring videos of intelligent textile workshops;
[0025] A video frame interception unit, configured to intercept a first image frame, a second image frame and a third image frame in chronological order from the surveillance video obtained by the surveillance video acquisition unit;
[0026] A feature map generating unit, configured to pass the first image frame, the second image frame and the third image frame obtained by the video frame intercepting unit through multiple convolution layers to obtain a first feature map, a second feature map and a third feature map;
[0027] A spatial attention feature map generating unit, configured to pass the first feature map, the second feature map and the third feature map obtained by the feature map generating unit through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map;
[0028] A differential feature map generating unit, configured to calculate the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map obtained by the spatial attention feature map generating unit to obtain a first differential feature map and a second differential feature map;
[0029] A depth feature map generating unit, configured to calculate the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map obtained by the difference feature map generating unit to obtain a first difference feature map and a second difference feature map;
[0030] a temporal attention map generating unit, configured to multiply the first depth feature map and the second depth feature map obtained by the depth feature map generating unit to obtain a temporal attention map;
[0031] A tracking feature map generating unit, configured to multiply the temporal attention map obtained by the temporal attention map generating unit with the third spatial attention feature map and activate the map using a nonlinear activation function to obtain a tracking feature map; and
[0032] A classification unit is used to obtain a classification result through a classification function based on the tracking feature graph obtained by the tracking feature graph generation unit, wherein the classification result represents a power change trend of the vacuum cleaner.
[0033] In the above-mentioned video-based power intelligent control system for vacuum cleaners in intelligent textile workshops, the spatial attention feature map generation unit includes: an attention map generation subunit, which is used to pass the first feature map, the second feature map and the third feature map through the spatial attention module to obtain the first attention map, the second attention map and the third attention map respectively; and a spatial attention feature map generation subunit, which is used to multiply the first attention map, the second attention map and the third attention map with the first feature map, the second feature map and the third feature map respectively by position to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map.
[0034] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the above-mentioned intelligent power control method for a vacuum cleaner in an intelligent textile workshop.
[0035] According to another aspect of the present application, a computer-readable medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the above-mentioned intelligent power control method for a vacuum cleaner in an intelligent textile workshop.
[0036] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a power intelligent control method, system and electronic device for a vacuum cleaner in an intelligent textile workshop, which uses the monitoring video of the intelligent textile workshop collected by a camera as input, and extracts the high-dimensional implicit features of the density of flying dust and flying velvet in the workshop and the change of density in time series through a deep neural network, and classifies based on the high-dimensional features with a classifier to obtain a classification result, which is used to represent the power change trend of the vacuum cleaner, and in this way, the working mode of the vacuum cleaner is intelligently controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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.
[0038] Figure 1 The diagram illustrates a scenario schematic diagram of a method for intelligent power control of a vacuum cleaner for an intelligent textile workshop according to an embodiment of the present application.
[0039] Figure 2 The figure illustrates a flow chart of a method for intelligent power control of a vacuum cleaner for an intelligent textile workshop according to an embodiment of the present application.
[0040] Figure 3 The figure illustrates a schematic diagram of the architecture of a method for intelligent power control of a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application.
[0041] Figure 4 The diagram illustrates a flow chart of a method for intelligent power control of a vacuum cleaner for an intelligent textile workshop according to an embodiment of the present application, in which the first feature map, the second feature map and the third feature map are passed through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map.
[0042] Figure 5 The diagram illustrates a block diagram of a video-based power intelligent control system for a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application.
[0043] Figure 6 The diagram illustrates a block diagram of a spatial attention feature map generation unit in a video-based power intelligent control system for a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application.
[0044] Figure 7A block diagram of an electronic device according to an embodiment of the present application is illustrated. DETAILED DESCRIPTION
[0045] Below, the exemplary 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 exemplary embodiments described here.
[0046] Scenario Overview
[0047] As mentioned above, in a textile workshop, the vacuum cleaner is both the problem solver and the problem producer, and the severity of the problem it creates is related to its working mode. Ideally, the working mode of the vacuum cleaner should be able to be adjusted intelligently according to the density of fly dust and fly lint in the textile workshop, that is, if the density of fly dust and fly lint in the textile workshop is increasing, the working power of the vacuum cleaner should be increased, and if the density of fly dust and fly lint in the textile workshop is decreasing, the working power of the vacuum cleaner should be reduced. Traditionally, this is controlled through the workers' own experience.
[0048] With the development of 5G and IOT (Internet of Thing) technologies, traditional production workshops are evolving into intelligent workshops, which makes intelligent control of vacuum cleaners used in textile workshops possible.
[0049] Specifically, the applicant of the present application discovered that the intelligent control of a vacuum cleaner can be transformed into a classification problem, that is, classifying each time point to determine whether the time point belongs to the category of increasing power, the category of keeping power unchanged, or the category of reducing power, and this can be achieved through deep learning.
[0050] When using deep learning for classification, the surveillance video of the intelligent textile workshop collected by the camera can be used as input, and the high-dimensional implicit features of the density of flying dust and flying fuzz in the workshop and the changes in density over time can be extracted through a deep neural network, and the classifier can be used for classification based on the high-dimensional features. Considering that in the process of controlling the vacuum cleaner, in addition to considering the density of flying dust and flying fuzz in the textile workshop at the moment, it is also necessary to consider the change information of the density of flying dust and flying fuzz in the textile workshop in the time dimension, therefore, the applicant of this application proposes to use a convolutional neural network that extracts features in two dimensions to extract high-dimensional features.
[0051] Therefore, in order to extract high-order features in two dimensions, first, preset frames are intercepted from the acquired surveillance video in time sequence. Take three frames as an example: the first image frame, the second image frame and the third image frame, wherein the first image frame is the earliest in time sequence and the third image frame is the latest in time sequence, that is, the third image frame is the current frame, and the first and second image frames are the previous frames. Then, the first, second and third image frames are processed by multi-layer convolutional layers to extract the first, second and third feature maps that focus on capturing the texture information in the image frames. Since flying dust and flying velvet are scattered in the image frames, the spatial attention mechanism can be combined so that the obtained spatial attention feature map can be more focused on characterizing the local texture features of flying dust and flying velvet.
[0052] As mentioned above, when controlling the power change of the vacuum cleaner, it is also necessary to fully understand the changes in the density of flying dust and flying down in the textile workshop in the time dimension. Therefore, the obtained attention feature map is differentiated to characterize the density changes of flying dust and flying down between the two frames of attention feature maps through the differential feature map, and then the differential feature map is input into the second convolutional neural network to obtain the first depth feature map and the second depth feature map, and the first depth feature map is multiplied by the second depth feature map to obtain a time attention map that can characterize the density changes of flying dust and flying down in time series. Next, the time attention map is multiplied with the attention feature map to combine the information on the density changes of flying dust and flying down in time series with the density information of flying dust and flying down in the current frame to obtain a tracking feature map. Then, the tracking feature map is classified by a classification function, and the classification result is used to represent the power change trend of the vacuum cleaner, for example, it can be power increase, power unchanged, or power decrease.
[0053] Based on this, the present application proposes a power intelligent control method for a vacuum cleaner in an intelligent textile workshop, which includes: obtaining a monitoring video of the intelligent textile workshop; intercepting a first image frame, a second image frame and a third image frame in chronological order from the monitoring video; passing the first image frame, the second image frame and the third image frame through multiple convolutional layers to obtain a first feature map, a second feature map and a third feature map; passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map; calculating the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map The invention relates to a method for obtaining a first differential feature map and a second differential feature map by multiplying the first differential feature map and the second differential feature map; passing the first differential feature map and the second differential feature map through a convolutional neural network to obtain a first depth feature map and a second depth feature map, and activating the last layer of the second convolutional neural network with a Sigmoid function to obtain the first depth feature map and the second depth feature map; multiplying the first depth feature map and the second depth feature map to obtain a time attention map; multiplying the time attention map with the third spatial attention feature map and activating them with a nonlinear activation function to obtain a tracking feature map; and, based on the tracking feature map, passing a classification function to obtain a classification result, wherein the classification result represents the power change trend of the vacuum cleaner.
[0054] Figure 1 The diagram illustrates an application scenario of a method for intelligent power control of a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application.
[0055] like Figure 1 As shown, in this application scenario, through a camera (for example, Figure 1 C) shown in FIG. collects monitoring video of the intelligent textile workshop. Further, the monitoring video is input to a server (for example, as shown in FIG. 1 ) that is deployed with a video-based power intelligent control algorithm for a vacuum cleaner in an intelligent textile workshop. Figure 1 In S) shown in , the server can process the monitoring video of the intelligent textile workshop based on the video-based power intelligent control algorithm for the vacuum cleaner in the intelligent textile workshop to output the power change trend of the vacuum cleaner, thereby intelligently controlling the vacuum cleaner.
[0056] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0057] Exemplary Methods
[0058] Figure 2 The figure shows a flow chart of a power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application. Figure 2 As shown, according to the embodiment of the present application, the power intelligent control method of the vacuum cleaner for an intelligent textile workshop includes: S110, obtaining a monitoring video of the intelligent textile workshop; S120, intercepting a first image frame, a second image frame and a third image frame from the monitoring video in chronological order; S130, passing the first image frame, the second image frame and the third image frame through multiple convolution layers to obtain a first feature map, a second feature map and a third feature map; S140, passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map; S150, calculating the relationship between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map; S160, passing the first differential feature map and the second differential feature map through a convolutional neural network to obtain a first depth feature map and a second depth feature map, and the last layer of the second convolutional neural network is activated with a Sigmoid function to obtain the first depth feature map and the second depth feature map; S170, multiplying the first depth feature map and the second depth feature map to obtain a time attention map; S180, multiplying the time attention map with the third spatial attention feature map and activating it with a nonlinear activation function to obtain a tracking feature map; and, S190, obtaining a classification result based on the tracking feature map through a classification function, and the classification result represents the power change trend of the vacuum cleaner.
[0059] Figure 3 The figure shows a schematic diagram of the architecture of the power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application. Figure 3 As shown, in the network architecture, first, the first image frames (for example, Figure 3 Fr1 as shown in FIG. 1 ), a second image frame (eg, Figure 3 Fr2) and a third image frame (eg, as shown in Figure 3 Then, the first image frame, the second image frame and the third image frame are passed through a multi-layer convolution layer (for example, Figure 3 ) to obtain the first feature map (for example, Figure 3 F1 as shown in FIG), a second feature map (e.g., Figure 3 F2) and a third characteristic diagram (e.g., Figure 3 Then, the first feature map, the second feature map and the third feature map are passed through a spatial attention module to obtain a first spatial attention feature map (for example, Figure 3Fs1 as shown in the figure), the second spatial attention feature map (e.g., Figure 3 Fs1) and the third spatial attention feature map (e.g., Figure 3 Then, the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map is calculated to obtain a first differential feature map (for example, Figure 3 Fd1 shown in FIG) and a second differential characteristic diagram (e.g., Figure 3 Fd2 as shown in FIG); further, the first differential feature map and the second differential feature map are input into a first convolutional neural network (for example, as Figure 3 ) to obtain a first depth feature map (e.g., as shown in CNN1 in FIG. Figure 3 Fc1 as shown in FIG. 1 ) and a second depth feature map (e.g., as Figure 3 Fc2 as shown in FIG); then, the first depth feature map and the second depth feature map are multiplied to obtain a temporal attention map (e.g., as Figure 3 Then, the second differential feature map is input into the second convolutional neural network to obtain a third temporal feature map (for example, as Figure 3 Then, the temporal attention map is multiplied with the third spatial attention feature map and activated with a nonlinear activation function to obtain a tracking feature map (e.g., Figure 3 Finally, based on the tracking feature map, a classification function (for example, Figure 3 The circle S) shown in the figure obtains the classification result, which represents the power change trend of the vacuum cleaner.
[0060] In step S110, a monitoring video of the intelligent textile workshop is obtained. For example, the monitoring video is obtained based on a camera deployed in the intelligent textile workshop. As mentioned above, in the embodiment of the present application, since the solution of the present application focuses on the change information and timing information in the video, there is no requirement for image quality, so the monitoring video of a general intelligent textile workshop can be used, and it can be performed under the existing equipment conditions without introducing additional hardware costs.
[0061] Preferably, in an embodiment of the present application, obtaining the monitoring video of the intelligent textile workshop includes: in response to the textile machine of the intelligent textile workshop being turned on, starting the camera to collect the monitoring video of the intelligent textile workshop. As mentioned above, in the intelligent textile workshop, various devices can communicate based on 5G and IOT technologies. Therefore, in order to save energy, it can be set to start the camera to collect the monitoring video after turning on the textile machine, that is, decide whether to start the vacuum cleaner after turning on the textile machine.
[0062] In step S120, the first image frame, the second image frame and the third image frame are intercepted from the monitoring video in chronological order. In particular, the first image frame, the second image frame and the third image frame are image frames separated by a predetermined time in the video, wherein the first image frame is the earliest in time sequence and the third image frame is the latest in time sequence, that is, the third image frame is the current frame and the first and second image frames are the previous frames. Here, since the frame rate of the current video is relatively high and two frames separated by a short time cannot well reflect the timing information of the change in density of flying dust and flying velvet, it is possible to set the predetermined time interval between the frames, thereby lengthening the time scale for acquiring the image frames and performing image tracking processing, so as to ensure sufficient tracking performance while not wasting computing resources.
[0063] In step S130, the first image frame, the second image frame and the third image frame are passed through multiple convolution layers to obtain a first feature map, a second feature map and a third feature map. That is, the high-dimensional implicit features of the density of flying dust and flying lint in the workshop at these three time points are extracted through the multiple convolution layers.
[0064] Specifically, the structure of the multi-layer convolutional layer is the same as the structure of the first N layers of the deep convolutional neural network, and N is greater than or equal to 4 and less than or equal to 6; that is, the first feature map, the second feature map, and the third feature map are processed based on the multi-layer convolutional layer to extract the texture features of the density of the flying dust and flying velvet in the workshop from the first feature map, the second feature map, and the third feature map. In the present application, the density change of the flying dust and flying velvet corresponds to the power change of the control vacuum cleaner. If the density of the flying dust and flying velvet in the textile workshop is increasing, the working power of the vacuum cleaner should be increased. If the density of the flying dust and flying velvet in the textile workshop is decreasing, the working power of the vacuum cleaner should be reduced. During the operation of the textile machine, the surface morphology of the flying dust and flying velvet corresponds to the density of the flying dust and flying velvet, that is, when the density of the flying dust and flying velvet is high, the flying dust and flying velvet are "dense" surface morphology, and when the density of the flying dust and flying velvet is low, the flying dust and flying velvet are "sparse" surface morphology. As time goes by, the surface morphology of the flying dust and flying velvet changes between "dense" and "sparse". Correspondingly, the surface texture state of fly dust and fly lint also changes during the change process between "dense" and "sparse". Therefore, by extracting the local texture features of fly dust and fly lint to characterize the density changes of fly dust and fly lint, the power change trend of the vacuum cleaner can be obtained.
[0065] It should be understood that in terms of image feature extraction, the first three layers of a convolutional neural network usually extract shape features such as edges and corners, while the next few convolutional layers extract texture features of the image. Therefore, in the scheme of the present application, four to six convolutional layers with the same structure as a deep convolutional neural network are used to extract features from the image frames of the packaging bags to be inspected.
[0066] In step S140, the first feature map, the second feature map and the third feature map are passed through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map. Since flying dust and flying velvet are scattered in the image frame, the spatial attention mechanism is combined to enable the obtained spatial attention feature map to focus more on the local texture features characterizing flying dust and flying velvet.
[0067] In a specific embodiment of the present application, the process of passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map includes: first, passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first attention map, a second attention map and a third attention map, respectively. Here, the first attention map, the second attention map and the third attention map respectively represent the position distribution of local features that need to be strengthened in the first feature map, the second feature map and the third feature map. In a specific implementation, the spatial attention module may include multiple convolutional layers to determine the first attention map, the second attention map and the third attention map through convolution processing of the multiple convolutional layers.
[0068] Next, the first attention map, the second attention map, and the third attention map are respectively multiplied by position with the first feature map, the second feature map, and the third feature map to obtain the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map. That is, the information in the first attention map, the second attention map, and the third attention map is applied to the first feature map, the second feature map, and the third feature map to obtain the first attention feature map, the second attention feature map, and the third attention feature map with enhanced local features.
[0069] Figure 4 The figure shows a flow chart of the method for intelligent power control of a vacuum cleaner for an intelligent textile workshop according to an embodiment of the present application, in which the first feature graph, the second feature graph and the third feature graph are passed through a spatial attention module to obtain a first spatial attention feature graph, a second spatial attention feature graph and a third spatial attention feature graph. Figure 4As shown, in an embodiment of the present application, the first feature map, the second feature map and the third feature map are passed through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map, including: S210, passing the first feature map, the second feature map and the third feature map through a spatial attention module to obtain a first attention map, a second attention map and a third attention map respectively; and, S220, multiplying the first attention map, the second attention map and the third attention map with the first feature map, the second feature map and the third feature map respectively by position to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map
[0070] In step S150, the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map is calculated to obtain a first differential feature map and a second differential feature map. Here, the density change information of flying dust and flying lint is captured by the differential feature map.
[0071] In a specific example of the present application, the process of calculating the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map includes: first, calculating the difference between the first spatial attention feature map and the second spatial attention feature map to obtain the first differential feature map, for example, the pixel-by-pixel difference between the first spatial attention feature map and the second spatial attention feature map can be calculated to obtain the first differential image; then, calculating the difference between the second spatial attention feature map and the third spatial attention feature map to obtain the second differential feature map, for example, the pixel-by-pixel difference between the second spatial attention feature map and the third spatial attention feature map can be calculated to obtain the second differential image.
[0072] That is, in this example, by calculating the difference image based on the same reference image (i.e., the first spatial attention feature map), more attention can be paid to the details of the state change of the image on a static scale. For example, the density of flying dust and flying velvet changes due to the change of the task of the textile machine and the degree of change deepens over time. Accordingly, the deepening of this change can be reflected in the second difference image and the first difference image.
[0073] In another example of the present application, the process of calculating the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map includes: first, calculating the difference between the third spatial attention feature map and the first spatial attention feature map to obtain the first differential feature map, for example, the pixel-by-pixel difference between the third spatial attention feature map and the first spatial attention feature map can be calculated to obtain the first differential image; then, calculating the difference between the third spatial attention feature map and the second spatial attention feature map to obtain the second differential feature map, for example, the pixel-by-pixel difference between the third spatial attention feature map and the second spatial attention feature map can be calculated to obtain the second differential image.
[0074] That is, in this example, the differential image that progresses in time series is calculated, so that more attention can be paid to the continuity information of the state change of the image in the continuous time dimension. For example, the density of flying dust and flying velvet changes due to the change of the task of the textile machine and the degree of change deepens over time. Accordingly, the combination of the second differential image and the first differential image can reflect the continuity of this change.
[0075] In step S160, the first differential feature map and the second differential feature map are passed through a convolutional neural network to obtain a first depth feature map and a second depth feature map, and the last layer of the second convolutional neural network is activated with a Sigmoid function to obtain the first depth feature map and the second depth feature map.
[0076] It should be understood that by inputting the first difference image and the second difference image into the first convolutional neural network to obtain the first feature map and the second feature map, high-dimensional image features in the first difference image and the second difference image can be extracted, and the last layer of the first convolutional neural network is activated with a Sigmoid function, so that the elements at each position in the first feature map and the second feature map are located between 0 and 1. In this way, the degree of continuity of the high-dimensional image features in time series is represented by a value between 0 and 1.
[0077] In step S170, the first depth feature map and the second depth feature map are multiplied to obtain a temporal attention map. The temporal attention map represents a high-dimensional implicit feature of the change of the villi density in time sequence.
[0078] In step S180, the temporal attention map is multiplied with the third spatial attention feature map and activated with a nonlinear activation function to obtain a tracking feature map. That is, the high-dimensional implicit features of the density of flying dust and flying velvet and the change of density in time sequence are integrated to obtain the tracking feature map.
[0079] In step S190, a classification result is obtained based on the tracking feature graph through a classification function, and the classification result represents the power change trend of the vacuum cleaner. More specifically, the tracking feature graph is first passed through one or more fully connected layers to obtain a classification feature vector, and then the classification feature vector is input into the classification function (for example, a Softmax classification function) to obtain the classification result, and the classification result is used to represent the power change trend of the vacuum cleaner.
[0080] In summary, the intelligent power control method, system and electronic device for a vacuum cleaner in an intelligent textile workshop based on the embodiments of the present application use the monitoring video of the intelligent textile workshop collected by a camera as input, and extract the high-dimensional implicit features of the density of flying dust and flying down in the workshop and the time series changes of the density through a deep neural network, and classify them based on the high-dimensional features using a classifier to obtain a classification result. The classification result is used to represent the power change trend of the vacuum cleaner. In this way, the working mode of the vacuum cleaner is intelligently controlled.
[0081] Exemplary Systems
[0082] Figure 5 The diagram illustrates a block diagram of a video-based power intelligent control system for a vacuum cleaner in an intelligent textile workshop according to an embodiment of the present application.
[0083] like Figure 5As shown, a video-based power intelligent control system 500 for a vacuum cleaner in an intelligent textile workshop includes: a monitoring video acquisition unit 510, used to acquire monitoring video of an intelligent textile workshop; a video frame interception unit 520, used to intercept a first image frame, a second image frame and a third image frame in chronological order from the monitoring video obtained by the monitoring video acquisition unit 510; a feature map generation unit 530, used to pass the first image frame, the second image frame and the third image frame obtained by the video frame interception unit 520 through multiple convolution layers to obtain a first feature map, a second feature map and a third feature map; a spatial attention feature map generation unit 540, used to pass the first feature map, the second feature map and the third feature map obtained by the feature map generation unit 530 through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map and a third spatial attention feature map; a differential feature map generation unit 550, used to calculate the first spatial attention feature map, the second feature map and the third feature map obtained by the spatial attention feature map generation unit 540 The difference between the second spatial attention feature map and the third spatial attention feature map is used to obtain a first differential feature map and a second differential feature map; a depth feature map generating unit 560 is used to calculate the difference between the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map obtained by the differential feature map generating unit 550 to obtain a first differential feature map and a second differential feature map; a time attention map generating unit 570 is used to multiply the first depth feature map and the second depth feature map obtained by the depth feature map generating unit 560 to obtain a time attention map; a tracking feature map generating unit 580 is used to multiply the time attention map obtained by the time attention map generating unit 570 with the third spatial attention feature map and activate it with a nonlinear activation function to obtain a tracking feature map; and a classification unit 590 is used to obtain a classification result based on the tracking feature map obtained by the tracking feature map generating unit 580 through a classification function, and the classification result represents the power change trend of the vacuum cleaner.
[0084] In one example, the monitoring video acquisition unit 510 is further used to: in response to the textile machine of the intelligent textile workshop being turned on, start a camera to collect the monitoring video of the intelligent textile workshop.
[0085] In one example, in the video-based power intelligent control system 500 for a vacuum cleaner in an intelligent textile workshop, Figure 6As shown, the spatial attention feature map generating unit 540 further includes: an attention map generating subunit 541, which is used to pass the first feature map, the second feature map and the third feature map through the spatial attention module to obtain the first attention map, the second attention map and the third attention map respectively; and a spatial attention feature map generating subunit 542, which is used to multiply the first attention map, the second attention map and the third attention map with the first feature map, the second feature map and the third feature map respectively by position to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map.
[0086] In one example, in the above-mentioned video-based power intelligent control system 500 for a vacuum cleaner in an intelligent textile workshop, the differential feature map generation unit 550 is further used to: calculate the difference between the first spatial attention feature map and the second spatial attention feature map to obtain the first differential feature map; and, calculate the difference between the second spatial attention feature map and the third spatial attention feature map to obtain the second differential feature map.
[0087] In one example, in the above-mentioned video-based power intelligent control system 500 for a vacuum cleaner in an intelligent textile workshop, the differential feature map generation unit 550 is further used to: calculate the difference between the third spatial attention feature map and the first spatial attention feature map to obtain the first differential feature map; and calculate the difference between the third spatial attention feature map and the second spatial attention feature map to obtain the second differential feature map.
[0088] Here, those skilled in the art can understand that the specific functions and operations of the various units and modules in the above-mentioned video-based power intelligent control system 500 for a vacuum cleaner in an intelligent textile workshop have been described in the above reference. Figures 1 to 4 The power intelligent control method for a vacuum cleaner in an intelligent textile workshop has been described in detail, and therefore, its repeated description will be omitted.
[0089] As described above, the video-based power intelligent control system 500 for vacuum cleaners in intelligent textile workshops according to the embodiment of the present application can be implemented in various terminal devices, such as a server for controlling vacuum cleaners in intelligent textile workshops. In one example, the video-based power intelligent control system 500 for vacuum cleaners in intelligent textile workshops according to the embodiment of the present application can be integrated into the terminal device as a software module and / or a hardware module. For example, the video-based power intelligent control system 500 for vacuum cleaners in intelligent textile workshops can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the video-based power intelligent control system 500 for vacuum cleaners in intelligent textile workshops can also be one of the many hardware modules of the terminal device.
[0090] Alternatively, in another example, the video-based power intelligent control system 500 for the vacuum cleaner in an intelligent textile workshop and the terminal device may also be separate devices, and the video-based power intelligent control system 500 for the vacuum cleaner in an intelligent textile workshop may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0091] Exemplary Electronic Devices
[0092] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application.
[0093] Figure 7 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0094] like Figure 7 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0095] The processor 11 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 10 to perform desired functions.
[0096] The memory 12 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 11 may run the program instructions to implement the power intelligent control method for the vacuum cleaner of the intelligent textile workshop described in the various embodiments of the present application and / or other desired functions. Various contents such as monitoring videos, multiple image frames, etc. may also be stored in the computer-readable storage medium.
[0097] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0098] The input device 13 may include, for example, a keyboard, a mouse, etc.
[0099] The output device 14 can output various information to the outside, including classification results, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0100] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0101] Exemplary computer program products and computer-readable storage media
[0102] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the power intelligent control method for a vacuum cleaner for an intelligent textile workshop according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0103] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0104] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the power intelligent control method for a vacuum cleaner for an intelligent textile workshop according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0105] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0106] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0107] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0108] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0109] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0110] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A power intelligent control method for a vacuum cleaner in an intelligent textile workshop, characterized in that: include: Obtain surveillance videos of intelligent textile workshops; intercepting a first image frame, a second image frame, and a third image frame from the surveillance video in chronological order; Passing the first image frame, the second image frame, and the third image frame through multiple convolutional layers to obtain a first feature map, a second feature map, and a third feature map; Passing the first feature map, the second feature map, and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map, and a third spatial attention feature map; Calculating the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map; Passing the first differential feature map and the second differential feature map through a convolutional neural network to obtain a first depth feature map and a second depth feature map, wherein the last layer of the convolutional neural network is activated with a Sigmoid function to obtain the first depth feature map and the second depth feature map; Multiplying the first depth feature map and the second depth feature map to obtain a temporal attention map; Multiplying the temporal attention map with the third spatial attention feature map and activating it with a nonlinear activation function to obtain a tracking feature map; as well as A classification result is obtained based on the tracking feature graph through a classification function, where the classification result represents a power change trend of the vacuum cleaner.
2. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 1, wherein: Obtain surveillance video of the intelligent textile workshop, including: In response to a textile machine in an intelligent textile workshop being turned on, a camera is started to collect monitoring video of the intelligent textile workshop.
3. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 1, wherein: The multi-layer convolutional layer includes N convolutional layers, where the number N is greater than or equal to 4 and less than or equal to 6.
4. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 1, wherein: Passing the first feature map, the second feature map, and the third feature map through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map, and a third spatial attention feature map, including: Passing the first feature map, the second feature map, and the third feature map through a spatial attention module to obtain a first attention map, a second attention map, and a third attention map, respectively; and The first attention map, the second attention map and the third attention map are respectively multiplied by position with the first feature map, the second feature map and the third feature map to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map.
5. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 3, wherein: Calculating the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map, including: Calculating the difference between the first spatial attention feature map and the second spatial attention feature map to obtain the first differential feature map; and Calculate the difference between the second spatial attention feature map and the third spatial attention feature map to obtain the second differential feature map.
6. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 3, wherein: Calculating the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map to obtain a first differential feature map and a second differential feature map, including: Calculating a difference between the third spatial attention feature map and the first spatial attention feature map to obtain the first differential feature map; and Calculate the difference between the third spatial attention feature map and the second spatial attention feature map to obtain the second differential feature map.
7. The power intelligent control method for a vacuum cleaner in an intelligent textile workshop according to claim 5 or 6, wherein: The first image frame, the second image frame, and the third image frame are three image frames with preset time intervals between them.
8. A video-based intelligent power control system for vacuum cleaners in intelligent textile workshops, characterized in that: include: A monitoring video acquisition unit is used to acquire monitoring videos of the intelligent textile workshop; a video frame interception unit, configured to intercept a first image frame, a second image frame, and a third image frame in chronological order from the surveillance video obtained by the surveillance video acquisition unit; a feature map generating unit, configured to pass the first image frame, the second image frame, and the third image frame obtained by the video frame intercepting unit through multiple convolutional layers to obtain a first feature map, a second feature map, and a third feature map; a spatial attention feature map generating unit, configured to pass the first feature map, the second feature map, and the third feature map obtained by the feature map generating unit through a spatial attention module to obtain a first spatial attention feature map, a second spatial attention feature map, and a third spatial attention feature map; a differential feature map generating unit, configured to calculate the difference between the first spatial attention feature map, the second spatial attention feature map, and the third spatial attention feature map obtained by the spatial attention feature map generating unit to obtain a first differential feature map and a second differential feature map; A depth feature map generating unit, configured to pass the first differential feature map and the second differential feature map through a convolutional neural network to obtain a first depth feature map and a second depth feature map, wherein the last layer of the convolutional neural network is activated with a Sigmoid function to obtain the first depth feature map and the second depth feature map; a temporal attention map generating unit, configured to multiply the first depth feature map and the second depth feature map obtained by the depth feature map generating unit to obtain a temporal attention map; a tracking feature map generating unit, configured to multiply the temporal attention map obtained by the temporal attention map generating unit by the third spatial attention feature map and activate the map using a nonlinear activation function to obtain a tracking feature map; as well as A classification unit is configured to obtain a classification result through a classification function based on the tracking feature graph obtained by the tracking feature graph generation unit, wherein the classification result represents a power change trend of the vacuum cleaner.
9. The video-based power intelligent control system for vacuum cleaners in intelligent textile workshops according to claim 8, wherein: The spatial attention feature map generation unit includes: an attention map generating subunit, configured to pass the first feature map, the second feature map, and the third feature map through a spatial attention module to obtain a first attention map, a second attention map, and a third attention map, respectively; and A spatial attention feature map generation subunit is used to multiply the first attention map, the second attention map and the third attention map with the first feature map, the second feature map and the third feature map respectively by position to obtain the first spatial attention feature map, the second spatial attention feature map and the third spatial attention feature map.
10. An electronic device comprising: processor; as well as A memory, wherein computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, the processor executes the power intelligent control method for a vacuum cleaner for an intelligent textile workshop according to any one of claims 1 to 6.
