A method, device and washing machine for laundry stain identification

By combining clothing image localization and excitation light fluorescence detection, the problem of insufficient reliability of stain recognition in washing machines is solved, achieving high-accuracy stain recognition in complex clothing scenarios and adaptively adjusting washing parameters.

CN123153244APending Publication Date: 2026-11-24GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611368177.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing washing machines have insufficient reliability in recognizing stains on clothes, especially in complex clothing scenarios where the posture of the clothes and the obstruction of stains affect the accuracy of the recognition results.

Method used

By combining clothing image localization with excitation light fluorescence detection, potential stain areas are identified through clothing images, and stains are classified using the fluorescence response formed by excitation light. Multiple identifications and result fusion are performed by combining clothing posture changes to improve the accuracy and completeness of stain information acquisition.

Benefits of technology

In complex clothing scenarios, it improves the reliability and accuracy of stain type identification, provides a reliable basis for the adaptive adjustment of subsequent washing parameters, and reduces the impact of the clothing itself and irrelevant areas on the identification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123153244A_ABST
    Figure CN123153244A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and washing machine for identifying stains on clothing. The method acquires an image of the clothing to be processed and determines potential stain areas. After determining the potential stain areas, the clothing to be processed is irradiated with excitation light to acquire a fluorescence image. The corresponding target fluorescence area in the fluorescence image is determined based on the position of the potential stain area in the clothing image. The stain identification result is determined based on the fluorescence characteristics of the target fluorescence area. Furthermore, multiple identifications can be performed by changing the posture of the clothing, and the results of different stain categories can be fused separately, thereby improving the accuracy and completeness of stain identification in complex clothing scenarios and providing a basis for adaptive adjustment of washing parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of washing machine technology, and particularly relates to a method, device and washing machine for identifying stains on clothing. Background Technology

[0002] As a commonly used clothing washing device, washing machines typically determine washing parameters such as washing time, washing temperature, washing intensity, detergent dosage, and rinsing times based on the user's selected washing program and basic information such as the weight of the clothes and the water level. They then complete the washing of clothes according to the preset washing program. However, since different clothes have significant differences in the type, degree of soiling, and adhesion of stains, using fixed washing parameters is difficult to adapt to the actual soiling conditions of different clothes. When the washing intensity is set too low, it is easy to leave stains, while setting the washing intensity too high can easily waste water, electricity, and detergent resources and may increase the wear and tear on clothes. Therefore, adaptively adjusting the washing parameters according to the actual soiling condition of the clothes has gradually become an important development direction for the intelligent control of washing machines.

[0003] To achieve washing control based on stain condition, existing technologies include solutions that use cameras to acquire images of the clothes to be washed and determine stain information through image processing and image recognition. For example, the acquired clothing images are first segmented into several sub-images, and then image recognition is performed on each sub-image to determine the location and type of stain. Based on the recognition results, the corresponding washing method is further determined. This type of solution can directly obtain visual information about stains from clothing images, enabling washing machines to gradually evolve from simply washing according to preset washing programs to targeted control based on stain condition.

[0004] However, in actual washing scenarios, clothing usually has complex colors, textures, patterns, and materials, and the surface characteristics of different clothes vary greatly. Some stains are visually similar to the color, texture, or pattern of the clothing itself. Relying solely on the color, brightness, and texture information contained in conventional images is insufficient to fully reflect the differences between stains and the clothing itself, which can easily lead to inaccurate stain area identification or misjudgment of stain type. At the same time, clothing may be folded, stacked, or partially obscured inside the washing machine, preventing some stains from being fully exposed to the camera's field of view, further affecting the complete acquisition of stain information. Therefore, stain recognition based on conventional clothing images still suffers from insufficient reliability in complex clothing scenarios.

[0005] To reduce the impact of clothing posture and stain occlusion on the recognition results, existing technologies have proposed a scheme for identifying clothing stains based on wash water characteristics. This scheme, after obtaining relevant information about the clothing in the washing machine, first executes a stirring program without adding detergent when the wash water reaches a preset level, causing some of the stains on the clothing to dissolve or disperse into the wash water. Then, a wash water sample is obtained and spectral analysis is performed on the wash water. Based on the obtained absorption spectral characteristics of the wash water, the type of stain on the clothing is determined. This type of scheme does not require direct observation of the stains on the surface of the clothing, which can reduce the impact of clothing posture and stain occlusion on the detection process to a certain extent, and indirectly reflects the pollution status of the clothing through relevant characteristics in the wash water.

[0006] However, this method of stain identification based on washing water characteristics requires that the stains can be fully dissolved or dispersed in the washing water during the preset stirring process. However, the types of stains on actual clothing are quite complex, and the interaction between different stains and water varies. Some common stains, especially oil stains and protein stains, are not easy to fully dissolve or disperse evenly in a short time. As a result, the characteristic information formed in the washing water may not be able to fully reflect the actual stain situation on the clothing. At the same time, the water quality itself and the impurities and dissolved substances in it may also interfere with the detection results, causing a deviation between the stain information obtained based on washing water characteristics and the actual state of clothing pollution, thus affecting the accuracy and stability of stain type judgment.

[0007] Therefore, how to improve the reliability of washing machines in identifying the types of stains on clothes, so as to provide more accurate stain information for subsequent washing control, remains a technical problem that needs to be further solved in this field. Summary of the Invention

[0008] This invention aims to address the problem of insufficient reliability in identifying stain areas and stain types in existing washing machines. This application discloses a stain identification scheme that combines the localization of potential stain areas in clothing images with excitation light fluorescence detection. Candidate areas are determined through clothing images, and then the fluorescence response formed by excitation light is used to classify stains in the candidate areas. Multiple identifications and result fusion are performed in conjunction with changes in clothing posture, enabling the washing machine to obtain identification results for one or more stain categories. This improves the accuracy and completeness of stain information acquisition in complex clothing scenarios and provides a more reliable basis for the adaptive adjustment of subsequent washing parameters.

[0009] The technical solution of the present invention is as follows: This invention discloses a method for identifying stains on clothing, comprising: Acquire images of the clothes to be processed inside the washing machine, and locate potential stain areas on the clothes to be processed based on the images; After locating the potential stain area, the garment to be treated is irradiated with excitation light to cause the target substance in the potential stain area to produce a fluorescent response, and a fluorescent image of the garment to be treated under the excitation light is acquired. Based on the location information of the potential stain area in the clothing image, a target fluorescent area corresponding to the potential stain area is obtained from the fluorescent image, and the stain type of the potential stain area is classified based on the fluorescence features in the target fluorescent area, so as to obtain the stain identification result of the clothing to be treated.

[0010] Furthermore, locating the potential stained areas on the garment to be treated includes: The clothing image is input into a pre-trained target detection model, which determines at least one potential stain region based on the image features in the clothing image and outputs the position of each potential stain region in the clothing image.

[0011] Furthermore, the excitation light includes at least one of ultraviolet light, violet light, and blue light that can induce a fluorescence response in the target material, and the wavelength of the excitation light is determined according to the optical response characteristics corresponding to the target material.

[0012] Furthermore, when acquiring the fluorescence image, the visible light brightness inside the washing machine is reduced or the visible light illumination device installed inside the washing machine is turned off.

[0013] Furthermore, the fluorescence image and the clothing image are acquired by the same image acquisition device, and the excitation light is ultraviolet light. When acquiring the fluorescence image, an ultraviolet cutoff filter is set on the optical imaging path of the image acquisition device to reduce the ultraviolet light reflected and / or scattered light received by the image acquisition device.

[0014] Further, the step of classifying the potential stain area based on the fluorescence characteristics in the target fluorescent region includes: The target fluorescent region is input into a pre-trained stain classification model, and at least one feature among fluorescence intensity, fluorescence color, fluorescence distribution, and fluorescence texture in the target fluorescent region is extracted. The stain type corresponding to the potential stain region is determined based on the extracted fluorescence features.

[0015] Furthermore, the stain classification model outputs classification confidence scores corresponding to multiple preset stain types, and determines the stain type of the potential stain area based on the classification confidence scores corresponding to each preset stain type.

[0016] Furthermore, before determining the final stain identification result, the washing machine drum is controlled to rotate to change the posture of the garment to be treated within the drum. After the posture of the garment to be treated changes, the garment image is re-acquired, the potential stain area is located, a fluorescence image is acquired, and the stain type is determined to obtain multiple stain identification results.

[0017] Further, the final stain identification result of the garment to be treated is determined based on multiple stain identification results, including: The frequency of each stain type in multiple stain identification results is counted, and the stain type with the highest frequency is determined as the final stain identification result. If at least two stain types occur the same number of times, the final stain identification result is determined based on the classification confidence corresponding to at least two stain types.

[0018] Further, the final stain identification result of the garment to be treated is determined based on multiple stain identification results, including: The occurrence frequency and classification confidence of each stain type in multiple stain identification results are statistically analyzed. Based on the occurrence frequency and / or classification confidence of each stain type, at least one stain type that meets the preset identification conditions is determined, and the at least one stain type is determined as the final stain identification result of the garment to be treated.

[0019] Furthermore, when it is determined that the garment to be treated has stains, at least one washing parameter of the washing program is adjusted according to the determined stain type. The washing parameters include at least one of washing temperature, detergent dosage, washing time, washing intensity, water intake, and rinsing times, and the garment to be treated is washed according to the adjusted washing parameters. If no stains meeting the preset identification conditions are detected in the garment to be treated, the garment to be treated is washed according to the washing parameters set before stain identification.

[0020] The present invention also discloses a device for identifying stains on clothing, comprising: The image acquisition module is used to acquire images of the clothes to be processed inside the washing machine and fluorescence images formed under excitation light irradiation conditions; A stain location module, which is communicatively connected to the image acquisition module, is used to locate potential stain areas on the garment to be processed based on the garment image, and to determine the location information of the potential stain areas in the garment image. An excitation module is used to provide excitation light to the garment to be treated after locating the potential stain area, so as to cause the target substance in the potential stain area to produce a fluorescent response; The region extraction module is communicatively connected to the image acquisition module and the stain localization module, and is used to extract the target fluorescent region corresponding to the potential stain region from the fluorescent image based on the location information of the potential stain region; The stain classification module is communicatively connected to the region extraction module and is used to classify the potential stain regions based on the fluorescence features in the target fluorescent region to obtain the stain identification results of the clothing to be treated.

[0021] The present invention also discloses a washing machine, comprising: A roller, used to hold clothes to be processed; A drive mechanism, connected to the roller drive, is used to drive the roller to rotate; An image acquisition device is used to acquire images of the clothing to be processed inside the drum and fluorescence images; An excitation light source is used to provide excitation light to the garments to be treated inside the drum, so that the target substance on the garments to be treated produces a fluorescent response. A control device is communicatively connected to the drive mechanism, the image acquisition device, and the excitation light source. The control device is used to locate potential stain areas on the garment to be treated based on the garment image. After locating the potential stain area, the control device controls the excitation light source to provide excitation light to the garment to be treated and controls the image acquisition device to acquire the fluorescence image. Based on the position information of the potential stain area in the garment image, the control device obtains the corresponding target fluorescence area from the fluorescence image and classifies the potential stain area into stain types based on the fluorescence characteristics in the target fluorescence area to obtain the stain identification result of the garment to be treated.

[0022] Compared with existing technologies, the method, apparatus, and washing machine for identifying clothing stains described in this invention have the following advantages: This application processes clothing image localization and excitation light fluorescence recognition in stages, so that the clothing image no longer undertakes the entire stain recognition task, but is mainly used to identify local areas with potential stains from the overall clothing image. Then, excitation light is used to make the target substance in the corresponding area form a detectable optical response, and the target fluorescent area corresponding to the potential stain area is extracted from the fluorescence image for further classification. Since the fluorescence feature is different from the color, brightness, texture and pattern in ordinary clothing images, it can provide new feature basis for stain type judgment. At the same time, the fluorescence analysis range is limited to the already located potential stain areas by the region correspondence relationship, avoiding indiscriminate recognition of the entire fluorescence image, thereby reducing the influence of the clothing body and irrelevant areas on the classification results. By comprehensively judging multiple features such as fluorescence intensity, color, spatial distribution, and texture, the ability to distinguish between different stain types is improved, enabling the washing machine to obtain more stable stain recognition results on the surface of clothing with complex colors, textures and materials. Attached Figure Description

[0023] Figure 1 This is a washing process diagram of the method for identifying clothing stains according to an embodiment of the present invention; Figure 2 This is a schematic block diagram of the device for identifying clothing stains according to an embodiment of the present invention; Figure 3 This is an example diagram of stain identification results and washing suggestions based on clothing images and stain location in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0025] It should be noted that all directional and positional terms used in this invention, such as "up," "down," "left," "right," "front," "back," "vertical," "horizontal," "inner," "outer," "top," "bottom," "lateral," "longitudinal," and "center," are only used to explain the relative positional relationships and connections between components in a specific state (as shown in the accompanying drawings). They are merely for the convenience of describing the invention and do not require the invention to be constructed and operated in a specific orientation; therefore, they should not be construed as limitations on the invention. Furthermore, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated.

[0026] In the description of this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0027] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0028] like Figures 1-3 As shown, this application provides a method for identifying clothing stains. First, it acquires an image of the clothing to be processed in a washing machine, and then locates potential stain areas on the clothing based on the clothing image. The potential stain areas are clothing areas with the possibility of stains determined according to image features in the clothing image. By performing region recognition on the clothing image, local areas that need further detection are selected from the overall image of the clothing to be processed. This allows the clothing image to be mainly used to provide spatial location information of stain candidate areas, rather than requiring the determination of stain type directly based solely on the clothing image. This distinguishes between region localization and type classification in the clothing stain identification process, providing target areas for subsequent further identification using feature information different from that of conventional clothing images. After locating the potential stain area, the garment to be treated is irradiated with excitation light to induce a fluorescence response in the target substance within the potential stain area. A fluorescence image of the garment under excitation light is then acquired. During the excitation light irradiation process, some substances in the potential stain area absorb the excitation light energy and undergo photoluminescence, releasing a light signal distinct from the incident excitation light. This results in corresponding fluorescence features in the fluorescence image. Since different substances exhibit different photoluminescence responses under corresponding excitation conditions, the fluorescence image can provide additional information that distinguishes it from the conventional visible light appearance features of the garment, such as color, brightness, and texture. Therefore, it can provide different dimensions of feature basis for further identification of the potential stain area. In one embodiment of this application, the target substance is a component of the stain itself that has a detectable optical response, or a stain-related substance that can characterize the corresponding stain type. The target substance can generate a fluorescence response that can be detected by an image acquisition device (e.g., a camera) under the irradiation of a selected excitation light. The fluorescence response can be manifested as at least one of fluorescence intensity, fluorescence color, fluorescence spatial distribution, fluorescence texture, and fluorescence response changes at different excitation wavelengths. When there are differences in the composition, content, and optical response characteristics of the target substance corresponding to different stain types, a correspondence between the fluorescence characteristics of the target fluorescence region and the stain type is established based on the differences. The stain type can include grease stains, protein stains, tannic acid stains, blood stains, and other stain types that can be distinguished by the optical response characteristics. The listed stain types are only used to illustrate the identifiable stain categories of this application and do not limit each stain type to using the same excitation wavelength or having the same fluorescence response mechanism. Furthermore, based on the location information of the potential stain area in the clothing image, the target fluorescent area corresponding to the potential stain area is obtained from the fluorescent image. Since the clothing image and the fluorescent image both correspond to the same clothing to be processed, the spatial location information of the potential stain area in the clothing image can be used to determine the image area corresponding to the potential stain area in the fluorescent image, and this area is used as the target fluorescent area. By using the spatial positioning results obtained in the previous stage for the region extraction of the fluorescent image in the next stage, the subsequent stain classification is focused on the potential stain area determined in the previous stage, without the need to perform indiscriminate analysis on the entire fluorescent image, thereby reducing the interference of image information generated by clothing areas unrelated to the potential stain area on stain type classification. After obtaining the target fluorescent region, the potential stain region is classified into stain types based on the fluorescence features in the target fluorescent region to obtain the stain identification result of the garment to be treated. The fluorescence features are used to characterize the optical response features generated by the potential stain region under excitation light conditions. By performing feature analysis on the target fluorescent region, the stain type is classified according to the fluorescence response differences corresponding to different stain regions. This establishes a correspondence between the spatial location information provided by the garment image and the material optical response information provided by the fluorescence image, so that the area localization result of the previous stage can be used as the target range for stain type identification in the next stage.

[0029] This application, through the above-mentioned technical solution, does not directly use clothing images to simultaneously identify the location and type of stains. Instead, it first determines the potential stain area based on the clothing image, then uses excitation light to irradiate the clothing to be treated to obtain the fluorescence response corresponding to the potential stain area, and extracts the corresponding target fluorescence area from the fluorescence image based on the location information of the potential stain area. Finally, it classifies the stain type based on the fluorescence features in the target fluorescence area. This forms a staged stain identification method that combines spatial localization based on clothing images with type identification based on fluorescence features, so that the area localization and type judgment of clothing stains are processed using appropriate feature information respectively.

[0030] Furthermore, since clothing itself has complex surface features such as color, texture, pattern, and material, the visual difference between some stains and the clothing body is not obvious under visible light conditions. When only clothing images are used to determine the type of stain, the appearance features of the clothing itself may become an interfering factor affecting the recognition result. After completing the localization of potential stain areas, this application further uses the fluorescence response formed by excitation light to classify stain types, so that the stain type judgment no longer depends entirely on the appearance difference of clothing under visible light conditions, but can use the fluorescence features formed by the stain area under the corresponding excitation conditions to further distinguish them, thereby improving the reliability of stain type recognition under complex clothing surface conditions.

[0031] This application does not simply set up clothing image recognition and fluorescence detection side by side. Instead, it uses a continuous technical processing relationship of "potential stain area localization, excitation light excitation, fluorescence image acquisition, extraction of corresponding target fluorescence areas, and stain type classification based on fluorescence features" to associate the spatial location information in the clothing image with the optical feature information in the fluorescence image. This allows the visible light image to mainly play the role of screening potential stain areas, while the fluorescence image mainly plays the role of stain type discrimination. Furthermore, the region localization results of the previous stage limit the scope of fluorescence feature analysis in the next stage, thereby improving the utilization of effective stain features and the pertinence and reliability of stain type identification.

[0032] In one embodiment of this application, locating the potential stain area on the garment to be processed includes: inputting the acquired garment image into a pre-trained target detection model; the target detection model performing feature extraction and region detection on the garment image; determining at least one potential stain area in the garment image that may contain stains based on the differences in color, brightness, texture, edge, and local region features between the garment body and the potential stains on its surface; and outputting the position of each potential stain area in the garment image. The position is characterized by information such as the coordinate range, center coordinates, and size of the detection box. The target detection model is trained using garment image samples containing different garment materials, colors, textures, and stain types, enabling the target detection model to learn the relationship between garment body features and potential stain areas in garment images with different surface visual features. The image feature differences are used to locate suspected stain areas in clothing images from the overall clothing image, providing a location basis for subsequent acquisition of corresponding fluorescence information for the potential stain areas. Since the target detection model directly outputs the location of the potential stain areas, there is no need to manually divide the clothing image beforehand or identify them one by one according to fixed regions. Therefore, it can adaptively determine the detection area based on the actual local features appearing in the clothing image. The target detection model's adaptability to complex clothing surface features is improved through training with samples of different materials, colors, textures, and stain types. At the same time, the target detection model is used for the preliminary localization of potential stain areas, rather than directly using its output as the final stain type judgment result. This makes the spatial localization of potential stain areas correspond to the subsequent stain type identification based on fluorescence features, which helps to reduce the interference of irrelevant areas in the subsequent fluorescence image on the stain classification process.

[0033] In this embodiment, the target detection model is not directly used to determine the specific type of stain, but mainly used to filter local areas with the potential for stains from the overall image of the clothing. Since visual information such as color, brightness, texture, and pattern in ordinary clothing images is easily affected by the appearance characteristics of the clothing itself, the detection results of the target detection model are used as potential stain areas, rather than directly as the final stain type identification result. This allows the clothing image to primarily serve the function of locating candidate stain areas and provides spatial location information for subsequent stain type identification based on fluorescence features.

[0034] The target detection model can be a trained neural network target detection model, such as a convolutional neural network-based target detection model, or other machine learning or deep learning models capable of outputting the target region location based on the input image. In one specific embodiment, the target detection model can be a YOLO series target detection model, such as the YOLO26 target detection model. In practical applications, a suitable target detection model can be selected based on the washing machine's processor performance, image acquisition resolution, and real-time requirements for target detection; this application does not impose specific limitations in this regard.

[0035] Since images in general object detection datasets often differ significantly from images of clothes inside a washing machine drum, object detection models trained directly using general datasets may struggle to accurately adapt to clothing stain detection scenarios. Therefore, in this embodiment, a stain recognition training dataset is constructed specifically for the clothing stain detection task. This training dataset is then used to train or fine-tune the object detection model, enabling it to learn the feature differences between the clothes themselves and potential stain areas in actual washing machine usage scenarios.

[0036] The stain recognition training dataset includes multiple clothing image samples. To improve the adaptability of the target detection model to real-world clothing scenarios, the clothing image samples can cover different clothing materials, colors, textures, patterns, and stain types, and can further cover different stain areas, stain shapes, stain adhesion levels, and clothing postures. The clothing image samples are preferably collected in the environment inside a washing machine drum corresponding to actual applications, so that factors such as background, lighting, clothing stacking status, and shooting angle in the training data match the actual stain detection environment.

[0037] For the clothing image sample, regions with stains or suspected stain features are labeled to form annotation data corresponding to the clothing image sample. In one embodiment, rectangular detection boxes can be used to label the stained areas in the image, and the position information of the rectangular detection boxes can be recorded to form sample labels for training the target detection model. The labeling can be done using image annotation tools, such as LabelImg, or other image annotation methods capable of generating target detection annotation data.

[0038] During model training, the clothing image samples and their corresponding labeled data are input into the target detection model to be trained. This allows the model to learn the feature relationships between different clothing materials, colors, textures, patterns, and stain areas. By adjusting the model parameters, the model can output the location of potential stain areas based on the input clothing image. After training, the trained target detection model is deployed in the washing machine's control system or in an image processing device communicatively connected to the washing machine's control system for detecting potential stain areas in actual acquired clothing images.

[0039] In the actual detection process, after the clothing image is input into the trained target detection model, the target detection model outputs one or more candidate detection regions and the corresponding detection confidence score for each candidate detection region. The candidate detection regions are then filtered according to a preset detection confidence score threshold, and those regions that meet the preset criteria are identified as potential stain regions. Candidate detection regions that do not meet the preset criteria are discarded to reduce invalid regions in subsequent fluorescence detection and stain classification processes.

[0040] It should be noted that, since the target detection model is based on visible light image features in clothing images, its output of potential stain areas may contain false positives, meaning that the detected areas may not actually contain stains. Therefore, this application does not directly identify the potential stain areas output by the target detection model as actual stains, but rather uses them as candidate areas for subsequent fluorescence detection. Subsequently, the clothing to be treated is irradiated with excitation light to obtain the corresponding fluorescence image. Then, the location information of the potential stain areas is used to extract the corresponding target fluorescence areas from the fluorescence images, and the stain type is further classified based on the fluorescence features in the target fluorescence areas, thereby further determining the preliminary localization results.

[0041] The above approach achieves two key benefits. First, it utilizes a target detection model to perform region detection on the overall image of clothing, adaptively determining potential stain areas based on the actual image features of the clothing, eliminating the need for pre-dividing the clothing image manually according to fixed locations. Second, it differentiates the region detection function of the target detection model from the subsequent stain type classification function based on fluorescence features. Ordinary clothing images are primarily used to provide spatial location information for candidate stain regions, while the optical response features in the fluorescence image are used to further determine the stain type. This reduces reliance on single visual features such as color, texture, and pattern in ordinary visible light images and provides targeted detection areas for subsequent stain type identification.

[0042] In one embodiment of this application, when the target detection model determines multiple potential stain regions based on the clothing image, the multiple potential stain regions are uniformly excited, imaged, and classified separately. Each of the multiple potential stain regions has corresponding region location information, and a correspondence between each potential stain region and the corresponding image region in the subsequent fluorescence image is established based on the region location information. Specifically, after determining the multiple potential stain regions, the clothing to be treated is irradiated with the excitation light, causing the target substances in the multiple potential stain regions within the irradiation range of the excitation light to generate fluorescence responses. The image acquisition device then acquires a fluorescence image containing the fluorescence responses corresponding to the multiple potential stain regions. Subsequently, based on the position of each potential stain region in the clothing image, the target fluorescence region corresponding to each potential stain region is determined from the fluorescence image, and each target fluorescence region is input into the stain classification model to obtain each potential stain region. The stain type and classification confidence level of the domain are used to form stain identification results corresponding to multiple potential stain areas. In this embodiment, multiple potential stain areas simultaneously generate fluorescence response during the same excitation light irradiation process and simultaneously obtain corresponding fluorescence information during the same fluorescence image acquisition process. The extraction of the target fluorescence area and the classification of stain types can be performed sequentially according to multiple areas, or multiple target fluorescence areas can be processed as input in the same batch. Therefore, multiple potential stain areas do not need to perform complete excitation light irradiation and fluorescence image acquisition processes separately. The fluorescence information corresponding to multiple potential stain areas can be obtained in one excitation and imaging process, which helps to reduce the processing time caused by repeated excitation and repeated imaging and improve the identification efficiency of multiple stain areas. This application establishes the correlation between each potential stain area and its corresponding fluorescence features, so that multiple potential stain areas can obtain corresponding stain identification results respectively, and provides a basis for subsequent independent statistics and comprehensive judgment of multiple stain types.

[0043] In one embodiment of this application, the excitation light includes at least one of ultraviolet light, violet light, and blue light capable of causing the target substance to produce a fluorescence response. The wavelength of the excitation light is determined according to the excitation spectrum of the target substance corresponding to the type of stain to be identified. In this application, the target substance is a substance component or stain-related substance capable of producing a detectable fluorescence response under the excitation light irradiation and capable of statistically characterizing the corresponding stain type, such as grease stains, protein stains, blood stains, or other stain components capable of producing a detectable fluorescence response under the corresponding excitation light irradiation. By selecting the wavelength of the excitation light according to the excitation spectrum of the target substance corresponding to the type of stain to be identified, the spectral range of the excitation light can be matched with the optical response characteristics of the target substance, thereby improving the excitation efficiency of the target substance and the detectability of the fluorescence signal. When the excitation light irradiates the target substance, the molecules in the target substance absorb the energy of the excitation light, their electronic energy levels transition and they are in an excited state; the molecules in the excited state recover to a lower energy level through energy release and release part of the energy in the form of light radiation, thereby forming a fluorescence signal that is different from the incident excitation light. Since the energy of fluorescent emitted light is typically lower than that of the corresponding excitation light, its wavelength is usually longer than that of the excitation light. This allows for the formation of optical response features in images acquired by the image acquisition device that distinguish them from areas without fluorescence. Different stain components have different molecular structures and energy level characteristics, resulting in differences in at least one of their fluorescence response intensity, response region, and spectral characteristics under specific excitation light irradiation. Therefore, the fluorescence response is used as characteristic information to distinguish different stain types.

[0044] After identifying the potential stain area, this application preferably uses ultraviolet light to irradiate the garment to be treated. This causes the target substance in the potential stain area to absorb light energy of a corresponding wavelength and transition from the ground state to an excited state. The excited substance releases light energy as it recovers to a lower energy level, thereby generating a fluorescence signal with a wavelength different from the excitation light. This fluorescence signal is then acquired by an image acquisition device to form a fluorescence image. Compared to violet or blue light, ultraviolet light has a shorter wavelength and higher photon energy. When the target substance has a corresponding ultraviolet excitation response, it can effectively excite the target substance in the stain area to produce fluorescence. Therefore, this embodiment preferably uses ultraviolet light as the excitation light to enhance the difference in optical response between the stain area and the garment itself, and to provide more obvious feature information for subsequent stain type classification based on fluorescence characteristics.

[0045] In one embodiment of this application, to reduce the influence of background fluorescence generated by clothing body, clothing dyes, optical brighteners, and other non-staining substances on stain classification results, after determining the target fluorescent region from the fluorescence image, a reference region can be determined in the adjacent clothing region based on the spatial location of the potential stain region. Furthermore, fluorescence features for stain classification are determined based on the fluorescence feature differences between the target fluorescent region and the reference region. These fluorescence feature differences may include at least one of fluorescence intensity differences, fluorescence color differences, fluorescence distribution differences, fluorescence texture differences, and response differences under different excitation conditions. By comparing the fluorescence response of the target fluorescent region with the background fluorescence response of the adjacent clothing body region, the background influence caused by different clothing colors, materials, and the inherent fluorescence characteristics of the clothing body is reduced. This makes the relative differences of stain-related fluorescence features in the classification input more prominent, thereby improving the reliability of identification between different stain types.

