The application discloses a pet
toilet behavior monitoring method and device based on a
millimeter wave sensor. The method comprises the following steps: a
millimeter wave radar module continuously outputs continuous frame data containing target detection state, target distance value and motion energy value; a master control
chip maintains a bidirectional buffer counter, the bidirectional buffer counter has an entry confirmation threshold and a departure judgment threshold, when a frame has a target, the count value increases towards the entry confirmation threshold, when a frame has no target, the count value decreases towards the departure judgment threshold, if a target is detected again during the decreasing process, the count value is automatically switched back to the increasing direction; when the count value increases to the entry confirmation threshold, an
entry time stamp is recorded, when the count value decreases to the departure judgment threshold, a departure time stamp is recorded, it is determined that the present
toilet event is over and a
toilet event
record is generated. The application also comprises motion
energy integration to distinguish different behavior
modes, mapping of indicator light state and counter state to realize
algorithm visualization, and a
parameter learning closed loop based on user manual correction driving to realize
continuous optimization of detection precision. The device comprises a
millimeter wave radar module, a master control
chip, a
wireless communication module and an indicator light module.