Seat occupant detection method, system, device and medium based on capacitive device
By employing a fixed sampling period and drift compensation technology in capacitive seat detection, and combining capacitance difference and rate of change to determine whether a person is seated or not, the problem of easy drift and misjudgment by capacitive sensors is solved, achieving higher accuracy and stability in seat status detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN LTIME IN VEHICLE ENTERTAINMENT SYST CO LTD
- Filing Date
- 2026-03-24
- Publication Date
- 2026-06-05
AI Technical Summary
Traditional capacitive seat detection is susceptible to environmental temperature, humidity, electromagnetic interference, and device aging, which can cause the no-load capacitance value to drift, resulting in low stability and accuracy of seat status detection. Furthermore, external interference can easily cause false triggering or missed detection.
The system collects initial capacitance values at a fixed sampling period, calculates the reference capacitance value for empty seats, and performs drift compensation. It combines capacitance difference, duration, and rate of change to determine whether a user is seated or not. The system employs a reference capacitance calculation module, an over-threshold time statistics module, a user seating analysis module, and a user seat leaving analysis module for accurate detection.
This improved the accuracy and stability of seat condition detection, reduced false positives and false negatives, and ensured the accuracy and reliability of the detection.
Smart Images

Figure CN122151222A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent detection technology, and in particular to a method, system, device and medium for detecting people in seats based on a capacitance device. Background Technology
[0002] In the field of seat status monitoring, such as automotive seats and smart seats, capacitive sensing-based occupancy detection solutions are widely used due to their advantages such as non-contact detection, simple structure, and fast response speed. Traditional capacitive occupancy detection typically compares the real-time collected capacitance value with a fixed initial reference value, and uses a simple threshold to determine whether someone is seated or not.
[0003] However, in actual use, capacitive sensors are easily affected by factors such as ambient temperature, humidity, electromagnetic interference, and the aging of the device itself. Their no-load capacitance value will drift slowly over time, causing the deviation between the fixed initial reference value and the actual capacitance value in the actual empty seat state to gradually increase. At the same time, short-term external interference can easily cause instantaneous changes in capacitance value. Judging by a single threshold is prone to false triggering or missed detection. It is difficult to distinguish between valid sitting behavior, sitting behavior and environmental interference signals, resulting in low stability and accuracy of seat status detection. Summary of the Invention
[0004] This invention provides a method, system, device, and medium for detecting seat occupants based on a capacitance device, with the main objective of improving the accuracy and stability of seat status detection.
[0005] To achieve the above objectives, the present invention provides a seat occupant detection method based on a capacitance device, comprising: Based on a preset fixed sampling period, multiple initial capacitance values of the touch sensor in the target seat are collected, and the empty seat reference capacitance value of the target seat is calculated based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; Calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold to obtain the over-threshold duration; Calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. When the over-threshold duration is less than the preset duration threshold, and the first capacitance difference falls back to the preset steady-state threshold, it is determined that the user has left the seat.
[0006] Optionally, the step of acquiring multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculating the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values, includes: Based on the fixed sampling period, multiple initial capacitance values of the capacitive sensor of the target seat at the target position are collected within a preset time period. Calculate the average value of the plurality of initial capacitance values, and use the average value as the empty seat reference capacitance value of the target seat.
[0007] Optionally, the step of performing drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value includes: Obtain all target sampling times preceding the current sampling time within the sampling period to obtain the preceding sampling time set; Based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set, the empty seat reference capacitance value is drift compensated to obtain the previous sampling reference capacitance value of the previous sampling time of the current sampling time. The difference between the current instantaneous capacitance value and the previous sampling reference capacitance value is calculated to obtain the instantaneous capacitance change. When the instantaneous capacitance change is less than a preset change threshold, the current instantaneous capacitance value is fine-tuned using a preset tracking coefficient and the instantaneous capacitance change to obtain the current reference capacitance value.
[0008] Optionally, calculating the rate of change of capacitance of the first capacitance difference includes: Extract multiple over-threshold sampling times corresponding to the duration of the over-threshold, and extract the over-threshold capacitance difference corresponding to the multiple over-threshold sampling times to obtain an over-threshold capacitance difference sequence; Differential calculation is performed on the over-threshold capacitance difference sequence to obtain the discrete instantaneous capacitance difference sequence of adjacent sampling times among the multiple over-threshold sampling times; The discrete instantaneous capacitance difference sequence is filtered to obtain the capacitance change rate of the first capacitance difference.
[0009] Optionally, determining that a user is continuously seated in the target seat based on the first capacitance difference and preset human micro-motion characteristics includes: Extract the short-term fluctuation characteristics of the first capacitance difference to obtain the capacitance noise characteristics; When the capacitance noise characteristics match the human body micro-motion characteristics, it is determined that the target seat is continuously occupied by a user.
[0010] Optionally, determining that the user leaves their seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold includes: When the over-threshold duration is less than the preset duration threshold, it is determined whether the first capacitance difference has fallen back to the preset steady-state threshold. When the first capacitance difference falls back to a preset steady-state threshold, it is determined that the user of the target seat has left the seat.
[0011] Optionally, the step of performing drift compensation on the empty seat reference capacitance value based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set to obtain the previous reference capacitance value of the previous sampling time of the current sampling time includes: Obtain the first sampling time in the preceding sampling time set, and the first instantaneous capacitance value at the first sampling time; The empty seat reference capacitance value is used as the first reference capacitance value at the first sampling time, and the difference between the first reference capacitance value and the first instantaneous capacitance value is calculated to obtain the first instantaneous capacitance difference. The first instantaneous capacitance value is fine-tuned according to the preset tracking coefficient and the first instantaneous capacitance difference to obtain the first fine-tuned capacitance value, and the first fine-tuned capacitance value is used as the second reference capacitance value at the next sampling time of the first sampling time. Obtain the second instantaneous capacitance value at the next sampling time after the first sampling time, calculate the difference between the second instantaneous capacitance value and the second reference capacitance value, and obtain the second instantaneous capacitance difference at the next sampling time after the first sampling time; The second instantaneous capacitance value at the next sampling time is fine-tuned based on the second instantaneous capacitance difference at the next sampling time from the first sampling time, to obtain the second fine-tuning capacitance value; When all sampling times in the preceding sampling set have been calculated, the second fine-tuning capacitor value is used as the reference capacitor value of the previous sampling time of the current sampling time. If not all sampling times in the preceding sampling set have been calculated, then the next sampling time after the first sampling time is taken as the first sampling time, and the second fine-tuning capacitor value is taken as the second reference capacitor value after the next sampling time of the first sampling time. Then, the process of obtaining the second instantaneous capacitor value after the next sampling time of the first sampling time is returned, and the difference between the second instantaneous capacitor value and the second reference capacitor value is calculated to obtain the second instantaneous capacitor difference value after the next sampling time of the first sampling time.
[0012] To address the above problems, the present invention also provides a seat occupant detection system based on a capacitance device, the system comprising: The reference capacitance calculation module is used to collect multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculate the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; The over-threshold time statistics module is used to calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and to count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold, thereby obtaining the over-threshold duration. The user seating analysis module is used to calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. The user leaving the seat analysis module is used to determine that the user has left the seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold.
[0013] To address the above problems, the present invention also provides an electronic device, the electronic device comprising: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the capacitive device-based seat occupant detection method as described above.
[0014] To address the aforementioned problems, the present invention also provides a computer-readable storage medium, characterized in that it includes a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; wherein, when the computer program is executed by a processor, it implements the seat personnel detection method based on a capacitance device as described above.
[0015] This invention, based on a fixed sampling period, collects multiple initial capacitance values from the capacitive touch sensor of the target seat and calculates a reference capacitance value for an empty seat. It then acquires the current sampling time and instantaneous capacitance value, performs drift compensation on the empty seat reference capacitance value to obtain the current reference capacitance value, calculates the capacitance difference between the two, and counts the duration of the difference that exceeds a preset capacitance trigger threshold. When the duration exceeds the threshold, the user is determined to be seated based on the capacitance change rate; if the threshold is not met or the capacitance difference falls back to a preset steady-state threshold, the user is determined to have left the seat. Therefore, the seat personnel detection method, system, electronic device, and computer-readable storage medium proposed in this invention, by collecting initial capacitance values to establish an empty seat reference and performing real-time drift compensation, and by combining capacitance difference, duration, and change rate to determine seat entry and exit, solves the problems of easy drift and misjudgment by capacitive sensors, and improves the accuracy and stability of seat status detection. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating a seat-based personnel detection method based on a capacitance device, according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a seat personnel detection system based on a capacitance device according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the internal structure of an electronic device that implements a seat personnel detection method based on a capacitance device, according to an embodiment of the present invention.
[0017] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0018] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0019] This application provides a method for detecting people in seats based on capacitive devices. The executing entity of the method includes, but is not limited to, at least one electronic device that can be configured to execute the method provided in this application, such as a server or a terminal. The server can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In other words, the method for detecting people in seats based on capacitive devices can be executed by software or hardware installed on a remote device or server-side device; the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.
[0020] Reference Figure 1 The diagram shown is a flowchart illustrating a method for detecting people in a seat based on a capacitance device, according to an embodiment of the present invention. In this embodiment, the method for detecting people in a seat based on a capacitance device includes the following steps S1-S5: S1. Based on a preset fixed sampling period, collect multiple initial capacitance values of the touch sensor in the target seat, and calculate the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values.
[0021] Understandably, by collecting multiple initial capacitance values of the target seat touch sensor at a fixed sampling period and calculating the empty seat reference capacitance value, an initial, standardized empty seat reference benchmark can be established for subsequent seat status judgment, ensuring that the judgment has a unified initial basis.
[0022] The fixed sampling period refers to the time rule by which the system periodically collects data from the capacitance sensor at a pre-set, constant time interval. For example, if the sampling period is set to 100 milliseconds, the system will automatically collect the sensor's capacitance value every 100 milliseconds, rather than collecting it randomly and irregularly. This fixed period is the foundation for ensuring the stability and comparability of data collection, avoiding data distortion caused by inconsistent sampling times, which would prevent accurate judgment of the seat's status.
[0023] The touch sensor is a capacitive touch sensor, a type of sensor that works based on the principle of capacitive sensing. Its core function is to detect signals by utilizing the characteristic that when a human body (or other conductive object) approaches / contacts the sensor, the capacitance between the sensor's plates changes. In a seating scenario, the sensor is typically embedded in the seat surface. When the seat is empty, the sensor has a fixed capacitance value. When a person touches / sits down, the human body, acting as a conductor, forms a new capacitive coupling with the sensor, causing a significant change in capacitance. The system detects this change to determine if someone has sat down. Touch sensors differ from other types, such as pressure sensors, in that they feature non-contact (or light contact) detection, high sensitivity, and strong anti-interference capabilities.
[0024] The initial capacitance value is the raw value (usually multiple values) collected by the system from the capacitance sensor at a fixed sampling period when the seat is in an "empty" state. These values are the baseline raw data of the sensor when the seat is unused, and are the basis for subsequent calculation of the "empty seat baseline capacitance value". For example, if the capacitance value is collected 10 times in an empty seat state, these 10 values are the initial capacitance values. After processing by algorithms such as averaging and extreme value removal, a baseline value representing the empty seat state can be obtained, providing a comparison basis for subsequent detection of sitting / leaving the seat.
[0025] Further, the step of acquiring multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculating the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values, includes: Based on the fixed sampling period, multiple initial capacitance values of the capacitive sensor of the target seat at the target position are collected within a preset time period. Calculate the average value of the plurality of initial capacitance values, and use the average value as the empty seat reference capacitance value of the target seat.
[0026] The preset time period refers to a continuous period of time that the system pre-sets specifically for collecting multiple initial capacitance values when determining the reference capacitance value of an empty seat.
[0027] Among them, the empty seat reference capacitance value refers to the standard reference capacitance value obtained by the capacitance sensor after multiple samplings and calculation of the average value when the seat is in a stable empty seat state with no people, no weight, and no interference.
[0028] S2. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value.
[0029] Understandably, by acquiring the instantaneous capacitance value at the current moment during the preset sampling period and compensating for the drift of the empty base reference capacitance value based on this value, the drift error of the capacitive touch sensor caused by environmental and time factors can be eliminated, ensuring the real-time accuracy of the reference value.
[0030] The current sampling moment refers to the specific time point at which the system performs each capacitance data acquisition action sequentially according to a pre-set fixed sampling cycle during the continuous real-time monitoring of the seat capacitance signal. The current sampling moment is a key node that is continuously cycled throughout the entire monitoring process, used to mark the time of this data acquisition, and provides a unified time reference for subsequently obtaining instantaneous capacitance values and calculating state changes.
[0031] The instantaneous capacitance value refers to the raw capacitance value that the system reads in real time from the capacitive touch sensor inside the target seat at the exact sampling moment, reflecting the actual state of the sensor at that instant. The instantaneous capacitance value fluctuates in real time depending on factors such as whether someone is seated, the distribution of body pressure, and environmental changes. It is the most direct and real-time raw basis for comparing with the reference capacitance and judging the seat status.
[0032] Further, the step of performing drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value includes: Obtain all target sampling times preceding the current sampling time within the sampling period to obtain the preceding sampling time set; Based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set, the empty seat reference capacitance value is drift compensated to obtain the previous sampling reference capacitance value of the previous sampling time of the current sampling time. The difference between the current instantaneous capacitance value and the previous sampling reference capacitance value is calculated to obtain the instantaneous capacitance change. When the instantaneous capacitance change is less than a preset change threshold, the current instantaneous capacitance value is fine-tuned using a preset tracking coefficient and the instantaneous capacitance change to obtain the current reference capacitance value.
[0033] Among them, the previous sampling time set refers to the set of all historical sampling times that the system has completed sampling in the same sampling period before the current sampling time. It is a set of time points used to trace historical signals and achieve reference smooth drift.
[0034] The previous sampling time refers to the previous valid sampling time that is immediately adjacent to the current sampling time and precedes it in the time sequence. It is the directly preceding time on which the current drift compensation is calculated.
[0035] The previous sampling reference capacitance value refers to the reference capacitance value obtained after drift compensation at the previous sampling time. It serves as the reference for the previous time when calculating the current reference capacitance value, ensuring that drift compensation is continuous and recursive.
[0036] The preset change threshold is a critical value set in advance by the system to determine whether the capacitance change is a slow drift rather than a valid landing. When the capacitance change is less than the threshold, it is determined to be an environmental drift and the reference is allowed to follow. When it is greater than or equal to the threshold, it is considered a valid action and the reference no longer follows, thus avoiding false compensation.
[0037] The tracking coefficient is a pre-set adjustment coefficient less than 1, used to control how fast and how smoothly the reference capacitor follows the environment's drift. The smaller the value, the more stable the reference and the stronger its anti-interference ability; the larger the value, the faster the reference responds to drift.
[0038] Further, the drift compensation of the empty seat reference capacitance value based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set to obtain the previous sampling reference capacitance value of the previous sampling time of the current sampling time includes: Obtain the first sampling time in the preceding sampling time set, and the first instantaneous capacitance value at the first sampling time; The empty seat reference capacitance value is used as the first reference capacitance value at the first sampling time, and the difference between the first reference capacitance value and the first instantaneous capacitance value is calculated to obtain the first instantaneous capacitance difference. The first instantaneous capacitance value is fine-tuned according to the preset tracking coefficient and the first instantaneous capacitance difference to obtain the first fine-tuned capacitance value, and the first fine-tuned capacitance value is used as the second reference capacitance value at the next sampling time of the first sampling time. Obtain the second instantaneous capacitance value at the next sampling time after the first sampling time, calculate the difference between the second instantaneous capacitance value and the second reference capacitance value, and obtain the second instantaneous capacitance difference at the next sampling time after the first sampling time; The second instantaneous capacitance value at the next sampling time is fine-tuned based on the second instantaneous capacitance difference at the next sampling time from the first sampling time, to obtain the second fine-tuning capacitance value; When all sampling times in the preceding sampling set have been calculated, the second fine-tuning capacitor value is used as the reference capacitor value of the previous sampling time of the current sampling time. If not all sampling times in the preceding sampling set have been calculated, then the next sampling time after the first sampling time is taken as the first sampling time, and the second fine-tuning capacitor value is taken as the second reference capacitor value after the next sampling time of the first sampling time. Then, the process of obtaining the second instantaneous capacitor value after the next sampling time of the first sampling time is returned, and the difference between the second instantaneous capacitor value and the second reference capacitor value is calculated to obtain the second instantaneous capacitor difference value after the next sampling time of the first sampling time.
[0039] The first sampling moment refers to the earliest sampling moment in the preceding sampling moment set, which is also the starting moment of the entire drift compensation calculation process. Starting from this moment, the system recursively calculates the reference capacitance value for each subsequent moment, providing an initial calculation starting point for subsequent drift compensation.
[0040] The instantaneous capacitance difference refers to the value obtained by calculating the difference between the reference capacitance value and the corresponding instantaneous capacitance value at a certain sampling moment. It is used to reflect the degree of deviation between the actual measurement value of the current sensor and the reference value. It is the direct basis for judging whether it belongs to environmental drift and whether the reference fine adjustment is needed. The instantaneous capacitance difference includes multiple differences such as the first instantaneous capacitance difference and the second instantaneous capacitance difference.
[0041] The first fine-tuning capacitor value refers to the capacitor value obtained by smoothing the instantaneous capacitor value based on the tracking coefficient and the instantaneous capacitor difference in the unloaded state. Its function is to slowly and slightly follow the environmental drift, eliminating the reference offset caused by temperature drift, electromagnetic interference, etc., and preventing drastic changes due to instantaneous interference.
[0042] The next sampling time refers to the next sampling time that follows the currently being calculated sampling time in chronological order and belongs to the set of preceding sampling times. Drift compensation is calculated recursively time-by-time, automatically moving to the next time step after processing at each time step.
[0043] For example, when there are only 4 sampling times in the current sampling time set, the empty seat reference capacitance value is used as the initial reference. Starting from the first sampling time T1 in the previous sampling time set, this initial reference is used as the reference capacitance value of T1. The instantaneous capacitance difference is calculated with the instantaneous capacitance value of T1. Then, the instantaneous capacitance value of T1 is fine-tuned with a preset tracking coefficient to obtain the fine-tuned capacitance value, which is used as the reference capacitance value of the next sampling time T2. The instantaneous capacitance difference is calculated using the reference capacitance value of T2 and the instantaneous capacitance value of T2 and fine-tuned to obtain the fine-tuned capacitance value of T2, which is used as the reference capacitance value of T3. The instantaneous capacitance difference is calculated using the reference capacitance value of T3 and the instantaneous capacitance value of T3 and fine-tuned to obtain the fine-tuned capacitance value of T3, which is used as the reference capacitance value of T4. Finally, the fine-tuned capacitance value at time T4 is used as the reference capacitance value of the previous sampling time of the current sampling time.
[0044] Furthermore, after fine-tuning the first instantaneous capacitance value according to the preset tracking coefficient and the first instantaneous capacitance difference to obtain the first fine-tuned capacitance value, and using the first fine-tuned capacitance value as the second reference capacitance value of the next sampling time of the first sampling time, when all sampling times in the preceding sampling set have been calculated, the second reference capacitance value of the next sampling time of the first sampling time is used as the reference capacitance value of the previous sampling time of the current sampling time. If not all sampling times in the preceding sampling set have been calculated, the second instantaneous capacitance value of the next sampling time after the first sampling time is obtained, and the difference between the second instantaneous capacitance value and the second reference capacitance value is calculated to obtain the second instantaneous capacitance difference value of the next sampling time after the first sampling time.
[0045] S3. Calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and count the duration for which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold to obtain the over-threshold duration.
[0046] Understandably, by calculating the difference between the instantaneous capacitance value and the current reference capacitance value, and by counting the duration for which the difference reaches or exceeds the preset trigger threshold, meaningful capacitance change signals can be filtered out, avoiding misjudgments caused by instantaneous interference.
[0047] The preset capacitance trigger threshold is a critical value set by the system in advance to determine whether the seat capacitance signal has reached a valid change. Only when the capacitance difference between the instantaneous capacitance value and the current reference capacitance value is greater than or equal to the threshold is it considered a valid signal that there may be sitting or leaving the seat. If it is lower than the threshold, it is determined to be environmental interference or minor fluctuation.
[0048] The over-threshold duration refers to the total duration for which the capacitance difference is continuously greater than or equal to the preset capacitance trigger threshold. By statistically analyzing this duration, interference signals that change instantaneously can be filtered out. Only when the duration reaches a certain length will it be recognized as a real sitting or leaving behavior, thereby improving the accuracy and stability of seat status detection.
[0049] S4. Calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold, and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat.
[0050] Understandably, when the duration of exceeding the threshold reaches the preset threshold, the user is judged to sit down by combining the capacitance difference, which can accurately identify valid sitting behavior, and continuously monitor the changes in seat status based on the first capacitance difference and preset human micro-motion characteristics.
[0051] Among them, the capacitance change rate refers to the rate at which the capacitance difference changes with time over multiple consecutive sampling moments. It is usually calculated by the ratio of the change in capacitance difference between adjacent moments to a fixed sampling period. It can reflect the drastic change in capacitance signal and is used to distinguish whether a person sits down slowly, sits down quickly, or is subject to brief external interference, thereby improving the accuracy and reliability of seating judgment.
[0052] The preset duration threshold is a minimum duration threshold set in advance to determine whether the capacitance difference signal is a valid trigger. Its function is to filter out invalid signals such as transient interference and jitter that are not caused by people sitting down. Only when the duration of the capacitance difference is greater than or equal to the preset capacitance trigger threshold is it determined to be a valid trigger, thus avoiding misjudgment due to interference signals.
[0053] Among them, the seating characteristic curve refers to the capacitance change curve that is pre-set by the system to match the human seating behavior. It consists of the rate, amplitude and trend of capacitance difference change over time during a typical seating process. By comparing the real-time calculated capacitance change rate with this curve, it is possible to effectively distinguish between normal human seating and non-target behaviors such as external interference and accidental touch.
[0054] Further, the calculation of the capacitance change rate of the first capacitance difference includes: Extract multiple over-threshold sampling times corresponding to the duration of the over-threshold, and extract the over-threshold capacitance difference corresponding to the multiple over-threshold sampling times to obtain an over-threshold capacitance difference sequence; Differential calculation is performed on the over-threshold capacitance difference sequence to obtain the discrete instantaneous capacitance difference sequence of adjacent sampling times among the multiple over-threshold sampling times; The discrete instantaneous capacitance difference sequence is filtered to obtain the capacitance change rate of the first capacitance difference.
[0055] The over-threshold capacitance difference sequence refers to a data sequence formed by sequentially arranging the capacitance differences corresponding to each over-threshold sampling moment within the over-threshold duration. It is used to reflect the continuous change of capacitance difference during the effective triggering phase and provides raw data support for subsequent calculation of capacitance change rate.
[0056] Among them, the discrete instantaneous capacitance difference sequence refers to the difference sequence obtained after performing differential operations on the over-threshold capacitance difference sequence at adjacent time points. It represents the instantaneous change in capacitance difference between adjacent sampling time points and is intermediate data for calculating the capacitance change rate.
[0057] Further, determining that a user is continuously seated in the target seat based on the first capacitance difference and preset human micro-motion characteristics includes: Extract the short-term fluctuation characteristics of the first capacitance difference to obtain the capacitance noise characteristics; When the capacitance noise characteristics match the human body micro-motion characteristics, it is determined that the target seat is continuously occupied by a user.
[0058] Among them, short-term fluctuation characteristics refer to the small changes in capacitance difference within a short period of time after the user is seated stably, including fluctuation amplitude, frequency of change, jitter intensity, etc., which are used to reflect the stability and noise level of the current capacitance signal.
[0059] Among them, human body micro-motion characteristics refer to the typical noise and fluctuation characteristics exhibited when a stable capacitive coupling is formed between the human body and the capacitive touch sensor. These characteristics are distinct from those of object placement, electromagnetic interference, and mechanical vibration, and are used to further confirm that a real human body is continuously seated on the seat.
[0060] Furthermore, after confirming that a user is seated in the target seat, the process can return to S3 to continue monitoring the target seat.
[0061] S5. When the over-threshold duration is less than the preset duration threshold, and the first capacitance difference falls back to the preset steady-state threshold, it is determined that the user has left the seat.
[0062] Understandably, by comparing the duration of exceeding the threshold with a preset duration threshold and combining this with a double judgment based on whether the first capacitance difference falls back to a preset steady-state threshold, it is possible to effectively distinguish between brief interference and genuine user departure behavior, avoid misjudgment of departure status due to instantaneous signal fluctuations, and improve the stability and accuracy of seat personnel detection.
[0063] The preset steady-state threshold is a critical capacitance difference that the system pre-sets to distinguish between a seat in a stable empty state and a seat in an effective trigger state. When the capacitance difference falls back to the threshold range, it indicates that the current signal has returned to a stable level close to the empty seat reference, which can be determined as no effective seating or that the user has left the seat, thus avoiding misjudging a brief disturbance as a seating behavior.
[0064] In this embodiment of the invention, the preset capacitor trigger threshold and the preset steady-state threshold are both key critical values used for judging the state of seat capacitance. They work together with different functions to form a complete seating and departure judgment logic. The preset capacitor trigger threshold is the threshold for judging whether the capacitance signal has started to show a valid change. It is mainly used to trigger seating detection. Only when the capacitance difference is greater than or equal to the threshold will the system consider that there may be seating behavior and start to count the duration of exceeding the threshold. The preset steady-state threshold is the threshold for judging whether the capacitance signal has returned to the stable state of an empty seat. It is mainly used to identify departure or invalid trigger. When the capacitance difference falls back and crosses the threshold, the system determines that there is no valid seating or the user has left the seat.
[0065] The connection between the two is that the preset capacitor trigger threshold is usually greater than the preset steady-state threshold; the trigger threshold is used to "open the door" to start the seating judgment, and the steady-state threshold is used to "close the door" to confirm returning to an empty seat. The high and low thresholds, and the front and back thresholds work together to achieve a complete distinction between seating, leaving the seat, and interference, avoiding frequent state jumps and misjudgments.
[0066] Further, determining that the user leaves their seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold includes: When the over-threshold duration is less than the preset duration threshold, it is determined whether the first capacitance difference has fallen back to the preset steady-state threshold. When the first capacitance difference falls back to a preset steady-state threshold, it is determined that the user of the target seat has left the seat.
[0067] Furthermore, after determining that the user has left the target seat, the process can return to S3 to continue monitoring the target seat.
[0068] This invention, based on a fixed sampling period, collects multiple initial capacitance values from the capacitive touch sensor of the target seat and calculates a reference capacitance value for an empty seat. It then acquires the current sampling time and instantaneous capacitance value, performs drift compensation on the empty seat reference capacitance value to obtain the current reference capacitance value, calculates the capacitance difference between the two, and counts the duration of the difference that exceeds a preset capacitance trigger threshold. When the duration exceeds the threshold, the user is determined to be seated based on the capacitance change rate; if the threshold is not met or the capacitance difference falls back to a preset steady-state threshold, the user is determined to have left the seat. Therefore, the seat personnel detection method, system, electronic device, and computer-readable storage medium proposed in this invention, by collecting initial capacitance values to establish an empty seat reference and performing real-time drift compensation, and by combining capacitance difference, duration, and change rate to determine seat entry and exit, solves the problems of easy drift and misjudgment by capacitive sensors, and improves the accuracy and stability of seat status detection.
[0069] like Figure 2 The diagram shown is a schematic of the modules of the seat personnel detection system based on a capacitor device according to the present invention.
[0070] The seat occupant detection system 100 based on a capacitance device described in this invention can be installed in an electronic device. Depending on the functions implemented, the seat occupant detection system based on a capacitance device may include a reference capacitance calculation module 101, an over-threshold time statistics module 102, a user seating analysis module 103, and a user seating departure analysis module 104. The module described in this invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0071] In this embodiment, the functions of each module / unit are as follows: The reference capacitance calculation module 101 is used to collect multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculate the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; The over-threshold time statistics module 102 is used to calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and to count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold, thereby obtaining the over-threshold duration. The user seating analysis module 103 is used to calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. The user leaving the seat analysis module 104 is used to determine that the user has left the seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold.
[0072] In detail, the modules in the seat personnel detection system 100 based on capacitance devices described in this embodiment of the invention employ the same methods as described above during use. Figure 1 The method for detecting seat personnel based on capacitance devices uses the same technical means and can produce the same technical effect, so it will not be described in detail here.
[0073] like Figure 3 The diagram shown is a schematic representation of the electronic device that implements the seat personnel detection method based on a capacitance device according to the present invention.
[0074] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a seat occupant detection program based on a capacitance device.
[0075] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing a seat occupant detection program based on a capacitance device) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.
[0076] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as the code of a seat occupant detection program based on a capacitive device, but also to temporarily store data that has been output or will be output.
[0077] The communication bus 12 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.
[0078] The communication interface 13 is used for communication between the aforementioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), or optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.
[0079] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3The structure shown does not constitute a limitation on the electronic device and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0080] For example, although not shown, the electronic device may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0081] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.
[0082] The seat occupant detection program based on a capacitance device, stored in the memory 11 of the electronic device, is a combination of multiple computer programs that, when run in the processor 10, can achieve the following: Based on a preset fixed sampling period, multiple initial capacitance values of the touch sensor in the target seat are collected, and the empty seat reference capacitance value of the target seat is calculated based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; Calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold to obtain the over-threshold duration; Calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. When the over-threshold duration is less than the preset duration threshold, and the first capacitance difference falls back to the preset steady-state threshold, it is determined that the user has left the seat.
[0083] Specifically, the processor 10's implementation method of the above-mentioned computer program can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0084] Furthermore, if the modules / units integrated into the electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0085] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following: Based on a preset fixed sampling period, multiple initial capacitance values of the touch sensor in the target seat are collected, and the empty seat reference capacitance value of the target seat is calculated based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; Calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold to obtain the over-threshold duration; Calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. When the over-threshold duration is less than the preset duration threshold, and the first capacitance difference falls back to the preset steady-state threshold, it is determined that the user has left the seat.
[0086] In the several embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0087] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0089] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0090] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0091] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0092] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0093] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim may also be implemented by a single unit or system through software or hardware. The term "second class" is used to indicate names and does not indicate any specific order.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for detecting people in a seat based on a capacitance device, characterized in that, The method includes: Based on a preset fixed sampling period, multiple initial capacitance values of the touch sensor in the target seat are collected, and the empty seat reference capacitance value of the target seat is calculated based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; Calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold to obtain the over-threshold duration; Calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and the preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. When the over-threshold duration is less than the preset duration threshold, and the first capacitance difference falls back to the preset steady-state threshold, it is determined that the user has left the seat.
2. The seat occupant detection method based on a capacitance device as described in claim 1, characterized in that, The process of acquiring multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculating the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values, includes: Based on the fixed sampling period, multiple initial capacitance values of the capacitive sensor of the target seat at the target position are collected within a preset time period. Calculate the average value of the plurality of initial capacitance values, and use the average value as the empty seat reference capacitance value of the target seat.
3. The seat occupant detection method based on a capacitance device as described in claim 1, characterized in that, The process of performing drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value includes: Obtain all target sampling times preceding the current sampling time within the sampling period to obtain the preceding sampling time set; Based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set, the empty seat reference capacitance value is drift compensated to obtain the previous sampling reference capacitance value of the previous sampling time of the current sampling time. The difference between the current instantaneous capacitance value and the previous sampling reference capacitance value is calculated to obtain the instantaneous capacitance change. When the instantaneous capacitance change is less than a preset change threshold, the current instantaneous capacitance value is fine-tuned using a preset tracking coefficient and the instantaneous capacitance change to obtain the current reference capacitance value.
4. The seat occupant detection method based on a capacitance device as described in claim 1, characterized in that, The calculation of the capacitance change rate of the first capacitance difference includes: Extract multiple over-threshold sampling times corresponding to the duration of the over-threshold, and extract the over-threshold capacitance difference corresponding to the multiple over-threshold sampling times to obtain an over-threshold capacitance difference sequence; Differential calculation is performed on the over-threshold capacitance difference sequence to obtain the discrete instantaneous capacitance difference sequence of adjacent sampling times among the multiple over-threshold sampling times; The discrete instantaneous capacitance difference sequence is filtered to obtain the capacitance change rate of the first capacitance difference.
5. The seat occupant detection method based on a capacitance device as described in claim 1, characterized in that, The step of determining that a user is continuously seated in the target seat based on the first capacitance difference and preset human micro-motion characteristics includes: Extract the short-term fluctuation characteristics of the first capacitance difference to obtain the capacitance noise characteristics; When the capacitance noise characteristics match the human body micro-motion characteristics, it is determined that the target seat is continuously occupied by a user.
6. The seat occupant detection method based on a capacitance device as described in claim 1, characterized in that, The step of determining that the user leaves their seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold includes: When the over-threshold duration is less than the preset duration threshold, it is determined whether the first capacitance difference has fallen back to the preset steady-state threshold. When the first capacitance difference falls back to a preset steady-state threshold, it is determined that the user of the target seat has left the seat.
7. The seat occupant detection method based on a capacitance device as described in claim 3, characterized in that, The process of performing drift compensation on the empty seat reference capacitance value based on the target instantaneous capacitance values of each target sampling time in the preceding sampling time set to obtain the previous sampling reference capacitance value of the previous sampling time at the current sampling time includes: Obtain the first sampling time in the preceding sampling time set, and the first instantaneous capacitance value at the first sampling time; The empty seat reference capacitance value is used as the first reference capacitance value at the first sampling time, and the difference between the first reference capacitance value and the first instantaneous capacitance value is calculated to obtain the first instantaneous capacitance difference. The first instantaneous capacitance value is fine-tuned according to the preset tracking coefficient and the first instantaneous capacitance difference to obtain the first fine-tuned capacitance value, and the first fine-tuned capacitance value is used as the second reference capacitance value at the next sampling time of the first sampling time. Obtain the second instantaneous capacitance value at the next sampling time after the first sampling time, calculate the difference between the second instantaneous capacitance value and the second reference capacitance value, and obtain the second instantaneous capacitance difference at the next sampling time after the first sampling time; The second instantaneous capacitance value at the next sampling time is fine-tuned based on the second instantaneous capacitance difference at the next sampling time from the first sampling time, to obtain the second fine-tuning capacitance value; When all sampling times in the preceding sampling set have been calculated, the second fine-tuning capacitor value is used as the reference capacitor value of the previous sampling time of the current sampling time. If not all sampling times in the preceding sampling set have been calculated, then the next sampling time after the first sampling time is taken as the first sampling time, and the second fine-tuning capacitor value is taken as the second reference capacitor value after the next sampling time of the first sampling time. Then, the process of obtaining the second instantaneous capacitor value after the next sampling time of the first sampling time is returned, and the difference between the second instantaneous capacitor value and the second reference capacitor value is calculated to obtain the second instantaneous capacitor difference value after the next sampling time of the first sampling time.
8. A seat occupant detection system based on a capacitance device, characterized in that, The system includes: The reference capacitance calculation module is used to collect multiple initial capacitance values of the touch sensor in the target seat based on a preset fixed sampling period, and calculate the empty seat reference capacitance value of the target seat based on the multiple initial capacitance values. Obtain the current sampling time in the preset sampling period, collect the current instantaneous capacitance value of the touch sensor at the current sampling time, and perform drift compensation on the empty seat reference capacitance value based on the current instantaneous capacitance value to obtain the current reference capacitance value; The over-threshold time statistics module is used to calculate the first capacitance difference between the current instantaneous capacitance value and the current reference capacitance value, and to count the duration during which the first capacitance difference is greater than or equal to a preset capacitance trigger threshold, thereby obtaining the over-threshold duration. The user seating analysis module is used to calculate the capacitance change rate of the first capacitance difference. When the duration of the over-threshold is greater than or equal to a preset duration threshold and the capacitance change rate satisfies a preset seating characteristic curve, it is determined that a user is seated in the target seat. Based on the first capacitance difference and preset human micro-motion characteristics, it is determined that a user is continuously seated in the target seat. The user leaving the seat analysis module is used to determine that the user has left the seat when the over-threshold duration is less than the preset duration threshold and the first capacitance difference falls back to the preset steady-state threshold.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the seat occupant detection method based on a capacitive device as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It includes a data storage area and a program storage area. The data storage area stores the created data, and the program storage area stores a computer program. When the computer program is executed by a processor, it implements the seat personnel detection method based on a capacitor device as described in any one of claims 1 to 7.