[0046] In one embodiment of this application, during the process of illuminating the garment to be treated with the excitation light and acquiring the fluorescence image, the illumination of the LED lights, downlights, or other visible light illumination devices installed in the washing machine is controlled to reduce the impact of the visible light generated by the illumination devices on the acquisition of the fluorescence image. Specifically, by reducing the luminous intensity of the illumination devices or turning them off when acquiring the fluorescence image, preferably by turning off the illumination devices used for visible light supplementation of the garments during the acquisition of the fluorescence image, the garment to be treated is mainly irradiated by the excitation light, and the fluorescence signal generated by the garment and its stained area is received by the image acquisition device. Since the fluorescence signal usually has a low light intensity, if there is background light generated by the visible light illumination devices in the washing machine, the visible light may be received by the image acquisition device and superimposed on the fluorescence signal, thereby increasing the background brightness of the fluorescence image and reducing the difference in fluorescence characteristics between the stained area and the garment itself. Therefore, by reducing or turning off the visible light illumination source during fluorescence image acquisition, it is possible to reduce non-fluorescent background light entering the image acquisition device, reduce background light interference in the fluorescence image, and make the fluorescent signal generated by the target substance more prominent in the fluorescence image, thereby improving the feature distinguishability when classifying stain types based on fluorescence features.

[0047] In one embodiment of this application, the fluorescent image and the clothing image are acquired by the same image acquisition device. Based on the image coordinate relationship corresponding to the image acquisition device, the position of the potential stain area in the clothing image is mapped to the fluorescent image to determine the target fluorescent area corresponding to the potential stain area. In this application, to improve the spatial correspondence accuracy between the potential stain area and the target fluorescent area, when acquiring the clothing image and the fluorescent image, the clothing to be processed maintains a relatively stable spatial posture between the two image acquisitions, or image registration is performed based on the image features of the corresponding clothing areas in the clothing image and the fluorescent image to determine the coordinate transformation relationship between the clothing image and the fluorescent image. The image registration determines the correspondence based on clothing outline, clothing texture, clothing edge, preset reference area, or other image features that can appear correspondingly in the two images, and maps the potential stain area to the fluorescent image according to the coordinate transformation relationship to determine the corresponding target fluorescent area. When the acquisition resolution, imaging range, or image size of the clothing image and the fluorescence image differ, the position of the potential stain area can be corrected according to the corresponding scale transformation, translation transformation, rotation transformation, or perspective transformation. This ensures that the target fluorescence area corresponds to the actual detection area on the clothing to be treated, thereby reducing the impact of clothing posture changes and different imaging conditions on the region correspondence. Therefore, there is no need to re-detect the stain candidate area in the fluorescence image; the fluorescence feature analysis range can be determined using the potential stain area position information obtained in the previous stage. This allows the target fluorescence area to correspond to the local area of ​​the clothing detected in the previous stage, improving the targeting of fluorescence feature extraction and reducing interference from irrelevant analyses of other clothing areas in the fluorescence image.

[0048] In this embodiment, the excitation light is preferably ultraviolet light, and an ultraviolet cutoff filter is provided on the optical imaging path of the image acquisition device used to acquire the fluorescence image, so that the ultraviolet cutoff filter is located in the optical path between the clothing to be treated and the image sensor of the image acquisition device. The ultraviolet cutoff filter has transmission characteristics that match the fluorescence emission band of the target substance, so as to reduce the excitation light reflection / scattering signal entering the image sensor, while allowing at least part of the target fluorescence band to enter the image sensor, for the purpose of cutting off or attenuating the ultraviolet band light entering the image sensor. Since ultraviolet light can excite the target substance to produce fluorescence after irradiating the clothing to be treated, it may also generate reflected and scattered ultraviolet light on the surface of the clothing. If the reflected and scattered light enters the image sensor, it may form an image response together with the fluorescence signal generated by the target substance, thereby increasing the non-target optical signal in the fluorescence image. By setting an ultraviolet cutoff filter in the incident light path of the image sensor, the ultraviolet reflected light and / or scattered light are cut off or attenuated before entering the image sensor. The fluorescence signal generated by the target substance can enter the image sensor and form a corresponding image response according to the spectral transmission characteristics of the ultraviolet cutoff filter. This reduces the superposition interference of excitation light on the fluorescence image, increases the relative proportion of the target fluorescence signal in the acquired fluorescence image, and thus helps to improve the distinguishability of fluorescence features in the target fluorescence area and the reliability of subsequent stain type classification.

[0049] In one embodiment of this application, after obtaining the target fluorescent region, the target fluorescent region is input into a pre-trained stain classification model. The stain classification model performs feature extraction and classification processing on the target fluorescent region to obtain the stain type corresponding to the potential stain region. The features extracted by the stain classification model include at least one of fluorescence intensity, fluorescence color, fluorescence distribution, and fluorescence texture. The fluorescence intensity characterizes the strength of the fluorescence signal at different locations within the target fluorescent region; the fluorescence color characterizes the response characteristics of the fluorescence signal in different color channels or color spaces; the fluorescence distribution characterizes the spatial distribution of the fluorescence signal within the target fluorescent region; and the fluorescence texture characterizes the local texture and spatial variation characteristics of the fluorescence signal formed within the fluorescent region. Different types of stains contain target substances with different compositions and optical response characteristics. Under the same or corresponding excitation conditions, they can form fluorescence features with different fluorescence intensities, fluorescence colors, spatial distributions, and textures. Therefore, the stain classification model can distinguish different stain types based on the combination relationship between one or more fluorescence features in the target fluorescent region and output the stain type corresponding to the potential stain region. The stain classification model can employ a pre-trained deep learning classification model, trained using training samples containing different stain types and corresponding fluorescence images. This allows the model to learn the correspondence between different stain types and their fluorescence features, thereby utilizing the more discriminative optical response features in the fluorescence image compared to the clothing itself to determine the stain type. Consequently, the stain type classification result can be based on the multidimensional fluorescence features of the target fluorescent region, rather than solely on a single fluorescence brightness or color, which helps improve the feature discrimination ability between different stain types and the stability of the stain classification result.

[0050] In one embodiment of this application, after obtaining the fluorescence image, based on the position of the potential stain region in the clothing image determined by the aforementioned target detection model, an image region corresponding to the potential stain region is determined from the fluorescence image, and the determined image region is cropped to obtain the target fluorescence region; wherein, the target fluorescence region at least includes the clothing surface region corresponding to the potential stain region and its generated fluorescence response information. Subsequently, the target fluorescence region is input into a pre-trained stain classification model to determine the stain type corresponding to the potential stain region based on the fluorescence features in the target fluorescence region. The stain classification model can employ a deep learning model suitable for image classification, such as the EfficientNet model, which is used to extract features and classify the fluorescence features in the input image without requiring it to determine the location of the stain in the image again. To enable the stain classification model to adapt to actual stain recognition scenarios inside a washing machine drum, a stain fluorescence image dataset corresponding to the actual image acquisition conditions is pre-constructed. This dataset includes fluorescence image samples formed under excitation light irradiation conditions for different clothing materials, colors, textures, and stain types. Each fluorescence image sample is assigned a corresponding stain category label. In one specific embodiment, the stain categories include at least no stains, grease stains, protein stains, and tannic acid stains, labeled with category numbers 0, 1, 2, and 3, respectively. The no-stain samples are used to enable the stain classification model to learn the fluorescence image features when no target stain is detected in a potential stain area. This allows the stain classification model to not only classify different stain types but also further confirm potential stain areas generated by the aforementioned target detection model. During model training, the fluorescent image samples are input into the stain classification model. The stain classification model extracts features from the input samples and outputs classification results corresponding to each stain category based on the extracted image features. The classification results are compared with the stain category labels corresponding to the fluorescent image samples, and the model parameters of the stain classification model are adjusted according to the comparison results, so that the classification results output by the model gradually approach the corresponding real stain categories, thereby obtaining the trained stain classification model. To improve the model's adaptability to the actual use environment of the washing machine, the training samples are acquired under image acquisition conditions corresponding to the actual use process, so that the training samples include different surface features of clothing and different fluorescence response states, thereby reducing the impact of changes in clothing material, color, texture, and image acquisition conditions on the model's classification results.

