CN109886139A - Human testing model generating method, sewage draining exit method for detecting abnormality and device - Google Patents
Human testing model generating method, sewage draining exit method for detecting abnormality and device Download PDFInfo
- Publication number
- CN109886139A CN109886139A CN201910078969.3A CN201910078969A CN109886139A CN 109886139 A CN109886139 A CN 109886139A CN 201910078969 A CN201910078969 A CN 201910078969A CN 109886139 A CN109886139 A CN 109886139A
- Authority
- CN
- China
- Prior art keywords
- sewage draining
- draining exit
- model
- human testing
- monitoring video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
The application provides a kind of human testing model generating method, sewage draining exit method for detecting abnormality and device, is applied to intelligent Decision Technology field.The human testing model generating method includes: the sample monitoring video for obtaining sewage draining exit;The data for extracting doubtful human body region respectively from every frame image of sample monitoring video, obtain sewage draining exit abnormal data set;The sewage draining exit abnormal data set is inputted in the first convolutional neural networks and is trained, human testing model is generated;The human testing model is used to carry out human testing to frame image each in the actual monitoring video of sewage draining exit.The embodiment of the present application realizes the automatic detection of sewage draining exit exception.
Description
Technical field
This application involves intelligent Decision Technology fields, specifically, this application involves a kind of human testing model generation sides
Method, sewage draining exit method for detecting abnormality and device.
Background technique
Sewage draining exit is used for environmental emission atmosphere or water pollutant etc..It, should by taking the sewage draining exit for discharging water pollutant as an example
Sewage draining exit task is to mix the sewage (rainwater) of discharge to the greatest extent as early as possible with the water in water body, is made in sewage effluent
Pollutant obtain must diluting as early as possible and spread and further degradation purifies.The position of sewage draining exit should be advised according to environmental planning and city
It draws and requires to determine, the generally influence of guarantee pollutant safety dumping and reduction to people is generally arranged at far from people movablely
Side.
But in real life, or someone will swarm near sewage draining exit, if the personnel swarmed into cannot be found in time
And expel in time, adverse effect inevitably is caused to human body, therefore discovery artificially swarms into sewage draining exit and to exception in time
Activity carries out early warning, becomes a great prevention and control problem of sewage draining exit.But at present sewage draining exit detection scheme generally be directed to
The quality of gas or liquid that sewage draining exit excludes, can not achieve the detection of human body, therefore it is urgent to provide a kind of sewage draining exit is different
Normal detection scheme.
Summary of the invention
The application is directed to the shortcomings that existing way, proposes a kind of human testing model generating method, sewage draining exit abnormality detection
Method and device, to realize the automatic detection of sewage draining exit exception.
Embodiments herein provides a kind of human testing model generating method according to first aspect, comprising:
The sample for obtaining sewage draining exit monitors video;
The data for extracting doubtful human body region respectively from every frame image of sample monitoring video, obtain blowdown
Mouth abnormal data set;
The sewage draining exit abnormal data set is inputted in the first convolutional neural networks and is trained, human testing mould is generated
Type;The human testing model is used to carry out human testing to frame image each in the actual monitoring video of sewage draining exit.
In one embodiment, described input the sewage draining exit abnormal data set in the first convolutional neural networks carries out
Training generates human testing model, comprising:
The sewage draining exit abnormal data set is divided into N number of part;N is greater than 1;
N-1 part is chosen from N number of part and is used as training set, is collected remaining 1 part as verifying;
Training set is inputted in first convolutional neural networks and is trained, the first model is obtained;
The first model is adjusted according to verifying collection;
Classified using the first model adjusted to training set, obtains positive sample set and negative sample set;
According to the label of each sewage draining exit abnormal data in the pre-set sewage draining exit abnormal data set, determines and adjust
The classification capacity of the first model after whole;The label is positive sample or negative sample for characterizing sewage draining exit abnormal data;
If the classification capacity of the first model adjusted is more than or equal to preset value, using the first model adjusted as described in
Verifying collects corresponding final mask;
N-1 different parts is chosen from N number of part as training set, is collected remaining 1 part as verifying, is returned
Return to input training set in first convolutional neural networks the step of being trained, obtaining the first model, until in N number of part
Each part is collected as verifying;
Each verifying is collected corresponding final mask to merge, generates human testing model.
In one embodiment, described from N number of part after the classification capacity of the determination the first model adjusted
N-1 different parts is chosen as training set, before remaining 1 part is collected as verifying, further includes:
If the classification capacity of the first model adjusted is less than preset value, label in positive sample set is characterized as negative sample
Sewage draining exit abnormal data be divided to negative sample set;
According to the training set that the positive sample set and negative sample set that redefine are constituted, to the first model adjusted into
Row training, obtains the second model;
Using second model as the first new model, returns and verify what collection was adjusted the first model according to described
Step, until the classification capacity of the first model adjusted is more than or equal to preset value.
In one embodiment, described to merge the corresponding final mask of each verifying collection, generate human testing mould
Type, comprising:
Each verifying collection is inputted in corresponding final mask, the prediction result of each verifying collection is obtained;
The prediction result of each verifying collection is spliced according to the sequencing that verifying collection is selected, generates new training set;
New training set is inputted in the second convolutional neural networks and is trained, human testing model is generated.
Embodiments herein additionally provides a kind of sewage draining exit method for detecting abnormality according to the second aspect, comprising:
Obtain the actual monitoring video of sewage draining exit;
Each frame image is extracted from the actual monitoring video;
Each frame image is inputted in the human testing model of above-mentioned any one building and carries out human testing;
If detecting human body, it is determined that sewage draining exit is abnormal.
In one embodiment, described to be regarded from the actual monitoring if the human testing model is deployed in server end
Each frame image is extracted in frequency, comprising: extracted frame by frame to the actual monitoring video, obtain each frame image;If the human body
Detection model is deployed in mobile terminal, described that each frame image is extracted from the actual monitoring video, comprising: from the practical prison
It surveys in video and extracts key frame images, as each frame image.
Embodiments herein additionally provides a kind of human testing model generating means according in terms of third, comprising:
Sample monitors video acquiring module, and the sample for obtaining sewage draining exit monitors video;
Abnormal data obtains module, for extracting doubtful human body institute respectively from every frame image of sample monitoring video
Data in region obtain sewage draining exit abnormal data set;
Human testing model generation module, for the sewage draining exit abnormal data set to be inputted the first convolutional neural networks
In be trained, generate human testing model;The human testing model is used for each frame in the actual monitoring video of sewage draining exit
Image carries out human testing.
Embodiments herein additionally provides a kind of sewage draining exit abnormal detector according to the 4th aspect, comprising:
Actual monitoring video acquiring module, for obtaining the actual monitoring video of sewage draining exit;
Image zooming-out module, for extracting each frame image from the actual monitoring video;
Human detection module, for each frame image to be inputted to the human body of above-mentioned human testing model generating means building
Human testing is carried out in detection model;
Abnormal determination module, for when detecting human body, determining sewage draining exit exception.
Embodiments herein additionally provides a kind of computer readable storage medium, stores thereon according to the 5th aspect
There is computer program, which realizes human testing model generating method described in above-mentioned any one when being executed by processor,
Or sewage draining exit method for detecting abnormality described in above-mentioned any one.
Embodiments herein additionally provides a kind of computer equipment, the computer equipment packet according to the 6th aspect
It includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the exception of sewage draining exit described in human testing model generating method or above-mentioned any one described in above-mentioned any one
Detection method.
Above-mentioned human testing model generating method, sewage draining exit method for detecting abnormality and device is examined extremely in sewage draining exit
It before surveying actual operation, acquires the sample near sewage draining exit and monitors video, extract sewage draining exit abnormal data from sample monitoring video
Set, and sewage draining exit abnormal data set is trained, then using trained human testing model to the reality of sewage draining exit
Border monitors video and carries out human testing, can effectively detect the abnormal conditions of physical activity near sewage draining exit, realizes blowdown
The abnormal automatic monitoring of mouth, improves monitoring efficiency and accuracy, sewage draining exit exception monitoring cost can be effectively reduced.
The additional aspect of the application and advantage will be set forth in part in the description, these will become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the schematic diagram of the human testing model generating method of the application one embodiment;
Fig. 2 is the schematic diagram of the human testing model generating means of the application one embodiment;
Fig. 3 is the schematic diagram of the sewage draining exit method for detecting abnormality of the application one embodiment;
Fig. 4 is the schematic diagram of the sewage draining exit method for detecting abnormality of another embodiment of the application;
Fig. 5 is the schematic diagram of the sewage draining exit abnormal detector of the application one embodiment;
Fig. 6 is the schematic diagram of the computer equipment of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the application, and cannot be construed to the limitation to the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in the application fields.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
The angle generated first from human testing model generates human testing model provided by the embodiments of the present application
The specific embodiment of method and apparatus describes in detail.
As shown in Figure 1, the schematic diagram of the human testing model generating method for an embodiment, which comprises
S110, the sample for obtaining sewage draining exit monitor video.
Sample monitoring video is to carry out video surveillance, the Historical Monitoring video comprising human body of acquisition to sewage draining exit.It is arranging
Dirty mouth nearby installs photographic device, acquires the video that different periods people passes through near sewage draining exit by photographic device, obtains multiple
The monitoring video of acquisition is monitored video by the monitoring video of scene.
S120, the data for extracting doubtful human body region respectively from every frame image of sample monitoring video, obtain
To sewage draining exit abnormal data set.
It includes multiple image that sample, which monitors video, for each frame image in sample monitoring video, identifies doubtful people
Region where body (may be human body may not also be human body), using the data in the region as sewage draining exit abnormal data, from
The sewage draining exit abnormal data of every frame image zooming-out constitutes sewage draining exit abnormal data set.
For example, using algorithm of target detection, such as SSDLite algorithm (upgrade version of MobileNet-SSD), for sample
Each frame image in video is monitored, the position where human body is identified using boundary rectangle, and extract the boundary rectangle
Region constitutes sewage draining exit abnormal data set as sewage draining exit abnormal data, each sewage draining exit abnormal data.
S130, it will be trained in the sewage draining exit abnormal data set the first convolutional neural networks of input, generate human body
Detection model;The human testing model is used to carry out human testing to frame image each in the actual monitoring video of sewage draining exit.
First convolutional neural networks can be using existing neural network in the prior art, and such as the first convolutional neural networks can
Think MobileNet V2 etc., MobileNet V2 network structure is as follows:
Wherein, t is expansion factor, and c is output channel, and n is number of repetition, and s is step-length.
Sewage draining exit abnormal data set is inputted in the first convolutional neural networks and is trained, human testing model is obtained,
According to human body detection model, it can detecte and whether there is human body in the actual monitoring video of sewage draining exit in each frame image.
The human testing model that the present embodiment generates can effectively detect the abnormal feelings of physical activity near sewage draining exit
Condition realizes the automatic monitoring of sewage draining exit exception, improves monitoring efficiency and accuracy, sewage draining exit exception monitoring can be effectively reduced
Cost.
In order to train more accurate human testing model, the application is instructed using sewage draining exit abnormal data set
When practicing, learning method and the design of hard negative mining are rolled in conjunction with N, the first convolutional neural networks are trained,
It describes in detail below to training process.
In one embodiment, described input the sewage draining exit abnormal data set in the first convolutional neural networks carries out
Training generates human testing model, comprising:
S1301, the sewage draining exit abnormal data set is divided into N number of part;N is greater than 1.
N can be determined according to actual needs, for example, N is 5 etc..It optionally, will be in sewage draining exit abnormal data set
Sewage draining exit abnormal data is bisected into N number of part.
S1302, N-1 part is chosen from N number of part as training set, collect remaining 1 part as verifying.
Training set is used to estimate that model, verifying collection are used to determine the parameter of network structure or Controlling model complexity.
After sewage draining exit abnormal data set is divided into N number of part, N-1 part is randomly selected from N number of part as training set, is remained
Under 1 part as verifying collection.
S1303, it training set is inputted in first convolutional neural networks is trained, obtain the first model.
The first convolutional neural networks are trained using N-1 part of selection, the first model is generated, specifically trains
Process can be realized according to existing mode in the prior art.
S1304, the first model is adjusted according to verifying collection.
After training the first model, optimization is adjusted to the parameter of the first model using verifying collection, is obtained more accurate
The first model.
S1305, classified using the first model adjusted to training set, obtain positive sample set and negative sample collection
It closes.
In the application, positive sample refers to including somatic data in sewage draining exit abnormal data, and negative sample refers to sewage draining exit
Somatic data is not included in abnormal data.It is abnormal to the sewage draining exit in N-1 part of selection using the first model adjusted
Data are classified, if the first model adjusted determines that sewage draining exit abnormal data includes somatic data, are divided to
Positive sample set is divided to if the first model adjusted determines that sewage draining exit abnormal data does not include somatic data
Negative sample set.
S1306, according to the label of each sewage draining exit abnormal data in the pre-set sewage draining exit abnormal data set,
Determine the classification capacity of the first model adjusted;The label is positive sample or negative sample for characterizing sewage draining exit abnormal data
This.
It manually labels for sewage draining exit abnormal data in advance, the label of the sewage draining exit abnormal data comprising human body is labeled as
Positive sample, the label that will not include the sewage draining exit abnormal data of human body are labeled as negative sample.Classification capacity refers to the people of model
The height of physical examination extracting rate.Optionally, it can be obtained according to the quantity in the positive sample set of the first model partition with according to label
The ratio of quantity of practical positive sample determine the human body recall rate of model.
If the classification capacity of S1307, the first model adjusted is more than or equal to preset value, the first model adjusted is made
Collect corresponding final mask for the verifying.
Preset value can be configured according to actual needs, in principle, higher, the obtained final mask of preset value setting
Accuracy rate is higher.If the first category of model ability is more than or equal to preset value, it is meant that human body recall rate is controlled in preferable journey
Degree, using first model adjusted as the final mask of first time iteration.
S1308, different N-1 parts are chosen from N number of part as training set, using remaining 1 part as testing
The step of card collection, return, which inputs training set in first convolutional neural networks, to be trained, the first model of acquisition, until N
Each part is collected as verifying in a part.
In second of iteration, choose N-1 part again and be used as training set, N-1 of the selection partially in the presence of with it is upper
The different part in N-1 part of secondary selection collects remaining 1 part as verifying, the N-1 then chosen again according to this
A part and verifying collect the step more than repeating and are repeated in until obtaining the final mask of second of iteration, until every
A part is collected as verifying, and when that is to say the final mask for obtaining iv-th iteration, iteration stopping, so far, acquisition are N number of most
Final cast.
S1309, the corresponding final mask of each verifying collection is merged, generates human testing model.
As described above, obtaining N number of final mask, N number of final mask is merged, obtains the better model of performance, it should
The better model of performance is human testing model.
In one embodiment, described from N number of part after the classification capacity of the determination the first model adjusted
N-1 different parts is chosen as training set, before remaining 1 part is collected as verifying, further includes:
If the classification capacity of S1310, the first model adjusted is less than preset value, label in positive sample set is characterized as
The sewage draining exit abnormal data of negative sample is divided to negative sample set.
If the first category of model ability adjusted is less than preset value, it is meant that the first model person physical examination adjusted goes out
Rate is poor, then needs to readjust positive sample set and negative sample set.In view of the first model should be
The sewage draining exit abnormal data mistake of negative sample is classified to positive sample set, therefore, it is necessary to the label according to sewage draining exit abnormal data,
Actually negative sample set will should be classified to for the sewage draining exit abnormal data of negative sample in positive sample set.
S1311, the training set constituted according to the positive sample set and negative sample set that redefine, to adjusted first
Model is trained, and obtains the second model.
Positive sample set adjusted and negative sample set composing training collection, using the training set to the first mould adjusted
Type is trained, and generates the second model.
S1312, using second model as the first new model, return according to verifying collection to the progress of the first model
The step of adjustment, until the classification capacity of the first model adjusted is more than or equal to preset value.
The second model is adjusted using verifying collection, then using the second model adjusted to the training set of S1311
Classification is re-started, positive sample set and negative sample set is obtained, then redefines the classification energy of the second model adjusted
Power tests the second model adjusted if the classification capacity of the second model adjusted is more than or equal to preset value as described in
Card collects corresponding final mask and otherwise repartitions positive sample set and negative sample set ... ..., be repeated in, until obtaining
The verifying collects corresponding final mask.
In one embodiment, described to merge the corresponding final mask of each verifying collection, generate human testing mould
Type, comprising:
S1309a, each verifying collection is inputted in corresponding final mask, obtains the prediction result of each verifying collection.
When each part is as verifying collection, a final mask can be obtained, each verifying collection input is corresponding final
In model, the prediction result of each verifying collection is obtained.
S1309b, the prediction result of each verifying collection is spliced according to the sequencing that verifying collection is selected, is generated new
Training set.
It needs to undergo n times iteration as described above, obtaining N number of final mask, iteration can all choose a part and make each time
It that is to say the sequencing that verifying collection is selected according to the sequence of n times iteration for verifying collection, determine the prediction result of verifying collection
Sequencing, each prediction result is spliced according to the sequencing, generates new training set.
S1309c, it will be trained in new training set the second convolutional neural networks of input, generate human testing model.
The second convolutional neural networks are chosen, which can be identical as the first convolutional neural networks,
It can be not identical as the first convolutional neural networks.The new training set of building is inputted in the second convolutional neural networks and is instructed
Practice, obtains human testing model.
It should be understood that the application is not restricted to the above-mentioned mode to the fusion of each final mask, for example, it is also possible to
N number of final mask is merged using ballot method etc., obtains human testing model.
In order to better understand the application human testing model generating method, carried out below with reference to a specific embodiment detailed
It is thin to introduce.
Step 1 is that each sewage draining exit abnormal data labels in advance, by the label of the sewage draining exit abnormal data comprising human body
It is set as positive sample, sets negative sample for the label for not including the sewage draining exit abnormal data of human body.By sewage draining exit abnormal data
Sewage draining exit abnormal data in set is divided into 5 parts: P1, P2, P3, P4 and P5, and 4/5 data are for training, 1/5 data
For verifying.
Step 2, in first time iteration, such as choose P1, P2, P3 and P4 be used as training set, P5 as verifying collects.It will train
Collection the first convolutional neural networks of input are trained, and obtain model 1, are verified according to verifying the set pair analysis model 1, and according to verifying
Result adjust model 1.Then classified using model 1 to training set, i.e. division positive sample set and negative sample set.Such as
The classification capacity of fruit model 1 is less than preset value (human body recall rate is poor), then will be classified to positive sample set and label is negative sample
This training sample is divided to negative sample set, the training constituted further according to the positive sample set and negative sample set redefined
Collection is again trained model 1, obtains model 2, is verified according to verifying the set pair analysis model 2, and according to the result tune of verifying
Then integral mould 2 is classified to the training set rebuild using model 2 ... ... and is repeated in, until the classification energy of model
Power is more than or equal to preset value (people's recall rate is controlled in preferable degree), obtains the final mask of first time iteration.
Step 3, in second of iteration, such as choose P1, P2, P3 and P5 be used as training set, P4 as verifying collects.It will train
Collection the first convolutional neural networks of input are trained, and obtain model 1, are verified according to verifying the set pair analysis model 1, and according to verifying
Result adjust model 1.Then classified using model 1 to training set, i.e. division positive sample set and negative sample set.Such as
The classification capacity of fruit model 1 is less than preset value (human body recall rate is poor), then will be classified to positive sample set and label is negative sample
This training sample is divided to negative sample set, the training constituted further according to the positive sample set and negative sample set redefined
Collection is again trained model 1, obtains model 2, is verified according to verifying the set pair analysis model 2, and according to the result tune of verifying
Then integral mould 2 is classified to training set using model 2 ... ... and is repeated in, until category of model ability is more than or equal in advance
If value (people's recall rate is controlled in preferable degree), obtains the final mask of second of iteration.
……
It is repeated in, carries out five iteration.
Step 4 obtains 5 final masks through the above way, then is merged to obtain by 5 final masks and shows more
Strong Fusion Model, the Fusion Model are trained human testing model.Optionally, the method for fusion include: by P5,
P4 ... is inputted in corresponding model, 5 prediction results is spliced to a raw new training sample set in sequence, and will
The new training sample set, which inputs in another convolutional neural networks, to be trained, and Fusion Model is obtained.Furthermore it is also possible to adopt
5 models are merged with ballot method etc..
Based on the same inventive concept, the application also provides a kind of human testing model generating means, right with reference to the accompanying drawing
The specific embodiment of the application device describes in detail.
As shown in Fig. 2, the schematic diagram of the human testing model generating means for an embodiment, the device include:
Sample monitors video acquiring module 110, and the sample for obtaining sewage draining exit monitors video;
Abnormal data obtains module 120, for extracting doubtful people respectively from every frame image of sample monitoring video
The data of body region obtain sewage draining exit abnormal data set;
Human testing model generation module 130, for the sewage draining exit abnormal data set to be inputted the first convolutional Neural
It is trained in network, generates human testing model;The human testing model is used for in the actual monitoring video of sewage draining exit
Each frame image carries out human testing.
In one embodiment, human testing model generation module 130 includes:
Data dividing unit, for the sewage draining exit abnormal data set to be divided into N number of part;N is greater than 1;
Training set and verifying collection selection unit are used as training set for choosing N-1 part from N number of part, will be remaining
1 part as verifying collection;
First model obtaining unit is trained for inputting training set in first convolutional neural networks, is obtained
First model;
First model adjustment unit, for being adjusted according to verifying collection to the first model;
Taxon, for being classified using the first model adjusted to training set, obtaining positive sample set and being born
Sample set;
Classification capacity determination unit, for according to each sewage draining exit in the pre-set sewage draining exit abnormal data set
The label of abnormal data determines the classification capacity of the first model adjusted;The label is for characterizing sewage draining exit abnormal data
It is positive sample or negative sample;
Final mask obtaining unit will when the classification capacity for the first model after the adjustment is more than or equal to preset value
First model adjusted collects corresponding final mask as the verifying;
Training set and verifying collection selection unit choose N-1 different parts from N number of part and are used as training set, will be remaining
1 part as verifying collection, executed into the first model obtaining unit and training set inputted into first convolutional neural networks
In be trained, obtain the first model function, until N number of part in each part by as verifying collect;
Human testing model generation unit merges for each verifying to be collected corresponding final mask, generates human body
Detection model.
In one embodiment, further include be connected to classification capacity determination unit and training set and verifying collection selection unit it
Between repetition training unit, the repetition training unit for performing the following operations:
The classification capacity of first model adjusted is less than preset value, and label in positive sample set is characterized as negative sample
Sewage draining exit abnormal data is divided to negative sample set;
According to the training set that the positive sample set and negative sample set that redefine are constituted, to the first model adjusted into
Row training, obtains the second model;
Using second model as the first new model, executes into the first model adjustment unit and collected according to the verifying
To the function that the first model is adjusted, until the classification capacity of the first model adjusted is more than or equal to preset value.
In one embodiment, human testing model generation unit includes:
Prediction result obtains subelement, for inputting each verifying collection in corresponding final mask, obtains each verifying
The prediction result of collection;
Training set generates subelement, the sequencing for the prediction result of each verifying collection to be selected according to verifying collection
Splicing, generates new training set;
Human testing model generates subelement, instructs for inputting new training set in the second convolutional neural networks
Practice, generates human testing model.
The skill of other technical characteristics of above-mentioned human testing model generating means and above-mentioned human testing model generating method
Art feature is identical, and it will not be described here.
Human testing model based on above-mentioned generation, the embodiment of the present application also provides a kind of sewage draining exit method for detecting abnormality
And device, it describes in detail with reference to the accompanying drawing.
As shown in figure 3, the schematic diagram of the sewage draining exit method for detecting abnormality for an embodiment, this method comprises:
S210, the actual monitoring video for obtaining sewage draining exit.
After training human testing model, optionally, using tf-serving frame, human testing model is deployed to clothes
Business device end and/or mobile terminal, wherein server can provide framework interface using docker (application container engine), to biography
The monitoring video image passed is measured in real time.The actual monitoring view of sewage draining exit can be acquired in real time in the following manner
Frequently: the photographic device that day and night can shoot being placed near sewage draining exit, and/or, the camera of mobile device.
In sewage draining exit abnormality detection actual moving process, the video near sewage draining exit is shot, obtains sewage draining exit
Actual monitoring video.
S220, each frame image is extracted from the actual monitoring video.
Actual monitoring video includes multiple image, each frame image is extracted from actual monitoring video, the image of extraction is used for
Human testing.
S230, it each frame image is inputted carries out human testing in the human testing model of above-mentioned building.
Each frame image is inputted in human testing model, by whether including people in each frame image of human testing model inspection
Body.
If S240, detecting human body, it is determined that sewage draining exit is abnormal.
If detecting that certain frame image includes human body, it is determined that someone enters near sewage draining exit, and sewage draining exit is abnormal, if respectively
Human body is not included in frame image, it is determined that unmanned to enter near sewage draining exit, sewage draining exit is normal.
In order to further ensure the safety of human body, then early warning after abnormal people is detected, such as send alert messages to correlation
Personnel, or output audio alarm etc., to expel personnel to leave near sewage draining exit in time.In addition, there is sewage draining exit exception
When, anomalous video segment can also be stored, it is relevant pre- to take to facilitate related personnel to check and analyze the anomalous video
Anti- measure prevents personnel in advance and enters near sewage draining exit.
In one embodiment, described to be regarded from the actual monitoring if the human testing model is deployed in server end
Each frame image is extracted in frequency, comprising: extracted frame by frame to the actual monitoring video, obtain each frame image;If the human body
Detection model is deployed in mobile terminal, described that each frame image is extracted from the actual monitoring video, comprising: from the practical prison
It surveys in video and extracts key frame images, as each frame image.In the present embodiment, it is contemplated that server end and mobile terminal handle energy
The difference of power takes different picture frame extracting methods respectively, to improve the efficiency of sewage draining exit abnormality detection.
As shown in figure 4, carrying out the schematic diagram of sewage draining exit abnormality detection for the server end and mobile terminal of an embodiment.Needle
To server end, camera acquires actual monitoring video in real time, passes to the work station that backstage is equipped with server end, server end pair
Actual monitoring video is extracted frame by frame, carries out human testing using the human testing model that tf-serving frame is preloaded into,
It detects then early warning after exception, and actively stores anomalous video segment, realize 24 small periods monitorings.For mobile terminal, take the photograph
As head acquires actual monitoring video in real time, actual monitoring video is locally analyzed and processed in mobile terminal, to improve detection speed
Degree and reduction load, mobile terminal no longer extract actual monitoring video frame by frame, only extract key frame, utilize the people being preloaded into
Body detection model carries out human testing, detects then early warning after exception, and store corresponding anomalous video key frame, the row of realizing
The abnormal monitoring on demand of dirty mouth.
Based on the same inventive concept, the application also provides a kind of sewage draining exit abnormal detector, with reference to the accompanying drawing to this
The specific embodiment of device is described in detail.
As shown in figure 5, the schematic diagram of the sewage draining exit abnormal detector for an embodiment, the device include:
Actual monitoring video acquiring module 210, for obtaining the actual monitoring video of sewage draining exit;
Image zooming-out module 220, for extracting each frame image from the actual monitoring video;
Human detection module 230, in the human testing model for constructing each frame image input claim 7 into
Row human testing;
Abnormal determination module 240, for when detecting human body, determining sewage draining exit exception.
In one embodiment, if the human testing model is deployed in server end, image zooming-out module 220 is to described
Actual monitoring video is extracted frame by frame, obtains each frame image;If the human testing model is deployed in mobile terminal, image is mentioned
Modulus block 220 extracts key frame images from the actual monitoring video, as each frame image.
The technology of other technical characteristics of above-mentioned sewage draining exit abnormal detector and above-mentioned sewage draining exit method for detecting abnormality is special
Levy identical, it will not be described here.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored thereon with computer program, the program
Human testing model generating method or sewage draining exit abnormality detection side described in above-mentioned any one are realized when being executed by processor
Method.Wherein, the storage medium includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic
Disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory),
EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM
(Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory),
Flash memory, magnetic card or light card.It is, storage medium includes the form by equipment (for example, computer) can read
Any medium of storage or transmission information.It can be read-only memory, disk or CD etc..
The embodiment of the present application also provides a kind of computer equipment, and the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes human testing model generating method or sewage draining exit method for detecting abnormality described in above-mentioned any one.
Fig. 6 is the structural schematic diagram of the application computer equipment, including processor 320, storage device 330, input unit
The devices such as 340 and display unit 350.It will be understood by those skilled in the art that the structure devices shown in Fig. 6 are not constituted to institute
There is the restriction of computer equipment, may include than illustrating more or fewer components, or the certain components of combination.Storage device
330 can be used for storing application program 310 and each functional module, and processor 320 runs the application journey for being stored in storage device 330
Sequence 310, thereby executing the various function application and data processing of equipment.Storage device 330 can be built-in storage or external memory
Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory, programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage
Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Storage device disclosed in the present application includes but not
It is limited to the storage device of these types.Storage device 330 disclosed in the present application is only used as example rather than as restriction.
Input unit 340 is used to receive the input of signal, and receives the sample monitoring video or sewage draining exit of sewage draining exit
Actual monitoring video.Input unit 340 may include touch panel and other input equipments.Touch panel collects user and exists
On or near it touch operation (such as user using any suitable object or attachment such as finger, stylus on touch panel
Or the operation near touch panel), and corresponding attachment device is driven according to a pre-set procedure;Other input equipments can
To include but is not limited to physical keyboard, function key (such as broadcasting control button, switch key etc.), trace ball, mouse, operating stick
Deng one of or it is a variety of.Display unit 350 can be used for showing the information of user's input or be supplied to the information and meter of user
Calculate the various menus of machine equipment.The forms such as liquid crystal display, Organic Light Emitting Diode can be used in display unit 350.Processor 320
It is the control centre of computer equipment, using the various pieces of various interfaces and the entire computer of connection, by running or holding
The software program and/or module that row is stored in storage device 330, and the data being stored in storage device are called, it executes
Various functions and processing data.
In one embodiment, computer equipment includes one or more processors 320, and one or more storage dresses
330 are set, one or more application program 310, wherein one or more of application programs 310 are stored in storage device 330
In and be configured as being executed by one or more of processors 320, one or more of application programs 310 are configured to hold
Human testing model generating method or sewage draining exit method for detecting abnormality described in row above embodiments.
Above-mentioned human testing model generating method, sewage draining exit method for detecting abnormality and device, in sewage draining exit abnormality detection
Before equipment actual operation, acquisition sewage draining exit nearby different periods people pass through monitoring video, and to abnormal object-people therein into
Then rower note training carries out human testing, energy using actual monitoring video of the trained human testing model to sewage draining exit
It is enough effectively to detect the sewage draining exit movable abnormal conditions of people nearby, it realizes automatic monitoring, improves monitoring efficiency and accuracy,
Sewage draining exit exception monitoring cost can be effectively reduced;High-definition camera is placed around in sewage draining exit or using mobile device, is not necessarily to
Manpower auxiliary, can be realized the 24 hours abnormality detections free of discontinuities in periphery, expands detection range, reduce human cost;It is taking
Business device end and mobile terminal dispose human testing model, realize the convenient monitoring of abnormal real-time early warning and multiple terminals of sewage draining exit.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It should be understood that can be integrated in a processing module in each functional unit in each embodiment of the application,
It can be physically existed alone, can also be integrated in two or more units in a module with each unit.It is above-mentioned integrated
Module both can take the form of hardware realization, can also be realized in the form of software function module.
The above is only some embodiments of the application, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered
It is considered as the protection scope of the application.
Claims (10)
1. a kind of human testing model generating method characterized by comprising
The sample for obtaining sewage draining exit monitors video;
The data for extracting doubtful human body region respectively from every frame image of sample monitoring video, it is different to obtain sewage draining exit
Regular data set;
The sewage draining exit abnormal data set is inputted in the first convolutional neural networks and is trained, human testing model is generated;
The human testing model is used to carry out human testing to frame image each in the actual monitoring video of sewage draining exit.
2. human testing model generating method according to claim 1, which is characterized in that described that the sewage draining exit is abnormal
Data acquisition system is inputted in the first convolutional neural networks and is trained, and generates human testing model, comprising:
The sewage draining exit abnormal data set is divided into N number of part;N is greater than 1;
N-1 part is chosen from N number of part and is used as training set, is collected remaining 1 part as verifying;
Training set is inputted in first convolutional neural networks and is trained, the first model is obtained;
The first model is adjusted according to verifying collection;
Classified using the first model adjusted to training set, obtains positive sample set and negative sample set;
According to the label of each sewage draining exit abnormal data in the pre-set sewage draining exit abnormal data set, after determining adjustment
The first model classification capacity;The label is positive sample or negative sample for characterizing sewage draining exit abnormal data;
If the classification capacity of the first model adjusted is more than or equal to preset value, using the first model adjusted as the verifying
Collect corresponding final mask;
N-1 different parts is chosen from N number of part as training set, is collected remaining 1 part as verifying, and returning will
The step of training set is inputted in first convolutional neural networks and is trained, and obtains the first model, until each in N number of part
Part is collected as verifying;
Each verifying is collected corresponding final mask to merge, generates human testing model.
3. human testing model generating method according to claim 2, which is characterized in that the determination adjusted first
It is described that N-1 different parts is chosen from N number of part as training set, by remaining 1 portion after the classification capacity of model
It is allocated as before verifying collection, further includes:
If the classification capacity of the first model adjusted is less than preset value, label in positive sample set is characterized as to the row of negative sample
Dirty mouth abnormal data is divided to negative sample set;
According to the training set that the positive sample set and negative sample set redefined is constituted, the first model adjusted is instructed
Practice, obtains the second model;
Using second model as the first new model, the step being adjusted according to the verifying collection to the first model is returned
Suddenly, until the classification capacity of the first model adjusted is more than or equal to preset value.
4. human testing model generating method according to claim 2 or 3, which is characterized in that described to collect each verifying
Corresponding final mask is merged, and human testing model is generated, comprising:
Each verifying collection is inputted in corresponding final mask, the prediction result of each verifying collection is obtained;
The prediction result of each verifying collection is spliced according to the sequencing that verifying collection is selected, generates new training set;
New training set is inputted in the second convolutional neural networks and is trained, human testing model is generated.
5. a kind of sewage draining exit method for detecting abnormality characterized by comprising
Obtain the actual monitoring video of sewage draining exit;
Each frame image is extracted from the actual monitoring video;
Human testing will be carried out in the human testing model of each frame image input Claims 1-4 any one building;
If detecting human body, it is determined that sewage draining exit is abnormal.
6. sewage draining exit method for detecting abnormality according to claim 5, which is characterized in that
If the human testing model is deployed in server end, described to extract each frame image, packet from the actual monitoring video
It includes: the actual monitoring video is extracted frame by frame, obtain each frame image;
If the human testing model is deployed in mobile terminal, described to extract each frame image, packet from the actual monitoring video
It includes: extracting key frame images from the actual monitoring video, as each frame image.
7. a kind of human testing model generating means characterized by comprising
Sample monitors video acquiring module, and the sample for obtaining sewage draining exit monitors video;
Abnormal data obtains module, for extracting doubtful human body location respectively from every frame image of sample monitoring video
The data in domain obtain sewage draining exit abnormal data set;
Human testing model generation module, for by the sewage draining exit abnormal data set input the first convolutional neural networks in into
Row training, generates human testing model;The human testing model is used for each frame image in the actual monitoring video of sewage draining exit
Carry out human testing.
8. a kind of sewage draining exit abnormal detector characterized by comprising
Actual monitoring video acquiring module, for obtaining the actual monitoring video of sewage draining exit;
Image zooming-out module, for extracting each frame image from the actual monitoring video;
Human detection module carries out human body for inputting each frame image in the human testing model that claim 7 constructs
Detection;
Abnormal determination module, for when detecting human body, determining sewage draining exit exception.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
It is realized when row in human testing model generating method or the claim 5 or 6 as described in any one of Claims 1-4
The sewage draining exit method for detecting abnormality.
10. a kind of computer equipment, which is characterized in that the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now described in the human testing model generating method as described in any one of Claims 1-4 or claim 5 or 6
Sewage draining exit method for detecting abnormality.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910078969.3A CN109886139A (en) | 2019-01-28 | 2019-01-28 | Human testing model generating method, sewage draining exit method for detecting abnormality and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910078969.3A CN109886139A (en) | 2019-01-28 | 2019-01-28 | Human testing model generating method, sewage draining exit method for detecting abnormality and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109886139A true CN109886139A (en) | 2019-06-14 |
Family
ID=66927010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910078969.3A Pending CN109886139A (en) | 2019-01-28 | 2019-01-28 | Human testing model generating method, sewage draining exit method for detecting abnormality and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109886139A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502986A (en) * | 2019-07-12 | 2019-11-26 | 平安科技(深圳)有限公司 | Identify character positions method, apparatus, computer equipment and storage medium in image |
CN110751090A (en) * | 2019-10-18 | 2020-02-04 | 宁波博登智能科技有限责任公司 | Three-dimensional point cloud labeling method and device and electronic equipment |
CN110909767A (en) * | 2019-11-04 | 2020-03-24 | 浙江工业大学 | Life jacket detection method for mobile terminal |
CN111062316A (en) * | 2019-12-16 | 2020-04-24 | 成都之维安科技股份有限公司 | Pollution source wastewater discharge real-time video analysis system based on deep learning technology |
CN111223549A (en) * | 2019-12-30 | 2020-06-02 | 华东师范大学 | Mobile end system and method for disease prevention based on posture correction |
CN111414829A (en) * | 2020-03-13 | 2020-07-14 | 珠海格力电器股份有限公司 | Method and device for sending alarm information |
CN111582139A (en) * | 2020-04-30 | 2020-08-25 | 北京百度网讯科技有限公司 | Sewage outlet identification method and device, electronic equipment and storage medium |
CN112364918A (en) * | 2020-11-10 | 2021-02-12 | 深圳力维智联技术有限公司 | Abnormality recognition method, terminal, and computer-readable storage medium |
-
2019
- 2019-01-28 CN CN201910078969.3A patent/CN109886139A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502986A (en) * | 2019-07-12 | 2019-11-26 | 平安科技(深圳)有限公司 | Identify character positions method, apparatus, computer equipment and storage medium in image |
CN110751090A (en) * | 2019-10-18 | 2020-02-04 | 宁波博登智能科技有限责任公司 | Three-dimensional point cloud labeling method and device and electronic equipment |
CN110751090B (en) * | 2019-10-18 | 2022-09-20 | 宁波博登智能科技有限公司 | Three-dimensional point cloud labeling method and device and electronic equipment |
CN110909767A (en) * | 2019-11-04 | 2020-03-24 | 浙江工业大学 | Life jacket detection method for mobile terminal |
CN111062316A (en) * | 2019-12-16 | 2020-04-24 | 成都之维安科技股份有限公司 | Pollution source wastewater discharge real-time video analysis system based on deep learning technology |
CN111223549A (en) * | 2019-12-30 | 2020-06-02 | 华东师范大学 | Mobile end system and method for disease prevention based on posture correction |
CN111414829A (en) * | 2020-03-13 | 2020-07-14 | 珠海格力电器股份有限公司 | Method and device for sending alarm information |
CN111414829B (en) * | 2020-03-13 | 2024-03-15 | 珠海格力电器股份有限公司 | Method and device for sending alarm information |
CN111582139A (en) * | 2020-04-30 | 2020-08-25 | 北京百度网讯科技有限公司 | Sewage outlet identification method and device, electronic equipment and storage medium |
CN111582139B (en) * | 2020-04-30 | 2023-08-04 | 北京百度网讯科技有限公司 | Sewage outlet identification method and device, electronic equipment and storage medium |
CN112364918A (en) * | 2020-11-10 | 2021-02-12 | 深圳力维智联技术有限公司 | Abnormality recognition method, terminal, and computer-readable storage medium |
CN112364918B (en) * | 2020-11-10 | 2024-04-02 | 深圳力维智联技术有限公司 | Abnormality recognition method, terminal, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109886139A (en) | Human testing model generating method, sewage draining exit method for detecting abnormality and device | |
CN110516636A (en) | A kind of monitoring method of process, device, computer equipment and storage medium | |
CN109886209A (en) | Anomaly detection method and device, mobile unit | |
CN109034036A (en) | A kind of video analysis method, Method of Teaching Quality Evaluation and system, computer readable storage medium | |
CN112329719B (en) | Behavior recognition method, behavior recognition device and computer-readable storage medium | |
CN110751675B (en) | Urban pet activity track monitoring method based on image recognition and related equipment | |
KR102179598B1 (en) | Apparatus and method for learning facilities using video file | |
CN110458794B (en) | Quality detection method and device for accessories of rail train | |
CN110517261A (en) | Seat belt status detection method, device, computer equipment and storage medium | |
CN109815936A (en) | A kind of target object analysis method and device, computer equipment and storage medium | |
CN114202711A (en) | Intelligent monitoring method, device and system for abnormal behaviors in train compartment | |
CN110084987A (en) | A kind of foreign matter inspecting system and method towards rail traffic | |
CN106529500A (en) | Information processing method and system | |
CN111652128B (en) | High-altitude power operation safety monitoring method, system and storage device | |
CN107333101B (en) | Court trial personnel behavior patrol method and system based on court announcements | |
CN112257545A (en) | Violation real-time monitoring and analyzing method and device and storage medium | |
CN111860457A (en) | Fighting behavior recognition early warning method and recognition early warning system thereof | |
CN114724140A (en) | Strawberry maturity detection method and device based on YOLO V3 | |
CN110263622A (en) | Train fire monitoring method, apparatus, terminal and storage medium | |
CN114120435A (en) | Drug addict detection method, device, computer readable storage medium and equipment | |
US20220222940A1 (en) | Methods of real-time spatio-temporal activity detection and categorization from untrimmed video segments | |
CN102203828A (en) | Method and device for analyzing video signals generated by a moving camera | |
CN115457462A (en) | Epidemic prevention supervision method and device for realizing IA by combining RPA and AI and electronic equipment | |
CN115083229A (en) | Intelligent recognition and warning system of flight training equipment based on AI visual recognition | |
CN110515525A (en) | Visualized data processing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |