Danger warning method, detection equipment and medium

By collecting environmental perception information, especially sound signals, through pet detection equipment, and using emotion analysis models to identify aggressive animals, real-time monitoring and automatic alarms for pets are achieved, solving the risk warning problem of pets encountering aggressive animals and improving safety assurance capabilities.

CN121861797APending Publication Date: 2026-04-14SHENZHEN UCLOUDLINK NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511903802.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing pet detection equipment is ineffective in addressing the risk of pets encountering aggressive animals, and cannot provide timely warnings and protection.

Method used

By collecting environmental perception information, especially sound signals, and using emotion analysis models to determine the presence of aggressive animals, an alarm signal is generated when an aggressive animal is detected, enabling real-time, non-contact monitoring and automatic alarm.

Benefits of technology

It enhances the ability to protect pet safety, provides timely alerts when danger occurs, builds an intelligent monitoring system, reduces false alarm rates and enables tiered responses, and improves system adaptability and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121861797A_ABST
    Figure CN121861797A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of pet safety, and provides a danger warning method, detection equipment and a medium. The method comprises the following steps: continuously collecting environment sensing information through first detection equipment; determining whether an aggressive animal exists or not according to the environmental perception information; and under the condition that the aggressive animals exist, an alarm signal is output. The scheme can realize automatic alarm and protect the safety of pets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of pet safety technology, and in particular relates to a danger alarm method, detection equipment and medium. Background Technology

[0002] Pet monitoring equipment is a type of intelligent device designed to ensure pet safety and help owners remotely monitor their pets' activity status.

[0003] In related technologies, pet detection devices can track a pet's geographical location in real time and inform the owner of the location information through a mobile application, allowing the owner to keep track of the pet's location and prevent the pet from getting lost.

[0004] However, the above methods can only be used as a basis for finding pets and cannot deal with the risk of attacks from other animals. Summary of the Invention

[0005] This application provides a danger alarm method, detection device, and medium that can detect the activity status of a first animal and the characteristics of its surrounding environment in real time, determine whether the first animal has encountered an aggressive animal, record the current danger alarm event in a timely manner, and automatically issue an alarm.

[0006] In a first aspect, embodiments of this application provide a hazard alarm method applied to a first detection device, the method comprising: The first detection device continuously collects environmental perception information; Determine the presence of aggressive animals based on environmental perception information; An alarm signal is output in the presence of aggressive animals.

[0007] The advantages of the first aspect of this application compared to the prior art are: By actively collecting and analyzing environmental perception information within the animal's activity range, it is possible to achieve real-time, non-contact monitoring of the environment within the animal's activity range. It can intelligently judge based on preset abnormal environmental conditions, accurately identify dangers when they occur or approach, automatically generate structured danger alarm event records, and automatically trigger alarms for target animals, enabling on-site immediate intervention. This significantly improves the safety protection capabilities for pets left alone and constitutes an intelligent monitoring system with proactive protection capabilities.

[0008] Optionally, in one possible implementation of the first aspect, the environmental perception information includes sound signals; Determining the presence of aggressive animals based on environmental perception information, including: If a sound signal is collected, determine whether the sound signal includes sounds made by an animal; The presence of an aggressive animal can be determined by whether the sound signal includes animal sounds. The presence of an aggressive animal corresponds to the presence of an aggressive animal, while the absence of an aggressive animal corresponds to the absence of an aggressive animal.

[0009] This approach leverages the common characteristic of animals emitting sounds to provide a non-contact, low-cost, and easily implemented sensing method. Analyzing sounds to determine animal presence improves the universality and feasibility of detection, providing a clear data foundation for analyzing the presence of aggressive animals.

[0010] Optionally, in one possible implementation of the first aspect, determining the presence of an aggressive animal based on whether the sound signal includes sounds made by an animal includes: The emotional analysis model is used to analyze the sound signal to obtain the emotional state of the animal corresponding to the sound signal. The emotional state includes a first state and a second state. The first state indicates that the animal corresponding to the sound signal is aggressive, and the second state indicates that the animal corresponding to the sound signal is not aggressive. If the duration of the first state is greater than or equal to a first duration threshold, it is determined that an aggressive animal exists; or, If the cumulative frequency of detection in the first state is greater than or equal to a preset frequency threshold, it is determined that there is an aggressive animal.

[0011] In this implementation, an emotion analysis model is introduced to determine the emotional state of the sound signal. Alarms are triggered based on the duration of the aggressive state or the cumulative frequency of occurrence. This can more accurately distinguish between real threats and ordinary animal activities, significantly reduce the false alarm rate, and achieve graded responses to different attack intensities.

[0012] Optionally, in one possible implementation of the first aspect, in the presence of an aggressive animal, first abnormal information is generated, the first abnormal information including a danger alarm event that occurred at the current location by the first detection device; The first abnormal information is sent to the control device corresponding to the first detection device.

[0013] In this implementation, after confirming an aggressive animal, the first abnormal information is generated, the unique identifier and real-time location of the detection device are recorded, and the information is sent to the corresponding control device to realize remote monitoring, rapid tracing and unified management of dangerous events, thereby improving the maintainability and response efficiency of the overall system.

[0014] Optionally, in one possible implementation of the first aspect, a first instruction is received from a control device corresponding to the first detection device. The first instruction is a control instruction input by the user based on the first abnormal information. The first instruction is used to instruct the first detection device to adjust the alarm parameters.

[0015] In this implementation, by receiving instructions from the user based on abnormal information input to the control device, the alarm threshold or parameters of the detection device can be dynamically adjusted, enabling flexible on-site configuration and personalized settings to meet the specific needs of different scenarios or different animal species and enhance the adaptability of the system.

[0016] Optionally, in one possible implementation of the first aspect, in the presence of an aggressive animal, first anomalous information is generated, including: If the presence of an aggressive animal is determined based on sound signals from environmental perception information, the first abnormality information is generated.

[0017] Optionally, in one possible implementation of the first aspect, the environmental perception information includes the location information of the first detection device; Determining the presence of aggressive animals based on environmental perception information, including: If the location information of the first detection device determines that the first detection device has reached the first location, it is determined that there is an aggressive animal. The first location is any location in the set of locations with dangerous alarm event records. The set of locations with dangerous alarm event records refers to the set of locations where dangerous alarm events have occurred within a preset time range before the current moment.

[0018] In this implementation, an alarm is automatically triggered when the detection device moves to a pre-recorded dangerous location. Based on historical data, precautions are taken in advance for locations with recorded dangerous conditions to avoid risks.

[0019] Optionally, in one possible implementation of the first aspect, the environmental awareness information includes Bluetooth signals; Determining the presence of aggressive animals based on environmental perception information, including: Upon detecting the Bluetooth signal of the second detection device, second indication information is obtained; the second indication information is used to indicate the matching result between the device identifier of the second detection device and the preset identifier, where the preset identifier refers to the identifier of the detection device that has recorded dangerous alarm events within a preset time range before the current moment. If the matching result is a match, it is determined that there is an aggressive animal. If the matching result is a no-match, it is determined that there are no aggressive animals.

