Garbage can cleaning state analysis method and device based on vibration sensor and medium

By setting up vibration sensors in the trash can and analyzing the vibration data of the trash can, the problem of difficult monitoring of trash can cleaning on time is solved, effective monitoring and management of trash can cleaning status is achieved, and the cleanliness of the city appearance is improved.

CN119555409APending Publication Date: 2025-03-04CHENGDU ZHIYUANHUI CULTURE & MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411623473.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively monitor and ensure the cleaning of trash cans on time, resulting in the trash cans being too dirty and messy, affecting the appearance of the city.

Method used

Vibration sensors are set up on the inside or bottom of the trash can, and the vibration sensors are used to detect the vibration data of the trash can, and the vibration peak value and continuous vibration time are analyzed to determine whether the trash can is in a clean state.

Benefits of technology

Effectively determine whether the trash can is in a clean state, ensure that the trash can is cleaned on time, avoid the trash can be too dirty and messy, and improve the cleanliness of the city appearance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119555409A_ABST
    Figure CN119555409A_ABST
Patent Text Reader

Abstract

The invention provides a garbage can cleaning state analysis method and device based on a vibration sensor and a medium, and relates to the technical field of garbage can monitoring. The garbage can cleaning state analysis method is mainly applied to the interaction scene of a moving vehicle and a garbage can, and the vibration sensor is arranged on the inner side or the bottom layer of the garbage can; to-be-analyzed garbage can vibration data are obtained through detection of a vibration sensor, uploaded in real time through the interaction process of the moving vehicle and the garbage can, and sequentially analyzed according to the vibration peak value and the vibration continuous time; whether the current garbage can is in the cleaning state can be effectively judged, so that whether the current garbage can is cleaned on time is known, and the garbage can is prevented from being too dirty and mess.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of garbage can monitoring, and specifically designs a method and device for analyzing the cleaning state of a garbage can based on a vibration sensor, and a medium. Background Art

[0002] As a public infrastructure that can be seen everywhere in the city, trash cans play an important role in public health. If trash cans are not cleaned for a long time or are thrown around randomly, they will be too dirty and messy, which will affect the city appearance. To address this problem, cleaners are usually used to clean the trash cans. Each trash can is assigned a corresponding cleaner, who cleans the trash can at preset time intervals according to the capacity of the trash can. However, it is very easy for cleaners to fail to clean the trash cans on time, which makes the trash cans dirty and messy, affecting the city appearance. Summary of the invention

[0003] The purpose of the present invention is to provide a method, device and medium for analyzing the cleaning status of a trash can based on a vibration sensor. The method for analyzing the cleaning status of the trash can mainly sets a vibration sensor on the inside or bottom of the trash can, and obtains vibration data of the trash can to be analyzed through detection by the vibration sensor. The vibration data of the trash can to be analyzed are analyzed in sequence according to the vibration peak value and the vibration continuous time, so as to effectively determine whether the current trash can is in a cleaning state, thereby knowing whether the current trash can is cleaned on time to avoid the trash can being too dirty.

[0004] In order to solve the above technical problems, the present invention adopts the following solutions: A method for analyzing the cleaning status of a trash can based on a vibration sensor, the method comprising the following steps: S1. Data collection: obtaining the vibration data of the trash can to be analyzed in real time, wherein the vibration data of the trash can to be analyzed includes the pre-processed vibration signal of the trash can within a preset time period, and at least one vibration peak value of the vibration signal of the trash can in the time frame exceeds a preset minimum value; S2, performing the first trash can state analysis based on the vibration peak value: obtaining the time frame where the maximum vibration peak value in the trash can vibration signal is located, locating the vibration peak value on the continuous time frame according to the time frame where the maximum vibration peak value is located, and connecting the vertex where the maximum vibration peak value is located with the vertex where the vibration peak value is located into a straight line, and determining whether the slope of the straight line is greater than a preset slope, if so, proceeding to step S3; S3. Perform a second analysis of the trash can state based on the continuous time of vibration: segment the trash can vibration signal according to the preset minimum value, and obtain the trash can vibration segment signal whose vibration peak values ​​on the time frame are greater than the preset minimum value, map the vertices and valley points of the vibration segment signal on the time frame in the coordinate system, and establish a rectangular frame containing all the vertices and valley points, and determine whether the ratio between the width and length of the rectangular frame is less than 1. If so, record the trash can state corresponding to the trash can vibration data to be analyzed as the cleaning state.

[0005] Furthermore, a vibration sensor for detecting the vibration of the trash can is arranged on the inner side or bottom layer of the trash can, and an edge processing module is arranged on the rear column of the trash can. The edge processing module is electrically connected to the vibration sensor for receiving the vibration signal of the trash can.

[0006] Furthermore, the edge processing module is also used to detect the vibration signal of the trash can, and detect whether the peak value of the current trash can vibration signal exceeds the preset minimum value. If so, it is expanded with the current time frame, and the trash can vibration signal within a preset time period is packaged as the trash can vibration data to be analyzed and stored.

[0007] Furthermore, the vibration data of the trash can to be analyzed can be obtained by uploading via a mobile vehicle. The mobile vehicle is provided with a data acquisition module, and the data acquisition module is connected to the edge processing module via Bluetooth for collecting and uploading the vibration data of the trash can to be analyzed.

[0008] Further, in S2, the vibration peak on the continuous time frame is located according to the time frame where the maximum vibration peak is located, and the vertex where the maximum vibration peak is located and the vertex where the vibration peak is located are connected into a straight line. The specific process is: The vibration peak value on the next time frame or the previous time frame is located according to the time frame where the maximum vibration peak value is located, and the vertex where the maximum vibration peak value is located and the vertex where the vibration peak value on the next time frame or the previous time frame are located are connected into a straight line.

[0009] Furthermore, in S3, the process of segmenting the vibration signal of the trash can according to the preset minimum value is specifically as follows: starting from the time frame where the maximum vibration peak is located, the vibration peaks on the time frames consecutive to it are judged in turn to determine whether the vibration peak is less than the preset minimum value; when it is determined that the current vibration peak is less than the preset minimum value, the previous time frame is used as the cutoff point, and the vibration signal of the trash can is segmented according to the cutoff point.

[0010] Furthermore, in S3, the process of establishing a rectangular frame containing all vertices and valley points is as follows: Traverse the coordinate system to obtain the four edge points closest to the top, bottom, left, and right respectively. The edge points are vertices or valley points. Draw two parallel horizontal lines for the two edge points closest to the top and bottom, and then draw two parallel vertical lines for the two edge points closest to the left and right. Connect the horizontal lines and the vertical lines to form a rectangular frame.

[0011] Furthermore, the mobile vehicle is a bus, and the trash can is set at a bus stop. When the bus stops at the bus stop, the data acquisition module is connected to the edge processing module via Bluetooth, and the edge processing module uploads the currently stored vibration data of the trash can to be analyzed to the data acquisition module. After the upload is completed, the currently stored vibration data of the trash can to be analyzed is deleted.

[0012] A trash can cleaning state analysis device based on a vibration sensor, comprising: a memory for non-transitory storage of computer readable instructions; The processor is used to execute the computer-readable instructions, and the computer-readable instructions, when executed by the processor, implement the trash can cleaning status analysis method based on a vibration sensor.

[0013] A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the method for analyzing the cleaning status of a trash can based on a vibration sensor is implemented.

[0014] Beneficial effects of the present invention: The present invention provides a method, device and medium for analyzing the cleaning status of a trash can based on a vibration sensor. The method for analyzing the cleaning status of the trash can mainly arranges a vibration sensor on the inside or bottom of the trash can, and obtains vibration data of the trash can to be analyzed through detection by the vibration sensor. The vibration data of the trash can to be analyzed are analyzed in sequence according to the vibration peak value and the vibration continuous time, and it can be effectively determined whether the current trash can is in a cleaning state, thereby knowing whether the current trash can is cleaned on time to prevent the trash can from being too dirty.

[0015] Moreover, the vibration data of the trash can to be analyzed is obtained by uploading via a mobile vehicle. A data acquisition module connected to the trash can via Bluetooth is arranged on the mobile vehicle, so that the mobile vehicle can be connected to the trash can during daily driving, thereby uploading the vibration data of the trash can to be analyzed to the mobile vehicle, which is more convenient. The mobile vehicle can be a bus, because city buses pass through most areas of the city, and can effectively collect the vibration data of the trash can to be analyzed of the trash cans in the city. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1Schematic diagram of the process of analyzing the cleaning status of a garbage can in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of a bus stopping at a bus stop in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the interaction between the trash can, the bus and the remote data center in Example 1 of the present invention; Figure 4 This is a schematic diagram of a vibration signal of a trash can caused by a single vibration in Example 1 of the present invention; Figure 5 A schematic diagram of a vibration signal of a trash can caused by continuous vibration in Example 1 of the present invention; Figure 6 In Example 1 of the present invention, Figure 4 A schematic diagram of a straight line formed by performing the first trash can state analysis on the trash can vibration signal; Figure 7 In Example 1 of the present invention, Figure 5 A schematic diagram of a straight line formed by performing the first trash can state analysis on the trash can vibration signal; Figure 8 In Example 1 of the present invention, Figure 5 Schematic diagram of the rectangular frame formed by the second trash can state analysis based on the trash can vibration signal. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] The relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

[0019] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0020] Additionally, descriptions of well-known structures, functions, and configurations may be omitted for clarity and conciseness.One of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.

[0021] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0022] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0023] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments: Example 1 Currently, cleaners are usually employed to clean trash cans. Each trash can is assigned a corresponding cleaner, who cleans the trash can at preset time intervals based on the capacity of the trash can. The time required to fill the current trash can can be estimated based on the historical records of the trash can. Therefore, cleaners can be assigned based on the time required to fill different trash cans to avoid clutter in the trash cans.

[0024] However, it is very easy for cleaners to fail to clean the trash cans on time or be lazy and fail to clean them, which means that the cleaners do not clean the trash cans according to the basic conditions, resulting in the trash cans being dirty and messy, thus affecting the appearance of the city. At present, the existing technology does not monitor whether the cleaners clean the trash cans according to the basic conditions, so it is impossible to determine the current state of the trash cans, which easily causes the trash cans to be messy.

[0025] In view of the above problems, the present invention provides a trash can cleaning status analysis method based on a vibration sensor. The trash can cleaning status analysis method mainly sets a vibration sensor on the inside or bottom of the trash can, and obtains the vibration data of the trash can to be analyzed through detection by the vibration sensor. The vibration data of the trash can to be analyzed are analyzed in sequence according to the vibration peak value and the vibration continuous time. It can be effectively determined whether the current trash can is in a cleaning state, thereby knowing whether the current trash can is cleaned on time to prevent the trash can from being too dirty.

[0026] In this embodiment, if Figure 1 As shown, the garbage bin cleaning status analysis method includes the following steps: S1. Data collection: obtaining the vibration data of the trash can to be analyzed in real time, wherein the vibration data of the trash can to be analyzed includes the pre-processed vibration signal of the trash can within a preset time period, and at least one vibration peak value of the vibration signal of the trash can in the time frame exceeds a preset minimum value; S2, performing the first trash can state analysis based on the vibration peak value: obtaining the time frame where the maximum vibration peak value in the trash can vibration signal is located, locating the vibration peak value on the continuous time frame according to the time frame where the maximum vibration peak value is located, and connecting the vertex where the maximum vibration peak value is located with the vertex where the vibration peak value is located into a straight line, and determining whether the slope of the straight line is greater than a preset slope, if so, proceeding to step S3; S3. Perform a second analysis of the trash can state based on the continuous time of vibration: segment the trash can vibration signal according to the preset minimum value, and obtain the trash can vibration segment signal whose vibration peak values ​​on the time frame are greater than the preset minimum value, map the vertices and valley points of the vibration segment signal on the time frame in the coordinate system, and establish a rectangular frame containing all the vertices and valley points, and determine whether the ratio between the width and length of the rectangular frame is less than 1. If so, record the trash can state corresponding to the trash can vibration data to be analyzed as the cleaning state.

[0027] Specifically, in this embodiment, the trash can cleaning status analysis method is mainly applied to the interactive scene between a mobile vehicle and a trash can. The vibration data of the trash can to be analyzed is obtained through the interactive process between the mobile vehicle and the trash can. The mobile vehicle is used as a transfer station, and the vibration data of the trash can to be analyzed is uploaded by the mobile vehicle. The vibration data of the trash can to be analyzed is obtained by uploading the mobile vehicle. The mobile vehicle can collect the vibration data of the trash can to be analyzed during its own driving process, so that it is more convenient to upload the vibration data of the trash can to be analyzed. The mobile vehicle can be a bus, a taxi, etc., which can pass through most areas of the city to meet the needs of data collection and uploading of trash cans in the city.

[0028] The best situation is that the mobile vehicle is a bus. The bus can not only pass through most areas of the city and effectively collect the vibration data of the garbage bins to be analyzed in the city; the bus also has a fixed route and departure time, and time matching is performed based on the departure time of the bus and the fixed time when the cleaner cleans the garbage bin. Therefore, it is possible to monitor whether the cleaner cleans the garbage bin at the fixed time.

[0029] like Figure 2 As shown, when the mobile vehicle is a bus, the trash can can be a trash can set up at a bus stop. Since the bus stop is a place where people gather, a large amount of trash is generated, which makes the trash can more easily cluttered. In addition, the bus will stop at the bus stop during the driving process. During the stop, the bus can well collect the trash can vibration data to be analyzed from the trash can at the bus stop, thereby determining the current status of the trash can through the trash can cleaning status analysis method and recording it.

[0030] In order to implement the above-mentioned garbage can cleaning status analysis method, firstly, a vibration sensor and an edge processing module are provided on the garbage can, and the edge processing module is electrically connected to the vibration sensor; and a data acquisition module is provided on the mobile vehicle, and the data acquisition module is connected to the edge processing module via Bluetooth. The vibration generated by the garbage can is detected by the vibration sensor, and the vibration signal is uploaded to the edge processing module in real time. After processing, the edge processing module obtains the vibration data of the current garbage can to be analyzed, and then uploads the vibration data of the current garbage can to be analyzed to the data acquisition module via Bluetooth connection, so that the mobile vehicle can upload the vibration data of the current garbage can to be analyzed to perform the garbage can cleaning status analysis method.

[0031] Among them, the vibration sensor can be set on the inside or bottom of the trash can to facilitate the collection of vibration signals of the trash can, and the edge processing module can be set on the column behind the trash can, which does not occupy the memory of the trash can and is convenient for interaction with mobile vehicles.

[0032] Based on the above principles, Figure 3 As shown, the trash can is provided with a vibration sensor, an edge processing module, and a short-range transmission module; the bus is provided with a data acquisition module and a wireless reporting module; the short-range transmission module is a low-power Bluetooth, and the data acquisition module is a central node of Bluetooth. When a Bluetooth edge node is scanned, it starts to receive the vibration data of the trash can to be analyzed reported by the edge node, so that the bus uploads the vibration data of the trash can to be analyzed to the remote data center through the wireless reporting module; when the remote data center receives the current vibration data of the trash can to be analyzed of the corresponding trash can through the bus, the current vibration data of the trash can to be analyzed is substituted into the first trash can state analysis module and the second trash can state analysis module in turn to determine whether the current trash can state is in a cleaning state, thereby knowing whether the current trash can is cleaned on time to avoid the trash can being too dirty.

