A smart city management system based on video recognition

By constructing convolutional networks and recurrent neural networks in smart city management systems, we optimize video data preprocessing and automatic annotation, solving the problems of slow processing speed and inaccurate annotation of massive video data, achieving rapid identification and detailed information display, and adapting to Big data environment.

CN117197717BActive Publication Date: 2024-09-20ORDOS LONG TENG IT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311205968.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-18
Publication Date
2024-09-20
Estimated Expiration
2043-09-18

AI Technical Summary

Technical Problem

Existing smart city management systems have problems such as difficulty in feature selection, complex real-time changes, and slow processing speed when processing massive video data. In addition, manual labeling and classification are time-consuming and subjective, resulting in inaccurate labeling and confusing classification results.

Method used

A smart city management system based on video recognition is designed, including monitoring equipment, pre-processing module, label module and user terminal. Video data pre-processing is performed by constructing a convolution network, and the recurrent neural network algorithm is optimized to achieve automatic annotation. Combined with the user terminal Visualization function for data display and information adjustment.

Benefits of technology

It achieves rapid extraction of feature maps, reduces the amount of network parameters, multi-target data recognition capabilities, avoids inaccurate annotation caused by subjectivity, adapts to video data processing under big data, and enables detailed information viewing of the entire process from discovery to repair and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117197717B
    Figure CN117197717B
Patent Text Reader

Abstract

The present invention discloses a smart city management system based on video recognition, including monitoring equipment, preprocessing module, labeling module, control module and user terminal; the monitoring equipment, preprocessing module, labeling module, control module and user terminal are connected in sequence; the control module is additionally connected to the monitoring equipment; the monitoring equipment is used to obtain the monitoring video data of the smart city in real time; the preprocessing module is used to perform preprocessing operations on the video data and output the result feature map; the labeling module is used to label and classify the result feature map; the control module is used to control the monitoring equipment and labeling module; the user terminal is used for visual presentation of data and inputting control requests to the control module. This application uses a convolutional network in conjunction with a recurrent neural network to extract features and label and classify huge video data, improve smart city management, make it more intelligent and improve management efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart city management and designs a smart city management system based on video recognition. Background Art

[0002] Smart city management refers to the use of information processing technology and artificial intelligence technology to manage various urban supports in an intelligent and networked manner, thereby optimizing and upgrading urban management and public services.

[0003] Among them, the data collected by smart city management is generally videos collected by monitoring equipment. Faced with large-scale data generated by massive videos, the traditional video recognition technology and processing methods have problems of complexity and limitations, such as difficulty in feature selection, complex real-time changes, and slow processing speed; video classification uses manual labeling and classification, which consumes a lot of time, manpower and material resources, and the subjectivity will lead to inaccurate labeling of video data, resulting in confusing classification results. These technical defects have brought challenges to smart city management under big data today. Summary of the invention

[0004] In view of the above-mentioned defects of the prior art, the present invention proposes a smart city management system based on video recognition. The technical solution designed by the present invention includes:

[0005] The system includes a monitoring device, a preprocessing module, a labeling module, a control module and a user terminal; the monitoring device, the preprocessing module, the labeling module, the control module and the user terminal are connected in sequence; the control module is also connected to the monitoring device; the monitoring device is used to obtain monitoring video data of the smart city in real time; the preprocessing module is used to perform preprocessing operations on the video data and output a result feature map; the labeling module is used to annotate and classify the result feature map; the control module is used to control the monitoring device and the labeling module; the user terminal is used for visual presentation of data and inputting control requests to the control module.

[0006] Preferably, the preprocessing operation includes: first constructing a convolutional network, the convolutional network includes a residual block, a transposed convolutional layer and an output convolutional layer; the residual block, the transposed convolutional layer and the output convolutional layer are connected in sequence; the residual block is used to downsample the input video data to obtain a preliminary feature map; the transposed convolutional layer is used to restore the size of the preliminary feature map; the output convolutional layer is used to perform a convolution operation on the restored preliminary feature map to obtain a result feature map.

