Intelligent garbage can

By integrating YOLOv11 image recognition, weight sensor, ultrasonic sensor, solar power supply and wireless communication technologies, the problems of inaccurate sorting, insufficient capacity monitoring and energy waste in traditional trash cans have been solved, achieving efficient, intelligent and environmentally friendly waste disposal.

CN122144331APending Publication Date: 2026-06-05UNIV OF SHANGHAI FOR SCI & TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
UNIV OF SHANGHAI FOR SCI & TECH
Filing Date
2025-12-24
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Traditional trash cans suffer from problems such as rudimentary waste sorting, resource waste, lack of capacity monitoring, insufficient intelligent management, and reliance on mains electricity, resulting in low efficiency and environmental damage.

Method used

The system integrates YOLOv11 image recognition system with weight sensors for waste sorting, combines ultrasonic sensors to monitor capacity, and utilizes solar power, wireless communication modules, and automatic disinfection devices. It also integrates robotic arms and anti-pinch devices to achieve intelligent management.

Benefits of technology

Improve the accuracy of waste sorting, ensure timely collection, reduce pollution from non-recyclable waste, optimize resource allocation, reduce human intervention, achieve green energy power supply, and enhance user safety and environmental hygiene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122144331A_ABST
    Figure CN122144331A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of intelligent garbage can, integrated for automatically opening cover infrared sensing technology, image recognition technology for garbage classification, garbage capacity detection device for monitoring capacity, with control power and manage battery Energy storage part, while equipped with processing and maintenance part, to realize automatic disinfection and anti-pinch hand, still installed communication and control part, data management part and function extension interface, to carry out data analysis, to identify rule, optimize compatibility and communication capability.Compared with prior art, the present application each function synergizes to improve efficiency, promote classification, intelligent management, increase safety, comprehensively optimize garbage disposal, can better adapt to different environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of environmental protection equipment technology, and in particular to an intelligent trash can. Background Technology

[0002] Waste management is of paramount importance to urban environmental maintenance and resource recycling; efficient and environmentally friendly waste management is key to sustainable urban development. Currently, traditional trash cans have significant drawbacks: limited functionality, haphazard waste sorting leading to cumbersome recycling processes and resource waste; lack of capacity monitoring resulting in delayed collection and environmental damage; and insufficient intelligent management, requiring cumbersome and inefficient manual intervention. Furthermore, they rely on municipal electricity, failing to utilize natural energy sources effectively, resulting in high and unsustainable energy consumption. Existing intelligent trash can improvements have not addressed the core issues, suffering from inaccurate identification, unstable communication, or poor energy management. This invention integrates cutting-edge technologies, enabling precise waste sorting, real-time capacity monitoring, efficient wireless communication, solar-powered green energy supply, intelligent disinfection and sterilization, comprehensive anti-pinch protection, in-depth data analysis, and flexible functional expansion. It comprehensively overcomes these challenges, significantly improving processing efficiency and enhancing environmental friendliness, creating a new intelligent and efficient path for waste management, effectively filling an industry gap and leading industry transformation. Summary of the Invention

[0003] The purpose of this invention is to propose an intelligent trash can that comprehensively improves waste disposal efficiency, optimizes resource allocation, ensures safe use, effectively solves problems such as mixed waste disposal, delayed collection, and inefficient energy use, and is designed to meet the needs of multiple scenarios and conform to the concept of environmental protection.

[0004] To achieve the above objectives, this invention proposes an intelligent trash can, comprising a trash can body, with multiple trash cans inside the trash can body. A conveying track is provided on the inner wall of the trash can body, and a retractable robotic arm is mounted on the track. The retractable robotic arm is movably connected to the conveying track, and its gripping end is located directly below the trash can body's feed inlet. Inside the trash can body, there is a trash image acquisition device, a weight sensor, and an ultrasonic sensor. The image acquisition device acquires images of the trash, the weight sensor senses the weight of the trash, and the ultrasonic sensor detects the height or volume of the trash inside the trash can. It also includes a control unit connected to each sensor to achieve: trash identification and classification, trash capacity detection, and data recording and analysis.

[0005] Furthermore, the trash can itself is equipped with an infrared sensor. Using infrared sensing technology, by setting a random number seed in the code and drawing on the data processing ideas in the pool2d function, the infrared sensing data is filtered to ensure that the trash can lid can be opened automatically when a person approaches.