[0033] Furthermore, the trash can cleaning state analysis method is to determine whether the current trash can state is in a cleaning state by detecting the vibration generated by the trash can through a vibration sensor, and the scenarios in which the trash can generates vibrations are mainly divided into the following two types: one is the vibration generated by passers-by throwing garbage, and the other is the vibration generated by cleaners cleaning the trash can. According to actual conditions, it can be known that the vibrations generated by the trash can in these two scenarios have obvious distinguishing characteristics. The vibrations generated by passers-by throwing garbage are generally single vibrations, that is, the vibration peak value on a time frame within a period of time suddenly increases, such as Figure 4 As shown, in this embodiment, a line graph is used to represent it. It can be seen that at 2-4s, the vibration peak value on each time frame is generally between 0-0.5m / s 2 At the 5th second, the vibration peak suddenly increased to 1.5 m / s 2, where the vibration peak refers to the absolute value of the vibration acceleration in a time frame; the vibration generated by the cleaner cleaning the trash can is a continuous vibration, that is, the vibration peaks in multiple time frames increase over a period of time, such as Figure 5 As shown in the figure, it can be seen that at 3-7s, the vibration peak value on each time frame is generally 1-2 m / s 2 , indicating that the trash can continued to vibrate greatly during this time period, which may be due to the cleaner cleaning the trash can.

[0034] Based on the above-mentioned characteristics of vibration peaks generated by cleaners cleaning trash cans, in this embodiment, firstly, since the trash can is set outdoors, it may also cause slight vibrations due to wind, vehicles passing by, or nearby buildings, thereby generating vibration signals. Therefore, the edge processing module can detect the trash can vibration signal to detect whether the peak value of the current trash can vibration signal exceeds the preset minimum value. If so, the current time frame is expanded, and the trash can vibration signal within a preset time period is packaged as trash can vibration data to be analyzed and stored. The purpose is to reduce the amount of data processing and not occupy a large memory of the edge processing module. Specifically, these vibration situations are excluded by setting a preset minimum value. For example, the preset minimum value is 0.5m / s 2 , the peak value of the current trash can vibration signal is detected to be 0.2 m / s 2 , it is directly stored; when the peak value of the current trash can vibration signal is detected to be 0.7 m / s 2 When it exceeds the preset minimum value, the current time frame is expanded, and the trash can vibration signal within a preset time period is packaged as the trash can vibration data to be analyzed and stored. The storage is for uploading. When the upload is completed, the trash can vibration signal within the current preset time period is deleted.

[0035] Then, since the trash can will generate large vibrations in both of the above-mentioned vibration-generating scenarios, thereby obtaining a vibration peak value exceeding the preset minimum value, the trash can vibration signal in the previous preset time period may be a vibration signal generated by passers-by throwing garbage or a vibration signal generated by a cleaner cleaning the trash can. The vibration peaks generated in these two scenarios are obviously different, namely, single vibration and continuous vibration. Single vibration is caused by a sudden change, and the vibration peak value presents a sudden change; while continuous vibration is caused by a continuous action, and the vibration peak value presents a continuous fluctuation. Therefore, based on the vibration peak value, the first trash can state analysis is performed on the trash can vibration signal in the current preset time period, and the process is as follows: The vibration peak value on the next time frame or the previous time frame is located according to the time frame where the maximum vibration peak value is located, and the vertex where the maximum vibration peak value is located and the vertex where the vibration peak value on the next time frame or the previous time frame are located are connected into a straight line.

[0036] Specifically, based on Figure 4 and Figure 5 As shown in the figure, we can see the obvious difference between single vibration and continuous vibration. Figure 4 and Figure 5 The vibration peak value in the previous time frame is located according to the time frame where the maximum vibration peak value is located, and the vertex where the maximum vibration peak value is located and the vertex where the vibration peak value is located in the previous time frame are connected into straight lines 1 and straight lines 2, respectively forming Figure 6 and Figure 7 It can be seen that the slope of line 2 is much greater than that of line 1. A single vibration is a sudden change in a single time frame, and it is unidirectionally moving away from each other in two consecutive time frames; while continuous vibrations will mutate in multiple time frames, and they are moving away from each other in two consecutive time frames. Therefore, the slope of line 2 is generally larger. At this time, the vibration caused by passers-by throwing garbage can be excluded by judging whether the slope of the line is greater than the preset slope. If the slope of the line is greater than the preset slope, the second trash can status analysis is performed. If the slope of the line is less than the preset slope, it means that the fluctuation of the vibration peak value in the current preset time period is small, and it is the vibration caused by passers-by throwing garbage.