[0051] In actual stain identification, the target fluorescent region is input into the trained stain classification model. The stain classification model extracts features from the target fluorescent region and calculates the classification confidence score of the target fluorescent region belonging to each preset stain category based on the extracted fluorescence features. The classification confidence score characterizes the degree of matching between the target fluorescent region and the corresponding stain category. The maximum classification confidence score is determined among the classification confidence scores corresponding to each stain category, and the stain category corresponding to the maximum classification confidence score is taken as the final stain identification result of the potential stain region. For example, when the classification confidence score corresponding to grease stains is the highest, the potential stain region is identified as a grease stain; when the classification confidence score corresponding to the no-stain category is the highest, the potential stain region is identified as a no-stain region, thus providing a secondary confirmation of the potential stain regions identified by the aforementioned target detection model based solely on clothing images. In this way, the stain classification model takes the target fluorescent region after regional screening as input and uses the fluorescence response formed by the stain under excitation light as the main discrimination criterion. This ensures that the input features in the model training stage correspond to the input features in the actual recognition stage. Furthermore, it establishes a mapping relationship between fluorescence features and stain categories through fluorescent image samples with clear stain category labels. This allows the stain classification model to output classification results corresponding to the preset stain categories based on the actual input fluorescence images, providing a clear stain identification basis for subsequent adjustment of washing parameters according to stain type.

[0052] In one embodiment of this application, the stain classification model uses a multi-label classification method to classify the target fluorescent region. That is, it outputs the corresponding classification confidence for multiple preset stain categories, rather than determining a single category with the highest confidence from multiple stain categories. For any stain category, when the classification confidence corresponding to the stain category reaches a preset classification threshold, the stain category is determined as the identified stain category corresponding to the target fluorescent region, and the same judgment is performed on other stain categories, so that the same target fluorescent region can output two or more stain categories at the same time. When the classification confidence corresponding to all stain categories does not reach the corresponding classification threshold, and the classification confidence corresponding to no stain category reaches a preset no-stain threshold, the target fluorescent region is determined as a stain region that has not been detected and meets the identification conditions. Thus, the stain classification model can identify the stain categories corresponding to different regions separately, and can also identify multiple stain categories that exist simultaneously in the same detection region.

[0053] In one embodiment of this application, before determining the final stain recognition result, the washing machine drum is controlled to rotate to change the posture of the clothes to be processed within the drum. After the posture of the clothes to be processed changes, the images of the clothes are re-acquired, potential stain areas are located, fluorescent images are acquired, and stain types are determined, so as to perform multiple stain recognitions on the clothes to be processed. These multiple stain recognitions are performed separately during the multiple rotations of the drum, causing the clothes to be processed to be flipped, unfolded, moved, or redistributed within the drum. This results in the parts that were originally in the stacked area of ​​the clothes, the inside of the clothes, or the area not visible to the camera having exposed stains after the posture change. The opportunity for the garment to be exposed within the camera's field of view is addressed by relocating potential stain areas based on the garment image after each posture change. Corresponding fluorescence images and stain types are then acquired for each relocated potential stain area. This ensures that stain recognition results obtained under different postures correspond to different visible areas of the garment to be processed. This expands the detectable range of stains by changing the spatial posture of the garment within the drum, reducing the impact of some stains being undetectable due to stacking, folding, or obstruction of garments. Furthermore, multiple recognitions yield complementary stain information, thereby improving the information integrity and recognition stability when identifying stains on the entire garment. In a preferred embodiment of this application, the garment to be processed undergoes n cycles of stain recognition, where n is an integer greater than or equal to 2. After each stain recognition, the stain type classification result obtained is saved.

[0054] In one embodiment of this application, the final stain identification result of the garment to be treated is determined based on multiple stain identification results. The stain types obtained from each stain identification are statistically analyzed, and the frequency of occurrence of each stain type in the multiple stain identification results is determined. The stain type with the highest frequency is determined as the final stain identification result of the garment to be treated. Alternatively, each candidate stain category is independently statistically analyzed and judged. When at least two stain types have the same frequency of occurrence in the multiple stain identification results, the classification confidence level corresponding to the at least two stain types is further obtained, and the stain types with the same frequency of occurrence are distinguished based on the classification confidence level. The stain type with the highest classification confidence is determined as the final stain identification result. The classification confidence is used to characterize the reliability of the stain classification model in identifying the corresponding target fluorescent area as the corresponding stain type. Therefore, by statistically analyzing multiple identification results, the stain types that repeatedly appear under different clothing postures are used as an important basis for determining the final stain type. This makes it less likely that occasional classification misjudgments will directly affect the final identification result. When different stain types have the same number of occurrences, the classification confidence is further used for judgment, so that multiple identification results can form a comprehensive judgment with priority, thereby improving the stability and reliability of the final stain identification result.

[0055] In one embodiment of this application, the final stain identification result of the garment to be treated is determined based on multiple stain identification results. The stain types obtained from each stain identification and their corresponding classification confidence levels are saved. The frequency of occurrence and / or classification confidence level of each stain type in the multiple stain identification results are statistically analyzed. Based on the frequency of occurrence and / or classification confidence level of each stain type, stain types that meet preset identification conditions are determined. One or more stain types that meet the preset identification conditions are determined as the final stain identification result of the garment to be treated. When multiple different stain categories exist on the garment to be treated, different stain categories are identified in different garment postures. By statistically analyzing each stain identification result separately, the identification results corresponding to different stain categories can be independently retained and judged. When multiple stain types meet their corresponding preset identification conditions, the multiple stain types are simultaneously used as the final stain identification result, instead of comparing different stain types mutually exclusively based on their frequency of occurrence. This allows the final stain identification result to reflect the multiple stain categories simultaneously present on the garment to be treated and provides a basis for subsequently determining the corresponding washing control parameters based on different stain categories.

[0056] In a preferred embodiment of this application, each stain type is independently judged based on its frequency of occurrence in multiple stain identification results and its corresponding classification confidence level. When the frequency of occurrence of a certain stain type reaches a preset number, and / or the classification confidence level corresponding to the stain type reaches a preset confidence level, the stain type is determined as a stain type that meets the preset identification conditions. The above judgment is performed on each stain type separately, so that multiple different stain types can respectively meet the preset identification conditions. In this case, multiple stain types that respectively meet the preset identification conditions are jointly determined as the final stain identification result of the garment to be treated. This allows different stain categories detected during multiple posture changes to be accumulated and retained separately, avoiding the situation where the final result is determined based solely on the single stain type with the highest frequency of occurrence, causing other actually existing stain categories to be ignored.

[0057] In one embodiment of this application, after a preset number of stain identifications, the presence of identifiable stains on the garment to be treated is determined based on the results of each stain identification. When none of the stain identification results identify a stain type that meets the preset identification conditions, the garment to be treated is determined to be free of identifiable stains that meet the preset identification conditions. Specifically, for each stain identification, the presence of a stain type that meets the preset identification conditions is determined based on the classification confidence level of each stain type output by the stain classification model. When the stain classification model identifies the corresponding target fluorescent area as a stain-free category in each identification, or when the stains obtained in each identification... If the classification confidence of each type does not reach the corresponding preset recognition condition, it is determined that the garment to be treated does not have any identifiable stains that meet the preset recognition condition. However, if at least one stain recognition shows a stain type that meets the preset recognition condition, it is determined that the garment to be treated has the corresponding stain type. Thus, by comprehensively judging the stain recognition results obtained from multiple garment postures, the garment is only judged to have no identifiable stains that meet the preset recognition condition if no stains are found after multiple tests. This reduces the false judgment of no stains caused by partial obstruction of the garment, unfavorable garment posture for observation, or misjudgment in a single recognition.