[0007] Preferably, the downsampling of the residual block includes: adding the video data to itself through a skip link after the residual block operation, and outputting a preliminary feature map; the formula for downsampling the residual block is expressed as:

[0008] α=F(β)+β

[0009] Wherein, α is the preliminary feature map, F is the residual function, and β is the video data.

[0010] Preferably, the residual block operation includes: 2 1×1 convolution layers and 1 3×3 convolution layer; after the video data passes through the residual function F, it then passes through the first 1×1 convolution layer, the 3×3 convolution layer and the second 1×1 convolution layer in sequence.

[0011] Preferably, the convolution operation of the output convolution layer includes: the output convolution layer includes a convolution kernel and a 1×1 convolution layer; first, each pixel point of the restored preliminary feature map is converted into each element in the matrix, and then the sliding convolution kernel is used to calculate the matrix, and finally the resulting feature map is output through the 1×1 convolution layer.

[0012] Preferably, the calculating the matrix includes: the sliding convolution kernel calculating the matrix is ​​expressed as:

[0013]

[0014] In the formula, T(i, j) is the output result feature map, K is the height of the convolution kernel, L is the width of the convolution kernel, P(i+s*m, j+s*n) is the element value corresponding to the matrix and the convolution kernel, and H(m, n) is the weight of the convolution kernel.

[0015] Preferably, the annotation classification includes: first, constructing a target rectangular box in the result feature map based on a recurrent neural network algorithm, establishing an (x, y) coordinate axis with the lower left corner of the result feature map as the origin, selecting the four corners of the target rectangular box as position elements in XML format, and selecting the width and height of the result feature map as position elements in TXT format; then, through the center point coordinates (x4, y4) of the target rectangular box, parsing the position elements in XML format and the position elements in TXT format to determine the annotation position.

[0016] Preferably, the parsing of the location element in XML format and the location element in TXT format to determine the marked position includes: the formula of the location element in XML format is expressed as:

[0017] (x1, y1, x2, y2),

[0018] Wherein, (x1, y1) is the lower left corner position of the target rectangular box, (x2, y2) is the upper right corner position of the target matrix box; the position element in the TXT format represents the marked position, and the formula is expressed as:

[0019] (label,x3,y3,w1,h1),

[0020] In the formula, label is the label type, (x3, y3) is the position information that needs to be marked in the result feature map, w1 is the width expression that needs to be marked in the result feature map, and h1 is the height expression that needs to be marked in the result feature map.

[0021] Preferably, the user terminal includes: the user terminal is also used to interact with the monitoring device, and visually present the video data collected by the monitoring device on the user terminal in real time through the control module; the user terminal is also used to send a request for opening, closing or rotating the monitoring device according to the visual presentation, and the control module controls the monitoring device according to the input request; the user terminal is also used to interact with the label module, send a request for the target rectangular box and the label type, and input the request into the label module through the control module; the user terminal is also used to visually present the labeling status of the label module in real time.

[0022] Beneficial effects:

[0023] 1. The present invention reduces the network parameters for extracting feature maps and the network inference time by optimizing the convolution processing of the preprocessing module, and can also realize the recognition of multiple target data, thus solving the problems of confusion in data volume and difficulty in feature selection in existing smart cities;

[0024] 2. The present invention realizes automatic labeling of video data by optimizing the recurrent neural network algorithm, and can intelligently set the label name and classification category according to user needs, avoiding inaccurate labeling of video data due to subjectivity, resulting in confusing classification results, and cooperates with the preprocessing module to complete the labeling of tens of thousands of images in a short time, adapting to the huge video data of smart cities under big data;

[0025] 3. The present invention realizes dynamic update of management data through the visualization function and request input of the user terminal, combines with the control module to adjust the information, and then displays the data in the form of graphics from the whole to the part, in a multi-level and multi-dimensional visualized graphic form, so as to realize the summary display of urban management problems and situations, defect video images, maintenance progress, maintenance completion status, map positioning and distribution and other detailed information of urban management business, and realize an overview of the whole process from discovery to repair and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a system structure diagram of a smart city management system based on video recognition of the present invention;