[0006] Furthermore, the waste identification and classification system combines the YOLOv11 image recognition system with a weight sensor. The image recognition results are fused with the weight sensor data to establish a comprehensive judgment model, which improves classification accuracy and is used to accurately identify and classify the types of waste that are thrown into the system.

[0007] Furthermore, the image processing and calculation methods in the waste capacity detection reference code are used to perform three-dimensional modeling of the height or volume data of waste in the trash can detected by ultrasonic sensors, etc. The multi-dimensional data processing approach of the pool2d function is used to accurately calculate the volume and distribution of waste. The loop and judgment logic in the code is used to realize the dynamic monitoring of waste capacity data and outlier detection. Based on historical data and real-time detection results, the full load time is predicted to achieve the purpose of real-time monitoring of the filling degree of waste in the trash can.

[0008] Furthermore, it also includes a wireless communication module, which adopts one or more of Wi-Fi, Bluetooth or cellular networks. By optimizing communication parameters and protocols, adding anti-interference algorithms to the communication module, optimizing data transmission format and protocols, compressing transmitted data, and improving transmission speed, the control unit sends a collection request to the waste treatment center or relevant personnel's terminal equipment through the wireless communication module when the waste capacity reaches a preset threshold.

[0009] Furthermore, the trash can itself is equipped with solar panels to power each electrical module.

[0010] Furthermore, the inside of the trash can is equipped with an automatic disinfection device. The control unit adjusts the intensity of the ultraviolet disinfection lamp or the amount of disinfectant spray based on the type of trash and the degree of pollution.

[0011] Furthermore, the data recording and analysis base control unit records the time, weight, and type of waste disposal data to analyze the regional waste generation patterns and composition information; based on the optimization results of data collection, processing, and storage in the code, the data recording format and storage method are optimized, data structures are adopted to reduce storage space occupation, and the calculation and optimization ideas in the code are used to upload the data to the cloud server for in-depth analysis through the communication module.

[0012] Furthermore, the trash can body is also equipped with a function expansion interface. The function expansion interface adopts a high-speed communication protocol and optimizes the buffer management of data transmission to ensure high-speed and stable data transmission. It is used to connect new function modules such as the trash compression module and the odor treatment module.

[0013] Compared with the prior art, the advantages of the present invention are: 1. To address the problems of inefficient waste sorting, cumbersome recycling processes, and resource waste associated with traditional trash cans, this invention proposes a waste identification and sorting system. This system integrates YOLOv11 image recognition and a weight sensor, fusing image and weight data to establish a comprehensive judgment model that determines and stores waste types. For example, the data is fused with weights, with image recognition results weighted at 0.7 and weight sensor data weighted at 0.3 to calculate the overall result. This system improves sorting accuracy, increases the recycling rate of recyclable waste, reduces pollution from non-recyclable waste, and effectively promotes waste sorting and recycling.

[0014] 2. To address the problems of delayed waste collection and environmental damage caused by the lack of traditional waste bin capacity monitoring, this invention introduces a waste capacity detection device. This device uses sensors such as ultrasonic sensors to measure the height or volume of waste, calculates the volume distribution using 3D modeling based on the code's logic, and dynamically monitors and detects anomalies using loop-based judgment logic to predict the time of full load. Based on historical and real-time data, a linear algorithm predicts the time of full load and promptly sends a collection request, ensuring timely waste bin emptying, preventing overflow, and maintaining environmental hygiene.

[0015] 3. Addressing the shortcomings of traditional trash can management, including a lack of intelligent systems, excessive manual intervention, and low efficiency, this invention utilizes multiple technologies to achieve intelligent management. The automatic lid-opening device employs optimized infrared sensing and filtering algorithms to automatically open the lid when a person approaches; the wireless communication module optimizes parameter protocols and adds anti-interference algorithms to compress data, ensuring stable and efficient transmission, and remotely controls the trash can upon receiving commands; the data recording and analysis system optimizes record storage and analyzes the patterns and components of trash to aid decision-making. The synergy of these multiple technologies improves efficiency, reduces manual labor, optimizes resource allocation, and promotes intelligent management.

[0016] 4. Addressing the issues of traditional trash cans relying on mains electricity, failing to utilize natural energy, and exhibiting high energy consumption and unsustainable operation, this invention incorporates a solar charging system. By selecting suitable solar panels, the charging power is adjusted according to sunlight, battery level, and demand, optimizing battery management to extend lifespan and recover energy. For example, during periods of strong sunlight, low battery levels, and high demand, the charging power is increased; when idle and nearly fully charged, energy recovery is initiated. This system uses green energy to power electronic components, reducing energy consumption, promoting sustainability, and achieving effective energy management and utilization.