[0058] In this application, to avoid directly using the stain identification result of a single instance as the overall stain status of the garment to be treated, after a preset number of stain identifications, the presence and type of stains are determined for each potential stain area obtained from each identification. The identification results are then associated and saved according to the corresponding potential stain area and stain type. Specifically, for any potential stain area, the stain classification model outputs a corresponding classification confidence score for the no-stain category and at least one stain category. When the classification confidence score for any stain category reaches the preset identification threshold for that stain category, the stain category is determined as the stain category that meets the identification conditions for the potential stain area. When the classification confidence scores for each stain category do not reach the corresponding preset identification threshold, and the classification confidence score for the no-stain category reaches the preset no-stain confidence threshold, the potential stain area is determined as a stain area that does not meet the identification conditions. For multiple potential stain areas obtained after repeated changes in clothing posture, the occurrence of the same stain category in different identification results is independently statistically analyzed. Based on the frequency of occurrence, classification confidence, and preset identification conditions for each stain category, it is determined whether to retain the corresponding stain category as the stain identification result for the clothing to be treated. This ensures that different stain categories do not exclude each other due to the higher frequency of one stain category. When different potential stain areas are identified with different stain categories, these different stain categories are collectively used as the final stain identification result for the clothing to be treated. When multiple stain categories corresponding to the same potential stain area meet their respective identification conditions, these multiple stain categories are collectively used as the stain identification result for that potential stain area. This ensures that the final stain identification result reflects both the different stain categories present in different areas of the clothing to be treated and covers situations where multiple identifiable stain components exist simultaneously in the same stain area, thus avoiding the omission of other stain categories when using a single highest confidence category for unique classification.

[0059] In a preferred embodiment of this application, the stain classification model includes a no-stain category and at least one stain category. The stain classification model outputs the classification confidence score corresponding to each category for each input target fluorescent region. When the classification confidence score corresponding to the no-stain category is the highest among all categories, and the classification confidence score corresponding to the no-stain category reaches a preset no-stain confidence score threshold, the stain identification result is determined to be no stain. Otherwise, the stain identification result is determined to be the corresponding stain category. After completing n stain identifications, if all n stain identification results are no stain, it is determined that the garment to be treated does not have any identifiable stains that meet the preset identification conditions, where n is an integer greater than or equal to 2. If at least one stain identification result determines that there is a stain type that meets the preset identification conditions, it is determined that the garment to be treated has stains, and the final stain identification result of the garment to be treated is determined based on each stain identification result.

[0060] In one embodiment of this application, after obtaining the final stain identification result of the garment to be treated, it is determined whether the garment to be treated has stains based on the final stain identification result. If stains are found, at least one washing parameter in the washing program is adjusted according to the determined stain type. Then, the garment to be treated is washed according to the adjusted washing parameters. If it is determined that the garment to be treated does not have identifiable stains that meet the preset identification conditions, the washing parameters set according to the washing program before stain identification are maintained, and the garment to be treated is directly washed according to the washing parameters. The washing parameters include at least one of washing temperature, detergent dosage, washing time, washing intensity, water intake, and rinsing times. This allows the final stain identification result to further participate in the parameter determination of the washing program, enabling the washing parameters to be adjusted specifically according to the actual identified stain type, rather than... After stain identification is completed, fixed parameters unrelated to the stain state are still used for washing. For example, when it is determined that there are grease stains on the clothes to be treated, the washing temperature can be increased to reduce the viscosity of the grease and promote its dispersion and emulsification. At the same time, the number of rinses can be increased to reduce the possibility of grease residue on the clothes during the washing process. For clothes to be treated without identifiable stains that meet the preset identification conditions, there is no need to adjust the washing parameters based on the stain type. The washing parameters set before stain identification are directly used. This allows the washing process under different stain states to have corresponding parameter adaptation relationships. While meeting the corresponding stain removal requirements, it avoids indiscriminately increasing the washing temperature, detergent dosage, or extending the washing time when there are no corresponding identifiable stains. This allows the final stain identification result to form a continuous control process with subsequent washing parameter adjustments.

[0061] This application also discloses an apparatus for identifying clothing stains, including an image acquisition module, a stain localization module, an excitation module, a region extraction module, and a stain classification module. The image acquisition module acquires images of clothing to be processed in a washing machine and fluorescence images formed by the clothing under excitation light. The stain localization module determines at least one potential stain region on the clothing based on the clothing image. After determining the potential stain region, the excitation module provides excitation light to the clothing, causing the target substance in the potential stain region to produce a detectable optical response. The region extraction module determines the corresponding target fluorescent region in the fluorescence image based on the position of the potential stain region in the clothing image. The stain classification module determines the corresponding stain identification result based on the fluorescence characteristics of the target fluorescent region, and can classify stains according to different stain categories. The device performs separate judgments to retain one or more stain categories that meet preset recognition conditions. This enables the device to form a continuous processing relationship: locating potential stain areas from clothing images, generating optical responses that differ from the appearance information of ordinary clothing using excitation light, and then extracting corresponding target fluorescent areas from fluorescence images based on the area location for stain classification. Clothing images and fluorescence images respectively undertake the different information acquisition functions required for area location and stain classification. The spatial correspondence between the two establishes a link between candidate areas and fluorescence features, thereby reducing interference from irrelevant clothing areas and the optical features of the clothing background on stain classification. Furthermore, by independently judging different stain categories, the device can retain the corresponding recognition results when multiple different stain categories exist on the same garment, providing a basis for subsequent adjustment of washing parameters for different stain categories.

[0062] This application also discloses a washing machine, including a drum for accommodating clothes to be processed, a drive mechanism for driving the drum to rotate, an image acquisition device for acquiring images of the clothes to be processed and fluorescent images, an excitation light source for providing excitation light to the clothes to be processed, and a control device communicatively connected to the drive mechanism (e.g., a motor), the image acquisition device, and the excitation light source. During stain identification, the control device controls the image acquisition device to acquire images of the clothes to be processed and determines at least one potential stain area based on the images. After determining the potential stain area, the control device controls the excitation light source to provide excitation light to the clothes to be processed, causing the target substance in the potential stain area to produce a detectable optical response. The control device then controls the image acquisition device to acquire the corresponding fluorescent image. Subsequently, the position of the potential stain area in the fluorescent image is determined based on its position in the clothes image. The corresponding target fluorescent area is identified, and the stain recognition result is determined based on the fluorescence characteristics in the target fluorescent area. When it is necessary to expand the stain detection range, the control device controls the drive mechanism to drive the drum to rotate, causing the clothes to be treated to be flipped, moved, unfolded, or redistributed. After the clothes posture changes, the above stain recognition process is executed again to obtain the stain recognition results corresponding to different clothes postures. Then, based on the recognition results, different stain categories are statistically analyzed and judged. This allows the washing machine to increase the visible area of ​​the clothes surface by utilizing changes in the clothes posture, and further confirm and classify potential stain areas through the regional correspondence between the clothes image and the fluorescence image. This results in an identification result that reflects one or more stain categories of the clothes to be treated, and provides a control basis for adjusting washing parameters based on the stain recognition results.