[0027] Figure 2It is a schematic diagram of a preprocessing process of a smart city management system based on video recognition of the present invention;

[0028] Figure 3 It is a schematic diagram of a down-sampling process of a residual block of a smart city management system based on video recognition according to the present invention;

[0029] Figure 4 It is a schematic diagram of labeled coordinates of a smart city management system based on video recognition in the present invention. DETAILED DESCRIPTION

[0030] The embodiments of the present invention are described in detail below. The following embodiments are implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operation processes are given, but the protection scope of the present invention is not limited to the following embodiments.

[0031] The present invention designs a smart city management system based on video recognition. The technical solution designed by the present invention includes:

[0032] like Figure 1 As shown, the system includes a monitoring device 1, a preprocessing module 2, a labeling module 3, a control module 4 and a user terminal 5; the monitoring device 1, the preprocessing module 2, the labeling module 3, the control module 4 and the user terminal 5 are connected in sequence; the control module 4 is also connected to the monitoring device 1; the monitoring device 1 is used to obtain the monitoring video data of the smart city in real time; the preprocessing module 2 is used to perform preprocessing operations on the video data and output the resulting feature map; the labeling module 3 is used to annotate and classify the resulting feature map; the control module 4 is used to control the monitoring device 1 and the labeling module 3; the user terminal 5 is used for visual presentation of data and inputting control requests to the control module 4.

[0033] Specifically, the video data collected by the monitoring device 1 includes moving images, still images and video streams, wherein the video stream is a real-time video captured by the monitoring device 1, which can reflect the operating status of an object or a person.

[0034] Preferably, if Figure 2 As shown in the figure, the preprocessing operation includes: firstly, constructing a convolutional network, which includes a residual block, a transposed convolutional layer and an output convolutional layer; the residual block, the transposed convolutional layer and the output convolutional layer are connected in sequence; the residual block is used to downsample the input video data to obtain a preliminary feature map; the transposed convolutional layer is used to restore the size of the preliminary feature map; the output convolutional layer is used to perform a convolution operation on the restored preliminary feature map to obtain a result feature map.

[0035] Preferably, if Figure 3 As shown, the downsampling of the residual block includes: after the video data is calculated by the residual block, it is added to itself through a jump link to output a preliminary feature map; the formula for downsampling the residual block is expressed as:

[0036] α=F(β)+β

[0037] Where α is the preliminary feature map, F is the residual function, and β is the video data.

[0038] Preferably, the residual block operation includes: 2 1×1 convolution layers and 1 3×3 convolution layer; after the video data passes through the residual function F, it then passes through the first 1×1 convolution layer, the 3×3 convolution layer and the second 1×1 convolution layer in sequence.

[0039] Preferably, the convolution operation of the output convolution layer includes: the output convolution layer includes a convolution kernel and a 1×1 convolution layer; first, each pixel point of the restored preliminary feature map is converted into each element in the matrix, and then the sliding convolution kernel calculates the matrix, and finally the resulting feature map is output through the 1×1 convolution layer.

[0040] Preferably, calculating the matrix includes: the sliding convolution kernel calculates the matrix using a formula expressed as:

[0041]

[0042] In the formula, T(i, j) is the output feature map, K is the height of the convolution kernel, L is the width of the convolution kernel, P(i+s*m, j+s*n) is the element value corresponding to the matrix and the convolution kernel, and H(m, n) is the weight of the convolution kernel.