[0037] Next, in order to improve the accuracy of the trash can cleaning status analysis method, when the slope of the straight line is greater than the preset slope, a second trash can status analysis is further performed based on the vibration duration. Because, when the trash can is relatively empty, passers-by throwing garbage will not only cause a large vibration, but may also cause continuous vibration in a short period of time. Therefore, the present invention further performs a second trash can status analysis based on the vibration duration. The specific process is as follows: The trash can vibration signal is segmented according to the preset minimum value to obtain the trash can vibration segment signals whose vibration peak values ​​on the time frame are greater than the preset minimum value, the vertices and valleys of the vibration segment signals on the time frame are mapped in the coordinate system, and a rectangular frame containing all the vertices and valleys is established to determine whether the ratio between the width and length of the rectangular frame is less than 1. If so, the trash can state corresponding to the trash can vibration data to be analyzed is recorded as the cleaning state.

[0038] Preferably, in S3, the process of segmenting the trash can vibration signal according to the preset minimum value is specifically as follows: starting from the time frame where the maximum vibration peak value is located, the vibration peak values ​​on the time frames consecutive thereto are judged in turn to determine whether the vibration peak value is less than the preset minimum value; when it is determined that the current vibration peak value is less than the preset minimum value, the previous time frame is used as the cutoff point, and the trash can vibration signal is segmented according to the cutoff point; Preferably, in S3, the process of establishing a rectangular frame containing all vertices and valley points is specifically as follows: traverse the coordinate system to obtain four edge points that are respectively closest to the top, bottom, left, and right, where the edge points are vertices or valley points, draw two parallel horizontal lines for the two edge points closest to the top and bottom, and then draw two parallel vertical lines for the two edge points closest to the left and right, and connect the horizontal lines and the vertical lines to form a rectangular frame.

[0039] Based on the above principles, Figure 5 Perform a second trash can status analysis, starting from the time frame of 5s where the maximum vibration peak occurs, and determine whether the vibration peaks in the consecutive time frames are less than the preset minimum value. At this time, the preset minimum value is 0.5 m / s 2 , we obtain two cutoff points, namely the valley point on the time frame 2s and the vertex on the time frame 7s. Then, we map the vertex and valley point between the time frame 2s and the time frame 7s to the coordinate system, forming a rectangular frame on the coordinate system, as shown in Figure 8 As shown, it can be obtained that the ratio between the width and the length of the rectangular frame is less than 1, then it is determined that the state of the trash can corresponding to the trash can vibration data to be analyzed is the cleaning state.

[0040] If the ratio between the width and length of the rectangular frame is greater than 1, it means that the current continuous vibration time is short. This may be because passers-by put garbage in the trash can when it is relatively empty. Due to the accumulation of garbage, the vibration peak will continue to decrease, so that the continuous vibration time will not be too long. Therefore, the state of the trash can can be further accurately determined based on the continuous vibration time to improve accuracy.

[0041] Example 2 A trash can cleaning state analysis device based on a vibration sensor, comprising: a memory for non-transitory storage of computer readable instructions; The processor is used to execute the computer-readable instructions, and the computer-readable instructions, when executed by the processor, implement the trash can cleaning status analysis method based on a vibration sensor.

[0042] A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the method for analyzing the cleaning status of a trash can based on a vibration sensor is implemented.