[0063] This application continuously links conventional image detection of clothing with excitation light fluorescence detection. The clothing image is primarily used to identify potential stain areas, while the fluorescence image is primarily used to further determine the stain type. This allows stain identification to move beyond relying solely on the clothing's appearance information such as color, brightness, texture, and pattern. Instead, it utilizes the optical response of the target substance in the potential stain area under excitation light as a further judgment criterion. Furthermore, by mapping the positional correspondence of potential stain areas between the clothing and fluorescence images, the spatial location information obtained in the previous stage is transformed into the fluorescence feature analysis range in the subsequent stage. This reduces background interference caused by indiscriminate analysis of the entire clothing and fluorescence images, improving the utilization of effective stain features. Based on this, by controlling the washing machine drum to change the spatial posture of the clothing and performing multiple stain identifications, each identification covers different surface areas that are difficult to observe when the clothing is folded, stacked, or partially obscured, thereby expanding the stain detection range. The system measures the range of stains and independently statistically analyzes and judges multiple identification results according to stain category. This allows for the retention of corresponding identification results when different stain categories exist on the same garment. It also allows multiple stain categories meeting the identification criteria to correspond to the same detection area, avoiding the omission of actual stain categories due to the use of a single highest confidence category. Furthermore, by setting a "no stain" category and combining multiple detection results with preset identification conditions, the washing machine determines that no identifiable stain has been detected when multiple detections fail to find stains meeting the identification criteria. Based on this, it decides whether to adjust the washing parameters. This forms a continuous technical chain from potential stain area discovery, excitation light response acquisition, area correspondence, stain category identification, multi-pose result fusion to washing parameter adaptation. This enables the washing machine to perform more targeted washing control based on the actual detected stain information, improving the reliability of stain identification while reducing indiscriminate high-temperature, long-duration, and high-intensity washing, as well as additional detergent and water consumption.

[0064] The embodiments of this application have been described above with reference to the accompanying drawings. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for identifying stains on clothing, characterized in that, include: Acquire images of the clothes to be processed inside the washing machine, and locate potential stain areas on the clothes to be processed based on the images; After locating the potential stain area, the garment to be treated is irradiated with excitation light to cause the target substance in the potential stain area to produce a fluorescent response, and a fluorescent image of the garment to be treated under the excitation light is acquired. Based on the location information of the potential stain area in the clothing image, a target fluorescent area corresponding to the potential stain area is obtained from the fluorescent image, and the stain type of the potential stain area is classified based on the fluorescence features in the target fluorescent area, so as to obtain the stain identification result of the clothing to be treated.

2. The method for identifying clothing stains according to claim 1, characterized in that, The step of locating the potential stained areas on the garment to be treated includes: The clothing image is input into a pre-trained target detection model, which determines at least one potential stain region based on the image features in the clothing image and outputs the position of each potential stain region in the clothing image.

3. The method for identifying clothing stains according to claim 1, characterized in that, The excitation light includes at least one of ultraviolet light, violet light, and blue light that can induce a fluorescence response in the target substance, and the wavelength of the excitation light is determined according to the optical response characteristics corresponding to the target substance.

4. The method for identifying clothing stains according to claim 1, characterized in that, When acquiring the fluorescence image, reduce the visible light brightness inside the washing machine or turn off the visible light illumination device installed inside the washing machine.

5. The method for identifying clothing stains according to claim 1, characterized in that, The fluorescence image and the clothing image are acquired by the same image acquisition device. The excitation light is ultraviolet light. When acquiring the fluorescence image, an ultraviolet cutoff filter is set on the optical imaging path of the image acquisition device to reduce the ultraviolet light reflected and / or scattered light received by the image acquisition device.

6. The method for identifying clothing stains according to any one of claims 1 to 5, characterized in that, The process of classifying the potential stained area based on the fluorescence characteristics in the target fluorescent region includes: The target fluorescent region is input into a pre-trained stain classification model, and at least one feature among fluorescence intensity, fluorescence color, fluorescence distribution, and fluorescence texture in the target fluorescent region is extracted. The stain type corresponding to the potential stain region is determined based on the extracted fluorescence features.

7. The method for identifying clothing stains according to claim 6, characterized in that, The stain classification model outputs classification confidence scores corresponding to multiple preset stain types, and determines the stain type of the potential stain area based on the classification confidence scores corresponding to each preset stain type.

8. The method for identifying clothing stains according to claim 1 or 7, characterized in that, Before determining the final stain identification result, the washing machine drum is controlled to rotate to change the posture of the clothes to be treated inside the drum. After the posture of the clothes to be treated changes, the clothes image is re-acquired, the potential stain area is located, the fluorescence image is acquired, and the stain type is determined to obtain multiple stain identification results.

9. The method for identifying clothing stains according to claim 8, characterized in that, The final stain identification result of the garment to be treated is determined based on multiple stain identification results, including: The frequency of each stain type in multiple stain identification results is counted, and the stain type with the most occurrences is determined as the final stain identification result. If at least two stain types occur the same number of times, the final stain identification result is determined based on the classification confidence corresponding to at least two stain types.

10. The method for identifying clothing stains according to claim 8, characterized in that, The final stain identification result of the garment to be treated is determined based on multiple stain identification results, including: The occurrence frequency and classification confidence of each stain type in multiple stain identification results are statistically analyzed. Based on the occurrence frequency and / or classification confidence of each stain type, at least one stain type that meets the preset identification conditions is determined, and the at least one stain type is determined as the final stain identification result of the garment to be treated.

11. The method for identifying clothing stains according to claim 1, characterized in that, When it is determined that the garment to be treated has a stain type that meets the preset identification conditions, at least one washing parameter of the washing program is adjusted according to the determined stain type. The washing parameters include at least one of washing temperature, detergent dosage, washing time, washing intensity, water intake, and rinsing times. The garment to be treated is then washed according to the adjusted washing parameters. If it is determined that no stain type meeting the preset identification conditions is detected in the garment to be treated, the garment to be treated is washed according to the washing parameters set before stain identification.

12. A device for identifying stains on clothing, characterized in that, include: The image acquisition module is used to acquire images of the clothes to be processed inside the washing machine and fluorescence images formed under excitation light irradiation conditions; A stain location module, which is communicatively connected to the image acquisition module, is used to locate potential stain areas on the garment to be processed based on the garment image, and to determine the location information of the potential stain areas in the garment image. An excitation module is used to provide excitation light to the garment to be treated after locating the potential stain area, so as to cause the target substance in the potential stain area to produce a fluorescent response; The region extraction module is communicatively connected to the image acquisition module and the stain localization module, and is used to extract the target fluorescent region corresponding to the potential stain region from the fluorescent image based on the location information of the potential stain region; The stain classification module is communicatively connected to the region extraction module and is used to classify the potential stain regions based on the fluorescence features in the target fluorescent region to obtain the stain identification results of the clothing to be treated.

13. A washing machine, characterized in that, include: A roller, used to hold clothes to be processed; A drive mechanism, connected to the roller drive, is used to drive the roller to rotate; An image acquisition device is used to acquire images of the clothing to be processed inside the drum and fluorescence images; An excitation light source is used to provide excitation light to the garments to be treated inside the drum, so that the target substance on the garments to be treated produces a fluorescent response. A control device is communicatively connected to the drive mechanism, the image acquisition device, and the excitation light source. The control device is used to locate potential stain areas on the garment to be treated based on the garment image. After locating the potential stain area, the control device controls the excitation light source to provide excitation light to the garment to be treated and controls the image acquisition device to acquire the fluorescence image. Based on the position information of the potential stain area in the garment image, the control device obtains the corresponding target fluorescence area from the fluorescence image and classifies the potential stain area into stain types based on the fluorescence characteristics in the target fluorescence area to obtain the stain identification result of the garment to be treated.