Selective deodorization control method and system based on target activity event determination

By determining the event interruption threshold and deodorization-related activity characteristics in the target activity events, the problem of insufficient accuracy in deodorization control in the prior art is solved, achieving more efficient deodorization operation matching and reducing ineffective deodorization triggering and premature termination.

CN123134582APending Publication Date: 2026-11-20XINRONG (JILIN PROVINCE) INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611548759.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-08
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies for deodorization control in places such as restrooms and pet toilets have difficulty accurately distinguishing the correlation between target activities and deodorization needs, resulting in insufficient accuracy of deodorization operations. This may trigger ineffective deodorization when there is insufficient target activity or cause premature termination due to the detection of a short period without a target state.

Method used

By acquiring the non-targeted intermittent periods in the target activity events, the event interruption threshold is determined. Combined with the duration, continuous duration and proportion of deodorization-related activities, deodorization-related activity characteristics are formed. Automatic deodorization operation is only triggered when preset conditions are met, ensuring the matching between deodorization and target activities.

Benefits of technology

It improves the accuracy of deodorization control, reduces ineffective deodorization operations, avoids premature termination due to short-term untargeted states, and ensures the degree of matching between deodorization operations and target activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123134582A_ABST
    Figure CN123134582A_ABST
Patent Text Reader

Abstract

The application provides a selective deodorization control method and system based on target activity event determination, relates to the technical field of automatic control, and comprises the following steps: obtaining a target presence state, establishing a target activity event, and determining an event interruption threshold according to a target interruption period; determining a deodorization-related activity duration, a deodorization-related activity continuous duration and a deodorization-related activity proportion according to the activity state of the target in a deodorization-related area, and obtaining automatic deodorization execution qualification when the automatic deodorization qualification condition is met; confirming that the target leaves and generating an automatic deodorization execution permission, controlling a deodorization execution mechanism to execute an automatic deodorization operation once, clearing the corresponding qualification and permission after completion, and ending the target activity event. The application is helpful for realizing selective deodorization based on target activity characteristics and reducing invalid and repeated deodorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic control technology, specifically to a selective deodorization control method and system based on the determination of target activity events. Background Technology

[0002] Currently, in scenarios requiring odor control, such as restrooms and pet toilets, the presence of a target within a monitored area is typically detected using methods like human body sensing or target detection. The deodorization device is activated after the target leaves or reaches a preset dwell time. This type of deodorization control usually uses the presence, dwell time, or departure status of a target as the trigger for deodorization, enabling automatic deodorization based on target activity.

[0003] However, in practical use, not all activities of a target within the monitoring area are related to deodorization. For example, a target may only pass through an area related to deodorization needs, stay briefly, and then leave, or it may engage in multiple intermittent activities within the relevant area. Existing methods for determining deodorization based on the target's presence or a single dwell time are insufficient to further distinguish the degree of activity related to deodorization needs within target activity events. This can easily lead to deodorization being triggered when target activity is insufficient, or the activity determination may end prematurely due to short periods of target absence during the target detection process, thus affecting the accuracy of automatic deodorization control. Summary of the Invention

[0004] To achieve the above objectives, the present invention provides the following technical solution: a selective deodorization control method based on the determination of target activity events, the method comprising: S1: Obtain the target existence status and corresponding time information within the predetermined monitoring area. When the target-free state changes to the target-containing state, a target activity event is established. The event interruption threshold is determined based on the target-free intermittent period formed during the duration of the target activity event. When the target activity event fails to obtain automatic deodorization execution qualification and the continuous target-free duration reaches the event interruption threshold, the current target activity event is terminated and the target activity event is prohibited from continuing to obtain automatic deodorization execution qualification. S2: Based on the target's activity status within the deodorization-related area, determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities to form deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, determine that the target activity event has obtained automatic deodorization execution qualification; S3: For target activity events that have obtained automatic deodorization execution qualification, when the state with a target changes to the state without a target, a departure confirmation is performed, and a departure confirmation threshold is determined according to the event interruption threshold and the preset departure confirmation margin. When the continuous period without a target reaches the departure confirmation threshold, an automatic deodorization execution permit is generated. S4: Control the deodorization execution agency to perform an automatic deodorization operation according to the automatic deodorization execution permit. After completion, clear the corresponding automatic deodorization execution qualification and automatic deodorization execution permit and end the target activity event. Subsequent deodorization requires re-establishing the target activity event and obtaining a new automatic deodorization execution qualification.

[0005] Further, determine the event interruption threshold, including: The program obtains the duration of multiple untargeted intermittent periods within the current target activity event, determines the median duration based on these durations, and determines the median absolute deviation based on the deviation between each duration and the median duration. Using the median duration as a basis, it determines the fluctuation correction amount based on the median absolute deviation and a preset interruption fluctuation coefficient, and then corrects the median duration using a preset interruption margin to obtain the candidate event interruption threshold. Finally, it restricts the candidate event interruption threshold to a preset event interruption threshold range to obtain the event interruption threshold.

[0006] Furthermore, the duration of deodorization-related activities was determined, including: The activity location of the target within the monitoring area is obtained, and the activity location is matched with a preset deodorization associated area. The entry time and exit time of the target entering and leaving the deodorization associated area are determined, and the duration of each target state is determined in combination with the target's existence status. The duration of each target state duration is compared with the preset deodorization associated stay time, and the target state duration that reaches the preset deodorization associated stay time is retained. The durations are accumulated to obtain the duration of the deodorization associated activity.

[0007] Furthermore, the duration of continuous deodorization-related activities was determined, including: The system acquires the duration of each target state within a preset deodorization associated area and the non-target intermittent periods between two adjacent target state durations; a preset continuous activity interruption threshold is less than the short-term non-target determination duration; each non-target intermittent period is compared with the preset continuous activity interruption threshold; when the non-target intermittent period does not reach the preset continuous activity interruption threshold, two adjacent target state durations are merged into the same continuous activity period; when the preset continuous activity interruption threshold is reached, two adjacent target state durations are treated as different continuous activity periods; the duration is determined based on the start and end times of each continuous activity period, and the maximum duration is determined as the continuous duration of the deodorization associated activity.

[0008] Furthermore, determine the proportion of deodorization-related activities, including: Determine the start time and current time of the current target activity event; determine the duration of the current target activity event based on the time length between the current time and the start time; determine the duration of the deodorization-related activities up to the current time based on the duration of each target state period within the current target activity event that satisfies the preset deodorization-related dwell time; determine the proportion of deodorization-related activities based on the ratio between the duration of the deodorization-related activities and the duration of the current target activity event.

[0009] Furthermore, the characteristics of deodorization-related activities were identified, including: The duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities are compared with preset thresholds for duration, continuous duration, and proportion of related activities, respectively. When the duration of deodorization-related activities reaches the preset threshold for duration, the continuous duration of deodorization-related activities reaches the preset threshold for continuous duration, and the proportion of deodorization-related activities reaches the preset threshold for proportion of related activities, the current target activity event is determined to meet the preset automatic deodorization qualification conditions, and the target activity event is determined to be qualified for automatic deodorization execution.

[0010] Further, determine the departure confirmation threshold, including: The system obtains the event interruption threshold and the continuous duration of the deodorization-related activity corresponding to the current target activity event. Based on the continuous duration of the deodorization-related activity, it determines similar historical target activity events from historical target activity events and determines a preset departure confirmation margin based on the continuous targetlessness duration corresponding to the historical target activity events. The system adds the event interruption threshold and the preset departure confirmation margin to obtain the departure confirmation threshold. After the current target activity event obtains the qualification for automatic deodorization execution, the system starts recording the continuous targetlessness duration when the target changes from a target-enabled state to a targetlessness state. When the continuous targetlessness duration reaches the departure confirmation threshold and the target is not re-activated as a target-enabled state during the period, it is determined that the target has left the monitoring area.

[0011] Furthermore, according to the automatic deodorization execution permit, the deodorization actuator performs an automatic deodorization operation, including: Based on the duration of deodorization-related activities corresponding to the target activity event that has obtained automatic deodorization execution qualification, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities, the deodorization execution time is determined from the preset deodorization execution time range; according to the automatic deodorization execution license, the deodorization execution agency is controlled to perform an automatic deodorization operation once according to the deodorization execution time.

[0012] Furthermore, controlling the deodorization actuator to perform an automatic deodorization operation according to the automatic deodorization execution permit also includes: The actual operating time of the deodorization actuator is obtained. When the actual operating time reaches the deodorization execution duration, the deodorization actuator is controlled to stop operating, and the completion of this automatic deodorization operation is confirmed. After the completion of this automatic deodorization operation, the automatic deodorization execution qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared, and the current target activity event is terminated.

[0013] Furthermore, the selective deodorization control system based on the determination of target activity events includes: The target activity event determination module is used to obtain the target existence status and corresponding time information within a predetermined monitoring area, establish a target activity event when the state of no target changes to the state of having a target, and determine the event interruption threshold based on the no-target intermittent period formed during the duration of the target activity event. The deodorization qualification determination module is used to determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities based on the activity status of the target in the deodorization-related area, thus forming deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, the target activity event is determined to have obtained automatic deodorization execution qualification. The departure confirmation permission module is used to confirm departure when a target activity event that has obtained automatic deodorization execution qualification changes from a target state to a targetless state. It determines the departure confirmation threshold based on the event interruption threshold and the preset departure confirmation margin, and generates an automatic deodorization execution permission when the continuous targetless duration reaches the departure confirmation threshold. The automatic deodorization execution module is used to control the deodorization execution agency to perform an automatic deodorization operation based on the automatic deodorization execution license. After completion, the corresponding automatic deodorization execution qualification and automatic deodorization execution license are cleared and the target activity event is terminated. Subsequent deodorization requires the re-establishment of the target activity event and the acquisition of a new automatic deodorization execution qualification.

[0014] This invention provides a selective deodorization control method and system based on the determination of target activity events. It has the following beneficial effects: 1. This invention determines the event interruption threshold based on the non-target intermittent periods within the target activity event, enabling adjustments to the termination judgment of the target activity event according to changes in the actual target detection state, thus reducing premature event termination caused by short-term non-target states. By simultaneously determining the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities, and obtaining automatic deodorization execution qualification when all three activity characteristics simultaneously meet preset automatic deodorization qualification conditions, the matching degree between automatic deodorization triggering and the actual deodorization-related activities of the target can be improved. This reduces invalid deodorization operations caused by the target's brief passage, scattered activities, or insufficient correlation with deodorization.

[0015] 2. After the target obtains the qualification for automatic deodorization execution, this invention determines the departure confirmation threshold by using an event interruption threshold and a preset departure confirmation margin. Automatic deodorization execution permission is generated after the duration of continuous absence of the target reaches the departure confirmation threshold, which can reduce premature deodorization caused by short-term detection fluctuations. Furthermore, the deodorization execution duration is determined from a preset deodorization execution duration range based on the characteristics of deodorization-related activities, allowing different target activity events to use matching deodorization operation times. By executing automatic deodorization only once per automatic deodorization execution permission, and clearing the corresponding qualification and permission and ending the target activity event upon completion, the invention avoids repeated triggering of automatic deodorization for the same target activity event. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating the selective deodorization control method based on target activity event determination according to the present invention. Figure 2 This is a schematic diagram of the selective deodorization control system based on the determination of target activity events according to the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] like Figure 1 As shown, the selective deodorization control method based on the determination of target activity events includes: S1: Obtain the target existence status and corresponding time information within the predetermined monitoring area. When the target-free state changes to the target-containing state, a target activity event is established. The event interruption threshold is determined based on the target-free intermittent period formed during the duration of the target activity event. When the target activity event fails to obtain automatic deodorization execution qualification and the continuous target-free duration reaches the event interruption threshold, the current target activity event is terminated and the target activity event is prohibited from continuing to obtain automatic deodorization execution qualification. S2: Based on the target's activity status within the deodorization-related area, determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities to form deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, determine that the target activity event has obtained automatic deodorization execution qualification; S3: For target activity events that have obtained automatic deodorization execution qualification, when the state with a target changes to the state without a target, a departure confirmation is performed, and a departure confirmation threshold is determined according to the event interruption threshold and the preset departure confirmation margin. When the continuous period without a target reaches the departure confirmation threshold, an automatic deodorization execution permit is generated. S4: Control the deodorization execution agency to perform an automatic deodorization operation according to the automatic deodorization execution permit. After completion, clear the corresponding automatic deodorization execution qualification and automatic deodorization execution permit and end the target activity event. Subsequent deodorization requires re-establishing the target activity event and obtaining a new automatic deodorization execution qualification.

[0019] In one embodiment, determining the event interruption threshold includes: The program obtains the duration of multiple untargeted intermittent periods within the current target activity event, determines the median duration based on these durations, and determines the median absolute deviation based on the deviation between each duration and the median duration. Using the median duration as a basis, it determines the fluctuation correction amount based on the median absolute deviation and a preset interruption fluctuation coefficient, and then corrects the median duration using a preset interruption margin to obtain the candidate event interruption threshold. Finally, it restricts the candidate event interruption threshold to a preset event interruption threshold range to obtain the event interruption threshold.

[0020] This embodiment is used to selectively perform deodorization operations based on the continuous state of a target activity event. To avoid the target activity event being mistakenly considered to have ended due to a short period of no target state during the target's activity within the monitoring area, which would lead to the premature termination of the target activity event and affect subsequent automatic deodorization judgment, an event interruption threshold is determined based on the changes in the no-target state within the current target activity event.

[0021] After a target activity event is established, millimeter-wave detection is used to acquire target detection results within the monitoring area according to a preset sampling period, and the target presence status is determined based on the target detection results. Within each sampling period, if the target detection results meet the target presence conditions, the current sampling period is determined to be a target-containing state; if the target detection results do not meet the target presence conditions, the current sampling period is determined to be a target-free state.

[0022] The target presence condition is determined based on the detection output of the millimeter-wave detection device actually used. In the current embodiment, the millimeter-wave detection device outputs the target detection result, and the current sampling period is determined to be either a target-present state or a target-free state based on the target detection result. When the target detection result meets the target presence condition, it is determined to be a target-present state; otherwise, it is determined to be a target-free state. The target presence condition is determined based on the target detection characteristics of the millimeter-wave detection device, the detection range of the monitoring area, and the target detection results during actual operation, enabling the target detection results to distinguish between the target presence state and the target-free state within the monitoring area.

[0023] To reduce detection fluctuations in a single sampling period, in one embodiment, the continuity of target detection results across multiple consecutive sampling periods can be further confirmed. If the target presence condition is met for multiple consecutive sampling periods, the target is confirmed to be in a "target present" state; if the target presence condition is not met for multiple consecutive sampling periods, the target is confirmed to be in a "targetless" state. The number of consecutive sampling periods is determined based on the detection stability of the millimeter-wave detection device and the normal rate of change of the target state within the monitoring area.

[0024] After determining the presence of a target, the recording of the continuous target-free period begins when the target transitions from a target-present state to a target-free state; the recording of the continuous target-free period ends when the target is detected again and the state is determined to be target-present. The continuous target-free period is determined by the number of consecutive sampling periods in the target-free state and the preset sampling period.

[0025] The preset sampling period is used to determine the temporal resolution of the target's state. It is determined based on the detection refresh capability of the millimeter-wave detection device, the normal activity rate of the target within the monitoring area, and the detection response time allowed by the control process. If the preset sampling period is too large, it may reduce the temporal resolution of the target's state changes; if the preset sampling period is too small, it will increase the number of state judgments and processing steps. Therefore, it should be set according to the actual detection and control requirements.

[0026] During the duration of the current target activity event, when the target changes from a targeted state to a targetless state, the continuous targetless duration is recorded. If the continuous targetless duration is less than the short-term targetless determination duration, and the target is subsequently detected again, this continuous targetless duration is defined as a targetless interruption period. If the continuous targetless duration reaches the short-term targetless determination duration, the current targetless state is no longer defined as a targetless interruption period, and the continuous targetless duration continues to accumulate. Subsequently, the continuous targetless duration is compared with the event interruption threshold to determine whether the current target activity event has ended.

[0027] The short-term targetlessness determination duration is used to filter out short-duration targetlessness states within the current target activity event. The short-term targetlessness determination duration is determined based on the preset sampling period and the number of sampling periods allowed for consecutive targetlessness states. Specifically, the preset sampling period is multiplied by the number of sampling periods allowed for consecutive targetlessness states to obtain the short-term targetlessness determination duration. The number of sampling periods allowed for consecutive targetlessness states is determined based on short-term targetlessness situations encountered by the millimeter-wave detection device during actual monitoring, ensuring that this number covers short-term targetlessness states that may occur during normal target activity, while avoiding treating longer-duration targetlessness states as shorter-duration ones. For example, if the preset sampling period is 0.5 seconds and the allowed number of sampling periods for consecutive targetlessness states is 2, then the short-term targetlessness determination duration is 1 second.

[0028] After multiple non-targeted interrupted periods are formed and terminated within the current target activity event, the duration of each non-targeted interrupted period is obtained and arranged in ascending order. When the number of durations is odd, the median duration is taken as the median value after arranging. When the number of durations is even, the average of the two median durations is taken as the median duration. The median duration is used to reflect the typical duration level of non-targeted interrupted periods within the current target activity event and serves as the basis for determining the interruption threshold of candidate events.

[0029] Furthermore, the absolute differences between the duration of each target-free interruption period and the median duration are calculated separately and arranged in ascending order. When the number of absolute differences is odd, the median value is taken as the median absolute deviation; when the number of absolute differences is even, the average of the two median absolute differences is taken as the median absolute deviation. The median absolute deviation is used to reflect the degree of fluctuation in the duration of multiple target-free interruptions within the current target activity event.

[0030] After determining the median absolute deviation, the fluctuation correction amount is determined based on a preset interruption fluctuation coefficient. Specifically, the median absolute deviation is proportionally adjusted according to the preset interruption fluctuation coefficient to obtain the fluctuation correction amount. The preset interruption fluctuation coefficient is used to determine the degree of correction of the median absolute deviation to the event interruption threshold, and it is determined based on the historical fluctuation of the duration of no-target interruption within the monitoring area and the allowable adjustment range of the event interruption threshold. The larger the preset interruption fluctuation coefficient, the larger the fluctuation correction amount obtained under the same median absolute deviation.

[0031] Furthermore, based on the median duration, a fluctuation correction and a preset interruption margin are added to correct the median duration, resulting in the candidate event interruption threshold. The preset interruption margin is used to add a status confirmation time based on the target-free interruption duration and fluctuation range of the current target activity event. It is determined based on the status detection delay of the millimeter-wave detection device, the detection fluctuations caused by normal target activity within the monitoring area, and the allowable event termination judgment error, in order to reduce the possibility of the target activity event terminating prematurely due to detection fluctuations near the event interruption boundary.

[0032] Further, a preset event interruption threshold range is set, and the candidate event interruption thresholds are limited to this range. The preset event interruption threshold range includes a lower limit and an upper limit. The lower limit is determined based on the short-term target-free determination duration and the allowable event termination judgment error, and is not less than the short-term target-free determination duration. The upper limit is determined based on the potentially longer target-free interruption duration during normal target activity within the monitoring area and the maximum allowable activity event duration, to prevent the event interruption threshold from being too high and causing terminated target activity events to continue.

[0033] When the candidate event interruption threshold is less than the lower limit of the event interruption threshold, the lower limit of the event interruption threshold is used as the event interruption threshold; when the candidate event interruption threshold is greater than the upper limit of the event interruption threshold, the upper limit of the event interruption threshold is used as the event interruption threshold; when the candidate event interruption threshold is within the preset event interruption threshold range, the candidate event interruption threshold is used as the event interruption threshold.

[0034] When the number of targetless interruptions within the current target activity event is less than the preset minimum sample size, the event interruption threshold is not determined using the statistical results within the current target activity event, as this number is insufficient to reflect the changing characteristics of the targetless interruption duration. Instead, a preset basic event interruption threshold is used. The preset minimum sample size is determined based on the minimum number of targetless interruptions required to form a stable median duration and median absolute deviation. The preset basic event interruption threshold is determined based on the typical targetless duration that may occur during normal target activity within the monitoring area, the detection stability of the millimeter-wave detection device, and the allowable event termination judgment error.

[0035] Once the number of untargeted interrupted periods reaches the preset minimum sample size, the event interruption threshold is determined based on the median duration, median absolute deviation, fluctuation correction amount, and preset interruption margin.

[0036] After obtaining the event interruption threshold, when the target activity event has not yet qualified for automatic deodorization execution, the duration of continuous target absence is compared with the event interruption threshold. If the duration of continuous target absence does not reach the event interruption threshold and the target is detected again, the current target activity event is maintained; if the duration of continuous target absence reaches the event interruption threshold, the current target activity event is terminated, and the current target activity event is prohibited from continuing to qualify for automatic deodorization execution.

[0037] By using the above method, the event interruption threshold is determined based on the period of no target interruption within the current target activity event, so that the termination judgment of the target activity event matches the continuity of target detection within the current target activity event, avoiding premature termination of the target activity event due to a short period of no target, thereby reducing invalid target activities from entering the subsequent automatic deodorization execution process.

[0038] In one embodiment, determining the duration of the deodorization-related activity includes: The activity location of the target within the monitoring area is obtained, and the activity location is matched with a preset deodorization associated area. The entry time and exit time of the target entering and leaving the deodorization associated area are determined, and the duration of each target state is determined in combination with the target's existence status. The duration of each target state duration is compared with the preset deodorization associated stay time, and the target state duration that reaches the preset deodorization associated stay time is retained. The durations are accumulated to obtain the duration of the deodorization associated activity.

[0039] In this embodiment, the duration of deodorization-related activities is used to distinguish between activities related to deodorization needs and activities unrelated to deodorization needs from target activity events. This ensures that the mere presence of a target within the monitoring area does not directly qualify for automatic deodorization execution. Instead, the target must maintain a target state within the spatial area related to deodorization needs for a certain duration before the duration of deodorization-related activities is established.

[0040] Specifically, during the duration of the target activity event, the target's position within the monitoring area is acquired. When using a millimeter-wave detection method capable of outputting target distance and orientation, the target's spatial position relative to the detection location is determined based on the target distance and orientation. This spatial position is then mapped to the target's position within the monitoring area, taking into account a pre-defined spatial range. The position of activity represents the target's spatial location within the monitoring area and is updated as the target's position changes.

[0041] The preset deodorization association area is used to represent the spatial area within the monitoring area that is related to the deodorization need. The preset deodorization association area is determined based on the location of odor generation in the actual deodorization scenario, the normal activity range of the target within the monitoring area, and the deodorization coverage of the deodorization execution agency, so that the activities of the target within the preset deodorization association area are spatially associated with the deodorization need.

[0042] For example, in a pet toilet scenario, the preset deodorization associated area can be set as the litter box area corresponding to the pet's excretion activity; in a human toilet scenario, the preset deodorization associated area can be set as the toilet area, urinal area, or other areas related to the location of odor generation. When there are multiple locations related to deodorization needs within the monitoring area, multiple spatial ranges can be jointly determined as the preset deodorization associated area.

[0043] After obtaining the activity location, the activity location is matched with the preset deodorization associated area. When the activity location moves from outside the preset deodorization associated area into the area of ​​the preset deodorization associated area, it is determined that the target has entered the deodorization associated area, and the entry time is recorded; when the activity location moves from the area of ​​the preset deodorization associated area to outside the preset deodorization associated area, it is determined that the target has left the deodorization associated area, and the departure time is recorded.

[0044] When a target is located within a preset deodorization associated area, the duration of the target presence state is determined based on the target's existing state. When a target enters the deodorization associated area, it is in a target presence state, and the duration of the target presence state is recorded from the time of entry. While the target remains within the preset deodorization associated area and maintains the target presence state, the current duration of the target presence state is continuously recorded. When the target leaves the deodorization associated area or changes from a target presence state to a targetless state, the current duration of the target presence state ends, and the duration of the current duration of the target presence state is determined.

[0045] When a target enters and leaves the preset deodorization associated area multiple times within the same target activity event, the duration of the target state formed by each entry and exit is recorded separately, and different durations of target state are not directly merged. By recording each duration of target state separately, it is possible to distinguish between activities where the target stays continuously within the preset deodorization associated area and activities where it passes through the preset deodorization associated area briefly multiple times.

[0046] To exclude short-term activities where the target only passes through a preset deodorization-associated area, a preset deodorization-associated dwell time is set. The preset deodorization-associated dwell time is used to determine whether a period of time with a target reaches the minimum duration required to form a deodorization-associated activity.

[0047] The preset deodorization-related dwell time is determined based on historical target activity data. Specifically, the duration of each target state period in historical target activity events is obtained. Based on the actual deodorization control results and target activity records corresponding to the historical target activity events, target activities related to deodorization needs and target activities that only pass through the preset deodorization-related area are distinguished. Based on the duration range of the target state periods corresponding to the two types of target activities, the duration limit that can distinguish the two types of target activities is determined. This duration limit is then adjusted in conjunction with the allowable level of false triggering to obtain the preset deodorization-related dwell time.

[0048] When the duration of a target state period is less than the preset deodorization-related dwell time, the target state period is defined as a target state period whose duration does not reach the preset deodorization-related dwell time and is not included in the duration of the deodorization-related activity; when the duration of a target state period reaches or exceeds the preset deodorization-related dwell time, the target state period is retained and included as a component of the duration of the deodorization-related activity.

[0049] After retaining multiple target state duration periods, the durations of each retained target state duration period are summed to obtain the duration of the deodorization-related activity. The duration of the deodorization-related activity only includes target state duration periods located within the preset deodorization-related area, in a target state, and whose duration reaches the preset deodorization-related dwell time. Target state duration periods located outside the preset deodorization-related area, durations corresponding to non-target states, and target state duration periods with durations shorter than the preset deodorization-related dwell time are not included in the duration of the deodorization-related activity.

[0050] For example, in a single target activity event, the target successively forms four target state duration periods, with durations of 12 seconds, 20 seconds, 8 seconds, and 3 seconds, respectively. When the preset deodorization-related dwell time is 10 seconds, the target state duration periods of 12 seconds and 20 seconds meet the requirement, while the target state duration periods of 8 seconds and 3 seconds do not meet the requirement. Therefore, the 12-second and 20-second periods are added together to obtain a deodorization-related activity duration of 32 seconds.

[0051] If, before the target activity event has ended, the target re-enters the preset deodorization associated area and forms a new target state duration, the duration of the deodorization associated activity for the current target activity event is updated. When the new target state duration reaches the preset deodorization associated dwell time, the duration of that target state duration continues to be included in the deodorization associated activity duration. When the target activity event ends, updating the duration of the deodorization associated activity for the current target activity event stops.

[0052] By using the above method, activities occurring in the preset deodorization-related area within the target activity event are screened and accumulated based on the activity location, target existence status, and preset deodorization-related dwell time. This ensures that activities that only pass through the monitoring area or briefly pass through the preset deodorization-related area will not form a deodorization-related activity duration, while activities that continuously move within the preset deodorization-related area and reach the preset deodorization-related dwell time can form a deodorization-related activity duration. This allows the determination of subsequent automatic deodorization execution eligibility to target activities that have spatial and temporal relevance to the deodorization needs.

[0053] In one embodiment, determining the duration of continuous deodorization-related activities includes: The system acquires the duration of each target state within a preset deodorization associated area and the non-target intermittent periods between two adjacent target state durations; a preset continuous activity interruption threshold is less than the short-term non-target determination duration; each non-target intermittent period is compared with the preset continuous activity interruption threshold; when the non-target intermittent period does not reach the preset continuous activity interruption threshold, two adjacent target state durations are merged into the same continuous activity period; when the preset continuous activity interruption threshold is reached, two adjacent target state durations are treated as different continuous activity periods; the duration is determined based on the start and end times of each continuous activity period, and the maximum duration is determined as the continuous duration of the deodorization associated activity.

[0054] In this embodiment, the continuous duration of deodorization-related activities is used to represent the longest duration during which a target continuously performs activities related to deodorization needs within a preset deodorization-related area. When a target-free interruption occurs during the target's activity, it is determined whether the target-free interruption causes the continuous activity period to be segmented based on a preset continuous activity interruption threshold. When the target-free interruption does not reach the preset continuous activity interruption threshold, the continuous periods with a target state before and after the interruption are treated as the same continuous activity period, thereby avoiding the incorrect segmentation of a continuous activity due to short-term detection fluctuations.

[0055] Specifically, during the duration of the target activity event, the activity state of the target within the preset deodorization association area is determined based on the matching result between the activity location and the preset deodorization association area, and the duration of each target state is recorded in conjunction with the target's existence state. When the target is located within the preset deodorization association area and is in a target state, the duration of the current target state is continuously recorded; when the target changes from a target state to a targetless state, the start time of the targetless state is recorded; when the target is located within the preset deodorization association area again and is re-determined to be in a target state, the end time of the targetless state is recorded, and the targetless discontinuity period between two adjacent target state duration periods is determined based on the start time and end time of the targetless state.

[0056] A preset continuous activity interruption threshold is used to distinguish between targetless interruption periods that need to be merged and targetless interruption periods that need to be separated. When the duration of a targetless interruption period is short, it may be caused by changes in target attitude, fluctuations in detection echo, brief target occlusion, or instantaneous loss of detection results during millimeter-wave detection. In this case, the target-state durations on both sides of the targetless interruption period are treated as the same continuous activity period. When the duration of a targetless interruption period reaches the preset continuous activity interruption threshold, the target-state durations on both sides of the targetless interruption period are no longer treated as the same continuous activity period, but are instead formed as different continuous activity periods.

[0057] After determining the non-targeted interruption period, its duration is compared with a preset continuous activity interruption threshold. When the duration of the non-targeted interruption period is less than the preset continuous activity interruption threshold, two adjacent target-state duration periods are merged into the same continuous activity period. The start time of the first target-state duration period before merging is taken as the start time of the continuous activity period, and the end time of the second target-state duration period after merging is taken as the end time of the continuous activity period. When the duration of the non-targeted interruption period reaches the preset continuous activity interruption threshold, merging is no longer performed, and the two adjacent target-state duration periods are taken as different continuous activity periods.

[0058] The preset continuous activity interruption threshold is determined based on historical target activity data and target detection data, and the preset continuous activity interruption threshold is less than the short-term target-free determination duration. Specifically, the duration of the target-state in historical target activity events located within the preset deodorization association area is obtained, and the target-free interruption period between adjacent target-state durations is extracted; based on the duration range of the target-free interruption period formed by detection fluctuations, target posture changes, or short-term occlusion in historical data, a time limit that can cover normal detection fluctuations is determined, and the time limit is adjusted in combination with the detection response delay and the range that allows for the erroneous splitting of continuous activity periods to obtain the preset continuous activity threshold.

[0059] To avoid reconnecting activities after the target leaves the preset deodorization association area, the determination of targetless intermittent periods between adjacent target-state durations is constrained by combining the matching results of the activity location and the preset deodorization association area. Only when both the target-state durations before and after the interruption correspond to activities where the target is within the preset deodorization association area, and the intermediate targetless intermittent period does not reach the preset continuous activity interruption threshold, are they merged into the same continuous activity period. When the target has left the preset deodorization association area and re-entered, a new target-state duration is formed, and continuous activity merging is not performed through the aforementioned targetless intermittent period.

[0060] After forming multiple consecutive activity periods, the duration of each consecutive activity period is determined according to the start and end times of each consecutive activity period. The durations of each consecutive activity period are then compared, and the longest duration is taken as the continuous duration of the deodorization-related activity.

[0061] For example, in a target activity event, the target forms a first targeted state duration of 20 seconds within a preset deodorization-related area; followed by a 2-second untargeted intermittent period, and then another targeted state duration of 30 seconds. When the preset continuous activity interruption threshold is 5 seconds, since the 2-second untargeted intermittent period does not reach the preset continuous activity interruption threshold, the two targeted state durations are merged into a single continuous activity duration. This continuous activity duration lasts from the start of the first targeted state duration to the end of the second targeted state duration, for a total duration of 52 seconds. If a separate continuous activity duration of 40 seconds subsequently forms, the 52 seconds and 40 seconds are compared, and the continuous duration of the deodorization-related activity is determined to be 52 seconds.

[0062] By using the above method, based on the relationship between the non-targeted intermittent time period and the preset continuous activity intermittent threshold, adjacent target state continuous time periods are merged or segmented, so that short-term detection fluctuations will not erroneously split a continuous deodorization-related activity, and at the same time avoid connecting mutually independent activity periods, thereby obtaining the continuous duration of deodorization-related activities that can reflect the degree of target continuous deodorization-related activities.

[0063] In one embodiment, determining the proportion of deodorization-related activities includes: Determine the start time and current time of the current target activity event; determine the duration of the current target activity event based on the time length between the current time and the start time; determine the duration of the deodorization-related activities up to the current time based on the duration of each target state period within the current target activity event that satisfies the preset deodorization-related dwell time; determine the proportion of deodorization-related activities based on the ratio between the duration of the deodorization-related activities and the duration of the current target activity event.

[0064] In this embodiment, the proportion of deodorization-related activities is used to represent the percentage of time spent on activities related to deodorization needs within the total duration of the target activity event. By determining the proportion of deodorization-related activities, it is possible to distinguish between situations where activities related to deodorization needs are concentrated and those where they are dispersed within the target activity event. This differentiates activities where the target spends a long time within the monitoring area but only a small portion of that time is within the deodorization-related area from activities where the majority of the activity time occurs within the deodorization-related area.

[0065] Specifically, the start time of a target activity event is recorded when it is established. When the target presence state within the monitoring area changes from a targetless state to a target-containing state, the moment of this state transition is determined as the start time of the event, and the duration of the current target activity event begins to be recorded. As the current time is continuously updated, the duration of the current target activity event corresponds to the length of time between the event start time and the current time.

[0066] During the duration of the target activity event, based on the matching results between the activity location and the preset deodorization associated area, the duration of each target state is determined, and each target state duration is filtered according to the preset deodorization associated stay duration. The duration of the target state duration that reaches the preset deodorization associated stay duration is included in the deodorization associated activity duration of the current target activity event; the duration of the target state duration that is less than the preset deodorization associated stay duration is not included in the deodorization associated activity duration.

[0067] As the target activity continues, when a new period of time with a target state reaches the preset deodorization-related dwell time, that period of time with a target state is included in the duration of the deodorization-related activity, and the duration of the deodorization-related activity is updated based on the current cumulative results. When the target is located outside the preset deodorization-related area, or when the period of time with a target state formed within the preset deodorization-related area has not yet reached the preset deodorization-related dwell time, the corresponding time is not included in the duration of the deodorization-related activity, but is still included in the duration of the current target activity.

[0068] The proportion of deodorization-related activities is determined based on the duration of the current target event and the duration of deodorization-related activities. This proportion is updated as the target event continues and the duration of deodorization-related activities changes. When the duration of the target event increases, but no new activity results in a deodorization-related activity meeting the preset deodorization-related dwell time, the current target event duration continues to increase, while the duration of deodorization-related activities remains unchanged, causing the proportion of deodorization-related activities to decrease accordingly. When the target re-enters the preset deodorization-related area and forms a target-state duration meeting the preset deodorization-related dwell time, the duration of deodorization-related activities increases, causing the proportion of deodorization-related activities to update accordingly.

[0069] For example, if a target activity event begins and its duration reaches 100 seconds, with a total of 60 seconds of targeted state duration meeting the preset deodorization-related dwell time, then the current deodorization-related activity proportion is determined to be 60%. If the target continues to move within the monitoring area for 20 seconds, but the new activity does not form a targeted state duration meeting the preset deodorization-related dwell time, then the current target activity event duration increases to 120 seconds, while the deodorization-related activity duration remains at 60 seconds, and the deodorization-related activity proportion decreases to 50%. If the target subsequently re-enters the preset deodorization-related area and forms a targeted state duration of 15 seconds that meets the preset deodorization-related dwell time, then the deodorization-related activity duration is updated to 75 seconds, and the deodorization-related activity proportion is re-determined based on the updated target activity event duration.

[0070] The percentage of deodorization-related activities reflects the degree of time concentration of deodorization-related activities within the current target activity event. When the percentage of deodorization-related activities is high, it means that most of the target's activity time occurs in the spatial area related to the deodorization need; when the percentage of deodorization-related activities is low, it means that although the target has formed activities related to the deodorization need, a significant amount of time in its overall activity occurs in non-deodorization-related areas or during activities that do not reach the preset deodorization-related dwell time.

[0071] While the target event is still ongoing, the percentage of deodorization-related activities is continuously updated, and the percentage of deodorization-related activities updated at the current moment is used as one of the activity characteristics of the current target event. When the target event ends, the percentage of deodorization-related activities corresponding to the current target event is stopped from being updated, but the percentage of deodorization-related activities corresponding to the end of the target event is retained.

[0072] By using the above method, the time proportion of activities related to deodorization needs in the target event is determined based on the time ratio between the duration of the current target event and the duration of deodorization-related activities. This allows automatic deodorization control to not only focus on the cumulative duration of activities related to deodorization needs, but also to distinguish the degree of concentration of related activities in the entire target event, thereby providing time proportion characteristics for the subsequent determination of automatic deodorization execution eligibility.

[0073] In one embodiment, determining deodorization-related activity characteristics includes: The duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities are compared with preset thresholds for duration, continuous duration, and proportion of related activities, respectively. When the duration of deodorization-related activities reaches the preset threshold for duration, the continuous duration of deodorization-related activities reaches the preset threshold for continuous duration, and the proportion of deodorization-related activities reaches the preset threshold for proportion of related activities, the current target activity event is determined to meet the preset automatic deodorization qualification conditions, and the target activity event is determined to be qualified for automatic deodorization execution.

[0074] In this embodiment, the deodorization-related activity feature is used to determine whether the current target activity event meets the preset automatic deodorization eligibility conditions based on the duration, continuous duration, and proportion of deodorization-related activities in the target activity event. By setting preset thresholds for duration, continuous duration, and proportion of related activities, the determination of automatic deodorization eligibility is constrained by different activity features simultaneously, avoiding automatic deodorization based solely on a single activity feature.

[0075] Specifically, the duration of deodorization-related activities is used to represent the cumulative duration of the target state periods in the current target activity event where each duration reaches the preset deodorization-related dwell time. When the duration of deodorization-related activities reaches the preset association duration threshold, it indicates that the current target activity event has accumulated deodorization-related activities that meet the requirements.

[0076] The continuous duration of deodorization-related activities indicates the duration of the longest continuous activity period in the current target activity event, reflecting the degree to which the target continuously carries out activities related to deodorization needs within the preset deodorization-related area. When the continuous duration of deodorization-related activities reaches the preset continuous duration threshold, it indicates that there is at least one continuous deodorization-related activity with the required duration in the current target activity event, rather than being formed by the accumulation of multiple mutually dispersed activity periods.

[0077] The proportion of deodorization-related activities represents the percentage of deodorization-related activities within the total duration of the current target event, reflecting the degree of temporal concentration of these activities throughout the entire target event. When the proportion of deodorization-related activities reaches a preset threshold, it indicates that a significant portion of the activity time in the current target event is related to deodorization needs, rather than only a small number of deodorization-related activities occurring within a longer target event.

[0078] The preset thresholds for association duration, association continuity, and association activity percentage are determined based on historical target activity data and actual automatic deodorization control requirements.

[0079] The preset associated duration threshold is determined based on the duration of deodorization associated activities in historical target activity events and their corresponding actual deodorization control results, as well as the allowable degree of leak triggering. It is used to distinguish between target activities with a short cumulative duration of deodorization associated activities and target activities with a cumulative duration of deodorization associated activities that meets the requirements.

[0080] The preset threshold for continuous duration of associated activities is determined based on the continuous duration of deodorization associated activities in historical target activity events and the corresponding actual deodorization control results, as well as the allowable degree of false triggering. This is used to prevent the target from obtaining automatic deodorization execution qualification even if it has a large duration of deodorization associated activities, but there are no continuous deodorization associated activities that meet the requirements.

[0081] The preset threshold for the proportion of related activities is determined based on the proportion of deodorization-related activities in historical target event events, the corresponding actual deodorization control results, and the allowable level of leak triggering. It is used to distinguish between target events with a high proportion of deodorization-related activities and those with a low proportion in the entire target event.

[0082] When determining the above three thresholds, the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities in historical target activity events can be statistically analyzed in relation to the actual deodorization control results. This allows for the determination of the parameter ranges corresponding to target activity events that actually performed automatic deodorization operations and those that did not. The corresponding thresholds are then determined based on the allowable levels of false triggering and missed triggering. The preset thresholds for duration of related activities, continuous duration of related activities, and proportion of related activities correspond to the duration of deodorization-related activities, the continuous duration of deodorization activities, and the proportion of deodorization activities, respectively. Multiple parameters are not weighted together using preset weights.

[0083] During the duration of the target activity event, as the target enters or leaves the preset deodorization associated area, and as each target state duration is formed and ends, the duration of the deodorization associated activity, the continuous duration of the deodorization associated activity, and the proportion of the deodorization associated activity are continuously updated. The updated duration of the deodorization associated activity, the continuous duration of the deodorization associated activity, and the proportion of the deodorization associated activity are then compared with the preset associated duration threshold, the preset associated continuous duration threshold, and the preset associated activity proportion threshold, respectively.

[0084] When the duration of deodorization-related activities does not reach the preset duration threshold, it means that the cumulative activity time related to deodorization needs in the current target activity event has not yet met the requirements. At this time, it is uncertain whether the current target activity event has obtained the qualification for automatic deodorization execution.

[0085] When the continuous duration of deodorization-related activities does not reach the preset continuous duration threshold, even if the duration of deodorization-related activities has reached the preset continuous duration threshold, it means that the current target activity event has not yet formed a continuous activity period that meets the requirements. At this time, it is uncertain whether the current target activity event has obtained the qualification for automatic deodorization execution.

[0086] When the proportion of deodorization-related activities does not reach the preset threshold for the proportion of related activities, even if both the duration and the continuous duration of deodorization-related activities reach the corresponding thresholds, it indicates that the proportion of activities related to deodorization needs in the entire target activity event is insufficient. In this case, it is uncertain whether the current target activity event has obtained the qualification for automatic deodorization execution.

[0087] During the duration of the target activity event, when the duration of the deodorization-related activities reaches the preset duration threshold, the continuous duration of the deodorization-related activities reaches the preset continuous duration threshold, and the proportion of deodorization-related activities reaches the preset proportion threshold, the current target activity event is determined to meet the preset automatic deodorization qualification conditions, and the current target activity event is determined to obtain automatic deodorization execution qualification.

[0088] For example, if a target activity lasts for 100 seconds, the duration of deodorization-related activities is determined to be 60 seconds, the continuous duration of deodorization-related activities is determined to be 35 seconds, and the proportion of deodorization-related activities is determined to be 60%. When the preset threshold for the duration of related activities is 50 seconds, the preset threshold for the continuous duration of related activities is 30 seconds, and the preset threshold for the proportion of related activities is 50%, the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities all reach the corresponding thresholds. Therefore, the current target activity is determined to meet the preset automatic deodorization qualification conditions and obtains the qualification to perform automatic deodorization.

[0089] For example, if the duration of the target activity event reaches 100 seconds, but the duration of the deodorization-related activity is only 40 seconds, even if the duration of the deodorization-related activity reaches 30 seconds and the proportion of deodorization-related activities reaches 50%, the qualification for automatic deodorization is uncertain because the duration of the deodorization-related activity does not reach the preset duration threshold.

[0090] For example, when the duration of the deodorization-related activity reaches 60 seconds, but because the deodorization-related activity is formed by multiple mutually dispersed activity periods, the continuous duration of the deodorization-related activity is only 15 seconds. When the preset continuous duration threshold is 30 seconds, even if the duration of the deodorization-related activity has reached the preset continuous duration threshold, it is uncertain whether automatic deodorization is qualified to be performed.