[0017] 5. To address the issues of poor user safety and experience with traditional trash cans, this invention incorporates an anti-pinch protection device and an automatic lid-opening device. The anti-pinch device calibrates and compensates for sensor data, immediately stopping the lid and activating the safety mechanism upon detecting a risk of pinching; the automatic lid-opening device facilitates user disposal. Both enhance usability and safety, improve user experience, and safeguard public environmental hygiene. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating the steps involved in creating the intelligent trash can in this invention. Figure 2 This is a model diagram of the intelligent trash can in this invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be further described below.

[0020] like Figure 2 As shown, this invention proposes an intelligent trash can, including a trash can body 1, with multiple trash cans 2 inside the trash can body 1. A conveying track 3 is provided on the inner wall of the trash can body, and a retractable robotic arm 4 is mounted on the track. The retractable robotic arm 4 is movably connected to the conveying track, and its gripping end is located directly below the feed inlet of the trash can body 1. The trash can body 1 contains a trash image acquisition device, a weight sensor, and an ultrasonic sensor. The image acquisition device acquires images of the trash, the weight sensor senses the weight of the trash, and the ultrasonic sensor detects the height or volume of the trash inside the trash can. It also includes a control unit connected to each sensor to realize functions including: trash identification and classification, trash capacity detection, and data recording and analysis.

[0021] Specifically, the steps for implementing each function of the intelligent trash can of this invention are as follows: Figure 1 As shown: Step 1: Implementation of the automatic lid-opening device and infrared sensor debugging: Install an infrared sensor at an appropriate location on the trash can. Use a random number seed to ensure data processing repeatability for debugging and optimization. Filter the sensor data using a function similar to pool2d, as shown in the example below: # Let the infrared sensor data be in the form of a two-dimensional array called sensor_data. Create an array of the same size, all zeros called filtered_data, to store the filtered data. filtered_data = Create an array of all zeros of the same size as sensor_data kernel_size = 3 # Define the filter kernel size, adjust as needed stride = 1 padding = 1 for i in range(len(sensor_data)): # Iterate through the rows of sensor_data for j in range(len(sensor_data[0])): # Iterate through the sensor_data columns # Take a subarray centered at (i, j) and defined by padding as the window data window = Extract a subarray from sensor_data, centered at (i, j) and defined by padding. # Calculate the window mean and store it in the corresponding location in filtered_data. filtered_data[i][j] = Calculates the mean of the window. This can reduce environmental interference and improve detection accuracy.

[0022] The lid-opening motor is connected to the control unit and controls the opening and closing actions based on the anti-pinch protection device signal and fault detection mechanism. The control unit optimizes its control logic for the lid-opening motor using conditional statements and loop logic in the code, ensuring safe and reliable opening and closing actions. For example, when a stop signal from the anti-pinch protection device is received, the control unit immediately stops the lid-opening motor and records the relevant event. Simultaneously, the lid-opening motor's status is periodically monitored (e.g., current, speed, etc.), and when an abnormality is detected, a fault notification is sent via the wireless communication module.

[0023] Step 2: Implementation of the waste identification and sorting system. The YOLOv11 image recognition system installs a camera at a suitable angle inside the waste bin and utilizes image preprocessing methods in the code to optimize image acquisition and analysis. In the image preprocessing stage, the image is downsampled using the pooling operation in the pool2d function. import torch.nn.functional as F # Let the input image be image_tensor (PyTorch tensor form) pooled_image = F.max_pool2d(image_tensor, kernel_size = 2, stride =2) While reducing computational load, key features are preserved, thus improving recognition efficiency.

[0024] The weight sensor is installed at the bottom of the trash can and works in conjunction with the image recognition system to determine the type of trash and store it separately using a fusion algorithm. The data fusion logic in the code combines the image recognition results with the weight sensor data to establish a comprehensive judgment model, improving classification accuracy. Example: Let the image recognition result be `image_result` and the weight sensor data be `weight_data`. Based on experience, let the image weight be alpha = 0.7 and the weight weight beta = 0.3. alpha = 0.7 beta = 0.3 combined_result = alpha * image_result + beta * weight_data Based on the comprehensive judgment results, the sorting device will transport the waste to the most suitable sorting compartment. The sorting device can adopt a mechanical transmission structure (such as a conveyor belt, pusher plate, etc.), and its operation will be controlled by the control unit according to the sorting results.