[0020] In this implementation, by scanning the Bluetooth signals of other nearby detection devices and determining whether the detection device has been involved in a dangerous event, the transfer of dangerous information across detection devices and the linkage warning can be achieved. This helps to form a collaborative perception network among devices and expands the protection scope of single-point detection.

[0021] In a second aspect, an embodiment of the present application provides a detection device, including: A detection module, configured to continuously collect environmental perception information; An alarm module, configured to determine whether there is an aggressive animal according to the environmental perception information; and output an alarm signal when there is an aggressive animal.

[0022] In a third aspect, the present application further provides an electronic device. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method of any implementation manner of the first aspect is implemented.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any implementation manner of the first aspect is implemented.

[0024] In a fifth aspect, the present application further provides a computer program product. When the computer program product runs on an electronic device, the electronic device is enabled to execute the method of any implementation manner of the first aspect.

[0025] It can be understood that the beneficial effects of the second to fifth aspects can be referred to the relevant descriptions in the first aspect, and will not be repeated here. Description of the Drawings

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0027] Figure 1 It is a schematic diagram of a corresponding scenario when a detection device in the related art provided by an embodiment of the present application reports the location of a pet; Figure 2 It is a block diagram of the structure of an alarm system provided by an embodiment of the present application; Figure 3 It is a dangerous alarm scenario provided by an embodiment of the present application; Figure 4 It is a dangerous alarm scenario provided by another embodiment of the present application; Figure 5 This is another embodiment of the danger alarm scenario provided in this application; Figure 6 A flowchart of a hazard alarm method provided in one embodiment of this application; Figure 7 This is a flowchart of a hazard alarm method provided in another embodiment of this application; Figure 8 This is a structural block diagram of a testing device provided in one embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] As people's pace of life accelerates, the time spent caring for and accompanying pets is gradually decreasing, while pets are spending more time alone, highlighting their safety concerns. Against this backdrop, pet monitoring devices have emerged. These are intelligent hardware devices that integrate multiple sensors and communication technologies, designed to provide pet owners with a means of remote monitoring and management, enabling them to keep track of their pets' physiological and behavioral status in real time.

[0029] Among related technologies, the most common pet tracking devices are those based on the Global Positioning System (GPS) or cell tower triangulation. These devices are typically worn on the pet in the form of a collar or harness, continuously or on demand acquiring the pet's latitude and longitude coordinates and transmitting the location data to a cloud server via mobile networks. Pet owners can then use a companion terminal (such as a smartphone) application to view their pet's activity trajectory and current location in real time.

[0030] For example, owners can set a range for their pet's activity area. When the pet tracking device worn by the pet detects that the pet's current location is outside the set range, it sends a notification to the user's terminal application to remind the user that the pet is not currently moving within the specified range, allowing the user to keep track of the pet's location in a timely manner.

[0031] However, the aforementioned technical means have limitations in terms of timely early warning and pet safety. They focus on locating the pet's position and determining where the pet is when it encounters a risk, but cannot effectively deal with sudden emergencies involving pets.

[0032] When pets encounter danger, such as being attacked by a vicious dog, simple location tracking is insufficient to prevent them from being harmed in time. Even if the app can receive the signal, physical distance may prevent it from reaching the scene; or the user may fail to check the app's notifications in time, missing alerts about the pet's current status. Consequently, the app cannot provide immediate on-site protection for the pet before or during a dangerous situation, failing to truly establish a closed-loop management system for danger.

[0033] Indicative, such as Figure 1 As shown, Figure 1 This is a schematic diagram of a scenario where detection equipment is used to report the location of a pet in related technologies.

[0034] The first pet 61 is wearing a pet detection device 51, which is used to report the location of the first pet 61 to the associated user terminal 71. The user 31 can find out the location of the first pet 61 through the prompt information pushed by the user terminal 71.

[0035] The first pet 61 moves within the preset activity range 41 set by the user 31. The pet detection device 51 sends a prompt message to the user terminal 71: "Your pet is playing at home."

[0036] At this time, an abnormal pet 81 (an aggressive animal / vicious dog) approaches the first pet 61 and attacks it. Since the first pet 61 remains within the preset activity range 41, the pet detection device 51 detects that its location meets the requirements and sends the message "Your pet is playing in your home" to the user terminal 71. It cannot promptly report the approach of the abnormal pet 81 and issue a warning. Furthermore, the distance between the user 31 and the first pet 61 exceeds the user 31's field of vision, preventing the user 31 from understanding the true activity of the first pet 61 and from driving away the abnormal pet 81.

[0037] To address the aforementioned issues, this application provides a danger alarm method capable of real-time detection of a pet's activity status and the characteristics of its surrounding environment. When the method detects that the pet has encountered an aggressive or abnormal animal (e.g., an unusual pet), it automatically alarms the abnormal animal, drives it away, and promptly reports the danger alarm event to the terminal, allowing users to monitor their pet's activity status at every point in time. Furthermore, it records danger alarm events in historical records, automatically triggering an alarm when the pet passes through the location where the danger alarm occurred again, or encounters an aggressive or abnormal animal again, thus preventing the pet from suffering risks in advance.

[0038] Indicative, such as Figure 2 As shown,Figure 2 This is a structural block diagram of an alarm system provided in an embodiment of this application. The system 002 involves a terminal 2001, a detection device 2003, and a server 2005. The method will be illustrated by taking the first animal wearing the detection device 2003 as an example.

[0039] When the animal is active, the detection device 2003 will automatically collect the surrounding sound signals. The detection device 2003 includes an audio recognition module, an audio algorithm module, a sensor module, and a communication module.

[0040] The communication module is used to enable communication between the detection equipment and its corresponding control equipment.

[0041] The sensor module includes at least the following sensors: (1) a first sensor (G-sensor, gravity sensor or accelerometer) for detecting whether the first animal is active; by continuously monitoring the motion acceleration and posture changes of the first animal, the sensor determines whether the animal is active based on a set threshold or behavior model algorithm; (2) a second sensor for collecting sound signals from the current environment.

[0042] The audio recognition module is used to identify whether a sound signal contains animal sounds.

[0043] When the sound signal includes animal calls, the audio algorithm module is used to analyze the emotion type corresponding to the animal calls and obtain the analysis results of the sound signal.

[0044] If the first sensor in the sensor module determines that the first animal is active, then the second sensor collects the sound signal and activates the audio recognition module and audio algorithm module to analyze the sound signal.

[0045] In some embodiments, the detection device 2003 further includes a GPS positioning module, which is used to collect the location information of the detection device 2003 in real time; for example, the GPS positioning module obtains the geographical coordinates (latitude, longitude, altitude) and time synchronization information of the device in real time, indicating the location coordinates of the detection device 2003 at a certain moment.

[0046] If the analysis results of the sound signal indicate that the preset abnormal state conditions are met, it means that there is an abnormal animal near the first animal and the first animal is facing a safety risk. At this time, the detection device 2003 generates the first abnormal information, which includes the device identifier of the detection device 2003 and the first positioning information.

[0047] The detection device 2003 reports the first abnormal information to the server 2005. The server 2005 stores the first abnormal information and records this danger alarm event in the database so that other related detection devices can share the abnormal information and avoid risks in a timely manner based on the abnormal information stored in the database.

[0048] For example, there are 10,000 testing devices 2003 sold on the market. Each testing device 2003 has its own device identifier and is associated with server 2005, enabling it to access data stored in server 2005's database at any time. When any testing device 2003 reports a danger alarm event to server 2005, these danger alarm event records are used to alert all testing devices 2003.

[0049] For example, device A reports a danger alarm event 1, indicating that a fight has occurred between two pets wearing devices A and B respectively in the first area. Then, the database of server 2005 contains a record corresponding to this danger alarm event 1: device identifier of device A, device identifier of device B, and the first area. Both device A and device B belong to detection device 2003.

[0050] When a pet wearing any of the detection devices 2003 passes through the first area, the detection device 2003 will automatically sound an alarm; or, when a pet wearing any of the detection devices 2003 detects the presence of device A (detection device) or device B nearby, the detection device 2003 will also automatically sound an alarm.

[0051] After receiving the first exception information, server 2005 sends the first exception information to terminal 2001 to notify the user.

[0052] Specifically, when the detection device 2003 reports the first abnormal information to the server 2005 and synchronizes it to the terminal 2001, it will automatically issue an alarm. Alternatively, after receiving an alarm command from the user, the terminal 2001 will forward the alarm command to the detection device 2003, and the detection device 2003 will issue an alarm to the target animal based on the alarm method indicated by the alarm command.

[0053] In some embodiments, the detection device 2003 further includes a Bluetooth module, which is used to scan for Bluetooth signals from other devices in the vicinity of the detection device 2003 in real time. When a Bluetooth signal of a certain device is detected, the device identifier of the device can be obtained based on the Bluetooth signal of that device. The device identifier is matched with a preset identifier to obtain a matching result. The preset identifier refers to the device identifier of a device that has previously triggered a danger alarm event. When the matching result indicates a match, the detection device 2003 automatically issues an alarm.

[0054] The process of matching the device identifier with the preset identifier can be implemented by the server 2005, whereby the detection device 2003 sends the device identifier to the server 2005, and the server 2005 matches it with the preset identifier stored in its own database; alternatively, it can be implemented by the detection device 2003, which stores the preset identifier internally and matches it with the device identifier of the device based on the preset identifier; this application does not limit this.

[0055] The danger alarm method provided in this application can detect whether a pet is in danger in real time and issue an alarm in a timely manner.

[0056] Indicative, based on the above Figure 2 The provided system architecture illustrates several application scenarios of the method in this application; please refer to it. Figure 3 , Figure 4 and Figure 5 .

[0057] Figure 3 Corresponding Scenario 1: A second animal 02 exists within a preset range of the first animal 01. The second animal 02 barks at the first animal 01. The first animal 01 wears a first detection device 011. The first detection device 011 collects the audio information of the second animal 02 as a sound signal and analyzes whether there are sounds of an aggressive animal in the sound signal.

[0058] When the sound signal includes the sounds of an aggressive animal, the first abnormal information is generated and reported to the server and terminal, and an alarm is automatically triggered.

[0059] The first abnormal information includes the device identifier of the first detection device 011 worn by the first animal 01, the first location information of the first detection device 011, and the first location information is used to indicate the first location where the current danger alarm event has occurred.

[0060] If the second animal 02 also wears the second detection device 022, the first detection device 011 will simultaneously identify the device identifier of the second detection device 022, and the first abnormal information will also include the device identifier of the second detection device 022.

[0061] Figure 4 Corresponding to Scenario 2: When the first animal 01 passes through the first location again, regardless of whether there are other animals at the first location, the first detection device 011 detects the location of the first animal 01 and retrieves the following information from the server's database: a danger alarm event has occurred at the first location within a historical time period. Then, the first detection device 011 automatically issues an alarm and sends a second abnormality message to the terminal to alert the user.

[0062] Figure 5Scenario 3: Animal 01 encounters Animal 02 again at the second location. The first detection device 011 worn by Animal 01 detects the device identifier of the second detection device 022 worn by Animal 02 and retrieves the following information from the server's database: an animal wearing the second detection device 022 has triggered a danger alarm event within a historical time period. Therefore, the first detection device 011 automatically issues an alarm and sends a third abnormality message to the terminal to alert the user.

[0063] In summary, the danger alarm method provided in this application can build an automatic alarm protection system, enabling all animals wearing detection devices to share historical information, promptly detect ongoing / potential risks and automatically issue alarms, thereby improving the protection effect.

[0064] The hazard alarm method provided in this application will be explained based on the above description, such as... Figure 6 As shown, Figure 6 This is a flowchart of a hazard alarm method provided in an embodiment of this application. The method is applied to a first detection device and includes the following steps: S610 continuously collects environmental perception information through the first detection device.

[0065] Optionally, the environmental perception information includes at least one of the following: sound signals, location information of the first detection device, and Bluetooth signals.

[0066] For example, when the environmental perception information includes sound signals, the sound signals are continuously collected by the first detection device.

[0067] The first detection device periodically collects sound signals from the surrounding environment. The range of sound signals it collects is determined by the maximum signal acquisition range and signal acquisition capability of the first detection device.

[0068] The collected sound signals include at least one of the following: natural environmental noise, animal calls, human speech, etc.

[0069] For example, when the environmental perception information includes the location information of the first detection device, the first detection device will report the location information of the first detection device to the control device corresponding to the first detection device in real time according to a preset frequency.

[0070] The first detection device is equipped with a GPS system for positioning. The positioning system can obtain the location information of the first detection device in real time. The location information is presented in the following forms: (1) coordinates expressed in latitude and longitude; (2) regions divided in a specified way, such as cities, streets, communities, etc.

[0071] For example, when the environmental perception information includes Bluetooth signals, the first detection device will activate the Bluetooth scanning mode and scan the area around the first detection device for Bluetooth signals broadcast by other devices according to a preset frequency.

[0072] S620 determines the presence of aggressive animals based on environmental perception information.

[0073] Optionally, the environmental perception information includes sound signals. If sound signals are collected, it is determined whether the sound signals include sounds made by animals; based on whether the sound signals include sounds made by animals, it is determined whether there are aggressive animals.

[0074] The sound signal includes animal sounds, which correspond to the presence of an aggressive animal; the sound signal does not include animal sounds, which correspond to the absence of an aggressive animal.

[0075] For example, the sound signal is denoised to filter out noise, and the sound type of the denoised sound signal is identified by an animal sound recognition model. The output recognition result is used to indicate whether the sound signal contains sounds made by animals.

[0076] To ensure the accuracy of the analysis results in determining the presence of aggressive animals based on sound signals, an emotion analysis model is used to analyze the sound signals and obtain the emotional state of the animal corresponding to the sound signal. The emotional state includes a first state and a second state. The first state indicates that the animal corresponding to the sound signal is aggressive, and the second state indicates that the animal corresponding to the sound signal is not aggressive.

[0077] Based on the analysis of emotional states, the following methods can be used to further determine whether there are aggressive animals.

[0078] 1. If the duration of the first state is greater than or equal to the first duration threshold, it is determined that there is an aggressive animal. In this situation, if the results output by the emotion analysis model indicate that there is a signal segment in the sound signal, and the signal segment corresponds to the animal's call when it is in the first state, and the duration of the signal segment is greater than or equal to the first duration threshold, then it indicates that the duration of the animal in the first state is greater than or equal to the first duration threshold, and it is determined that there is an aggressive animal.

[0079] 2. Alternatively, if the cumulative frequency of detection in the first state is greater than or equal to a preset frequency threshold, it is determined that there is an aggressive animal.

[0080] In this case, if the results output by the emotion analysis model indicate that there are multiple sub-signal segments in the sound signal, with time intervals between each sub-signal segment, and each of these multiple sub-signal segments corresponds to the animal's call when it is in the first state, the total number of these multiple sub-signal segments represents the cumulative frequency of the first state being detected. When the cumulative frequency is greater than or equal to a preset frequency threshold, it is determined that there is an aggressive animal.

[0081] It is worth noting that the sound signal may contain the sounds of multiple animals. Regardless of the number of animals in the sound signal whose emotional state is in the first state, the analysis result output by the emotion analysis model is: there is an animal whose emotional state conforms to the first state, that is, the animal corresponding to the sound signal is aggressive.

[0082] In some embodiments, in addition to determining the presence of danger in real time based on the collected sound signals and automatically outputting an alarm signal in the presence of aggressive animals, the first detection device can also provide early warnings based on dangerous alarm events that have occurred in the past period.

[0083] Specifically, by collecting the location information and / or Bluetooth signal of the first detection device, it can be determined whether a dangerous alarm event has occurred at the current location within a historical period.

[0084] Optionally, the environmental perception information includes the location information of the first detection device. If it is determined that the first detection device has reached a first location based on the location information of the first detection device, it is determined that there is an aggressive animal. The first location refers to any location in the set of locations where there are dangerous alarm event records. The set of locations where dangerous alarm events are recorded refers to the set of locations where dangerous alarm events have occurred within a preset time range before the current moment.

[0085] In other words, the locations recorded in the location set of dangerous alarm events refer to locations where dangerous alarm events have occurred within a preset time range before the current time.

[0086] For example, the first detection device reports its location information to the corresponding control device in real time. Upon receiving the first instruction information from the control device corresponding to the first detection device, it determines that there is an aggressive animal. The first instruction information is sent by the control device after determining that the first detection device is in the first position based on the real-time reported location information.

[0087] Alternatively, the first detection device may store at least one location in its local preset storage unit, where at least one location is a location where a dangerous alarm event record exists.

[0088] The first detection device acquires location information in real time and matches it with at least one stored location. If a match is found, the first detection device is determined to have reached the first location at the current moment; otherwise, the first detection device is determined not to have reached the first location at the current moment.

[0089] Optionally, the environmental perception information includes Bluetooth signals. Upon detecting the Bluetooth signal of the second detection device, second indication information is obtained. The second indication information is used to indicate the matching result between the device identifier of the second detection device and a preset identifier. The preset identifier refers to the identifier of the detection device that has recorded dangerous alarm events within a preset time range before the current moment.

[0090] If the match is successful, it is determined that there is an aggressive animal; if the match is unsuccessful, it is determined that there is no aggressive animal.

[0091] For example, the second indication information may be the indication information generated and returned by the control device corresponding to the first detection device, used to indicate the presence of an aggressive animal.

[0092] For example, after detecting a Bluetooth signal, the first detection device first obtains the device identifier of the second detection device based on the Bluetooth signal. It then determines whether the second detection device is of the same type as the first detection device based on the device identifier. If so, it reports the device identifier of the second detection device to the control device, which then matches it against preset identifiers stored in its own database. If the match is successful, it confirms the presence of an aggressive animal; if the match is unsuccessful, it confirms the absence of an aggressive animal.

[0093] For example, the second indication information can also be generated by the first detection device based on the device identifier of the second detection device. The first detection device stores at least one preset identifier in its local preset storage unit, each preset identifier being the identifier of a device that has previously experienced a danger alarm event. The at least one preset identifier stored in the local preset storage unit is matched with the device identifier of the second detection device. If the matching result is a match, it is determined that an aggressive animal exists; if the matching result is a mismatch, it is determined that no aggressive animal exists.

[0094] The S630 outputs an alarm signal in the presence of an aggressive animal.

[0095] Steps S610 to S630 above illustrate how to determine whether there is an aggressive animal based on three types of environmental perception information. When any one of the judgment conditions is met, it is considered that there is an aggressive animal. At this time, the first detection device automatically outputs an alarm signal.

[0096] In some embodiments, when the first detection device automatically outputs an alarm signal, it also synchronizes the current danger alarm event to the control device. The control device includes, but is not limited to, a user terminal and a server, and the user terminal is associated with the first detection device.

[0097] Optionally, in the presence of an aggressive animal, a first abnormality information is generated, which includes a danger alarm event that occurred at the current location of the first detection device; the first abnormality information is then sent to the control device corresponding to the first detection device.

[0098] The first abnormal information includes the first device identifier of the first detection device and the first positioning information of the first detection device.

[0099] For example, the first anomaly information is generated when it is determined, based on sound signals in the environmental perception information, that an aggressive animal is present.

[0100] After analyzing the emotional state based on the sound signal, if the emotional state indicates that the animal is aggressive, the first abnormal information is generated.

[0101] The first abnormal information is sent to the control device corresponding to the first detection device; or, the first detection device stores the first abnormal information in a local preset storage unit.

[0102] The generated first anomaly information marks the locations and equipment involved in the hazard alarm events and stores them in the database corresponding to the control equipment or the local unit of the first detection equipment. This allows for subsequent retrieval of the first anomaly information to understand the location and equipment information of the hazard alarm events that have occurred. When the first detection equipment detects other detection equipment while triggering a hazard alarm event, the first detection equipment will also automatically identify the equipment identifiers of the other detection equipment and store them together in the first anomaly information.

[0103] In some embodiments, if the first detection device detects the presence of an aggressive animal through sound signals, and the aggressive animal is also wearing a second detection device, then the device identifier of the second detection device worn by the animal is obtained and simultaneously included as information in the first abnormal information.

[0104] It is worth noting that when an aggressive animal is detected based on sound signals, the danger alarm event reported for each abnormal information is time-sensitive. That is, when a danger alarm event occurs at a certain location, the detection device will report the danger alarm event to the corresponding control device. If no danger alarm event occurs at that location within a preset time period starting from the current moment, then that location will no longer be marked as a location where a danger alarm event occurred in the historical period.

[0105] When a detection device reports a hazard alarm event, it will also report the device identifiers of all similar detection devices detected in that hazard alarm event to the corresponding control device. The control device will then mark these device identifiers as preset identifiers, i.e., the device identifiers of devices with hazard alarm events. For example, if the device identifier of another detection device is detected, that device identifier will also be reported to the corresponding control device, which will mark it as a preset identifier. Similarly, when a detection device reports a hazard alarm event, it will also report its own device identifier to the corresponding control device, which will also mark the detection device's device identifier as a preset identifier.