[0091] For example, if the duration of the deodorization-related activity is 60 seconds and the continuous duration of the deodorization-related activity is 35 seconds, but the duration of the target activity event reaches 150 seconds, making the proportion of deodorization-related activities only 40%, which is lower than the preset threshold of 50% for the proportion of related activities, then even if the duration of the deodorization-related activity and the continuous duration of the deodorization-related activity reach the corresponding threshold, it is uncertain whether automatic deodorization will be performed.

[0092] Once a target activity event obtains the qualification to perform automatic deodorization, the qualification is maintained until the target activity event ends, and the subsequent departure confirmation is initiated; after the automatic deodorization operation is completed, the automatic deodorization qualification corresponding to the current target activity event is cleared.

[0093] By using the above methods, the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities are used to constrain target activity events. This prevents automatic deodorization from being triggered when the target only briefly enters the preset deodorization-related area, forms only multiple mutually dispersed activity periods, or has only a small number of deodorization-related activities. This ensures that the qualification for automatic deodorization is established only when the current target activity event simultaneously meets multiple deodorization-related activity conditions, providing a clear execution prerequisite for subsequent target departure confirmation and automatic deodorization operations.

[0094] In one embodiment, determining the departure confirmation threshold includes: The system obtains the event interruption threshold and the continuous duration of the deodorization-related activity corresponding to the current target activity event. Based on the continuous duration of the deodorization-related activity, it determines similar historical target activity events from historical target activity events and determines a preset departure confirmation margin based on the continuous targetlessness duration corresponding to the historical target activity events. The system adds the event interruption threshold and the preset departure confirmation margin to obtain the departure confirmation threshold. After the current target activity event obtains the qualification for automatic deodorization execution, the system starts recording the continuous targetlessness duration when the target changes from a target-enabled state to a targetlessness state. When the continuous targetlessness duration reaches the departure confirmation threshold and the target is not re-activated as a target-enabled state during the period, it is determined that the target has left the monitoring area.

[0095] In this embodiment, the preset departure confirmation margin is used to further confirm the target's actual departure from the monitoring area after the target has obtained the qualification to perform automatic deodorization. Obtaining automatic deodorization qualification only indicates that the target's current activity meets the automatic deodorization qualification conditions; it does not directly indicate that the target has left the monitoring area. Before the target actually leaves, there may still be a continuous state of no target due to changes in target attitude, brief target occlusion, or millimeter-wave detection fluctuations. Therefore, adding a preset departure confirmation margin based on the event interruption threshold provides additional confirmation time for target departure, reducing the premature execution of automatic deodorization operations due to short-term target undetection.

[0096] Specifically, in historical target activity events, once a target has obtained the qualification to perform automatic deodorization, the continuous duration of targetlessness when the target changes from a targeted state to a targetless state is continuously recorded; when the target is detected again and re-determined to be in a targeted state, the continuous targetlessness duration ends. The actual time when the target leaves the monitoring area is determined through historical monitoring records, target activity end records, or manual verification results, and this actual time of leaving the monitoring area is taken as the departure time of the historical target activity event. The continuous targetlessness duration from the time the target obtains the qualification to perform automatic deodorization until the departure time is recorded.

[0097] After obtaining the aforementioned historical data, the continuous duration of deodorization-related activities corresponding to each historical target activity event is further obtained. The continuous duration of deodorization-related activities represents the longest continuous activity period before the target obtains the qualification for automatic deodorization execution. Based on the continuous duration of deodorization-related activities corresponding to the current target activity event, historical target activity events with similar continuous durations of deodorization-related activities are identified from the historical target activity events.

[0098] Based on the continuous duration of the deodorization-related activities corresponding to the current target activity event, historical target activity events with similar continuous durations of deodorization-related activities are identified from historical target activity events. The duration of continuous targetlessness after the target obtains automatic deodorization qualification and ultimately leaves the monitoring area within the identified historical target activity events is obtained. These continuous targetlessness durations are arranged in ascending order, and their median values ​​are determined. The event interruption thresholds corresponding to the identified historical target activity events are obtained, and their median values ​​are determined. The median value of the continuous targetlessness duration is compared with the median value of the event interruption threshold. When the median value of the continuous targetlessness duration is greater than the median value of the event interruption threshold, the time difference between the two is determined as a preset departure confirmation margin. When the median value of the continuous targetlessness duration is not greater than the median value of the event interruption threshold, the preset departure confirmation margin is determined to be zero.

[0099] Among them, the historical target activity events corresponding to different continuous durations of deodorization-related activities may have different distributions of continuous target-free durations. When determining the preset departure confirmation margin for the current target activity event, based on the current continuous duration of the deodorization-related activity, historical target activity events with similar continuous durations of deodorization-related activities are identified from the historical target activity events, and the preset departure confirmation margin is determined based on the final continuous target-free duration corresponding to the identified historical target activity events; when the final continuous target-free duration corresponding to the identified historical target activity events is generally long, a larger preset departure confirmation margin is determined, and when the final continuous target-free duration is generally short, a smaller preset departure confirmation margin is determined.

[0100] The preset departure confirmation margin is determined based on the continuous duration of deodorization-related activities associated with the current target activity event. This margin is established by identifying historical target activity events with similar continuous durations of deodorization-related activities. For example, a larger preset departure confirmation margin is determined when the overall duration of the final continuous period without a target corresponding to the identified historical target activity event is relatively long; conversely, a smaller preset departure confirmation margin is determined when the overall duration of the final continuous period without a target corresponding to the identified historical target activity event is relatively short. This allows the departure confirmation to be adjusted according to the continuous duration of the deodorization-related activities associated with the current target activity event.

[0101] In the current target activity event, obtain the event interruption threshold corresponding to the current target activity event and the continuous duration of the current deodorization-related activity. Based on the continuous duration of the current deodorization-related activity, determine the historical target activity events with similar continuous durations of deodorization-related activities from the historical target activity events. Based on the preset departure confirmation margin corresponding to the determined historical target activity events, determine the preset departure confirmation margin corresponding to the current target activity event. Then, add the event interruption threshold and the preset departure confirmation margin to obtain the departure confirmation threshold.

[0102] For example, in historical target activity events with similar continuous durations of deodorization-related activities to the current target activity event, the continuous target-free durations from the moment the target obtains automatic deodorization qualification until it actually leaves the monitoring area are 4 seconds, 5 seconds, 6 seconds, 5 seconds, and 5 seconds, respectively, with a median value of 5 seconds. The median value of the event interruption threshold corresponding to the historical target activity event is 4 seconds. Therefore, a 1-second time difference is determined as the preset departure confirmation margin. If the event interruption threshold of the current target activity event is 4 seconds, then a departure confirmation threshold of 5 seconds is obtained.

[0103] By using the above method, a preset departure confirmation margin that matches the characteristics of the current target activity is determined based on the continuous duration of the deodorization-related activities. The departure confirmation threshold is then corrected based on the event interruption threshold. This allows the target departure confirmation to adapt to target detection fluctuations under different levels of continuous activity after the automatic deodorization execution qualification is obtained, reducing premature deodorization caused by short-term target-free states.

[0104] In one embodiment, controlling the deodorization actuator to perform an automatic deodorization operation according to an automatic deodorization execution permission includes: Based on the duration of deodorization-related activities corresponding to the target activity event that has obtained automatic deodorization execution qualification, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities, the deodorization execution time is determined from the preset deodorization execution time range; according to the automatic deodorization execution license, the deodorization execution agency is controlled to perform an automatic deodorization operation once according to the deodorization execution time.

[0105] In this embodiment, the deodorization execution duration is used to determine the continuous running time of the deodorization actuator in a single automatic deodorization operation. The preset deodorization execution duration range provides multiple deodorization execution durations, ensuring that automatic deodorization operations corresponding to different deodorization-related activity characteristics have different execution times, thus avoiding the use of the same deodorization execution duration after all target activity events have obtained automatic deodorization execution eligibility.

[0106] Specifically, after the target activity event obtains the qualification for automatic deodorization execution and it is determined that the target has left the monitoring area, the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities corresponding to the current target activity event are obtained. These three parameters respectively reflect the cumulative time of activities related to deodorization needs in the current target activity event, the longest continuous activity time, and the proportion of time of related activities in the entire target activity event.

[0107] The preset deodorization execution time range is determined based on the deodorization capability of the deodorization actuator, its effective range of action, and the execution results of historical automatic deodorization operations. Multiple deodorization execution times can be set within the preset range, allowing the deodorization actuator to adopt different running times for different target activity characteristics.

[0108] When determining the deodorization execution duration, the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities corresponding to the current target activity event are matched with the pre-determined correspondence between the duration of deodorization-related activities, the continuous duration of deodorization-related activities, the proportion of deodorization-related activities, and the deodorization execution duration. Based on the matching results, the deodorization execution duration corresponding to the current target activity event is determined from the preset deodorization execution duration range.

