A school canteen management system based on AI empowerment
By integrating AI technology and a variety of sensing devices in the canteen management system, automatic monitoring and identification of violations and intrusions are realized, solving the problems of insufficient manual supervision and data security in the existing system, and improving detection efficiency and management. Intelligent level.
Patent Information
- Application Number
- CN202410895843.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The existing canteen management system lacks intelligence when monitoring and detecting violations and intrusions. It requires manual viewing of videos in real time, resulting in insufficient supervision, low efficiency, and potential data security risks.
A school canteen management system based on AI empowerment is designed. Through the area analysis module, image acquisition module, environment perception module, AI recognition module and video storage module, combined with human body sensing, light sensing, sound sensing and vibration sensing equipment, it automatically Monitor and identify violations and intrusions, and encrypt and store captured videos.
It improves the detection efficiency and accuracy of violations and intrusions, reduces invalid data acquisition, reduces operating costs, ensures the security of management data, and improves the intelligence level and quality of canteen management.
Smart Images

Figure CN118429143B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a school cafeteria management system based on AI empowerment. Background Art
[0002] A canteen is a place where dining services are provided. It is commonly found in schools, factories, office buildings, hospitals and other institutions. Canteens provide a variety of dining options such as breakfast, lunch, dinner, snacks and drinks. Its main goal is to provide convenient, fast and affordable dining services to meet the nutritional needs of diners. The service objects are usually employees, students, faculty and visitors in the institution. Canteens usually adopt the form of buffets. Diners can choose dishes and food portions according to their personal tastes and eating habits. The goal of canteen management is to provide high-quality, safe, hygienic and diverse dining options to meet the needs of users. Scientific management and operation can ensure that the canteen provides dining services that meet the tastes of users, promote the physical and mental health of employees and students, and improve work and study efficiency.
[0003] With the rapid development of computer artificial intelligence algorithm technology, the current object recognition technology and face recognition technology have become relatively mature. After special training, the computer can extract the trained target objects and positions from the image data, as well as recognize and compare the faces in the image. Using these technologies, various objects and personnel in the canteen kitchen can be identified and analyzed to see if they have violated the rules. However, the existing Sunshine Kitchen model requires personnel to watch the video in real time and manually judge whether there are any violations. This requires additional manpower and there will be problems such as supervisors not observing carefully, which is not smart enough.
[0004] Therefore, there is a need to provide a school canteen management system based on AI empowerment to improve the intelligence level of school canteen management. Summary of the invention
[0005] The present invention provides a school cafeteria management system based on AI empowerment, comprising: a regional analysis module, used to obtain historical personnel activity information in the processing area of the cafeteria, determine the behavior monitoring sub-area based on the historical personnel activity information in the processing area of the cafeteria, and also used to obtain the item placement information in the processing area and storage area of the cafeteria, and determine the intrusion detection sub-area; an image acquisition module, comprising a plurality of image acquisition devices, wherein the positions of the plurality of image acquisition devices are determined based on the behavior monitoring sub-area and the intrusion detection sub-area; an environmental perception module, used to obtain environmental information of the processing area and storage area of the cafeteria; the image acquisition module is also used to control at least one of the plurality of image acquisition devices to acquire a video based on the environmental information of the processing area and storage area of the cafeteria; an AI recognition module, used to perform illegal behavior monitoring or intrusion detection based on the video acquired by the image acquisition device; a video storage module, used to encrypt the video acquired by the image acquisition device, and store the encrypted video.
[0006] Furthermore, the area analysis module obtains historical personnel activity information in the processing area of the cafeteria, including: setting up multiple groups of human body sensing devices in the processing area of the cafeteria; and obtaining the historical personnel activity information in multiple test time periods through the multiple groups of human body sensing devices.
[0007] Furthermore, the regional analysis module determines the behavior monitoring sub-area based on the historical personnel activity information of the processing area of the cafeteria, including: for each group of the human sensing devices, determining the personnel activity parameters corresponding to the human sensing devices based on the historical personnel activity information obtained by the human sensing devices in multiple test time periods; determining the target human sensing devices from the multiple groups of human sensing devices based on the personnel activity parameters corresponding to each group of the human sensing devices; clustering the target human sensing devices based on the location information and personnel activity parameters of each group of the target human sensing devices to determine the behavior monitoring sub-area.
[0008] Furthermore, the environmental perception module obtains environmental information of the processing area and storage area of the canteen, including: setting at least one group of light sensing devices in the processing area and storage area of the canteen; setting at least one group of sound sensing devices in the processing area and storage area of the canteen; setting at least one group of vibration sensing devices in the processing area and storage area of the canteen.
[0009] Furthermore, the image acquisition module controls at least one of the multiple image acquisition devices to acquire video based on the environmental information of the processing area and the storage area of the cafeteria, including: in the processing time period, controlling the image acquisition device corresponding to the behavior monitoring sub-area to acquire video; in the non-processing time period, determining an intrusion risk parameter based on the environmental light data collected by the at least one group of light sensing devices in the first monitoring period and the environmental sound data collected by the at least one group of sound sensing devices in the first monitoring period, and when the intrusion risk parameter is greater than a preset intrusion risk parameter threshold, calculating an intrusion occurrence judgment parameter based on the environmental sound data collected by the at least one group of sound sensing devices in the second monitoring period and the environmental vibration data collected by the at least one group of vibration sensing devices in the second monitoring period, and when the intrusion occurrence judgment parameter is greater than the preset intrusion occurrence judgment parameter threshold, determining a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices from the multiple image acquisition devices, and controlling the target image acquisition device to acquire video based on the image acquisition angle corresponding to the target image acquisition device.
[0010] Further, the image acquisition module calculates the intrusion occurrence judgment parameter based on the environmental sound data collected by the at least one group of sound sensing devices in the second monitoring period and the environmental vibration data collected by the at least one group of vibration sensing devices in the second monitoring period, including: determining the target sound sensing device based on the environmental sound data collected by the at least one group of sound sensing devices in the second monitoring period; determining the target vibration sensing device based on the environmental vibration data collected by the at least one group of vibration sensing devices in the second monitoring period; for each of the target sound sensing devices, performing intrinsic mode decomposition on the environmental sound data collected by the target sound sensing device in the second monitoring period to determine the sound intrinsic mode function and sound residual corresponding to the target sound sensing device; for each of the target vibration sensing devices, performing intrinsic mode decomposition on the environmental vibration data collected by the target vibration sensing device in the second monitoring period to determine the sound intrinsic mode function and sound residual corresponding to the target sound sensing device; Perform empirical mode decomposition to determine the vibration intrinsic mode function and vibration residual corresponding to the target vibration sensing device; for each sound intrinsic mode function corresponding to the target sound sensing device, extract the time domain features and frequency domain features corresponding to the sound intrinsic mode function; extract the time domain features and frequency domain features corresponding to the sound residual; for each vibration intrinsic mode function corresponding to the target vibration sensing device, extract the time domain features and frequency domain features corresponding to the vibration intrinsic mode function; extract the time domain features and frequency domain features corresponding to the vibration residual; calculate the intrusion occurrence judgment parameter through a multimodal judgment model based on the time domain features and frequency domain features corresponding to each sound intrinsic mode function, the time domain features and frequency domain features corresponding to the sound residual, the time domain features and frequency domain features corresponding to each vibration intrinsic mode function, and the time domain features and frequency domain features corresponding to the vibration residual.
[0011] Furthermore, the image acquisition module determines a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices from the multiple image acquisition devices, including: predicting a movement trajectory of the intruder based on the environmental sound data collected by the target sound sensing device in the second monitoring period and the environmental vibration data collected by the target vibration sensing device in the second monitoring period through a trajectory prediction model; and determining a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices from the multiple image acquisition devices based on the movement trajectory of the intruder.
[0012] Furthermore, the AI recognition module performs illegal behavior monitoring or intrusion detection based on the video acquired by the image acquisition device, including: establishing and training a behavior recognition model, and performing illegal behavior identification based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period through the trained behavior recognition model; establishing and training an intrusion detection model, and performing intrusion detection based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period through the trained behavior recognition model.
[0013] Furthermore, the video storage module encrypts the video captured by the image acquisition device and stores the encrypted video, including: determining the overlap of the monitoring areas between any two of the image acquisition devices; for each of the image acquisition devices, performing image segmentation on the video captured by the image acquisition device in the current acquisition cycle to generate corresponding image slices; based on the overlap of the monitoring areas between any two of the image acquisition devices, splicing the image slices corresponding to the videos captured by multiple image acquisition devices in the current acquisition cycle to generate multiple spliced videos and a splicing path corresponding to each of the spliced videos; after encrypting each of the spliced videos and the splicing path, storing each of the encrypted spliced videos and the splicing path, and obtaining the storage path of each of the encrypted spliced videos and the splicing path; updating the query table, wherein the query table is used to record the mapping relationship between the time tag of the current acquisition cycle and the storage path of each of the encrypted spliced videos and the splicing path.
[0014] Furthermore, the video storage module performs image segmentation on the video collected by the image acquisition device in the current acquisition cycle, including: determining the image slice size corresponding to the current acquisition cycle based on the violation monitoring results or intrusion detection results corresponding to the videos collected by each image acquisition device in the current acquisition cycle; and performing image segmentation on the video collected by the image acquisition device in the current acquisition cycle based on the image slice size corresponding to the current acquisition cycle.
[0015] Compared with the prior art, the school canteen management system based on AI empowerment provided by the present invention has at least the following beneficial effects:
[0016] 1. Through the historical personnel activity information in the canteen's processing area and the placement information of items in the canteen's processing area and storage area, we can determine the areas where violations and intrusions are prone to occur, and set up multiple image acquisition devices in a targeted manner, effectively reducing the acquisition of invalid data and improving the detection efficiency of violations and intrusions. On this basis, through AI empowerment, the detection efficiency and accuracy of violations and intrusions are further improved, and the video collected by the image acquisition device is encrypted and stored after encryption, which effectively avoids data outflow, ensures the security of management data, and improves the intelligence level and quality of school canteen management.
[0017] 2. Through environmental monitoring of the processing area and storage area of the cafeteria, and based on the environmental sound data collected by at least one group of sound sensing equipment in the second monitoring period and the environmental vibration data collected by at least one group of vibration sensing equipment in the second monitoring period, the intrusion occurrence judgment parameters are calculated. When the intrusion occurrence judgment parameter is greater than the preset intrusion occurrence judgment parameter threshold, image acquisition is performed, which effectively reduces the acquisition of invalid images and reduces operating costs.
[0018] 3. The greater the possibility of violation or intrusion in the video, the greater the possibility of the video being retrieved for viewing. The image slice size corresponding to the current acquisition cycle is increased. By flexibly adjusting the image slice size corresponding to the current acquisition cycle, the security of the video is guaranteed while ensuring the efficiency of video retrieval. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0020] Figure 1 It is a module diagram of a school cafeteria management system based on AI empowerment according to some embodiments of this specification;
[0021] Figure 2 is a schematic diagram of a process for calculating intrusion occurrence determination parameters according to some embodiments of this specification;
[0022] Figure 3 It is a flowchart of encrypting and storing videos captured by an image acquisition device according to some embodiments of this specification. DETAILED DESCRIPTION
[0023] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0024] Figure 1 is a module diagram of a school cafeteria management system based on AI empowerment according to some embodiments of this specification, such as Figure 1 As shown, a school cafeteria management system based on AI empowerment may include a regional analysis module, an image acquisition module, an environmental perception module, an AI recognition module and a video storage module.
[0025] The regional analysis module can be used to obtain historical personnel activity information in the processing area of the cafeteria, and determine the behavior monitoring sub-area based on the historical personnel activity information in the processing area of the cafeteria.
[0026] In some embodiments, the regional analysis module obtains historical personnel activity information of the processing area of the cafeteria, including:
[0027] Set up multiple sets of human body sensing devices in the processing area of the cafeteria;
[0028] Historical personnel activity information is obtained during multiple test time periods through multiple groups of human body sensing devices.
[0029] Specifically, a human body sensing device, such as an infrared pyroelectric sensor, an ultrasonic sensor, and a microwave radar sensor, can be installed on the ceiling of the processing area of the canteen. The human body sensing device detects human bodies from top to bottom.
[0030] The regional analysis module can also be used to obtain the item placement information in the processing area and storage area of the cafeteria and determine the intrusion detection sub-area.
[0031] In some embodiments, the area analysis module determines the behavior monitoring sub-area based on the historical personnel activity information of the processing area of the cafeteria, including:
[0032] For each group of human body sensing devices, based on the historical human activity information obtained by the human body sensing devices in multiple test time periods, determine the human activity parameters corresponding to the human body sensing devices;
[0033] Determine a target human body sensing device from multiple groups of human body sensing devices based on the personnel activity parameters corresponding to each group of human body sensing devices;
[0034] Based on the location information and personnel activity parameters of each group of target human sensing devices, the target human sensing devices are clustered to determine the behavior monitoring sub-areas.
[0035] Specifically, the personnel activity parameter corresponding to the human body sensing device can be calculated based on the following formula:
[0036]
[0037] in, is the personnel activity parameter corresponding to the i-th human body sensing device, is the length of time that the i-th human body sensing device detects the human body in the n-th test period, is the length of the nth test period, is the total number of test time periods.
[0038] A human body sensing device whose human activity parameter is greater than a preset human activity parameter threshold is used as a target human body sensing device.
[0039] Specifically, the target human body sensing devices can be clustered based on the following process to determine the behavior monitoring sub-areas:
[0040] S11, randomly select K target human body sensing devices as K initial clustering centers, and execute S12;
[0041] S12, for each target human body sensing device, based on the location information of the target human body sensing device and the location information corresponding to each cluster center, calculate the distance between the target human body sensing device and each cluster center, take the cluster center with a distance less than a preset distance threshold as the candidate cluster center, calculate the personnel activity parameter difference between the personnel activity parameter of the target human body sensing device and the personnel activity parameter corresponding to each candidate cluster center, assign the target human body sensing device to the candidate cluster center with the smallest personnel activity parameter difference, and execute S13;
[0042] S13, determine whether the number of clustering times reaches the maximum number of clustering times, if not, execute S14, if yes, complete clustering, execute S17;
[0043] S14, for each cluster, calculating the number of target human body sensing devices included in the cluster, canceling the cluster center of the cluster whose number of target human body sensing devices included is less than a preset number threshold, and executing S15;
[0044] S15, for each cluster, calculating the personnel activity discrete parameter corresponding to the cluster, determining the target human body sensing device with the largest personnel activity parameter difference with the cluster center of the cluster from the clusters whose personnel activity discrete parameter is greater than the preset personnel activity discrete parameter threshold as the newly added cluster center, and executing S16;
[0045] S16, determine whether the cluster center before updating is consistent with the cluster center after updating, if not, execute S12, if yes, complete clustering, execute S17;
[0046] S17: For each cluster, determine a behavior monitoring sub-area corresponding to the cluster based on the sensing area of the target human body sensing device included in the cluster.
[0047] For example, the discrete parameter of personnel activity can be calculated based on the following formula:
[0048]
[0049] in, is the discrete parameter of the personnel activity of the jth cluster, is the personnel activity parameter of the kth target human body sensing device included in the jth cluster, is the personnel activity parameter corresponding to the cluster center of the jth cluster, is the total number of target human body sensing devices included in the jth cluster.
[0050] The image acquisition module may include multiple image acquisition devices.
[0051] Wherein, the positions of the plurality of image acquisition devices are determined based on the behavior monitoring sub-area and the intrusion detection sub-area.
[0052] Specifically, a corresponding image acquisition device may be provided for each behavior monitoring sub-area, and the behavior monitoring sub-area is located within the image acquisition range of the corresponding image acquisition device. The image acquisition angle of the image acquisition device corresponding to the behavior monitoring sub-area is fixed.
[0053] One or more intrusion detection sub-areas may correspond to an image acquisition device, and the image acquisition angle of the image acquisition device corresponding to the intrusion detection sub-area is adjustable.
[0054] The environmental perception module can be used to obtain environmental information of the processing area and storage area of the canteen.
[0055] In some embodiments, the environment perception module obtains environment information of the processing area and storage area of the cafeteria, including:
[0056] At least one set of light sensing equipment shall be installed in the processing area and storage area of the canteen;
[0057] At least one set of sound sensing equipment shall be installed in the processing and storage areas of the canteen;
[0058] At least one set of vibration sensing equipment is set up in the processing area and storage area of the canteen.
[0059] The environmental information of the processing area and the storage area of the cafeteria may include the environmental light, environmental sound and vibration information of the processing area and the environmental light, environmental sound and vibration information of the storage area.
[0060] The locations where intrusions (for example, rat intrusions) are likely to occur can be manually determined, and sound sensing devices and vibration sensing devices can be set up.
[0061] The image acquisition module can also be used to control at least one of the multiple image acquisition devices to acquire video based on environmental information of the processing area and storage area of the cafeteria.
[0062] In some embodiments, the image acquisition module controls at least one of the plurality of image acquisition devices to acquire a video based on the environmental information of the processing area and the storage area of the cafeteria, including:
[0063] During the processing time period, the image acquisition device corresponding to the behavior monitoring sub-area is controlled to acquire video;
[0064] During a non-processing time period, an intrusion risk parameter is determined based on the ambient light data collected by at least one group of light sensing devices in a first monitoring period and the ambient sound data collected by at least one group of sound sensing devices in the first monitoring period; when the intrusion risk parameter is greater than a preset intrusion risk parameter threshold, an intrusion occurrence determination parameter is calculated based on the ambient sound data collected by at least one group of sound sensing devices in a second monitoring period and the ambient vibration data collected by at least one group of vibration sensing devices in the second monitoring period; when the intrusion occurrence determination parameter is greater than the preset intrusion occurrence determination parameter threshold, a target image acquisition device and an image acquisition angle corresponding to each target image acquisition device are determined from a plurality of image acquisition devices, and the target image acquisition device is controlled to acquire a video based on the image acquisition angle corresponding to the target image acquisition device.
[0065] Specifically, during the processing time period, the image acquisition device corresponding to each behavior monitoring sub-area is controlled to acquire video.
[0066] Taking rat intrusion detection as an example, rat intrusion is more likely to occur when the ambient light is dim and quiet.
[0067] For each group of light sensing devices, the light fluctuation parameters corresponding to the light sensing devices can be calculated based on the ambient light data collected by the light sensing devices in the first monitoring period, and then the periodic light fluctuation parameters corresponding to the first monitoring period can be calculated based on the light fluctuation parameters corresponding to each light sensing device. For each group of sound sensing devices, the sound fluctuation parameters corresponding to the sound sensing devices can be calculated based on the ambient sound data collected by the sound sensing devices in the first monitoring period, and then the periodic sound fluctuation parameters corresponding to the first monitoring period can be calculated based on the sound fluctuation parameters corresponding to each sound sensing device.
[0068] For example, the periodic light fluctuation parameter and the periodic sound fluctuation parameter corresponding to the first monitoring period may be calculated based on the following formula:
[0069]
[0070] in, is the periodic light fluctuation parameter corresponding to the first monitoring period, is the light fluctuation parameter corresponding to the e-th light sensing device, is the total number of light sensing devices, is the ambient light intensity detected by the e-th light sensing device at the t-th time point in the current first monitoring cycle, is the length of the first monitoring cycle, is the periodic sound fluctuation parameter corresponding to the first monitoring period, is the sound fluctuation parameter corresponding to the f-th sound sensing device, is the total number of sound sensing devices, It is the ambient sound intensity detected by the f-th sound sensing device at the t-th time point in the current first monitoring cycle.
[0071] When the periodic light fluctuation parameter corresponding to the first monitoring period is less than a preset periodic light fluctuation parameter threshold and the periodic sound fluctuation parameter is less than a preset periodic sound fluctuation parameter threshold, the intrusion risk parameter is determined based on the ambient light data collected by at least one group of light sensing devices in the first monitoring period and the ambient sound data collected by at least one group of sound sensing devices in the first monitoring period.
[0072] For each group of light sensing devices, the mean light intensity corresponding to the light sensing devices can be calculated based on the ambient light data collected by the light sensing devices in the first monitoring period, and the mean light intensity corresponding to each group of light sensing devices can be averaged to determine the mean periodic light intensity corresponding to the first monitoring period. For each group of sound sensing devices, the mean sound intensity corresponding to the sound sensing devices can be calculated based on the ambient light data collected by the sound sensing devices in the first monitoring period, and the mean sound intensity corresponding to each group of sound sensing devices can be averaged to determine the mean periodic sound intensity corresponding to the first monitoring period. Based on the mean periodic light intensity and the mean periodic sound intensity corresponding to the first monitoring period, the intrusion risk parameter is calculated.
[0073] For example, the intrusion risk parameter can be calculated based on the following formula:
[0074]
[0075] in, is the intrusion risk parameter, is the mean periodic light intensity corresponding to the first monitoring period, is the mean value of the periodic sound intensity corresponding to the first monitoring period, and All are preset weights. and are greater than 0, and , and are all preset parameters, and and Both are greater than 0.
[0076] Figure 2 is a flow chart of calculating intrusion occurrence determination parameters according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, the image acquisition module calculates the intrusion occurrence determination parameter based on the environmental sound data collected by at least one group of sound sensing devices in the second monitoring period and the environmental vibration data collected by at least one group of vibration sensing devices in the second monitoring period, including:
[0077] Determining a target sound sensing device based on the environmental sound data collected by at least one group of sound sensing devices in the second monitoring period;
[0078] determining a target vibration sensing device based on the environmental vibration data collected by at least one group of vibration sensing devices in the second monitoring period;
[0079] For each target sound sensing device, performing intrinsic mode decomposition on the ambient sound data collected by the target sound sensing device in the second monitoring period to determine the sound intrinsic mode function and sound residual corresponding to the target sound sensing device;
[0080] For each target vibration sensing device, performing empirical mode decomposition on the environmental vibration data collected by the target vibration sensing device in the second monitoring period to determine the vibration intrinsic mode function and vibration residual corresponding to the target vibration sensing device;
[0081] For each sound intrinsic mode function corresponding to the target sound sensing device, extract the time domain features and frequency domain features corresponding to the sound intrinsic mode function;
[0082] Extracting time domain features and frequency domain features corresponding to the sound residual;
[0083] For each vibration intrinsic mode function corresponding to the target vibration sensing device, extracting the time domain features and frequency domain features corresponding to the vibration intrinsic mode function;
[0084] Extract the time domain features and frequency domain features corresponding to the vibration residual;
[0085] The intrusion occurrence determination parameters are calculated through a multimodal determination model based on the time domain features and frequency domain features corresponding to each sound intrinsic mode function, the time domain features and frequency domain features corresponding to the sound residual, the time domain features and frequency domain features corresponding to each vibration intrinsic mode function, and the time domain features and frequency domain features corresponding to the vibration residual. The multimodal determination model may be a long short-term memory network (LSTM).
[0086] Specifically, for each group of sound sensing devices, the sound intensity mean and sound fluctuation parameter corresponding to the sound sensing device can be calculated based on the environmental sound data collected by the sound sensing device in the second monitoring period, and the sound sensing devices whose corresponding sound intensity mean is greater than a preset sound intensity mean threshold and whose sound fluctuation parameter is greater than a preset sound fluctuation parameter threshold are selected as target sound sensing devices.
[0087] For each group of vibration sensing devices, the vibration intensity mean and vibration fluctuation parameter corresponding to the vibration sensing devices can be calculated based on the environmental vibration data collected by the vibration sensing devices in the second monitoring period, and the vibration sensing devices whose corresponding vibration intensity mean is greater than a preset vibration intensity mean threshold and whose vibration fluctuation parameter is greater than a preset vibration fluctuation parameter threshold are selected as target vibration sensing devices.
[0088] In some embodiments, the image acquisition module determines a target image acquisition device and an image acquisition angle corresponding to each target image acquisition device from a plurality of image acquisition devices, including:
[0089] Predicting the movement trajectory of the intruder based on the environmental sound data collected by the target sound sensing device in the second monitoring period and the environmental vibration data collected by the target vibration sensing device in the second monitoring period by using the trajectory prediction model;
[0090] Based on the movement trajectory of the intruder, a target image acquisition device and an image acquisition angle corresponding to each target image acquisition device are determined from a plurality of image acquisition devices.
[0091] Specifically, the trajectory prediction model can predict the movement trajectory of the intruder based on the time domain features and frequency domain features corresponding to each sound intrinsic mode function, the time domain features and frequency domain features corresponding to the sound residual, the time domain features and frequency domain features corresponding to each vibration intrinsic mode function, the time domain features and frequency domain features corresponding to the vibration residual, and the location information of each sound sensing device and the location of each target vibration sensing device. The trajectory prediction model can be a convolutional neural network (CNN) model.
[0092] The predicted movement trajectory of the intruder may include predicted location information of the intruder at multiple time points in the future.
[0093] The target image acquisition device may have an image acquisition range that includes the position of the intruder at at least one future time point. The image acquisition angle may be an angle at which the position of the intruder at at least one future time point is within the image acquisition range of the target image acquisition device.
[0094] The target image acquisition device and the image acquisition angle corresponding to each target image acquisition device can be determined through a decision optimization model based on the movement trajectory of the intruder and the image acquisition range of each image acquisition device at different image acquisition angles.
[0095] The AI recognition module can be used to monitor violations or detect intrusions based on videos obtained by the image acquisition device.
[0096] In some embodiments, the AI recognition module performs illegal behavior monitoring or intrusion detection based on the video acquired by the image acquisition device, including:
[0097] Establish and train a behavior recognition model, and use the trained behavior recognition model to identify illegal behaviors based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period, wherein the behavior recognition model can be a YOLOv5 model;
[0098] An intrusion detection model is established and trained, and intrusion detection is performed based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period through the trained behavior recognition model, wherein the intrusion detection model can be a YOLOv5 model.
[0099] Specifically, violations may include at least not wearing a mask, a hat, gloves, playing with mobile phones, etc.
[0100] The video storage module can be used to encrypt the video collected by the image collection device and store the encrypted video.
[0101] Figure 3 is a schematic diagram of a process for encrypting and storing a video captured by an image capture device according to some embodiments of this specification, such as Figure 3 As shown, in some embodiments, the video storage module encrypts the video collected by the image collection device and stores the encrypted video, including:
[0102] Determine the overlap of monitoring areas between any two image acquisition devices;
[0103] For each image acquisition device, performing image segmentation on the video acquired by the image acquisition device in the current acquisition cycle to generate corresponding image slices;
[0104] Based on the overlap of the monitoring areas between any two image acquisition devices, image slices corresponding to the videos acquired by multiple image acquisition devices in the current acquisition cycle are spliced to generate multiple spliced videos and a splicing path corresponding to each spliced video;
[0105] After encrypting each spliced video and splicing path, storing each encrypted spliced video and splicing path, and obtaining a storage path of each encrypted spliced video and splicing path;
[0106] The query table is updated, wherein the query table is used to record the mapping relationship between the time tag of the current acquisition cycle and the storage path of each encrypted spliced video and the splicing path.
[0107] Specifically, for each image acquisition device, a candidate stitching image acquisition device corresponding to the image acquisition device can be determined based on the monitoring area overlap between any two image acquisition devices, wherein the candidate stitching image acquisition device can be an image acquisition device whose monitoring area overlap with the image acquisition device is less than a preset monitoring area overlap threshold.
[0108] For each image acquisition device, image slices corresponding to the video acquired by the image acquisition device in the current acquisition cycle and image slices corresponding to the video acquired by at least one candidate stitching image acquisition device of the image acquisition device in the current acquisition cycle can be spliced to generate multiple spliced videos and a stitching path corresponding to each spliced video.
[0109] For example, the image slice A corresponding to the video acquired by the image acquisition device A in the current acquisition cycle may be 1 , image slice A 5 and image slice A 6 The image slice B corresponding to the video captured by the candidate splicing image acquisition device of the image acquisition device A, that is, the image acquisition device B, in the current acquisition cycle 1 , image slice B 4 , image slice B 6 Cross stitching, the stitching path is image slice A 1 - Image Slice B 1 - Image Slice A 5 - Image Slice B 4 - Image Slice A 6 - Image Slice B 6 .
[0110] In some embodiments, the video storage module performs image segmentation on the video collected by the image collection device in the current collection cycle, including:
[0111] Determine the image slice size corresponding to the current acquisition period based on the violation monitoring result or intrusion detection result corresponding to the video acquired by each image acquisition device in the current acquisition period;
[0112] Based on the image slice size corresponding to the current acquisition period, the video acquired by the image acquisition device in the current acquisition period is segmented.
[0113] Specifically, during the processing time period, the image slice size can be calculated based on the following formula:
[0114]
[0115] in, is the image slice size, To obtain the maximum value, The probability of a violation occurring in the oth behavior monitoring sub-area, It can be determined by the behavior recognition model, O is the total number of behavior monitoring sub-areas, is the preset parameter, and greater than 0, The preset image slice size.
[0116] During the non-processing period, the image slice size can be calculated based on the following formula:
[0117]
[0118] in, is the possibility of intrusion in the video collected by the h-th target image acquisition device, can be determined by the intrusion detection model, is the total number of target image acquisition devices, is the preset parameter, and Greater than 0.
[0119] It is understandable that the greater the possibility of a violation or intrusion corresponding to the video, the greater the possibility of the video being retrieved for viewing. Increasing the image slice size corresponding to the current acquisition cycle can improve the efficiency of subsequent video retrieval.
[0120] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A school cafeteria management system based on AI empowerment, It is characterized in that include: A regional analysis module, used to obtain historical personnel activity information in the processing area of the cafeteria, determine the behavior monitoring sub-area based on the historical personnel activity information in the processing area of the cafeteria, and also used to obtain the item placement information in the processing area and storage area of the cafeteria, and determine the intrusion detection sub-area based on the item placement information in the processing area and storage area of the cafeteria; An image acquisition module, comprising a plurality of image acquisition devices, wherein positions of the plurality of image acquisition devices are determined based on the behavior monitoring sub-area and the intrusion detection sub-area; An environmental perception module, used to obtain environmental information of the processing area and storage area of the canteen; The image acquisition module is also used to control at least one of the plurality of image acquisition devices to acquire a video based on environmental information of the processing area and the storage area of the cafeteria; An AI recognition module, used to monitor illegal behavior or detect intrusion based on the video acquired by the image acquisition device; A video storage module, used for encrypting the video collected by the image acquisition device and storing the encrypted video; The regional analysis module obtains historical personnel activity information of the processing area of the cafeteria, including: A plurality of groups of human body sensing devices are arranged in the processing area of the canteen; Acquiring the historical personnel activity information in multiple test time periods through the multiple groups of human body sensing devices; The regional analysis module determines the behavior monitoring sub-areas based on the historical personnel activity information of the canteen's processing area, including: For each group of human body sensing devices, based on the historical human activity information obtained by the human body sensing devices in multiple test time periods, determine the human activity parameters corresponding to the human body sensing devices; Determine a target human body sensing device from multiple groups of human body sensing devices based on the personnel activity parameters corresponding to each group of human body sensing devices; Based on the location information and personnel activity parameters of each group of target human body sensing devices, the target human body sensing devices are clustered to determine the behavior monitoring sub-areas; The personnel activity parameters corresponding to the human body sensing device are calculated based on the following formula: in, is the personnel activity parameter corresponding to the i-th human body sensing device, is the length of time that the i-th human body sensing device detects the human body in the n-th test period, is the length of the nth test period, is the total number of test time periods; A human body sensing device whose human activity parameter is greater than a preset human activity parameter threshold is used as a target human body sensing device; Cluster the target human sensing devices based on the following process to determine the behavior monitoring sub-areas: S11, randomly select K target human body sensing devices as K initial clustering centers, and execute S12; S12, for each target human body sensing device, based on the location information of the target human body sensing device and the location information corresponding to each cluster center, calculate the distance between the target human body sensing device and each cluster center, take the cluster center with a distance less than a preset distance threshold as the candidate cluster center, calculate the personnel activity parameter difference between the personnel activity parameter of the target human body sensing device and the personnel activity parameter corresponding to each candidate cluster center, assign the target human body sensing device to the candidate cluster center with the smallest personnel activity parameter difference, and execute S13; S13, determine whether the number of clustering times reaches the maximum number of clustering times, if not, execute S14, if yes, complete clustering, execute S17; S14, for each cluster, calculating the number of target human body sensing devices included in the cluster, canceling the cluster center of the cluster whose number of target human body sensing devices included is less than a preset number threshold, and executing S15; S15, for each cluster, calculating the personnel activity discrete parameter corresponding to the cluster, determining the target human body sensing device with the largest personnel activity parameter difference with the cluster center of the cluster from the clusters whose personnel activity discrete parameter is greater than the preset personnel activity discrete parameter threshold as the newly added cluster center, and executing S16; S16, determine whether the cluster center before updating is consistent with the cluster center after updating, if not, execute S12, if yes, complete clustering, execute S17; S17, for each cluster, determining a behavior monitoring sub-area corresponding to the cluster based on a sensing area of a target human body sensing device included in the cluster; The environment perception module obtains the environment information of the processing area and storage area of the canteen, including: In the processing area and storage area of the canteen, at least one set of light sensing equipment is arranged; In the processing area and storage area of the canteen, at least one set of sound sensing equipment is arranged; At least one group of vibration sensing devices is arranged in the processing area and the storage area of the canteen; the image acquisition module controls at least one of the plurality of image acquisition devices to acquire a video based on the environmental information of the processing area and the storage area of the canteen, including: During the processing time period, controlling the image acquisition device corresponding to the behavior monitoring sub-area to acquire video; During a non-processing time period, an intrusion risk parameter is determined based on the ambient light data collected by the at least one group of light sensing devices in a first monitoring period and the ambient sound data collected by the at least one group of sound sensing devices in the first monitoring period; when the intrusion risk parameter is greater than a preset intrusion risk parameter threshold, an intrusion occurrence determination parameter is calculated based on the ambient sound data collected by the at least one group of sound sensing devices in a second monitoring period and the ambient vibration data collected by the at least one group of vibration sensing devices in the second monitoring period; when the intrusion occurrence determination parameter is greater than the preset intrusion occurrence determination parameter threshold, a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices are determined from the multiple image acquisition devices, and the target image acquisition device is controlled to acquire a video based on the image acquisition angle corresponding to the target image acquisition device.
2. According to the AI-enabled school canteen management system of claim 1, It is characterized in that The image acquisition module calculates the intrusion occurrence determination parameter based on the environmental sound data collected by at least one group of sound sensing devices in the second monitoring period and the environmental vibration data collected by at least one group of vibration sensing devices in the second monitoring period, including: Determining a target sound sensing device based on the environmental sound data collected by the at least one group of sound sensing devices in the second monitoring period; Determining a target vibration sensing device based on the environmental vibration data collected by the at least one group of vibration sensing devices in the second monitoring period; For each of the target sound sensing devices, performing intrinsic mode decomposition on the ambient sound data collected by the target sound sensing device in the second monitoring period to determine the sound intrinsic mode function and sound residual corresponding to the target sound sensing device; For each of the target vibration sensing devices, performing empirical mode decomposition on the environmental vibration data collected by the target vibration sensing device in the second monitoring period to determine the vibration intrinsic mode function and vibration residual corresponding to the target vibration sensing device; For each sound intrinsic mode function corresponding to the target sound sensing device, extracting time domain features and frequency domain features corresponding to the sound intrinsic mode function; Extracting time domain features and frequency domain features corresponding to the sound residual; For each vibration intrinsic mode function corresponding to the target vibration sensing device, extracting time domain features and frequency domain features corresponding to the vibration intrinsic mode function; Extracting time domain features and frequency domain features corresponding to the vibration residual; The intrusion occurrence judgment parameters are calculated through a multimodal judgment model based on the time domain characteristics and frequency domain characteristics corresponding to each sound intrinsic mode function, the time domain characteristics and frequency domain characteristics corresponding to the sound residual, the time domain characteristics and frequency domain characteristics corresponding to each of the vibration intrinsic mode functions, and the time domain characteristics and frequency domain characteristics corresponding to the vibration residual.
3. According to the AI-enabled school canteen management system of claim 2, It is characterized in that The image acquisition module determines a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices from the multiple image acquisition devices, including: Predicting the movement trajectory of the intruder based on the environmental sound data collected by the target sound sensing device in the second monitoring period and the environmental vibration data collected by the target vibration sensing device in the second monitoring period by using a trajectory prediction model; Based on the movement trajectory of the intruder, a target image acquisition device and an image acquisition angle corresponding to each of the target image acquisition devices are determined from the multiple image acquisition devices.
4. A school canteen management system based on AI empowerment according to any one of claims 1 to 3, It is characterized in that The AI recognition module performs illegal behavior monitoring or intrusion detection based on the video acquired by the image acquisition device, including: Establishing and training a behavior recognition model, and using the trained behavior recognition model to identify illegal behaviors based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period; An intrusion detection model is established and trained, and intrusion detection is performed based on the video acquired by the image acquisition device corresponding to the behavior monitoring sub-area during the processing time period through the trained behavior recognition model.
5. A school canteen management system based on AI empowerment according to any one of claims 1 to 3, It is characterized in that The video storage module encrypts the video collected by the image collection device and stores the encrypted video, including: Determining the degree of overlap of monitoring areas between any two of the image acquisition devices; For each of the image acquisition devices, performing image segmentation on the video acquired by the image acquisition device in the current acquisition cycle to generate corresponding image slices; Based on the overlap of the monitoring areas between any two of the image acquisition devices, image slices corresponding to the videos acquired by the multiple image acquisition devices in the current acquisition cycle are stitched together to generate multiple stitched videos and a stitching path corresponding to each of the stitched videos; After encrypting each of the spliced videos and spliced paths, storing the encrypted copies of the spliced videos and spliced paths, and obtaining storage paths of the encrypted copies of the spliced videos and spliced paths; Update the query table, wherein the query table is used to record the mapping relationship between the time tag of the current acquisition cycle and the storage path of each encrypted copy of the spliced video and the splicing path.
6. According to the AI-enabled school canteen management system of claim 5, It is characterized in that The video storage module performs image segmentation on the video collected by the image collection device in the current collection cycle, including: Determine the image slice size corresponding to the current acquisition period based on the violation monitoring result or intrusion detection result corresponding to the video acquired by each image acquisition device in the current acquisition period; Based on the image slice size corresponding to the current acquisition period, the video acquired by the image acquisition device in the current acquisition period is segmented.