[0043] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for analyzing the cleaning status of a trash can based on a vibration sensor, characterized in that: The method comprises the following steps: S1. Data collection: obtaining the vibration data of the trash can to be analyzed in real time, wherein the vibration data of the trash can to be analyzed includes the pre-processed vibration signal of the trash can within a preset time period, and at least one vibration peak value of the vibration signal of the trash can in the time frame exceeds a preset minimum value; S2, performing the first trash can state analysis based on the vibration peak value: obtaining the time frame where the maximum vibration peak value in the trash can vibration signal is located, locating the vibration peak value on the continuous time frame according to the time frame where the maximum vibration peak value is located, and connecting the vertex where the maximum vibration peak value is located with the vertex where the vibration peak value is located into a straight line, and determining whether the slope of the straight line is greater than a preset slope, if so, proceeding to step S3; S3. Perform a second analysis of the trash can state based on the continuous time of vibration: segment the trash can vibration signal according to the preset minimum value, and obtain the trash can vibration segment signal whose vibration peak values ​​on the time frame are greater than the preset minimum value, map the vertices and valley points of the vibration segment signal on the time frame in the coordinate system, and establish a rectangular frame containing all the vertices and valley points, and determine whether the ratio between the width and length of the rectangular frame is less than 1. If so, record the trash can state corresponding to the trash can vibration data to be analyzed as the cleaning state.

2. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 1, characterized in that: A vibration sensor for detecting the vibration of the trash can is arranged on the inner side or the bottom layer of the trash can, and an edge processing module is arranged on the rear column of the trash can. The edge processing module is electrically connected to the vibration sensor and is used to receive the vibration signal of the trash can.

3. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 2, characterized in that: The edge processing module is also used to detect the vibration signal of the trash can, and detect whether the peak value of the current trash can vibration signal exceeds the preset minimum value. If so, it is expanded with the current time frame, and the trash can vibration signal within a preset time period is packaged as the trash can vibration data to be analyzed and stored.

4. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 3, characterized in that: The vibration data of the trash can to be analyzed can be obtained by uploading via a mobile vehicle. The mobile vehicle is provided with a data acquisition module, and the data acquisition module is connected to the edge processing module via Bluetooth for collecting and uploading the vibration data of the trash can to be analyzed.

5. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 1, characterized in that: In S2, the vibration peak on the continuous time frame is located according to the time frame where the maximum vibration peak is located, and the vertex where the maximum vibration peak is located and the vertex where the vibration peak is located are connected into a straight line. The specific process is: The vibration peak value on the next time frame or the previous time frame is located according to the time frame where the maximum vibration peak value is located, and the vertex where the maximum vibration peak value is located and the vertex where the vibration peak value on the next time frame or the previous time frame are located are connected into a straight line.

6. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 1, characterized in that: In S3, the process of segmenting the vibration signal of the trash can according to the preset minimum value is specifically as follows: starting from the time frame where the maximum vibration peak is located, the vibration peaks on the time frames consecutive to it are judged in turn to determine whether the vibration peaks are less than the preset minimum value. When it is determined that the current vibration peak is less than the preset minimum value, the previous time frame is used as the cutoff point, and the vibration signal of the trash can is segmented according to the cutoff point.

7. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 1, characterized in that: In S3, the process of building a rectangular box containing all vertices and valley points is as follows: Traverse the coordinate system to obtain the four edge points closest to the top, bottom, left, and right respectively. The edge points are vertices or valley points. Draw two parallel horizontal lines for the two edge points closest to the top and bottom, and then draw two parallel vertical lines for the two edge points closest to the left and right. Connect the horizontal lines and the vertical lines to form a rectangular frame.

8. The method for analyzing the cleaning status of a trash can based on a vibration sensor according to claim 4, characterized in that: The mobile vehicle is a bus, and the trash can is set at the bus stop. When the bus stops at the bus stop, the data acquisition module is connected to the edge processing module via Bluetooth, and the edge processing module uploads the currently stored vibration data of the trash can to be analyzed to the data acquisition module. After the upload is completed, the currently stored vibration data of the trash can to be analyzed is deleted.

9. A trash can cleaning status analysis device based on a vibration sensor, characterized in that: include: a memory for non-transitory storage of computer readable instructions; A processor is used to execute the computer-readable instructions, wherein the computer-readable instructions, when executed by the processor, implement a method for analyzing the cleaning status of a trash can based on a vibration sensor as described in any one of claims 1 to 8.

10. A non-transitory computer-readable storage medium, wherein: The non-transitory computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for analyzing the cleaning status of a trash can based on a vibration sensor as described in any one of claims 1 to 8 is implemented.