[0106] If a device identifier is marked as a preset identifier, and no further danger alarm events occur within a preset time period starting from the current moment, then the device identifier will no longer be marked as a preset identifier.

[0107] Optionally, the user terminal will push and display the first abnormal information so that the user can be informed of the danger warning event that has occurred to the first animal.

[0108] For example, the first detection device receives a first instruction from the control device corresponding to the first detection device. The first instruction is a control instruction input by the user based on the first abnormal information. The first instruction is used to instruct the detection device to adjust the alarm parameters.

[0109] The alarm parameters are used to determine the output method and characteristics of the alarm information. The first instruction indicates the method of adjusting the alarm parameters, including but not limited to: stopping the alarm, increasing / decreasing the alarm amplitude of the alarm parameters, adjusting the alarm frequency, and changing the specific content of the alarm information.

[0110] For example, if the alarm information is audio content, the first instruction can adjust the alarm parameters in at least one of the following ways: increase / decrease the audio playback volume, change the playback rate of the audio content, or stop playing the audio content.

[0111] For example, if the alarm message is a light, the first instruction can adjust the alarm parameters in at least one of the following ways: increase / decrease the light brightness, change the flashing rate, stop the flashing light, or change the light color.

[0112] For example, if the alarm message is an odorous gas, the first instruction can adjust the alarm parameters in at least one of the following ways: increase / decrease the odor concentration, change the flow rate of the released gas, stop the release of gas, or change the gas type.

[0113] Alternatively, the alarm message may be a combination of at least two of the types of information mentioned in the examples above.

[0114] In some embodiments, in addition to triggering the user's control operation on the alarm parameters through the first abnormal information as described above, the first detection device can also spontaneously control the alarm parameters without manual triggering by the user.

[0115] For example, when the first detection device outputs an alarm signal, its location information is acquired in real time. Based on the location information, the corresponding scene type is determined. Then, a preset parameter adjustment mapping table is used to determine how to adjust the alarm parameters. This preset parameter adjustment mapping table stores various correspondences between scene types and alarm parameter control methods. For example, if the scene type is an indoor scene, the relevant values ​​of the alarm parameters are reduced; if the scene type is an outdoor scene, the relevant values ​​of the alarm parameters are increased or maintained.

[0116] In summary, the danger alarm method provided in this application can achieve real-time, non-contact monitoring of the environment within the animal's activity range by actively collecting and analyzing environmental perception information within the animal's activity range. It can intelligently judge whether there is danger within the animal's activity range based on preset abnormal environmental conditions, accurately identify danger when it occurs or approaches, automatically generate structured danger alarm event records, and automatically trigger alarms for the target animal for on-site immediate intervention. This significantly improves the safety protection capability for pets left alone and constitutes an intelligent monitoring system with proactive protection capabilities.

[0117] The hazard alarm method provided in this application will be explained based on the above description, such as... Figure 7 As shown, Figure 7 This is a flowchart of a danger alarm method provided in an embodiment of this application. The method is performed by a first detection device worn by a first animal. The pet detection device or detection device mentioned above can both be referred to as the first detection device. In this example, the first detection device can be implemented as a detection instrument worn on the neck of the first animal. The method includes the following steps.

[0118] S710, the first detection device collects sound signals.

[0119] The first detection device worn by the first animal intelligently detects the animal's status to determine its activity level. The sensor module of the first detection device continuously collects the animal's movement data and determines whether the animal is currently in motion based on the movement data.

[0120] If the first animal is in motion, the sound signal acquisition function of the first detection device is activated, and the sound signal of the first animal within a preset range is acquired by calling its built-in audio recognition module.

[0121] For example, the motion data includes the triaxial acceleration data of the first animal, which is a set of data on the magnitude of the animal's acceleration in three mutually perpendicular directions (x, y, and z axes). The triaxial acceleration data is analyzed in real time to calculate a composite acceleration value. A preset acceleration threshold is used as the motion determination criterion. If the composite acceleration value is consistently lower than the preset threshold, the animal is determined to be in a stationary state; if the composite acceleration value exceeds the preset threshold, the animal is determined to be in motion.

[0122] The sound signal is used to characterize the emotional state of the target animal. The target animal is the animal that makes the sound when the sound signal detected by the first detection device contains the animal's call.

[0123] In some embodiments, the danger alarm method of this embodiment can also be implemented by collecting other information. For example, the information collected by the first detection device is determined based on the life activity dimensions reflected by the target animal. The main types of this information include, but are not limited to: (1) motion posture information: characterizing the overall displacement and body posture changes of the animal; (2) sound signals: characterizing the sounds produced by the animal's own vocalization and its interaction with the environment; (3) physiological signs information: characterizing the basic life state parameters of the animal.

[0124] For example, the physical space region is defined by taking the first detection device as the center and the detection distance of its built-in sensor as the radius. The user can set the detection distance of the first detection device, ensuring that the detection distance does not exceed the maximum detection distance of the built-in sensor (this is a calibrated value).

[0125] The types of target animals include, but are not limited to: pets that need to be kept in custody, wild animals that need to be protected, laboratory pets, and farm animals.

[0126] The target animal includes the first animal. In some embodiments, there may be other animals around the first animal. If the collected sound signals include the calls of other animals, then the other animals are also considered as target animals.

[0127] S720 generates first abnormal information when the sound signal meets the preset abnormal conditions.

[0128] An abnormal sound signal that meets the preset conditions means that the sound signal includes the sound of an aggressive target animal.

[0129] Optionally, the sound signal includes audio information within a preset range. Taking the audio information collected by the first detection device as an example, this method is illustrated.

[0130] After the audio information is collected by the first detection device, the noise in the audio information is filtered out to obtain the sound signal of the target animal; the sound signal is analyzed to obtain the emotion type corresponding to the sound signal. The emotion type is used to indicate the emotional state of the target animal, that is, to indicate whether the target animal is aggressive.

[0131] This step is jointly performed by the audio recognition module and the audio algorithm module of the first detection device. The module receives the original audio information as input, which is a mixed signal of the target animal's sound and environmental background noise.

[0132] For example, the sound signal algorithm model adopts an adaptive filtering algorithm. This algorithm constructs a dynamically updated noise model by estimating the spectral characteristics of background noise in real time, and subtracts the noise component from the mixed signal to filter environmental noise in the audio information, thereby separating and enhancing the sound signal of the target animal.

[0133] If the emotion type matches the preset aggressive emotion type, the sound signal is determined to meet the preset abnormal state conditions, and the first abnormal information is generated.

[0134] For example, a pre-trained audio classification model is used to analyze the sound signal obtained after noise filtering. The analysis process is as follows: First, feature parameters are extracted from the sound signal. These parameters simulate the sound perception characteristics of the biological auditory system. Then, these feature parameters are input into the audio classification model, which performs deep pattern recognition on the input features and outputs the emotion type corresponding to the sound signal.

[0135] Among these, emotional types include, but are not limited to: normal vocalizations, painful wails, fearful whimpers, or aggressive roars.

