An intelligent monitoring method, system and storage medium for different catering kitchens
The video stream collection sequence is optimized through rating scores and violation identification, and the deep learning algorithm YOLOv3 is used for violation identification, which solves the problem of resource waste and high cost in intelligent monitoring of catering kitchens, and achieves precise supervision and efficient supervision.
Patent Information
- Application Number
- CN202111488628.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Due to the large number of video cameras and the varying sizes of catering units, the existing smart monitoring methods for catering kitchens lead to resource waste and high costs when using the same management technology for supervision.
By collecting the basic information, qualification licensing information, negative information and administrative penalty information of the catering unit, a rating score is generated, and the collection duration and weight are determined based on the rating score and violations, the video stream collection sequence is optimized, and the deep learning algorithm YOLOv3 is used for violation identification. And update weights and scores in real time to achieve dynamic supervision resource allocation.
It reduces the investment in supervisory personnel, improves supervision accuracy, avoids resource waste and high costs, and achieves precise supervision of different catering units.
Smart Images

Figure CN114298489B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of food safety supervision, and in particular to an intelligent monitoring method, system and storage medium for different catering kitchens. Background Art
[0002] The existing intelligent monitoring method for catering kitchens uses video cameras to monitor the kitchens of catering units. Due to the large number of video cameras, the implementation of technical methods will be challenging. Nowadays, catering units vary in size, management level, and the incidence of kitchen violations also varies greatly. If the same management technology is used for supervision, there will be a waste of resources and the cost will be relatively high. Summary of the invention
[0003] The purpose of the present invention is to provide an intelligent monitoring method, system and storage medium for different catering kitchens, aiming to solve the problem in the background technology that the same management technology is used to supervise different catering units, resulting in waste of resources and relatively high costs.
[0004] The embodiment of the present invention is implemented by the following technical solution: an intelligent monitoring method for different catering kitchens, comprising the following steps:
[0005] Collect target-related data information, generate an indicator set through quantitative processing, and calculate the rating score of the target based on the indicator set, wherein the data information includes basic information of the target, qualification and license information, negative information, and administrative penalty information;
[0006] Based on the total daily collection time of all targets and the rating score of each target, the collection time of each target is allocated, and the total daily collection time is divided and a weight is assigned to each time period, and the weight is determined according to the violation of each target;
[0007] Reversely align the maximum value of the rating score with the minimum value of the weight to obtain the collection order of each target;
[0008] According to the obtained acquisition sequence and acquisition duration, the on-site monitoring device of each target is controlled in turn to acquire the video stream according to the acquisition timing;
[0009] Violations are identified in image frames in the captured video stream based on a preset recognition model.
[0010] Furthermore, the collecting of target-related data information and generating an indicator set through quantitative processing includes:
[0011] Collect the target's size, level, length of existence, number of employees, complaints, licenses, and administrative penalties;
[0012] Generate indicator sets through frequency statistics or segmented assignment.
[0013] Furthermore, before calculating the rating score of the target based on the indicator set, the step further includes:
[0014] The indicator set is standardized according to the following formula, which is expressed as:
[0015]
[0016] In the above formula, Indicates the indicator set n indicators, Indicates the indicator set n The mean of the indicators, Indicates the indicator set n The standard deviation of an indicator.
[0017] Furthermore, the expression for calculating the rating score of the target based on the indicator set is as follows:
[0018]
[0019] In the above formula, S m Indicates m The higher the score, the better the grade. Indicates the indicator set n The weight of an indicator, b represents the intercept term.
[0020] Furthermore, the expression for timing the collection time of each target based on the total collection time of all targets in a single day and the rating score of each target is as follows:
[0021]
[0022] In the above formula, t m Indicates m The collection time of each target is matched. t Indicates the total daily acquisition time of all targets. O m Indicates m The floating acquisition time of each target, S i Indicates i The rating score of a target.
[0023] Furthermore, the preset recognition model is obtained in the following manner:
[0024] Randomly obtain image frames from the video streams of all targets, and construct a sample set by annotating the image frames with violation types;
[0025] The sample set is used as input and trained using the deep learning algorithm YOLOv3 to generate a recognition model. The output result of the recognition model includes a violation probability and a violation type. The violation probability is determined by a violation probability threshold.
[0026] Furthermore, after the image frames in the collected video stream are identified for violations based on the preset recognition model, the method further includes:
[0027] Based on the violation identification results output by the identification model, the weight of each time period in the collection sequence is updated. The formula is expressed as:
[0028]
[0029] In the above formula, Indicates The weight of each time period, Indicates the violation identification result. The number of violations in a time period, Indicates the violation identification result. The number of violations in each time period;
[0030] The rating score of each target is updated based on the violation identification results output by the identification model. The formula is expressed as:
[0031]
[0032] In the above formula, a and is the harmonic coefficient, z For the m The target corresponds to the number of image frames in the video stream. k For the m The targets correspond to the number of violations in the video stream. For the video stream The violation type at the jth violation coordinate of the image frame is The expansion factor when For the The probability of violation at the jth violation coordinate in an image frame;
[0033] Update the collection order based on the updated weights and rating scores.
[0034] The present invention also provides an intelligent monitoring system for different catering kitchens, which is applied to the above-mentioned method, including:
[0035] A rating score calculation module is used to collect target-related data information, generate an indicator set through quantitative processing, and calculate the rating score of the target based on the indicator set, wherein the data information includes basic information of the target, qualification and license information, negative information, and administrative penalty information;
[0036] The collection time and weight acquisition module is used to allocate the collection time for each target based on the total collection time of all targets in a single day and the rating score of each target, and divide the total collection time in a single day and assign a weight to each time period, and the weight is determined according to the violation of each target;
[0037] The acquisition order acquisition module is used to reversely align the maximum value of the rating score with the minimum value of the weight to obtain the acquisition order of each target;
[0038] The video stream acquisition module is used to control the on-site monitoring devices of each target to acquire the video stream according to the acquisition timing according to the acquired acquisition sequence and acquisition duration;
[0039] The violation identification module is used to identify violations of image frames in the collected video stream based on a preset identification model.
[0040] The present invention also provides an electronic device, comprising:
[0041] a memory storing execution instructions; and
[0042] A processor executes the execution instructions stored in the memory, so that the processor executes the method described above.
[0043] The present invention also provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the method described above.
[0044] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects: the intelligent monitoring method for different catering kitchens proposed by the present invention scores the targets according to the scale, management level, and incidence rate of kitchen violations of each catering unit, and also allocates the time for the single-day collection. At the same time, the total collection time is divided and weighted respectively, and the collection sequence is obtained based on the score and weight, so that different targets are graded and supervised according to the sequence and the corresponding collection time, which can greatly reduce the input of supervisors and solve the problem that the existing method uses the same management technology to supervise different catering units, which will result in waste of resources and relatively high cost;
[0045] The present invention proposes an intelligent monitoring method for different catering kitchens. By analyzing the violation identification results, the current status of the target is obtained, its weight and score are updated, and the collection order is re-determined. It can allocate appropriate supervision resources to the target in real time and improve the supervision accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flowchart of the intelligent monitoring method provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0048] Example 1
[0049] The applicant has discovered through research that the existing intelligent monitoring method for catering kitchens uses video cameras to supervise the catering unit kitchens. Due to the large number of video cameras, the implementation of the technical method will be challenging. However, catering units now vary in size, management levels, and the incidence of kitchen violations also varies greatly. If the same management technology is used for supervision, resources will be wasted and the cost will be relatively high. In response to the above problems, the embodiments of the present invention provide an intelligent monitoring method, system, and storage medium for different catering kitchens, aiming to solve the problem that the same management technology is used to supervise different catering units, which will result in a waste of resources and a relatively high cost. Reference Figure 1 As shown, the specific steps are as follows:
[0050] Collect target-related data information, where the data information includes target basic information, qualification and license information, negative information, and administrative penalty information; in this embodiment, it specifically includes: scale, level, duration, number of employees, complaint information, license information, and administrative penalty information; and generate an indicator set through quantitative processing methods such as frequency statistics or segmented assignment, such as (X1, X2, X3, ...X n ).
[0051] Furthermore, after obtaining the indicator set, it is standardized, and the formula is expressed as:
[0052]
[0053] In the above formula, Indicates the indicator set nindicators, Indicates the indicator set n The mean of the indicators, Indicates the indicator set n The standard deviation of an indicator.
[0054] Then, the target rating score is calculated according to the following expression:
[0055]
[0056] In the above formula, S m Indicates m The higher the score, the better the grade. Indicates the indicator set n The weight of an indicator, b represents the intercept term.
[0057] Furthermore, based on the total daily collection time of all targets and the rating score of each target, the collection time of each target is timed. The expression is as follows:
[0058]
[0059] In the above formula, t m Indicates m The collection time of each target is matched. t Indicates the total daily acquisition time of all targets. O m Indicates m The floating acquisition time of each target is mainly used to ensure the flexibility of supervision. O m Greater than 0, then t Also increase the corresponding duration, S i Indicates i The rating score of a target.
[0060] Furthermore, the total collection time per day is divided into m parts, and a weight is assigned to each time period. , the weight is determined according to the violation of each target; if it is the first collection, the weight is a random number. The maximum rating score and the minimum weight are reversely aligned, that is, Position does not change, the larger With smaller Align the positions and get the acquisition order of each target, that is, The position order.
[0061] According to the obtained acquisition sequence and acquisition duration, the on-site monitoring device of each target is controlled in turn to acquire the video stream according to the acquisition timing, and the corresponding acquisition time is recorded. The acquisition result is stored in address A until t Time collection is finished.
[0062] Furthermore, violation identification is performed on the image frames in the collected video stream based on a preset recognition model; the preset recognition model of this embodiment is obtained in the following manner: randomly obtain image frames from the video streams of all targets, use Label to annotate the image frames with violation types to construct a sample set; use the sample set as input, and train with the deep learning algorithm YOLOv3 to generate a recognition model, the output result of the recognition model includes the violation probability and the violation type, the violation probability is determined by the violation probability threshold, and the output result is stored at address B. The embodiment of the present invention can greatly reduce the input of supervisors by hierarchical supervision of different targets in order and corresponding collection time, and solves the problem that the existing method uses the same management technology to supervise different catering units, which will result in waste of resources and relatively high costs.
[0063] In addition, after running a cycle, the weight of each time period in the collection sequence is updated based on the violation identification results output by the identification model. The formula is expressed as:
[0064]
[0065] In the above formula, Indicates The weight of each time period, Indicates the violation identification result. The number of violations in a time period, Indicates the violation identification result. The number of violations in each time period;
[0066] The rating score of each target is updated based on the violation identification results output by the identification model. The formula is expressed as:
[0067]
[0068] In the above formula, a and is the harmonic coefficient, z For the m The target corresponds to the number of image frames in the video stream. k For the m The targets correspond to the number of violations in the video stream. For the video stream The violation type at the jth violation coordinate of the image frame is The expansion factor when For the The probability of violation at the jth violation coordinate of an image frame is determined; and the acquisition order is updated based on the updated weights and rating scores. By re-determining the acquisition order, the embodiment of the present invention can allocate appropriate supervision resources to the target in real time, thereby improving the supervision accuracy.
[0069] The embodiment of the present invention further provides an intelligent monitoring system for different catering kitchens, which is applied to the above-mentioned method, including:
[0070] A rating score calculation module is used to collect target-related data information, generate an indicator set through quantitative processing, and calculate the rating score of the target based on the indicator set, wherein the data information includes basic information of the target, qualification and license information, negative information, and administrative penalty information;
[0071] The collection time and weight acquisition module is used to allocate the collection time for each target based on the total collection time of all targets in a single day and the rating score of each target, and divide the total collection time in a single day and assign a weight to each time period, and the weight is determined according to the violation of each target;
[0072] The acquisition order acquisition module is used to reversely align the maximum value of the rating score with the minimum value of the weight to obtain the acquisition order of each target;
[0073] The video stream acquisition module is used to control the on-site monitoring devices of each target to acquire the video stream according to the acquisition timing according to the acquired acquisition sequence and acquisition duration;
[0074] The violation identification module is used to identify violations of image frames in the collected video stream based on a preset identification model.
[0075] An embodiment of the present invention further provides an electronic device, including:
[0076] a memory storing execution instructions; and
[0077] A processor executes the execution instructions stored in the memory, so that the processor executes the method described above.
[0078] An embodiment of the present invention further provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the method described above.
[0079] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent monitoring method for different catering kitchens. It is characterized in that The steps include: Collect target-related data information, generate an indicator set through quantitative processing, and calculate the rating score of the target based on the indicator set, wherein the data information includes basic information of the target, qualification and license information, negative information, and administrative penalty information; Based on the total daily collection time of all targets and the rating score of each target, the collection time of each target is allocated, and the total daily collection time is divided and a weight is assigned to each time period, and the weight is determined according to the violation of each target; Reversely align the maximum value of the rating score with the minimum value of the weight to obtain the collection order of each target; According to the obtained acquisition sequence and acquisition duration, the on-site monitoring device of each target is controlled in turn to acquire the video stream according to the acquisition timing; Violations are identified in image frames in the captured video stream based on a preset recognition model.
2. The intelligent monitoring method for different catering kitchens as claimed in claim 1, It is characterized in that The collecting of target-related data information and generating an indicator set through quantitative processing includes: Collect the target's size, level, length of existence, number of employees, complaints, licenses, and administrative penalties; Generate indicator sets through frequency statistics or segmented assignment.
3. The intelligent monitoring method for different catering kitchens as claimed in claim 2, It is characterized in that The step of calculating the rating score of the target based on the indicator set also includes: The indicator set is standardized according to the following formula, which is expressed as: In the above formula, X n represents the nth indicator in the indicator set, μ n represents the mean value of the nth indicator in the indicator set, σ n Represents the standard deviation of the nth indicator in the indicator set.
4. The intelligent monitoring method for different catering kitchens as claimed in claim 3, It is characterized in that The expression for calculating the rating score of the target based on the indicator set is as follows: In the above formula, S m represents the rating score of the mth target. The larger the score, the better the rating. n It represents the weight of the nth indicator in the indicator set, and b represents the intercept term.
5. The intelligent monitoring method for different catering kitchens as claimed in claim 4, It is characterized in that The expression for timing the collection time of each target based on the total collection time of all targets in a single day and the rating score of each target is as follows: In the above formula, t m represents the acquisition time of the mth target, t represents the total acquisition time of all targets in a single day, O m represents the floating acquisition time of the mth target, S i represents the rating score of the i-th target.
6. The intelligent monitoring method for different catering kitchens as claimed in claim 5, It is characterized in that The preset recognition model is obtained in the following manner: Randomly obtain image frames from the video streams of all targets, and construct a sample set by annotating the image frames with violation types; The sample set is used as input and trained using the deep learning algorithm YOLOv3 to generate a recognition model. The output result of the recognition model includes a violation probability and a violation type. The violation probability is determined by a violation probability threshold.
7. The intelligent monitoring method for different catering kitchens as claimed in claim 6, It is characterized in that After the image frames in the collected video stream are identified for violations based on the preset recognition model, the method further includes: Based on the violation identification results output by the identification model, the weight of each time period in the collection sequence is updated. The formula is expressed as: In the above formula, ω m′ represents the weight of the m′th time period, g m′ represents the number of violations in the m′th time period in the violation identification result, g i′ represents the number of violations in the i′th time period in the violation identification result; The rating score of each target is updated based on the violation identification results output by the identification model. The formula is expressed as: In the above formula, a and b′ are harmonic coefficients, z is the number of image frames in the video stream corresponding to the mth target, k is the number of violations in the video stream corresponding to the mth target, The violation type is l at the jth violation coordinate of the i″th image frame in the video stream i″j The expansion factor, p i″j is the probability of violation at the jth violation coordinate in the i″th image frame; Update the collection order based on the updated weights and rating scores.
8. An intelligent monitoring system for different catering kitchens, applied to the method according to any one of claims 1 to 7, It is characterized in that include: A rating score calculation module is used to collect target-related data information, generate an indicator set through quantitative processing, and calculate the rating score of the target based on the indicator set, wherein the data information includes basic information of the target, qualification and license information, negative information, and administrative penalty information; The collection time and weight acquisition module is used to allocate the collection time for each target based on the total collection time of all targets in a single day and the rating score of each target, and divide the total collection time in a single day and assign a weight to each time period, and the weight is determined according to the violation of each target; The acquisition order acquisition module is used to reversely align the maximum value of the rating score with the minimum value of the weight to obtain the acquisition order of each target; The video stream acquisition module is used to control the on-site monitoring devices of each target to acquire the video stream according to the acquisition timing according to the acquired acquisition sequence and acquisition duration; The violation identification module is used to identify violations of image frames in the collected video stream based on a preset identification model.
9. An electronic device, It is characterized in that include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory so that the processor executes the method according to any one of claims 1 to 7.
10. A readable storage medium, It is characterized in that The readable storage medium stores execution instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