[0043] Specifically, since the video information collected under the management of smart cities is relatively messy, and it is easy to have target gathering areas, and the video images often have size differences, which brings challenges to the subsequent target detection and recognition, so the residual block is first set to enhance the feature operation of the video, including the video β passing through the residual function F, adding it to itself through a jump link, and then passing through a ReLU activation function, and then output; 2 1×1 convolution layers and 1 3×3 convolution layer; the residual function F will first pass through a 1×1 convolution layer to reduce the channel dimension of the video, and then pass through a 3×3 convolution to extract features, and then pass through the second 1×1 convolution layer to restore the channel dimension of the video. Using two 1×1 convolution layers can reduce the number of network parameters and reduce the network inference time. Then the size of the video is unified through the transposed convolution layer (the convolution kernel size is set to 2 and the step size is 2), and the enhanced feature map with 256 channels is obtained after the output convolution layer.

[0044] Preferably, the annotation classification includes: first, constructing a target rectangular box in the result feature map based on a recurrent neural network algorithm, establishing an (x, y) coordinate axis with the lower left corner of the result feature map as the origin, selecting the four corners of the target rectangular box as position elements in XML format, and selecting the width and height of the result feature map as position elements in TXT format; then, through the center point coordinates (x4, y4) of the target rectangular box, parsing the position elements in XML format and the position elements in TXT format to determine the annotation position.

[0045] Preferably, parsing the location element in XML format and the location element in TXT format to determine the marked location includes: the formula of the location element in XML format is expressed as:

[0046] (x1, y1, x2, y2),

[0047] Where (x1, y1) is the lower left corner position of the target rectangular box, and (x2, y2) is the upper right corner position of the target matrix box. The position element in TXT format represents the marked position, and the formula is expressed as:

[0048] (label,x3,y3,w1,h1),

[0049] In the formula, label is the label type, (x3, y3) is the position information that needs to be marked in the result feature map, w1 is the width expression that needs to be marked in the result feature map, and h1 is the height expression that needs to be marked in the result feature map.

[0050] Specifically, Figure 4 As shown, the user terminal 5 inputs the annotation type in advance, and adopts the above-mentioned annotation method to realize the automatic annotation function, which can complete the annotation work of tens of thousands of images in a short time. After annotation, classification is performed. According to the request input by the user terminal 5, the type annotation is performed through the control module 4, and the annotation result is visualized and presented to the user terminal 5 for classification. The annotation type is set according to the request sent by the user terminal 5. First, the target rectangular box is set to lock and annotate a specific position inside the result feature map. The lower left corner of the feature map is used as the origin position to establish the (x, y) coordinate axis, and the four corners of the target rectangular box are selected as the position elements in XML format. Specifically, the upper left corner and the upper right corner of the target rectangular box are kept parallel, and the position is expressed as (x1, y1, x2, y2), where (x1, y1) is the lower left corner position of the target rectangular box, and (x2, y2) is the upper right corner position of the target matrix box;

[0051] The width w1 and height h1 of the feature map are selected as the position elements in TXT format, and the TXT format is used as the position and type of the annotation. The function is expressed as (label, x3, y3, w1, h1), where label is the label type, (x3, y3) is the position information that needs to be marked on the feature map, w1 is the width expression that needs to be marked on the feature map, and h1 is the height expression that needs to be marked on the feature map.

[0052] According to the center point coordinates (x4, y4) of the target rectangle and TXT, the position element relationship in TXT format is analyzed. The formula is:

[0053]

[0054]

[0055]

[0056]

[0057] Preferably, the user terminal 5 includes: the user terminal 5 is also used to interact with the monitoring device 1 for information, and to visualize and present the video data collected by the monitoring device 1 on the user terminal 5 in real time through the control module 4; the user terminal 5 is also used to send a request for opening, closing or rotating the monitoring device 1 according to the visual presentation, and the control module 4 controls the monitoring device 1 according to the input request; the user terminal 5 is also used to interact with the label module 3 for information, and to send a request for the target rectangular box and the annotation type, and to input the request into the label module 3 through the control module 4; the user terminal 5 is also used to visualize and present the annotation status of the label module 3 in real time.