[0136] For example, preset aggressive emotion types include painful wailing, fearful whimpering, or aggressive roaring. When the emotion type corresponding to the sound signal matches any of the preset aggressive emotion types, the sound signal is determined to meet the preset abnormal state condition. When the sound signal meets the preset abnormal state condition, it indicates that the target animal includes an aggressive animal, and the first animal may be in danger, at which point a danger alarm event may occur.

[0137] For example, if the target animal's target sound type is an aggressive growl, it indicates that the first animal may be attacking other animals or being attacked by other animals.

[0138] In some embodiments, to avoid misjudging the sound signal by the first detection device, when it is determined that there is a sound emitted by an aggressive animal in the sound signal, the sound information can be further analyzed, and the results of this analysis can be used to determine whether the target animal is aggressive and meets the criteria for a danger alarm event.

[0139] For example, the duration of the target animal being in an aggressive first state is determined based on the sound signal and the emotion type corresponding to the sound signal; if the duration reaches a first duration threshold, the sound signal is determined to meet a preset abnormal state condition, and a first abnormal information is generated.

[0140] For example, if the first duration threshold is 15 seconds and the collected sound signal duration is 20 seconds, there is a continuous signal segment from the 1st to the 5th second, corresponding to the target animal being in the first state; there is a continuous signal segment from the 6th to the 15th second, corresponding to the target animal being in the first state; there is a continuous signal segment from the 18th to the 20th second, corresponding to the target animal being in the first state; after adding the durations of all the continuous signal segments, the total duration is 4+9+2=15 seconds, which reaches the first duration threshold of 15 seconds, thus determining that the sound signal meets the preset abnormal state conditions.

[0141] Alternatively, if the duration of a continuous signal segment in the sound signal reaches a first duration threshold, then the sound signal is determined to meet the preset abnormal state conditions.

[0142] For example, if the collected sound signal lasts for 20 seconds, and there is a continuous signal segment from the 1st to the 17th second, and this continuous signal segment lasts for 16 seconds, corresponding to the target animal being in the first state, and the first duration threshold of 15 seconds is reached, then the sound signal is determined to meet the preset abnormal state conditions.

[0143] For example, the sound signal is divided into multiple continuous signal segments, each corresponding to the target animal being in a first state. The continuous signal segments whose duration reaches a second duration threshold are identified as target signal segments. The number of target signal segments indicates the cumulative frequency at which the target animal is detected in the first state. When the number of target signal segments reaches a preset threshold, the sound signal is determined to meet preset abnormal state conditions, and first abnormal information is generated.

[0144] For example, if the second duration threshold is 3 seconds, the preset quantity threshold is 3, and the duration of the collected sound signal is 20 seconds, then there is a continuous signal segment 1 from the 1st to the 5th second, a continuous signal segment 2 from the 6th to the 15th second, and a continuous signal segment 3 from the 17th to the 20th second. The duration of continuous signal segment 1 is 4 seconds, the duration of continuous signal segment 2 is 9 seconds, and the duration of continuous signal segment 3 is 3 seconds. All three continuous signal segments correspond to the target animal being in the first state, and all three continuous signal segments reach the second duration threshold. Therefore, the number of target signal segments is 3, which reaches the preset quantity threshold, and the sound signal is determined to meet the preset abnormal state conditions.

[0145] The first abnormal information includes the current danger alarm event, which indicates that the target animal is exhibiting abnormal activity at the current time and location. The abnormal activity will trigger an automatic alarm from the first detection device.

[0146] Regardless of whether there are other animals nearby, the target animals always include the first animal. The purpose is to detect whether the first animal has experienced a danger alarm event, record it in time to alert other animals, and keep them away from the first animal. This not only ensures the safety of the first animal but also provides protection for other animals.

[0147] The target animal includes the first animal, which wears the first detection device. Depending on the characteristics of the animals included in the target animal, the information contained in the first abnormal information will vary, mainly falling into the following categories: Scenario 1: The target animal includes only the first animal. When the sound signal meets the preset abnormal conditions, the first location information of the first animal is collected; the first abnormal information is obtained based on the first device identifier and the first location information of the first detection device.

[0148] For example, the first device identifier and the first location information are encrypted to obtain the first abnormal information. The type of the first device identifier includes, but is not limited to: the Bluetooth MAC address of the first detection device, the factory identifier of the first detection device, the device number of the first detection device, etc.

[0149] In scenario two, in addition to the first animal, the target animal also includes a second animal. The second animal is wearing a second detection device. In this case, the first abnormal information includes not only the first device identifier and the first location information, but also the second device identifier of the second detection device.

[0150] The first detection device scans the surrounding environment for detection devices via Bluetooth, Wi-Fi, etc., and obtains the second device identifier of the second detection device. The first device identifier, the second device identifier, and the first location information are then encrypted to obtain the first abnormal information.

[0151] Scenario 3: In addition to the first animal, the target animal also includes a second animal. The second animal is not wearing the second detection device. The first detection device scans the detection devices in the surrounding environment via Bluetooth, Wi-Fi, etc. If no device identifier of any detection device is detected, the biometric information of the second animal is collected. The biometric information is used to uniquely identify the current second animal, including but not limited to: the appearance characteristics of the second animal, the pupil information of the second animal, the animal type of the second animal, etc.

[0152] For example, the first detection device includes a camera assembly, which captures an image containing a second animal, and extracts features from the image to obtain the biological characteristic information of the second animal.

[0153] By employing differentiated anomaly information generation and response mechanisms for the aforementioned various scenarios, the system achieves precise identification, tiered handling, and systematic collaborative early warning effects. By distinguishing between single-animal, multi-device animal, and no-device animal events, the system can accurately identify the target objects and scope of impact involved in the event, avoiding misjudgments or information gaps that may result from a single processing logic. The system dynamically adjusts information collection strategies (such as device identification and biometrics) according to different scenarios and uniformly encrypts the collected information, ensuring data integrity and security while promptly responding to dangerous alarm events.

[0154] S730 issues an alarm based on the first abnormal information.

[0155] Optionally, the first abnormality information is sent to a terminal associated with the first detection device worn by the first animal.

[0156] An application is installed on the terminal, which periodically pushes notification messages to inform the terminal user of the current activity status of the first animal and whether the first animal is in danger.

[0157] For example, the application generates a first alert message based on the first abnormal information: "First animal is in danger." The first alert message indicates that the first animal may be in danger.

[0158] End users can respond to prompts pushed by the application and send a first instruction to the first detection device. The first instruction is used to indicate the type of alarm and the output method of the alarm information.

[0159] Upon receiving an alarm command from the terminal, an alarm is issued to the target animal according to the first command.

[0160] For example, if the first instruction is a voice call instruction, a call connection is established with the terminal; the call audio is played in real time through the call connection to alert the target animal.

[0161] In other words, after the end user views the first notification message pushed by the terminal application, they can initiate a call connection. The first detection device will automatically connect the call, at which point the end user can talk to the first animal to warn it to avoid it in time; or, the end user can indirectly drive away the target animal by making sounds through the call connection.