[0109] The correspondence is established based on the duration, continuous duration, and proportion of deodorization-related activities in historical target events, as well as the corresponding actual automatic deodorization operation results. This correspondence is used to determine the deodorization execution duration corresponding to different characteristics of deodorization-related activities. When the duration, continuous duration, and proportion of deodorization-related activities of the current target event match the parameter values ​​in the correspondence, the deodorization execution duration corresponding to the current target event is determined based on the matching result.

[0110] For example, the preset deodorization execution duration range is 5 to 15 seconds, and three deodorization execution durations of 5 seconds, 10 seconds, and 15 seconds are set within this range. When the duration of the deodorization-related activities, the continuous duration of the deodorization-related activities, and the proportion of the deodorization-related activities of the current target activity event match the parameter value corresponding to 5 seconds, 5 seconds is selected as the deodorization execution duration; when the three parameters match the parameter values ​​corresponding to 10 seconds or 15 seconds, 10 seconds or 15 seconds are selected as the deodorization execution duration respectively; when the combination of the three parameter values ​​matches the parameter values ​​corresponding to different deodorization execution durations, the corresponding deodorization execution duration is selected according to the pre-determined correspondence. The deodorization execution durations in the example are only used to illustrate the control method of different running times corresponding to different activity characteristics. The specific deodorization execution duration is determined according to the actual operating capacity of the deodorization actuator and the application scenario.

[0111] The preset deodorization execution durations can be adjusted based on the results of historical automatic deodorization operations. When a historical automatic deodorization operation can meet the deodorization control requirements of a given scenario with a shorter execution duration, that shorter duration can be retained. Conversely, when a historical automatic deodorization operation fails to meet the corresponding deodorization control requirements with a shorter execution duration, and increasing the execution time can improve the deodorization control effect, a longer deodorization execution duration can be set within the preset range. Adjusting the deodorization execution durations within the preset range based on historical execution results ensures that the deodorization execution duration matches the actual deodorization capacity of the deodorization actuator.

[0112] After determining the deodorization execution duration, the deodorization actuator is controlled to initiate an automatic deodorization operation based on the generated automatic deodorization execution permit, and continues to run for the determined deodorization execution duration. Once the deodorization actuator has run for the specified duration, the automatic deodorization operation stops, and the deodorization actuator is not restarted based on the same automatic deodorization execution permit.

[0113] After an automatic deodorization operation is completed, the automatic deodorization execution qualification and automatic deodorization execution permission corresponding to the current target activity event are cleared, and the current target activity event is terminated. If the target is detected again and an automatic deodorization operation is required, a new target activity event needs to be created, and the duration, continuous duration, and proportion of deodorization-related activities need to be redefined. Only after obtaining automatic deodorization execution qualification again and generating a new automatic deodorization execution permission can the next automatic deodorization operation be executed.

[0114] Using the above method, the corresponding deodorization execution duration is selected based on the duration of the deodorization-related activities, the continuous duration of the deodorization-related activities, and the proportion of the deodorization-related activities already determined for the current target activity event. An automatic deodorization operation is performed once after the target leaves the monitoring area and an automatic deodorization execution permission is obtained. This ensures that the automatic deodorization execution time matches the degree of deodorization correlation of the current target activity. At the same time, by ensuring that an automatic deodorization execution permission is granted, only one automatic deodorization operation is performed, thus avoiding repeated automatic deodorization execution for the same target activity event during continuous monitoring.

[0115] In one embodiment, controlling the deodorization actuator to perform an automatic deodorization operation according to the automatic deodorization execution permission further includes:

[0116] The actual operating time of the deodorization actuator is obtained. When the actual operating time reaches the deodorization execution duration, the deodorization actuator is controlled to stop operating, and the completion of this automatic deodorization operation is confirmed. After the completion of this automatic deodorization operation, the automatic deodorization execution qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared, and the current target activity event is terminated.

[0117] In this embodiment, the actual running time represents the duration for which the deodorization actuator is actually in operation during this automatic deodorization operation. By recording the actual running time and comparing it with the deodorization execution duration corresponding to the current target activity event, it can be determined whether the current automatic deodorization operation has met the determined running time requirement, thus ensuring that one automatic deodorization execution permit corresponds to one complete automatic deodorization operation.

[0118] Specifically, after the target activity event obtains the qualification for automatic deodorization execution, completes the target departure confirmation, and generates an automatic deodorization execution permit, the deodorization execution mechanism is controlled to start according to the automatic deodorization execution permit, and the start time of this automatic deodorization operation is recorded when the deodorization execution mechanism starts. During the operation of the deodorization execution mechanism, the actual running time is continuously updated, and the actual running time is compared with the deodorization execution duration.

[0119] The actual running time increases continuously as the deodorization actuator continues to operate. When the deodorization actuator is in operation, the actual running time is continuously updated; when the actual running time has not yet reached the deodorization execution duration, the deodorization actuator continues to operate and the actual running time continues to accumulate, ensuring that the current automatic deodorization operation continues.

[0120] When the actual running time reaches the deodorization execution duration corresponding to the current target activity event, it indicates that the automatic deodorization operation has met the running time requirements determined based on the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities for the current target activity event. At this point, the deodorization actuator is controlled to stop running, and the automatic deodorization operation is marked as completed.

[0121] The deodorization execution duration is the deodorization execution duration determined from a preset range based on the deodorization-related activity characteristics corresponding to the current target activity event, as described in claim 8. The actual running time reflects the actual running time completed by the deodorization actuator, while the deodorization execution duration determines the required duration of the automatic deodorization operation. By comparing the actual running time with the deodorization execution duration, it is possible to prevent the deodorization actuator from prematurely ending the automatic deodorization operation before reaching the predetermined running time, and also to prevent it from continuing operation after reaching the predetermined running time.

[0122] In one implementation, the deodorization actuator can determine whether it is in operation through an operating status signal. When the deodorization actuator enters the operating state after receiving an automatic deodorization execution permission, it begins to record the actual operating time. When the actual operating time reaches the deodorization execution duration, a stop control signal is sent to the deodorization actuator, causing the deodorization actuator to change from the operating state to the stop state, and ending the accumulation of the actual operating time.

[0123] After this automatic deodorization operation is completed, the automatic deodorization execution qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared. Clearing the automatic deodorization execution qualification indicates that the current target activity event is no longer eligible to continue executing the automatic deodorization operation, and clearing the automatic deodorization execution permit prevents the deodorization execution mechanism from being triggered again by a previously used automatic deodorization execution permit.

[0124] After the automatic deodorization execution qualification and automatic deodorization execution permit are cleared, the current target activity event ends, and updates to the target activity status, duration of deodorization-related activities, continuous duration of deodorization-related activities, and proportion of deodorization-related activities corresponding to the current target activity event cease. After the current target activity event ends, the historical activity data in the current target activity event can be used as data for subsequent historical target activity events to determine or adjust parameters related to event interruption thresholds, preset departure confirmation margins, and deodorization execution duration.

[0125] After the current target activity event ends, even if the monitored area remains in a target-free state, the already cleared automatic deodorization execution qualification and automatic deodorization execution permit will not be reused to perform automatic deodorization operations. When a target is subsequently detected again and the state changes from target-free to target-positive, a new target activity event is created, and the event interruption threshold, duration of deodorization-related activities, continuous duration of deodorization-related activities, and proportion of deodorization-related activities are redefined according to the new target activity event. When the new target activity event again meets the preset automatic deodorization qualification conditions and completes the departure confirmation, a new automatic deodorization execution permit is generated, and the next automatic deodorization operation is performed.

[0126] For example, the deodorization execution duration corresponding to the current target activity event is 10 seconds. After generating an automatic deodorization execution permit, the deodorization actuator starts and begins recording the actual running time. When the actual running time reaches 10 seconds, the deodorization actuator stops running, and the automatic deodorization operation is confirmed to be complete. Subsequently, the automatic deodorization qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared, and the current target activity event ends. If the target is detected again subsequently, a new target activity event is created, and the deodorization operation is not performed again using the already completed automatic deodorization execution permit.

[0127] By means of the above method, the automatic deodorization execution permit is matched with the actual deodorization execution process. Under one permit, an automatic deodorization operation is completed according to the determined deodorization execution time, and the deodorization execution mechanism is stopped in time after the deodorization execution time is reached. After the automatic deodorization operation is completed, the automatic deodorization execution qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared and the target activity event is terminated, thereby avoiding the repeated triggering of automatic deodorization operation for the same target activity event, so that the automatic deodorization execution process corresponds one-to-one with the target activity event.