[0058] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A smart city management system based on video recognition, It is characterized in that include: Monitoring equipment, preprocessing module, label module, control module and user terminal; the monitoring equipment, preprocessing module, label module, control module and user terminal are connected in sequence; the control module is also connected to the monitoring equipment; The monitoring device is used to obtain monitoring video data of the smart city in real time; The preprocessing module is used to perform a preprocessing operation on the video data and output a result feature map; The label module is used to label and classify the result feature map; The control module is used to control the monitoring device and the label module; The user terminal is used for visual presentation of data and inputting control requests to the control module; The pre-processing operation includes: First, a convolutional network is constructed, wherein the convolutional network includes a residual block, a transposed convolutional layer, and an output convolutional layer; the residual block, the transposed convolutional layer, and the output convolutional layer are connected in sequence; The residual block is used to downsample the input video data to obtain a preliminary feature map; The transposed convolution layer is used to restore the size of the preliminary feature map; The output convolution layer is used to perform a convolution operation on the restored preliminary feature map to obtain a result feature map; The annotation categories include: First, a target rectangular box is constructed in the result feature map based on a recurrent neural network algorithm, and the lower left corner of the result feature map is used as the origin to establish the (x, y) coordinate axis. The four corners of the target rectangular box are selected as the position elements in XML format, and the width and height of the result feature map are selected as the position elements in TXT format. Then, the center point coordinates (x 4 ,y 4 ), parsing the location element in XML format and the location element in TXT format to determine the marked location; The user terminal comprises: The user terminal is also used to exchange information with the monitoring device, and to visualize and present the video data collected by the monitoring device on the user terminal in real time through the control module; The user terminal is further used to send a request for opening, closing or rotating the monitoring device according to the visual presentation, and the control module controls the monitoring device according to the input request; The user terminal is also used to exchange information with the label module, send a request for a target rectangular frame and a label type, and input the request into the label module through the control module; The user terminal is also used to visualize the labeling status of the label module in real time.

2. According to claim 1, a smart city management system based on video recognition, It is characterized in that The downsampling of the residual block includes: The video data is added to itself through a skip link after being operated by a residual block, and a preliminary feature map is output; The downsampling formula of the residual block is expressed as: α=F(β)+β Wherein, α is the preliminary feature map, F is the residual function, and β is the video data.

3. According to claim 2, a smart city management system based on video recognition, It is characterized in that The residual block operation includes: It includes two 1×1 convolutional layers and one 3×3 convolutional layer; after the video data passes through the residual function F, it passes through the first 1×1 convolutional layer, the 3×3 convolutional layer and the second 1×1 convolutional layer in sequence.

4. According to claim 1, a smart city management system based on video recognition, It is characterized in that The convolution operation of the output convolutional layer includes: The output convolution layer includes a convolution kernel and a 1×1 convolution layer; first, each pixel point of the restored preliminary feature map is converted into each element in the matrix, and then the sliding convolution kernel is used to calculate the matrix, and finally the resulting feature map is output through the 1×1 convolution layer.

5. According to claim 4, a smart city management system based on video recognition, It is characterized in that The calculating of the matrix comprises: The formula for calculating the matrix by the sliding convolution kernel is expressed as: In the formula, T(i, j) is the output result feature map, K is the height of the convolution kernel, L is the width of the convolution kernel, P(i+s*m, j+s*m) is the element value corresponding to the matrix and the convolution kernel, and H(m, n) is the weight of the convolution kernel.

6. According to claim 1, a smart city management system based on video recognition, It is characterized in that The parsing of the location element in XML format and the location element in TXT format to determine the marked location includes: The formula of the position element in the XML format is expressed as: (x 1 ,and 1 ,x 2 ,and 2 ), In the formula, (x 1 ,y 1 ) is the lower left corner position of the target rectangular box, (x 2 ,y 2 ) is the upper right corner position of the target rectangular frame; The position element in the TXT format indicates the marked position, and the formula is: (label,x 3 ,y 3 ,w 1 ,h 1 ), In the formula, label is the label type, (x 3 ,y 3 ) is the location information that needs to be marked in the result feature map, w 1 The width expression of the result feature map needs to be marked, h 1 For the resulting feature map a highly expressed representation of the identity is required.