[0162] By reporting to end users, the system enables them to respond and issue commands remotely, achieving a qualitative leap from passive alarm to proactive intervention. Through remote real-time audio interaction, it provides crucial human decision-making and immediate action capabilities for protecting target animals. Users can transmit sounds through the terminal to drive away abnormal target animals, or use a calm, familiar tone to guide and soothe frightened animals, prompting them to voluntarily evacuate the danger zone, depending on the situation on site.

[0163] In some embodiments, if the end user fails to view the first prompt information in a timely manner and misses the response to the first prompt information, and if the first detection device does not receive the alarm command sent by the terminal within a preset waiting time, the alarm of the first detection device will be automatically triggered. The automatic alarm method can be set in advance by the end user or it can be the default alarm method of the first detection device.

[0164] Among them, the automatic alarm methods include, but are not limited to: (1) playing alarm audio; (2) flashing lights; (3) dispersing gases (such as fragrances, which are harmless); (4) vibrating the first detection device based on a preset frequency, etc.

[0165] For example, the first detection device automatically plays a preset deterrent audio (such as the growl of a large dog or ultrasonic waves) and simultaneously triggers a bright light flash, which can effectively drive away other animals that approach, giving the first animal time to escape.

[0166] By employing a preset waiting time mechanism, intervention time points are set to ensure that the detection equipment will eventually trigger an alarm if the abnormal state persists. This avoids response gaps caused by accidental factors such as end users missing notifications. End users can pre-set alarm methods, making automatically triggered alarms more consistent with the animal's behavior and environment. It can independently complete the entire process from risk detection to final intervention, greatly improving the timeliness and accuracy of the entire alarm process.

[0167] In some embodiments, in addition to automatically issuing an alarm when the first animal experiences a danger alarm event, the alarm event is also reported and recorded so that other animals wearing detection devices of the same type as the first detection device can take timely precautions against danger, and to ensure that if the first animal encounters the same danger alarm event again, an automatic alarm is issued in advance to avoid risks.

[0168] Optionally, the first detection device sends first abnormal information to the server. The first abnormal information includes the first location of the first animal and the device identifier of the target detection device worn by the target animal. The server is used to mark the first location as an abnormal location and the device identifier of the target detection device as an abnormal identifier based on the first abnormal information. The abnormal location and abnormal identifier are used to trigger an automatic alarm.

[0169] The first location is the latitude and longitude coordinates of the first animal in the geographic coordinate system, along with the first timestamp (first moment) to identify the location information, indicating that a danger alarm event occurred at the first location at the first moment. The device identifier of the target detection equipment is a unique code for the target detection equipment, which includes the first detection equipment.

[0170] That is, when there are other animals wearing detection devices among the target animals, the target detection devices include the first detection device and the detection devices worn by other animals.

[0171] Optionally, an alarm is automatically triggered when the first animal is detected in an abnormal location, where the abnormal location is the location where a danger alarm event occurred within a historical time period.

[0172] An automatic alarm is triggered when an abnormal identifier is detected within a preset range of the first animal. The abnormal identifier is the device identifier of the detection device worn by the abnormal animal, and the abnormal animal is an animal that has experienced a dangerous alarm event within a historical time period.

[0173] For example, at the first moment, User A's pet dog (the first animal) encounters an aggressive dog (the second animal) at the first location. The first animal is wearing the first detection device, and the second animal is wearing the second detection device. The first detection device detects a continuous fearful whimper (sound signal), and then generates the first abnormal information based on the device identifier of the second detection device and the first location and uploads it to the server. After receiving the data, the server marks the first location as an abnormal location and stores it in the database. At the same time, it marks the device identifier of the second detection device "IMEI-123456" as an abnormal identifier and stores it in the database.

[0174] At the second moment, the first animal passes the first location again. The first detection device acquires the animal's location information and matches it with the abnormal locations stored in the database. If the animal's location information matches the first location successfully, it is determined that the animal is in an abnormal location, and an alarm is automatically triggered. The second moment is the moment following the first moment.

[0175] For example, at the third moment, User B's pet dog (the third animal) passes the first location. The third animal is wearing a third detection device, which acquires the animal's location information and matches it with abnormal locations stored in the database. If the third animal's location information matches the first location successfully, it is determined that the third animal is in an abnormal location, and the first detection device automatically issues an alarm. The third moment is the moment after the first moment.

[0176] For example, at the fourth moment, User B's pet dog (the third animal) encounters the second animal. The second animal is wearing the second detection device, and the third animal is wearing the third detection device. The third detection device scans the device identifier of the second detection device and matches it with the abnormal identifier stored in the database. The device identifier of the second detection device successfully matches "IMEI-123456" in the abnormal identifier, confirming that the third animal has encountered an abnormal animal, and the third detection device automatically issues an alarm. The fourth moment is the moment after the first moment.

[0177] It is worth noting that in all the above examples, when the detection devices (including target detection devices, first detection devices, second detection devices, third detection devices, etc.) automatically alarm, they will simultaneously send a real-time alarm to the target animal and synchronously report the generated abnormal information to the server and terminal, so as to record dangerous alarm events and prompt users in a timely manner.

[0178] In some embodiments, in addition to the scenario described above where the first animal encounters an abnormal animal, an automatic warning can also be issued and synchronized to the terminal for potential risks when the first animal is acting alone (i.e., there are no other animals within the preset range of the first animal) to alert the terminal user.

[0179] For example, the first detection device monitors the location of the first animal in real time. When the first animal leaves the preset activity range, the device reports the location information of the first animal to the terminal to alert the user that "the first animal is at risk of getting lost." The first detection device automatically plays a first preset audio message to instruct the first animal to return to the preset activity range.

[0180] For example, the first detection device collects sound signals in real time. When the sound signals indicate that the first animal's emotional state is depressed, afraid, or frightened, the first detection device automatically plays a second preset audio message to soothe the first animal and restore it to its normal activity state. Alternatively, the first detection device automatically releases a calming gas, such as a fragrance, to soothe the first animal.

[0181] In some embodiments, the first detection device can also establish an interaction relationship network with other detection devices. Multiple detection devices in the interaction relationship network can communicate with each other, and the terminal associated with each detection device is also in the interaction relationship network. When any two detection devices interact with each other, the information is synchronously reported to the terminal associated with the two detection devices, and also reported to the server. The server stores the information interaction process and the interaction relationship network in a local database.

[0182] When the first detection device detects a danger alarm event involving the first animal, it automatically issues an alarm and reports it to the terminal. If the alarm duration reaches a preset alarm duration threshold and the danger alarm event has not ended, the first detection device automatically initiates a terminal call: the first detection device automatically initiates a voice call to the first user terminal bound to the first detection device through its built-in communication module, notifying the user in the highest priority communication manner.

