Intelligent classification and traceability method based on medical waste electronic scale
By using an intelligent classification and traceability method based on medical waste electronic scales, and combining infrared and color images with the YOLOv7 model for classification, and generating traceability codes based on time, location, and weight, the problem of low classification efficiency and inadequate supervision of medical waste is solved. This enables full-process monitoring and traceability, and improves the convenience and accuracy of supervision.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-13
AI Technical Summary
Current technologies for classifying medical waste are inefficient and inaccurate, and inadequate supervision at each stage can lead to problems such as reuse and environmental pollution.
An intelligent classification and traceability method based on electronic scales for medical waste is adopted. The classification is performed using infrared and color images combined with the YOLOv7 model. The traceability code is generated by combining the type, time, location and weight. The system determines whether there is deviation or loss by monitoring the location and weight changes during transportation in real time, and uses blockchain to store traceability information.
It enables efficient and accurate classification and full traceability of medical waste, ensures monitoring and traceability during transportation, reduces the risk of loss and reuse, and improves the comprehensiveness and convenience of supervision.
Smart Images

Figure CN121661396A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data traceability technology, specifically relating to an intelligent classification and traceability method based on electronic scales for medical waste. Background Technology
[0002] With the improvement of medical standards, the amount of medical waste generated is increasing year by year. If the supervision of medical waste disposal is not in place, it may lead to the reuse and refurbishment of medical waste by illegal personnel and its entry into the market. Alternatively, inadequate supervision may easily lead to environmental pollution, disease transmission, and other problems.
[0003] Currently, the treatment of medical waste typically involves sorting, weighing, and transportation. Sorting is usually done manually to determine the type of medical waste, which is inefficient and inaccurate. Furthermore, it is difficult to achieve comprehensive supervision and traceability in these treatment stages, leading to inadequate supervision. Medical waste is prone to reuse and loss, making it difficult to achieve traceability and supervision at all stages. Summary of the Invention
[0004] To address the problems of inaccurate classification of medical waste and the lack of comprehensive and convenient traceability at each stage, this invention provides an intelligent classification and traceability method based on electronic scales for medical waste.
[0005] To achieve the above objectives, the present invention employs the following technical solutions:
[0006] A smart classification and traceability method for medical waste based on electronic scales, the method comprising the following steps:
[0007] Step 1: Use a medical waste electronic scale to obtain infrared images, color images, current time, first location information of the medical waste, and weight value of the medical waste;
[0008] Step 2: Determine the type of medical waste based on infrared and color images;
[0009] Step 2 includes: inputting infrared and color images into the trained YOLOv7 model to classify medical waste and obtain the types of medical waste.
[0010] Step 3: Determine the traceability code for medical waste based on type, current time, initial location information, and weight value; Step 3 includes:
[0011] Step 3.1: Determine the first characteristic value corresponding to the type of medical waste;
[0012] Step 3.2: Determine the first product of the first eigenvalue and the current time, and divide the weight value by the first product to obtain the second eigenvalue;
[0013] Step 3.3: Determine the second product of the first feature value and the first position information, and divide the weight value by the second product to obtain the third feature value;
[0014] Step 3.4: Generate the traceability code for medical waste based on the first feature value, the second feature value, and the third feature value.
[0015] Step 4: Obtain real-time second location information of medical waste during transportation, real-time third location information of the waste inside the transport vehicle, and real-time weight value during transportation;
[0016] Step 5: Update the traceability code based on the real-time second location information, the real-time third location information, and the real-time weight value to obtain the updated traceability code. Step 5 includes:
[0017] Step 5.1: Determine the transportation route of medical waste based on real-time second location information, and determine whether the transportation route deviates based on the transportation route and the first electronic fence about the preset transportation route;
[0018] Step 5.2: Generate a weight change curve of medical waste during transportation based on real-time weight values;
[0019] Step 5.3: Determine whether medical waste is lost based on the weight change curve, real-time third-party location information, and the second electronic fence of the transport vehicle; Step 5.3 includes:
[0020] Step 5.3.1: Determine whether there is a first segment of the weight change curve that indicates a decrease in weight;
[0021] Step 5.3.2: If it exists, determine the duration of the first curve segment and the slope of the first curve segment;
[0022] Step 5.3.3: Determine the first anomaly score for medical waste based on duration and slope;
[0023] Step 5.3.4: Determine the real-time third location information and the nearest distance to the second electronic fence, and generate a distance change curve based on the nearest distance;
[0024] Step 5.3.5: Determine the second curve segment corresponding to the time of the first curve segment from the distance change curve;
[0025] Step 5.3.6: Determine the minimum and average distances of the second curve segment, and determine the second abnormality score of medical waste based on the minimum and average distances;
[0026] Step 5.3.7: Determine the total abnormal score of medical waste based on the first abnormal score and the second abnormal score;
[0027] Step 5.3.8: When the total abnormal score reaches the preset score threshold, medical waste is determined to be lost;
[0028] Step 5.3.9: If the total abnormal score does not reach the preset score threshold, it is determined that the medical waste has not been lost.
[0029] Step 5.4: Update the traceability code based on whether the transportation route has deviated and whether medical waste has been lost. Step 5.4 includes:
[0030] Step 5.4.1: When the transportation route deviates and / or medical waste is lost, determine the location of the deviation and / or the location of the loss;
[0031] Step 5.4.2: When the traceability code is updated based on the off-location and / or lost location, the updated traceability code is obtained;
[0032] Step 5.4.3: If the transportation route has not deviated and the medical waste has not been lost, the traceability code is updated according to the transportation route to obtain the updated traceability code.
[0033] Step 5.5: When medical waste is confirmed to be missing, output an alarm message.
[0034] The intelligent sorting and traceability device in the medical waste electronic scale in step 1 includes:
[0035] The first data acquisition module is used to acquire infrared images, color images, current time, first location information of medical waste, and weight value of medical waste;
[0036] A classification module is used to determine the type of medical waste based on infrared and color images;
[0037] The traceability code determination module is used to determine the traceability code of medical waste based on its type, current time, first location information, and weight value.
[0038] The second data acquisition module is used to acquire real-time second location information of medical waste during transportation, real-time third location information inside the transport vehicle, and real-time weight value during transportation.
[0039] The update module is used to update the traceability code based on real-time second location information, real-time third location information, and real-time weight value to obtain the updated traceability code.
[0040] The medical waste electronic scale mentioned in step 1 includes:
[0041] Infrared cameras capture infrared images of medical waste;
[0042] A color camera captures color images of medical waste;
[0043] GPS positioning devices collect the initial location information of medical waste;
[0044] Clock chip, to collect the current time;
[0045] Weight sensor to collect weight values of medical waste;
[0046] At least one processor;
[0047] Memory;
[0048] transceiver;
[0049] At least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, the at least one application being for executing an intelligent sorting and traceability method based on a medical waste electronic scale.
[0050] A computer-readable storage medium storing a computer program thereon, characterized in that, when the computer program is executed in a computer, it causes the computer to execute an intelligent classification and traceability method based on an electronic scale for medical waste.
[0051] Compared with the prior art, the present invention has the following advantages:
[0052] Acquiring infrared and color images of medical waste, along with the current time, initial location information, and weight, facilitates subsequent classification and traceability data. Infrared and color images are collected from two different angles, allowing for accurate identification of the waste type through comprehensive analysis. The type, current time, initial location information, and weight are key factors characterizing the relevant features of medical waste. Therefore, based on these four factors, including the type of medical waste, a traceability code can be accurately determined. This code allows personnel to understand the relevant characteristics and status of the medical waste. Real-time second location information, real-time third location information within the transport vehicle, and real-time weight value during transport are also obtained, facilitating comprehensive monitoring of the waste during transport. The traceability code is updated based on the real-time second location information and the other three factors, enabling convenient and comprehensive traceability of the transportation and weighing / classification processes. Attached Figure Description
[0053] Figure 1 A flowchart illustrating an intelligent sorting and traceability method based on electronic scales for medical waste;
[0054] Figure 2 Diagram of the intelligent sorting and traceability device module in a medical waste electronic scale;
[0055] Figure 3 This is a block diagram of an electronic scale for medical waste. Detailed Implementation
[0056] To gain a deeper understanding of this invention, we will provide a comprehensive and detailed description. However, this invention has various implementations and is not limited to the specific examples listed herein. These examples are presented to enhance a full understanding of the disclosure of this invention.
[0057] like Figure 1 As shown, an intelligent classification and traceability method based on electronic scales for medical waste is described, the method comprising the following steps:
[0058] Step 1: Use a medical waste electronic scale to obtain infrared images, color images, current time, first location information of the medical waste, and weight value of the medical waste;
[0059] The medical waste scale is equipped with both infrared and color cameras to capture infrared and color images of the medical waste during weighing, facilitating subsequent waste sorting. A local clock chip and GPS positioning device are also included to obtain the current time and location information (primary location) of the medical waste during weighing. The weight of the medical waste is then measured by a strain gauge weight sensor. Typically, the medical waste is placed in a transparent, specially designed medical waste bag or box, and the scale uses hooks to suspend the bag or box for weighing.
[0060] Step 2: Determine the type of medical waste based on infrared and color images;
[0061] Step 2 includes: inputting infrared and color images into the trained YOLOv7 model to classify medical waste and obtain the types of medical waste.
[0062] Infrared images capture the characteristics of medical waste at the infrared spectral level, while color images capture the characteristics of medical waste at the visible spectral level. By acquiring images of medical waste using both infrared and color spectral methods, and then comprehensively analyzing these two types of images, the classification of medical waste becomes more accurate. Types of medical waste include infection types, injury types, case types, drug types, and chemical types, among others.
[0063] The YOLOv7 model boasts advantages such as lightweight design, fast inference speed, and flexible deployment. Researchers can pre-create training sample sets for medical waste, such as collecting various types of medical waste along with their infrared and color images. The correspondence between medical waste types and these images can then be determined to obtain training samples. For example, two training samples could be "Training Sample 1, Infrared Image 1, Color Image 1, Infection Type" and "Training Sample 2, Infrared Image 2, Color Image 2, Pathology Type." The YOLOv7 model can then be trained in a supervised manner using a large number of such training samples to obtain the trained model. A medical waste scale can then input the infrared and color images of the medical waste into the trained YOLOv7 model for classification, accurately determining the type of medical waste.
[0064] Step 3: Determine the traceability code for medical waste based on its type, current time, initial location information, and weight.
[0065] The type of medical waste, the current time of weighing, the initial location of the medical waste at the time of weighing, and the weight value of the medical waste are all key factors characterizing the nature and condition of the medical waste. Therefore, the medical waste electronic scale determines the traceability code based on the above four factors, making the traceability code more comprehensive and detailed. Subsequent personnel can more intuitively and clearly understand the specific circumstances of the medical waste during the collection and weighing process by using the traceability code. The traceability code can be a QR code; in other implementations, it can also be a barcode.
[0066] Step 3 includes:
[0067] Step 3.1: Determine the first characteristic value corresponding to the type of medical waste;
[0068] Staff can set different characteristic values for different types of medical waste and store these characteristic values in the local storage medium of the medical waste electronic scale. After the medical waste electronic scale determines the type of medical waste, it can call the characteristic value corresponding to that type to determine the first characteristic value of the medical waste.
[0069] Step 3.2: Determine the first product of the first eigenvalue and the current time, and divide the weight value by the first product to obtain the second eigenvalue;
[0070] The medical waste electronic scale calculates a first characteristic value by multiplying the first characteristic value of the medical waste by the current time, and then divides the weight of the medical waste by the first product to obtain a second characteristic value. The second characteristic value combines the type, the current time of weight collection, and the weight value, making it more consistent with the specific characteristics of the medical waste and giving it specificity. The second characteristic value can serve as a feature value that identifies the medical waste itself.
[0071] Step 3.3: Determine the second product of the first feature value and the first position information, and divide the weight value by the second product to obtain the third feature value;
[0072] The first location information is latitude and longitude. The medical waste scale sums the latitude and longitude to obtain a value representing the first location information. Then, the scale multiplies the first feature value by the sum of the latitude and longitude representing the first location information to obtain a second product. Finally, the weight value is divided by the second product to obtain the third feature value. The third feature value combines the first location information (type, collected weight) and the weight value, making it also specific and capable of identifying the medical waste itself.
[0073] Step 3.4: Generate the traceability code for medical waste based on the first feature value, the second feature value, and the third feature value.
[0074] In summary, the first, second, and third characteristic values are all key factors characterizing the specific nature of medical waste. Therefore, the medical waste scale generates a QR code containing these three characteristic values to obtain a traceability code. The medical waste scale encrypts the first, second, and third characteristic values using the national cryptographic algorithm SM4 to ensure data security.
[0075] Step 4: Obtain real-time second location information of medical waste during transportation, real-time third location information of the waste inside the transport vehicle, and real-time weight value during transportation;
[0076] After weighing, medical waste needs to be transported to a specialized processing facility. Transportation typically uses vehicles equipped with GPS tracking devices to collect real-time location information, enabling route tracking. To pinpoint the location of medical waste within the transport vehicle, UWB (Ultra-Wideband) technology is used for centimeter-level location. Tags are attached to the packaging bags or boxes of medical waste, emitting UWB signals. A base station inside the vehicle receives these signals and calculates the real-time location of the medical waste. For better monitoring during transport, a weighing device is placed inside the vehicle. The medical waste is then placed on the weighing device to detect weight changes during transport, providing a real-time weight value for subsequent analysis to determine if any waste has been lost. The medical waste scale is wirelessly connected to the GPS tracking device, base station, and weighing device on the transport vehicle to obtain this information.
[0077] Step 5: Update the traceability code based on the real-time second location information, the real-time third location information, and the real-time weight value to obtain the updated traceability code.
[0078] Real-time second location information, real-time third location information, and real-time weight value are all key factors characterizing the specific situation during the transportation of medical waste. Therefore, the medical waste electronic scale updates the traceability code based on the above three factors, including the real-time second location information, to obtain an updated traceability code. This allows subsequent personnel to more comprehensively and conveniently view the status of medical waste at each stage through the traceability code. Furthermore, blockchain technology can be used to store and round traceability information such as the traceability code. For example, using Hyperledger Fabric consortium blockchain technology, key data such as weighing, classification, and location, along with the traceability code, can be stored on the blockchain for evidence, ensuring data trust and collaboration among regulatory authorities, transporters, and disposal parties.
[0079] Step 5 includes:
[0080] Step 5.1: Determine the transportation route of medical waste based on real-time second location information, and determine whether the transportation route deviates based on the transportation route and the first electronic fence about the preset transportation route;
[0081] After acquiring real-time second location information, the medical waste electronic scale can connect lines based on this information and map them onto a preset map to obtain the transportation route of the medical waste. To ensure that the medical waste is not transported to other locations and loses control during transportation, simply comparing the actual transportation route with the preset route to determine whether the route has deviated is inaccurate when there are changes due to traffic congestion, road construction, etc. The medical waste electronic scale determines a larger but more reasonable first electronic fence based on the preset transportation route. Whether the actual transportation route intersects with the boundary of the first electronic fence is then used to determine whether the transportation route has deviated.
[0082] Step 5.2: Generate a weight change curve of medical waste during transportation based on real-time weight values;
[0083] The medical waste electronic scale maps the real-time weight of medical waste during transportation to a preset rectangular coordinate system and connects the points sequentially to obtain a weight change curve. This curve records the weight changes of the medical waste during transportation, facilitating subsequent analysis to determine if any medical waste has been lost.
[0084] Step 5.3: Determine whether medical waste is lost based on the weight change curve, real-time third location information, and the second electronic fence of the transport vehicle;
[0085] Real-time third-party location information indicates the location of medical waste within the transport vehicle. A second electronic fence can be the boundary of the transport compartment. Based on the positional relationship between the third-party location information and the second electronic fence, it can be analyzed whether medical waste has been lost. A medical waste scale, by comprehensively analyzing the weight change curve, real-time third-party location information, and the second electronic fence, provides a more accurate assessment of whether medical waste has been lost.
[0086] Step 5.3 includes:
[0087] Step 5.3.1: Determine whether there is a first segment of the weight change curve that indicates a decrease in weight;
[0088] The medical waste electronic scale analyzes the weight change curve to determine if there is a first curve segment with a slope less than 0. If the slope is less than 0, it indicates that the weight of the medical waste is gradually decreasing, and it may detach from the weighing device in the vehicle, which may lead to its loss.
[0089] Step 5.3.2: If it exists, determine the duration of the first curve segment and the slope of the first curve segment;
[0090] The medical waste scale detects a first curve segment indicating weight loss, suggesting a potential anomaly in the state of the medical waste within the vehicle. Therefore, the scale determines the duration and slope of this first curve segment. A longer duration indicates a gradual decrease in the weight of the medical waste within the vehicle, suggesting possible displacement. If the vehicle is not fully sealed or if someone steals the medical waste, it may detach from the vehicle and be lost. A larger absolute value of the slope indicates a faster rate of weight loss, suggesting the medical waste has detached from the weighing device. Again, if the vehicle is not fully sealed or if someone steals the medical waste, it may detach from the vehicle and be lost.
[0091] Step 5.3.3: Determine the first anomaly score for medical waste based on duration and slope;
[0092] In summary, the duration and slope of the first curve segment are key factors affecting whether medical waste may be lost during transportation. Therefore, staff set corresponding weights for the duration and slope and stored them in the local storage medium of the medical waste scale. After the medical waste scale determines the duration and slope, it calls the corresponding coefficients to perform weighted calculations to obtain the first anomaly score, which characterizes whether medical waste is lost or other abnormalities in terms of weight changes.
[0093] Step 5.3.4: Determine the real-time third location information and the nearest distance to the second electronic fence, and generate a distance change curve based on the nearest distance;
[0094] The medical waste scale can calculate the distance between the third location information and each edge of the second electronic fence in real time using a two-point distance formula, thereby determining the real-time nearest distance. The scale then maps this real-time nearest distance to a preset Cartesian coordinate system and connects the points sequentially to obtain a distance change curve related to the nearest distance. A smaller nearest distance indicates closer proximity to the edge of the vehicle compartment, and a greater likelihood of detachment from the compartment.
[0095] Step 5.3.5: Determine the second curve segment corresponding to the time of the first curve segment from the distance change curve; the medical waste electronic scale extracts the corresponding second curve segment from the distance change curve according to the time interval of the first curve segment.
[0096] Step 5.3.6: Determine the minimum and average distances of the second curve segment, and determine the second abnormality score of medical waste based on the minimum and average distances;
[0097] The medical waste scale determines the minimum distance in the second curve segment. The smaller the minimum distance, the closer the waste is to the edge of the carriage, and the greater the likelihood of medical waste loss. The scale calculates the average distance of the second curve segment using an average calculation formula. A smaller average distance indicates that the waste is closer to the edge of the carriage within the corresponding time interval of the second curve segment, further increasing the likelihood of medical waste loss. Therefore, both the minimum and average distances are key factors influencing the likelihood of medical waste loss in terms of distance from the carriage edge. Staff assign corresponding weights to the minimum and average distances and store them in the scale's local storage. After determining the minimum and average distances, the scale uses their respective weights to perform a weighted calculation, yielding a second anomaly score representing the abnormal likelihood of loss in terms of distance from the carriage edge.
[0098] Step 5.3.7: Determine the total abnormal score of medical waste based on the first abnormal score and the second abnormal score;
[0099] The first and second abnormal scores are key factors affecting the likelihood of medical waste loss. Therefore, the medical waste electronic scale can sum the first and second abnormal scores to obtain the total abnormal score of the medical waste. The larger the total abnormal score, the greater the likelihood of loss.
[0100] Step 5.3.8: When the total abnormal score reaches the preset score threshold, medical waste is determined to be lost;
[0101] The preset abnormal score serves as a dividing point indicating a high probability of medical waste loss. The medical waste scale compares the total abnormal score with the preset score threshold. If the total abnormal score of the medical waste reaches the preset score threshold, it indicates a high probability of loss, which is sufficient to confirm that the medical waste is lost. Therefore, the medical waste scale determines that the medical waste is lost.
[0102] Step 5.3.9: If the total abnormal score does not reach the preset score threshold, it is determined that the medical waste has not been lost.
[0103] If the total abnormal score does not reach the preset score threshold, it indicates that the possibility of loss is low, and therefore the medical waste electronic scale determines that the medical waste has not been lost.
[0104] Step 5.4: Update the traceability code based on whether the transportation route has deviated and whether medical waste has been lost. After the medical waste electronic scale determines whether the transportation route has deviated and whether medical waste has been lost, it updates the traceability code based on these two results, so that the traceability code records the status of medical waste during transportation in a timely manner.
[0105] Step 5.4 includes:
[0106] Step 5.4.1: When the transportation route deviates and / or medical waste is lost, determine the location of the deviation and / or the location of the loss;
[0107] If at least one of the following occurs—a deviation from the transport route or loss of medical waste—it indicates a high probability that the medical waste has been stolen and reused by criminals, and at least one of these situations needs to be recorded. Therefore, when a route deviation occurs, the medical waste scale determines the location where the actual transport route intersects with the first electronic fence, i.e., the deviation point. In the event of loss, the location of the transport vehicle at the time of loss is determined, i.e., the loss point. When the transport route intersects with the first electronic fence, it is simultaneously determined that medical waste has been lost.
[0108] Step 5.4.2: When the traceability code is updated based on the off-location and / or lost location, the updated traceability code is obtained;
[0109] The medical waste electronic scale updates the traceability code based on the location of deviation and / or loss. The updated traceability code includes the location of deviation and / or loss. This updated traceability code is stored on a blockchain for verification, facilitating subsequent traceability and allowing for monitoring of any anomalies that occurred during transportation.
[0110] Step 5.4.3: If the transportation route has not deviated and the medical waste has not been lost, the traceability code is updated according to the transportation route to obtain the updated traceability code.
[0111] If the medical waste scale determines that the transportation route has not deviated and the medical waste has not been lost, it indicates that the transportation process is normal. Only the transportation route needs to be updated to obtain an updated traceability code. Subsequent personnel can then use the traceability code to clearly understand the transportation route.
[0112] Step 5.5: When medical waste is confirmed to be missing, output an alarm message.
[0113] If the total abnormal score reaches a preset threshold, it indicates that medical waste is lost. The medical waste scale will then output an alarm message, allowing relevant personnel to be promptly informed of the loss. Specifically, the medical waste scale can send a text message to relevant personnel's devices, such as mobile phones, stating, "Medical waste may be lost during transportation; please handle it promptly." Simultaneously, the identified location of the loss will be sent to the personnel's devices, enabling them to react in a timely manner.
[0114] like Figure 2 As shown, the intelligent sorting and traceability device in the medical waste electronic scale of step 1 includes:
[0115] The first data acquisition module is used to acquire infrared images, color images, current time, first location information of medical waste, and weight value of medical waste;
[0116] A classification module is used to determine the type of medical waste based on infrared and color images;
[0117] The traceability code determination module is used to determine the traceability code of medical waste based on its type, current time, first location information, and weight value.
[0118] The second data acquisition module is used to acquire real-time second location information of medical waste during transportation, real-time third location information inside the transport vehicle, and real-time weight value during transportation.
[0119] The update module is used to update the traceability code based on real-time second location information, real-time third location information, and real-time weight value to obtain the updated traceability code.
[0120] This application discloses an intelligent classification and traceability device. A first data acquisition module acquires infrared and color images of medical waste, the current time, the first location information of the medical waste, and its weight value, facilitating subsequent classification and traceability data acquisition. The infrared and color images are acquired from two different angles, allowing the classification module to accurately identify the type of medical waste through comprehensive analysis. The type of medical waste, current time, first location information, and weight value are key factors characterizing the relevant features of medical waste. Therefore, the traceability code determination module accurately determines the traceability code of the medical waste based on these four factors, including the type of medical waste. The traceability code allows personnel to easily understand the relevant characteristics and status of the medical waste. A second data acquisition module acquires real-time second location information of the medical waste during transportation, real-time third location information within the transport vehicle, and real-time weight value of the medical waste during transportation, facilitating comprehensive monitoring of the medical waste during transport. An update module updates the traceability code based on the real-time second location information and the other three factors, resulting in an updated traceability code. This allows personnel to easily and comprehensively trace the transportation process and the weighing and classification stages.
[0121] like Figure 3 As shown, the medical waste electronic scale in step 1 includes:
[0122] Infrared cameras capture infrared images of medical waste;
[0123] A color camera captures color images of medical waste;
[0124] GPS positioning devices collect the initial location information of medical waste;
[0125] Clock chip, to collect the current time;
[0126] Weight sensor to collect weight values of medical waste;
[0127] At least one processor;
[0128] Memory;
[0129] transceiver;
[0130] At least one application, stored in memory and configured to be executed by at least one processor, is provided for executing an intelligent sorting and traceability method based on a medical waste electronic scale. The system includes an infrared camera for acquiring infrared images of medical waste, a color camera for acquiring color images of medical waste, a GPS positioning device for acquiring first location information of medical waste, a clock chip for acquiring the current time, a weight sensor for acquiring the weight value of medical waste, a processor, and a memory. The processor and memory are connected, for example, via a bus. Optionally, the medical waste electronic scale may also include a transceiver. It should be noted that in practical applications, the transceiver is not limited to one, and the structure of this medical waste electronic scale does not constitute a limitation on the embodiments of this application.
[0131] The processor can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0132] A bus can include a pathway for transmitting information between the aforementioned components. The bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc.
[0133] The memory may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to these.
[0134] The memory stores the application code that executes the solution of this application, and its execution is controlled by the processor. The processor executes the application code stored in the memory to implement the content shown in the foregoing method embodiments.
[0135] This application provides a computer-readable storage medium storing a computer program that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments. Compared with related technologies, the embodiments of this application acquire infrared images, color images, current time, first location information of medical waste, and weight value of medical waste, which facilitates subsequent classification and the acquisition of traceability data. The infrared and color images are images of medical waste collected from two different angles. Therefore, the type of medical waste can be accurately identified by comprehensively analyzing these two images. The type of medical waste, current time, first location information, and weight value are all key factors characterizing the relevant features of medical waste. Therefore, the traceability code of medical waste can be accurately determined based on the above four factors, including the type of medical waste. The traceability code facilitates subsequent personnel to know the relevant characteristics and status of medical waste. The real-time second location information of medical waste during transportation, the real-time third location information within the transport vehicle, and the real-time weight value of medical waste during transportation are obtained, which facilitates comprehensive monitoring of medical waste during transportation. The traceability code is updated based on the real-time second location information and the above three factors to obtain the updated traceability code, thereby enabling personnel to conduct comprehensive and convenient traceability of the transportation process and weighing and classification.
[0136] Contents not described in detail in this specification are prior art known to those skilled in the art. Although illustrative specific embodiments of the invention have been described above to facilitate understanding by those skilled in the art, it should be understood that the invention is not limited to the scope of the specific embodiments. Various modifications are readily apparent to those skilled in the art as long as they fall within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions utilizing the concept of this invention are protected.
Claims
1. A smart classification and traceability method based on electronic scales for medical waste, characterized in that, The method includes the following steps: Step 1: Use a medical waste electronic scale to obtain infrared images, color images, current time, first location information of the medical waste, and weight value of the medical waste; Step 2: Determine the type of medical waste based on infrared and color images; Step 3: Determine the traceability code for medical waste based on its type, current time, initial location information, and weight. Step 4: Obtain real-time second location information of medical waste during transportation, real-time third location information of the waste inside the transport vehicle, and real-time weight value during transportation; Step 5: Update the traceability code based on the real-time second location information, the real-time third location information, and the real-time weight value to obtain the updated traceability code.
2. The intelligent classification and traceability method based on electronic scales for medical waste according to claim 1, characterized in that, Step 2 includes: Infrared and color images are input into the trained YOLOv7 model to classify medical waste and obtain the types of medical waste.
3. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 2, characterized in that, Step 3 includes: Step 3.1: Determine the first characteristic value corresponding to the type of medical waste; Step 3.2: Determine the first product of the first eigenvalue and the current time, and divide the weight value by the first product to obtain the second eigenvalue; Step 3.3: Determine the second product of the first feature value and the first position information, and divide the weight value by the second product to obtain the third feature value; Step 3.4: Generate the traceability code for medical waste based on the first feature value, the second feature value, and the third feature value.
4. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 3, characterized in that, Step 5 includes: Step 5.1: Determine the transportation route of medical waste based on real-time second location information, and determine whether the transportation route deviates based on the transportation route and the first electronic fence about the preset transportation route; Step 5.2: Generate a weight change curve of medical waste during transportation based on real-time weight values; Step 5.3: Determine whether medical waste is lost based on the weight change curve, real-time third location information, and the second electronic fence of the transport vehicle; Step 5.4: Update the traceability code based on whether the transportation route has deviated and whether medical waste has been lost.
5. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 4, characterized in that, Step 5.3 includes: Step 5.3.1: Determine whether there is a first segment of the weight change curve that indicates a decrease in weight; Step 5.3.2: If it exists, determine the duration of the first curve segment and the slope of the first curve segment; Step 5.3.3: Determine the first anomaly score for medical waste based on duration and slope; Step 5.3.4: Determine the real-time third location information and the nearest distance to the second electronic fence, and generate a distance change curve based on the nearest distance; Step 5.3.5: Determine the second curve segment corresponding to the time of the first curve segment from the distance change curve; Step 5.3.6: Determine the minimum and average distances of the second curve segment, and determine the second abnormality score of medical waste based on the minimum and average distances; Step 5.3.7: Determine the total abnormal score of medical waste based on the first abnormal score and the second abnormal score; Step 5.3.8: When the total abnormal score reaches the preset score threshold, medical waste is determined to be lost; Step 5.3.9: If the total abnormal score does not reach the preset score threshold, it is determined that the medical waste has not been lost.
6. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 5, characterized in that, Step 5.4 includes: Step 5.4.1: When the transportation route deviates and / or medical waste is lost, determine the location of the deviation and / or the location of the loss; Step 5.4.2: When the traceability code is updated based on the off-location and / or lost location, the updated traceability code is obtained; Step 5.4.3: If the transportation route has not deviated and the medical waste has not been lost, the traceability code is updated according to the transportation route to obtain the updated traceability code.
7. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 6, characterized in that, When medical waste is determined to be lost, step 5.5 is included: outputting alarm information.
8. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 1, characterized in that, The intelligent sorting and traceability device in the medical waste electronic scale in step 1 includes: The first data acquisition module is used to acquire infrared images, color images, current time, first location information of medical waste, and weight value of medical waste; A classification module is used to determine the type of medical waste based on infrared and color images; The traceability code determination module is used to determine the traceability code of medical waste based on its type, current time, first location information, and weight value. The second data acquisition module is used to acquire real-time second location information of medical waste during transportation, real-time third location information inside the transport vehicle, and real-time weight value during transportation. The update module is used to update the traceability code based on real-time second location information, real-time third location information, and real-time weight value to obtain the updated traceability code.
9. A method for intelligent classification and traceability of medical waste based on an electronic scale according to claim 1, characterized in that, The medical waste electronic scale in step 1 includes: Infrared cameras capture infrared images of medical waste; A color camera captures color images of medical waste; GPS positioning devices collect the initial location information of medical waste; Clock chip, to collect the current time; Weight sensor to collect weight values of medical waste; At least one processor; transceiver; Memory; At least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, the at least one application being for executing a smart classification and traceability method based on a medical waste electronic scale according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed in the computer, it causes the computer to execute the intelligent classification and traceability method based on the electronic scale for medical waste according to any one of claims 1 to 7.