[0025] Step 3: Implementation of the waste volume detection device. Select the appropriate type and number of sensors (ultrasonic, infrared, or laser) based on the shape of the waste bin, install and calibrate them. Refer to the image processing calculation method in the reference code to create a 3D model of the volume distribution based on the sensor-measured waste height or volume data. # Assume the ultrasonic sensor data is a three-dimensional array ultrasonic_data volume = 0 for i in range(ultrasonic_data.shape[0] - kernel_size + 1): for j in range(ultrasonic_data.shape[1] - kernel_size + 1): for k in range(ultrasonic_data.shape[2] - kernel_size + 1): # Accumulate and calculate volume using local data windows window = ultrasonic_data[i:i + kernel_size, j:j + kernel_size, k:k + kernel_size] `volume +=` calculates the sum of all window elements. Among these features, dynamic monitoring and anomaly detection are performed using loop-based conditional logic, and full load time is predicted based on historical real-time data. # Define historical capacity data history_volumes, current capacity data current_volume, and a threshold threshold. If current_volume > 1, calculate the historical volume mean plus the threshold multiplied by the standard deviation (history_volumes, threshold): print("Possible error, to be investigated") if len(history_volumes) > 1: # Calculate capacity growth rate growth_rate = (current_volume - history_volumes[-2]) / (len(history_volumes) - 1) full_capacity = 100 # Set the full capacity of the trash can to 100 (the actual unit may vary). # Estimated full load time time_to_full = (full_capacity - current_volume) / growth_rate print(f"Expected to be fully loaded in {time_to_full}") When it is predicted that the waste will soon be full, a collection request is sent to the waste disposal center or relevant personnel via a wireless communication module.

[0026] Step 4: Implement the wireless communication module. Select a suitable communication method (Wi-Fi, Bluetooth, or cellular network), configure communication parameters, and achieve stable and reliable data transmission. Refer to the reliability assurance measures for data transmission and processing in the reference code, and add an anti-interference algorithm to the communication module. When signal interference is detected, automatically adjust the communication parameters. if signal_strength < interference_threshold: # Adjust transmission power and other parameters (depending on the communication module's function). set_transmit_power(new_power) Among them, the data transmission format protocol of Youchuan uses a code-based data structure optimization method to compress data: import zlib compressed_data = zlib.compress(data_to_send) The wireless communication module uploads waste disposal data (such as time, weight, and type) and waste bin status information (such as capacity and battery level) to a cloud server or the terminal device of relevant personnel. Simultaneously, it can also receive instructions from the cloud server or terminal device, such as remotely controlling the disinfection device or adjusting certain parameters of the waste bin.

[0027] Step 5: Implementing the solar charging system. Select a suitable solar charging panel (monocrystalline silicon, polycrystalline silicon, or amorphous silicon) and install it on the top or side of the trash can, connecting it to the charging management circuit. The intelligent algorithm adjusts the charging panel's output power based on sunlight, power consumption, and demand. if light_intensity > 500 and battery_level < 80 and power_demand >10: set_output_power(high_power) elif light_intensity > 300 and battery_level < 50 and power_demand >5: set_output_power(medium_power) else: set_output_power(low_power) Specifically, based on the intelligent charging management function, the charging mode is adjusted according to power demand and battery status to achieve energy recovery and utilization. By utilizing data storage and processing stability assurance measures in the code, the battery management system is optimized to extend battery life and achieve energy recovery and utilization. if battery_remaining > 0.9 * battery_capacity and idle_status: start_energy_recovery() For example, when the battery is nearly fully charged and the trash can is idle (e.g., no trash is being disposed of for a period of time), excess solar energy can be converted into other forms of energy, such as heating the disinfectant in an automatic disinfection device to improve the disinfection effect, or powering other low-power additional functions (e.g., environmental monitoring sensors around the trash can).

[0028] Step Six: Implementation of the automatic disinfection device. Install ultraviolet disinfection lamps or environmentally friendly disinfectant sprayers. Adjust the intensity of the ultraviolet disinfection lamps or the amount of disinfectant spray based on the type of waste and the degree of pollution. if garbage_type == "organic" and pollution_level > 0.7: set_uv_intensity(high_intensity) set_spray_amount(large_amount) elif garbage_type == "recyclable" and pollution_level < 0.3: set_uv_intensity(low_intensity) set_spray_amount(small_amount) This includes a wireless communication module for remote monitoring and control. Combined with optimizations to the control unit's time and condition judgments in the code, intelligent adjustment of the disinfection time interval is achieved. if drop_frequency > 10 and usage_time < 12 * 60 * 60: set_disinfection_interval(short_interval) elif drop_frequency < 5 and usage_time > 24 * 60 * 60: set_disinfection_interval(long_interval) Through the wireless communication module, waste treatment centers or relevant personnel can remotely monitor the working status of disinfection equipment (such as whether the ultraviolet disinfection lamps are working properly, the remaining amount of disinfectant, etc.), and can remotely start or adjust the disinfection program. For example, during an epidemic or when there are special hygiene needs, the frequency or intensity of disinfection can be increased remotely.

[0029] Step 7: Implementation of the anti-pinch protection device. Install infrared, pressure, or capacitive sensors on the edge of the trash can lid and adjust them according to the detection accuracy standards. Based on the sensor data processing and accuracy improvement results in the code, calibrate and compensate for errors in the anti-pinch sensor data: calibrated_data = calibrate_sensor(sensor_data) This system connects to the control unit to achieve rapid response and collaborative safety mechanisms. Utilizing the control unit's optimized rapid response for motion control within the code, when a risk of hand pinching is detected (assuming the hand pinching detection signal is `hand_detected`), the closing action of the trash can lid is quickly stopped (assuming the function controlling the trash can lid motor is `control_motor`), and relevant safety mechanisms are activated simultaneously (assuming the emergency braking function is `activate_emergency_brake`, and the notification function is `send_notification`): if hand_detected: control_motor(stop) activate_emergency_brake() send_notification("Hand-pinching risk, stop the lid") Furthermore, once the risk of pinching a hand is eliminated (e.g., the sensor detects that the hand has left the danger zone), the control unit can slowly close the trash can lid again or remain open pending further instructions, based on preset logic.

[0030] Step 8: Implementation of the data recording and analysis system. The control unit records waste disposal data (such as time, weight, type, etc.), and uploads it to the cloud server via the communication module using optimized data storage and processing methods. Based on the data collection, processing, and storage optimization results in the code, the data recording format and storage method are optimized, and an efficient data structure is adopted to reduce storage space usage. # Set the garbage disposal data (garbage_data) to be stored as a sparse matrix (adjust according to the database). sparse_data = coo_matrix(garbage_data) store_data(sparse_data) This involves utilizing data analysis and mining algorithms to analyze and predict waste generation patterns and composition. Using computational and optimization techniques within the code, preliminary data statistics and analysis functions are implemented in the control unit, and data is uploaded to a cloud server via a communication module for in-depth analysis. average_weight = Calculates the mean of the weight data (weight_data) type_counts = Counts the number of times a data type appears (type_data) type_proportions = type_counts / len(type_data) upload_data({"average_weight": average_weight, "type_proportions":type_proportions}) After receiving the data, the cloud server uses big data analytics to analyze the patterns of waste generation in different regions and time periods (such as peak and off-peak periods of waste generation, and differences in waste types across regions), as well as the composition of the waste (such as changes in the proportions of recyclables, hazardous waste, and kitchen waste). These analytical results can provide a basis for decision-making in waste management planning (such as optimizing collection routes and adjusting the layout of waste management facilities).

[0031] Step 9: Implement functional expansion interfaces, reserving standard-compliant interfaces (USB, RS485, CAN bus, etc.) to ensure compatibility and power supply communication capabilities. Refer to the optimization ideas for interface standards and data interaction in the reference code, clarify the specific version and parameters of the interface standard, and ensure compatibility with different functional modules.

[0032] This design facilitates the connection of new functional modules such as waste compression modules and odor control modules, enabling collaborative operation. Incorporating power management and communication optimizations in the code, the interface circuitry implements intelligent power supply and high-speed data transmission capabilities, ensuring the normal operation of these new functional modules. For example, connecting a waste compression module: allocate_power(module_power) When the odor treatment module is connected, it communicates with the control unit through the interface and automatically adjusts the working intensity of the odor treatment module (such as fan speed, amount of purifying agent, etc.) according to the odor concentration in the trash can (assuming that the data is detected and transmitted by the odor sensor).

[0033] Application Example 1 This invention provides specific implementation examples based on improved intelligent trash can functions, and practical applications of these trash cans in urban streets, parks, schools, and other locations. For example, trash cans next to school cafeterias, after standard installation and debugging of various functional modules, are operational. They can accurately identify and classify food waste, plastic bottles, and other garbage. When the capacity is nearly full, a wireless communication alert is sent to ensure timely cleaning and removal. A solar charging system provides stable outdoor power, and an automatic disinfection device intelligently adjusts the interval and dosage based on garbage disposal and can usage time, protecting the hygiene environment for teachers and students. Trash cans in parks feature automatic lid opening for convenient disposal by visitors, anti-pinch devices for safety, a garbage identification and classification system to improve recycling efficiency and reduce pollution, and wireless communication to transmit the can's status to the management center in real time for maintenance. They also intelligently disinfect based on the environment. Urban street trash cans, with their large-capacity detection and efficient wireless communication, ensure timely garbage removal, maintain street cleanliness, increase disinfection frequency in high-traffic areas to kill germs, and provide expansion interfaces for future upgrades and integration with environmental monitoring. Verified in multiple scenarios, this trash can significantly improves efficiency and energy saving, provides accurate sorting, ensures safety and hygiene, and offers intelligent expansion compared to traditional trash cans. It effectively promotes the modernization of waste management, reduces labor costs, increases resource recycling, improves environmental quality, and enhances the public experience, demonstrating outstanding advantages and far-reaching impact.

[0034] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the technical solutions and content disclosed in the present invention without departing from the scope of the present invention shall be deemed to have remained within the protection scope of the present invention.

Claims

1. A smart trash can, characterized in that, The system includes a trash can body, inside which are multiple trash bins. A conveyor track is located on the inner wall of the trash can body, and a retractable robotic arm is mounted on the track. The retractable robotic arm's gripping end is located directly below the trash can body's feed inlet. Inside the trash can body are a trash image acquisition device, a weight sensor, and an ultrasonic sensor. The image acquisition device acquires images of the trash, the weight sensor senses the weight of the trash, and the ultrasonic sensor detects the height or volume of the trash inside the bins. The system also includes a control unit connected to each sensor to perform functions including trash identification and sorting, trash volume detection, and data recording and analysis.

2. The intelligent trash can according to claim 1, characterized in that, The trash can body is equipped with an infrared sensor. Using infrared sensing technology, the infrared sensing data is filtered by setting a random number seed in the code and drawing on the data processing ideas in the pool2d function to ensure that the trash can lid can be opened automatically when a person approaches.

3. The intelligent trash can according to claim 1, characterized in that, The waste identification and classification system combines a YOLOv11 image recognition system with a weight sensor. The image recognition results are fused with the weight sensor data to establish a comprehensive judgment model, which improves classification accuracy and is used to accurately identify and classify the types of waste that are thrown in.

4. The intelligent trash can according to claim 1, characterized in that, The image processing and calculation methods in the waste capacity detection reference code perform three-dimensional modeling of the height or volume data of waste in the waste bin detected by ultrasonic sensors, etc., and use the multi-dimensional data processing approach of the pool2d function to accurately calculate the volume and distribution of waste. The loop and judgment logic in the code realizes dynamic monitoring of waste capacity data and outlier detection. Based on historical data and real-time detection results, the full load time is predicted to achieve the purpose of real-time monitoring of the filling degree of waste in the waste bin.

5. The intelligent trash can according to claim 1, characterized in that, It also includes a wireless communication module, which adopts one or more of Wi-Fi, Bluetooth or cellular networks. By optimizing communication parameters and protocols, adding anti-interference algorithms to the communication module, optimizing data transmission format and protocols, compressing transmitted data, and improving transmission speed, the control unit sends a collection request to the waste treatment center or relevant personnel's terminal equipment through the wireless communication module when the waste capacity reaches a preset threshold.

6. The intelligent trash can according to claim 1, characterized in that, The trash can body is equipped with solar panels to power various electrical modules.

7. The intelligent trash can according to claim 1, characterized in that, The trash can is equipped with an automatic disinfection device inside. The control unit adjusts the intensity of the ultraviolet disinfection lamp or the amount of disinfectant spray based on the type of trash and the degree of pollution.

8. The intelligent trash can according to claim 1, characterized in that, The data recording and analysis system records the time, weight, and type of waste disposal data of the control unit to analyze the regional waste generation patterns and composition information; based on the optimization results of data collection, processing, and storage in the code, the data recording format and storage method are optimized, the data structure is adopted to reduce storage space occupation, and the calculation and optimization ideas in the code are used to upload the data to the cloud server through the communication module for in-depth analysis.

9. The intelligent trash can according to claim 1, characterized in that, The garbage bin body is also equipped with a function expansion interface. The function expansion interface adopts a high-speed communication protocol and optimizes the buffer management of data transmission to ensure high-speed and stable data transmission. It is used to connect new function modules such as garbage compression module and odor treatment module.