[0128] like Figure 2 As shown, a selective deodorization control system based on target activity event determination includes: The target activity event determination module is used to obtain the target existence status and corresponding time information within a predetermined monitoring area, establish a target activity event when the state of no target changes to the state of having a target, and determine the event interruption threshold based on the no-target intermittent period formed during the duration of the target activity event. The deodorization qualification determination module is used to determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities based on the activity status of the target in the deodorization-related area, thus forming deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, the target activity event is determined to have obtained automatic deodorization execution qualification. The departure confirmation permission module is used to confirm departure when a target activity event that has obtained automatic deodorization execution qualification changes from a target state to a targetless state. It determines the departure confirmation threshold based on the event interruption threshold and the preset departure confirmation margin, and generates an automatic deodorization execution permission when the continuous targetless duration reaches the departure confirmation threshold. The automatic deodorization execution module is used to control the deodorization execution agency to perform an automatic deodorization operation based on the automatic deodorization execution license. After completion, the corresponding automatic deodorization execution qualification and automatic deodorization execution license are cleared and the target activity event is terminated. Subsequent deodorization requires the re-establishment of the target activity event and the acquisition of a new automatic deodorization execution qualification.

[0129] This application also provides an electronic device. The electronic device may include one or more processors and one or more memories. The memories store computer-readable code, which, when executed by the one or more processors, can perform the selective deodorization control method and system based on the determination of target activity events as described above.

[0130] The systems and methods according to the embodiments of this application can also be implemented using the architecture of the electronic device shown in this application. The electronic device may include a bus, one or more CPUs, ROM, RAM, a communication port connected to a network, input / output, a hard disk, etc. The storage device in the electronic device, such as a ROM or hard disk, may store the selective deodorization control method and system based on target activity event determination provided in this application. Furthermore, the electronic device may also include a user interface. Of course, the architecture shown in this application is merely exemplary; when implementing different devices, one or more components in the electronic device shown in this application may be omitted according to actual needs.

[0131] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a reference structure" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0132] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

Claims

1. A selective deodorization control method based on the determination of target activity events, characterized in that, The method includes: S1: Obtain the target existence status and corresponding time information within the predetermined monitoring area. When the target-free state changes to the target-containing state, a target activity event is established. The event interruption threshold is determined based on the target-free intermittent period formed during the duration of the target activity event. When the target activity event fails to obtain automatic deodorization execution qualification and the continuous target-free duration reaches the event interruption threshold, the current target activity event is terminated and the target activity event is prohibited from continuing to obtain automatic deodorization execution qualification. S2: Based on the target's activity status within the deodorization-related area, determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities to form deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, determine that the target activity event has obtained automatic deodorization execution qualification; S3: For target activity events that have obtained automatic deodorization execution qualification, when the state with a target changes to the state without a target, a departure confirmation is performed, and a departure confirmation threshold is determined according to the event interruption threshold and the preset departure confirmation margin. When the continuous period without a target reaches the departure confirmation threshold, an automatic deodorization execution permit is generated. S4: Control the deodorization execution agency to perform an automatic deodorization operation according to the automatic deodorization execution permit. After completion, clear the corresponding automatic deodorization execution qualification and automatic deodorization execution permit and end the target activity event. Subsequent deodorization requires re-establishing the target activity event and obtaining a new automatic deodorization execution qualification.

2. The method according to claim 1, characterized in that, Determine the event interruption threshold, including: The program obtains the duration of multiple untargeted intermittent periods within the current target activity event, determines the median duration based on these durations, and determines the median absolute deviation based on the deviation between each duration and the median duration. Using the median duration as a basis, it determines the fluctuation correction amount based on the median absolute deviation and a preset interruption fluctuation coefficient, and then corrects the median duration using a preset interruption margin to obtain the candidate event interruption threshold. Finally, it restricts the candidate event interruption threshold to a preset event interruption threshold range to obtain the event interruption threshold.

3. The method according to claim 2, characterized in that, Determine the duration of deodorization-related activities, including: The activity location of the target within the monitoring area is obtained, and the activity location is matched with a preset deodorization associated area. The entry time and exit time of the target entering and leaving the deodorization associated area are determined, and the duration of each target state is determined in combination with the target's existence status. The duration of each target state duration is compared with the preset deodorization associated stay time, and the target state duration that reaches the preset deodorization associated stay time is retained. The durations are accumulated to obtain the duration of the deodorization associated activity.

4. The method according to claim 3, characterized in that, Determine the duration of deodorization-related activities, including: The system acquires the duration of each target state within a preset deodorization associated area and the non-target intermittent periods between two adjacent target state durations; a preset continuous activity interruption threshold is less than the short-term non-target determination duration; each non-target intermittent period is compared with the preset continuous activity interruption threshold; when the non-target intermittent period does not reach the preset continuous activity interruption threshold, two adjacent target state durations are merged into the same continuous activity period; when the preset continuous activity interruption threshold is reached, two adjacent target state durations are treated as different continuous activity periods; the duration is determined based on the start and end times of each continuous activity period, and the maximum duration is determined as the continuous duration of the deodorization associated activity.

5. The method according to claim 4, characterized in that, Determine the proportion of deodorization-related activities, including: Determine the start time and current time of the current target activity event; determine the duration of the current target activity event based on the time length between the current time and the start time; determine the duration of the deodorization-related activities up to the current time based on the duration of each target state period within the current target activity event that satisfies the preset deodorization-related dwell time; determine the proportion of deodorization-related activities based on the ratio between the duration of the deodorization-related activities and the duration of the current target activity event.

6. The method according to claim 5, characterized in that, Identify characteristics of deodorization-related activities, including: The duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities are compared with preset thresholds for duration, continuous duration, and proportion of related activities, respectively. When the duration of deodorization-related activities reaches the preset threshold for duration, the continuous duration of deodorization-related activities reaches the preset threshold for continuous duration, and the proportion of deodorization-related activities reaches the preset threshold for proportion of related activities, the current target activity event is determined to meet the preset automatic deodorization qualification conditions, and the target activity event is determined to be qualified for automatic deodorization execution.

7. The method according to claim 6, characterized in that, Determine the departure confirmation threshold, including: The system obtains the event interruption threshold and the continuous duration of the deodorization-related activity corresponding to the current target activity event. Based on the continuous duration of the deodorization-related activity, it determines similar historical target activity events from historical target activity events and determines a preset departure confirmation margin based on the continuous targetlessness duration corresponding to the historical target activity events. The system adds the event interruption threshold and the preset departure confirmation margin to obtain the departure confirmation threshold. After the current target activity event obtains the qualification for automatic deodorization execution, the system starts recording the continuous targetlessness duration when the target changes from a target-enabled state to a targetlessness state. When the continuous targetlessness duration reaches the departure confirmation threshold and the target is not re-activated as a target-enabled state during the period, it is determined that the target has left the monitoring area.

8. The method according to claim 7, characterized in that, According to the automatic deodorization execution permit, the deodorization actuator is controlled to perform an automatic deodorization operation, including: Based on the duration of deodorization-related activities corresponding to the target activity event that has obtained automatic deodorization execution qualification, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities, the deodorization execution time is determined from the preset deodorization execution time range; according to the automatic deodorization execution license, the deodorization execution agency is controlled to perform an automatic deodorization operation once according to the deodorization execution time.

9. The method according to claim 8, characterized in that, According to the automatic deodorization execution permit, controlling the deodorization actuator to perform an automatic deodorization operation also includes: The actual operating time of the deodorization actuator is obtained. When the actual operating time reaches the deodorization execution duration, the deodorization actuator is controlled to stop operating, and the completion of this automatic deodorization operation is confirmed. After the completion of this automatic deodorization operation, the automatic deodorization execution qualification and automatic deodorization execution permit corresponding to the current target activity event are cleared, and the current target activity event is terminated.

10. A selective deodorization control system based on target activity event determination, characterized in that, The system, applied to the selective deodorization control method based on target activity event determination as described in any one of claims 1-9, comprises: The target activity event determination module is used to obtain the target existence status and corresponding time information within a predetermined monitoring area, establish a target activity event when the state of no target changes to the state of having a target, and determine the event interruption threshold based on the no-target intermittent period formed during the duration of the target activity event. The deodorization qualification determination module is used to determine the duration of deodorization-related activities, the continuous duration of deodorization-related activities, and the proportion of deodorization-related activities based on the activity status of the target in the deodorization-related area, thus forming deodorization-related activity characteristics; during the duration of the target activity event, when the deodorization-related activity characteristics meet the preset automatic deodorization qualification conditions, the target activity event is determined to have obtained automatic deodorization execution qualification. The departure confirmation permission module is used to confirm departure when a target activity event that has obtained automatic deodorization execution qualification changes from a target state to a targetless state. It determines the departure confirmation threshold based on the event interruption threshold and the preset departure confirmation margin, and generates an automatic deodorization execution permission when the continuous targetless duration reaches the departure confirmation threshold. The automatic deodorization execution module is used to control the deodorization execution agency to perform an automatic deodorization operation based on the automatic deodorization execution license. After completion, the corresponding automatic deodorization execution qualification and automatic deodorization execution license are cleared and the target activity event is terminated. Subsequent deodorization requires the re-establishment of the target activity event and the acquisition of a new automatic deodorization execution qualification.