[0183] Simultaneously, the first detection device broadcasts an encrypted distress message via its local communication interface (such as a Bluetooth mesh network) to all other detection devices within its communication range (hereinafter referred to as nearby detection devices). This distress message indicates that the first animal has experienced a danger alarm event and requests assistance to resolve the abnormal state. The distress message includes the first animal's first location. Any nearby detection device that receives this distress message will immediately forward it to its connected second user terminal and display a distress notification on the second user terminal's interface. For example, the distress notification might read: "A pet at the first nearby location is in an emergency and needs assistance." Alternatively, the first detection device searches its local storage for a network of interactions established within a historical timeframe. It then sends encrypted requests for assistance to other detection devices (hereinafter referred to as interactive detection devices) within this network. Any interactive detection device receiving this request immediately forwards it to its connected third-party terminal and displays a request for assistance notification on the terminal's interface. For example, the notification might read: "Your pet friend is in an emergency at the first location and needs assistance." Through the aforementioned abnormal status assistance mechanism, the system has upgraded from single-point independent alarms to multi-point collaborative responses. It makes full use of the geographical advantages of the equipment. When the guardian of the first animal fails to detect the risk encountered by the first animal in time and respond, it promptly sends assistance information to nearby or previously interacting detection devices, and provides synchronous assistance through the terminals associated with the detection devices. This significantly improves the probability and efficiency of initiating rescue operations and constitutes a more robust community-based safety network.

[0184] In summary, the danger alarm method provided in this embodiment can achieve real-time, non-contact monitoring of the environment within the animal's activity range by actively collecting and analyzing environmental perception information within the animal's activity range. It can intelligently judge based on preset abnormal environmental conditions, accurately identify dangers when they occur or approach, automatically generate structured danger alarm event records, and automatically trigger alarms for the target animal for on-site immediate intervention. This significantly improves the safety protection capability for pets left alone and constitutes an intelligent monitoring system with proactive protection capabilities.

[0185] Corresponding to the danger alarm method in the above embodiments, Figure 8A structural block diagram of the detection device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0186] Reference Figure 8 The testing equipment 800 includes: Detection module 810 is used to continuously collect sound signals through the first detection device; Alarm module 820 is used to determine the presence of an aggressive animal based on the sound signal when the sound signal includes sounds made by an animal; The alarm module 820 is also used to output an alarm signal when an aggressive animal is detected.

[0187] It should be noted that the information interaction and execution process between the above-mentioned detection devices / modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0188] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the detection equipment can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments 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 as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0189] To implement the above embodiments, this application also proposes an electronic device.

[0190] Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application.

[0191] like Figure 9 As shown, the above-mentioned electronic device 900 includes: The system includes a memory 910 and at least one processor 920, and a bus 930 connecting the different components (including the memory 910 and the processor 920). The memory 910 stores a computer program, and when the processor 920 executes the program, it implements the danger alarm method of the present application embodiment.

[0192] Bus 930 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0193] Electronic device 900 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by electronic device 900, including volatile and non-volatile media, removable and non-removable media.

[0194] The memory 910 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 940 and / or cache memory 950. The electronic device 900 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 960 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 9 Not shown; usually referred to as a "hard drive"). Although Figure 9 As not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 930 via one or more data media interfaces. The memory 910 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0195] A program / utility 980 having a set (at least one) of program modules 970 may be stored, for example, in memory 910. Such program modules 970 include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 970 typically perform the functions and / or methods described in the embodiments of this application.

[0196] Electronic device 900 can also communicate with one or more external devices 990 (e.g., keyboard, pointing device, display 991, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 999. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 993. As shown, network adapter 993 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0197] The processor 920 performs various functional applications and data processing by running programs stored in the memory 910.

[0198] It should be noted that the implementation process and technical principles of the electronic device in this embodiment are explained in the foregoing description of the danger alarm method in the embodiments of this application, and will not be repeated here.

[0199] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the various method embodiments above.

[0200] This application provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0201] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some regions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0202] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0203] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0204] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0205] The units described as separate components may or may not be physically separate. The components shown as units 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0206] In the foregoing, specific details such as particular system architectures and techniques have been set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted to avoid unnecessary detail from obscuring the description of this application.

[0207] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0208] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0209] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0210] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0211] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0212] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A hazard alarm method, characterized in that, Applied to a first detection device, the method includes: The first detection device continuously collects environmental perception information; The presence of aggressive animals is determined based on the environmental perception information. An alarm signal is output in the presence of aggressive animals.

2. The method according to claim 1, characterized in that, The environmental perception information includes sound signals; The step of determining whether an aggressive animal exists based on the environmental perception information includes: If the sound signal is collected, determine whether the sound signal includes sounds made by animals; The presence of an aggressive animal is determined by whether the sound signal includes animal sounds. The presence of an aggressive animal corresponds to the sound signal including animal sounds, while the absence of animal sounds corresponds to the absence of an aggressive animal.

3. The method according to claim 2, characterized in that, The step of determining whether an aggressive animal exists based on whether the sound signal includes sounds made by an animal includes: The sound signal is analyzed using a sentiment analysis model to obtain the emotional state of the animal corresponding to the sound signal. The emotional state includes a first state and a second state. The first state indicates that the animal corresponding to the sound signal is aggressive, and the second state indicates that the animal corresponding to the sound signal is not aggressive. If the duration of the first state is greater than or equal to a first duration threshold, it is determined that an aggressive animal exists; or, If the cumulative frequency of the first state being detected is greater than or equal to a preset frequency threshold, it is determined that there is an aggressive animal.

4. The method according to claim 1, characterized in that, The method further includes: In the presence of an aggressive animal, a first abnormality information is generated, which includes a danger alarm event that occurred at the current location by the first detection device; The first abnormal information is sent to the control device corresponding to the first detection device.

5. The method according to claim 4, characterized in that, The method further includes: The system receives a first instruction from the control device corresponding to the first detection device. The first instruction is a control instruction input by the user based on the first abnormal information. The first instruction is used to instruct the first detection device to adjust the alarm parameters.

6. The method according to claim 4, characterized in that, The generation of first abnormal information in the presence of an aggressive animal includes: If the presence of an aggressive animal is determined based on the sound signals in the environmental perception information, the first abnormal information is generated.

7. The method according to claim 1, characterized in that, The environmental sensing information includes the location information of the first detection device; The step of determining whether an aggressive animal exists based on the environmental perception information includes: If the location information of the first detection device determines that the first detection device has reached the first location, it is determined that there is an aggressive animal. The first location is any location in the set of locations with dangerous alarm event records. The set of locations with dangerous alarm event records refers to the set of locations where dangerous alarm events have occurred within a preset time range before the current moment.

8. The method according to claim 1, characterized in that, The environmental awareness information includes Bluetooth signals; The step of determining whether an aggressive animal exists based on the environmental perception information includes: Upon detecting the Bluetooth signal of the second detection device, second indication information is obtained; the second indication information is used to indicate the matching result between the device identifier of the second detection device and the preset identifier, wherein the preset identifier refers to the identifier of the detection device that has a record of a dangerous alarm event within a preset time range before the current time. If the matching result is a match, it is determined that there is an aggressive animal; If the matching result is a mismatch, it is determined that there is no aggressive animal.

9. A testing device, characterized in that, The detection equipment includes: The detection module is used to continuously collect environmental perception information; The alarm module is used to determine whether there are aggressive animals based on the environmental perception information. The alarm module is also used to output an alarm signal in the presence of an aggressive animal.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.

11. An electronic device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, the electronic device performs the method as described in any one of claims 1 to 8.