Email alarm methods, systems, electronic devices and storage media

By using a six-axis sensor to detect motion data and internal information discrepancies of the mailbox door, the problem of the mailbox not being able to be detected in real time is solved, and an anomaly alarm function is implemented to ensure mailbox safety.

CN120708378BActive Publication Date: 2025-10-31X-SENSE INNOVATIONS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511144479.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-10-31
Estimated Expiration
2045-08-15

AI Technical Summary

Technical Problem

Existing email systems lack intelligent detection capabilities, making it impossible to know in real time whether the mailbox has been opened, resulting in the inability to promptly receive items and the risk of email theft.

Method used

A six-axis sensor is used to detect the motion data of the mailbox door, and the abnormal state is judged by combining the internal information differences. Alarm information is sent through the communication module.

Benefits of technology

An abnormal alarm function for the mailbox has been implemented to ensure mailbox security and prevent email theft and foreign object intrusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120708378B_ABST
    Figure CN120708378B_ABST
Patent Text Reader

Abstract

This application discloses a mailbox alarm method, system, electronic device, and storage medium, applied to a mailbox alarm device. The mailbox alarm device includes a six-axis sensor and a communication module, and is installed inside a target mailbox. The method includes: acquiring first mailbox internal information of the target mailbox; detecting target motion data of the mailbox door using the six-axis sensor; determining a target detection result based on the target motion data; when the target detection result indicates that the mailbox door is open, acquiring second mailbox internal information of the target mailbox; determining target alarm information based on the first and second mailbox internal information; and sending the target alarm information to the administrator via the communication module to ensure mailbox security. Using the embodiments of this application, an abnormal alarm function for a mailbox is implemented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mailbox alarm technology, and in particular to a mailbox alarm method, system, electronic device and storage medium. Background Technology

[0002] Most mailboxes on the market are simply physical containers, possessing only the basic function of storing letters and other items, lacking the ability to intelligently detect whether the mailbox door is open. This means users cannot know in real time whether the mailbox door has been opened (e.g., whether mail has been delivered or picked up), making it difficult to promptly check the contents of the mailbox and even potentially leading to mail theft. Therefore, how to implement an anomaly alarm function for mailboxes has become an urgent problem to be solved. Summary of the Invention

[0003] This application provides a mailbox alarm method, system, electronic device, and storage medium, which realizes the mailbox abnormal alarm function.

[0004] In a first aspect, embodiments of this application provide a mailbox alarm method, applied to a mailbox alarm device, the mailbox alarm device including a six-axis sensor and a communication module, the mailbox alarm device being disposed inside a target mailbox, the method comprising:

[0005] Obtain the internal information of the first mailbox of the target mailbox;

[0006] The target motion data of the mailbox door is detected by the six-axis sensor.

[0007] The target detection result is determined based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open;

[0008] When the target detection result includes that the mailbox door is open, obtain the internal information of the second mailbox of the target mailbox;

[0009] The target alarm information is determined based on the information inside the first mailbox and the information inside the second mailbox;

[0010] The target alarm information is sent to the administrator via the communication module to ensure mailbox security.

[0011] Secondly, embodiments of this application provide a mailbox alarm system applied to a mailbox alarm device. The mailbox alarm device includes a six-axis sensor and a communication module. The mailbox alarm device is installed inside a target mailbox. The system includes: an acquisition unit, an anomaly detection unit, and an alarm unit, wherein:

[0012] The acquisition unit is used to acquire the internal information of the first mailbox of the target mailbox; and to detect the target motion data of the mailbox door of the target mailbox through the six-axis sensor;

[0013] The anomaly detection unit is used to determine the target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open;

[0014] The acquisition unit is further configured to acquire internal information of the second mailbox of the target mailbox when the target detection result includes that the mailbox door is open;

[0015] The alarm unit is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and to send the target alarm information to the administrator through the communication module to ensure mailbox security.

[0016] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of embodiments of this application.

[0017] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0018] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application. The computer program product may be a software installation package.

[0019] Implementing this application will have the following beneficial effects:

[0020] As can be seen, the mailbox alarm method described in this application first confirms whether the mailbox door is open using a six-axis sensor, then compares the differences in internal information before and after the door is opened to determine whether there is an anomaly (such as mail theft, foreign object intrusion, etc.). After confirming that there is an anomaly, the communication module performs an early warning operation, thereby realizing the mailbox anomaly alarm function. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.

[0022] Figure 1 This is a schematic diagram of the structure of a mailbox alarm device provided in an embodiment of this application;

[0023] Figure 2 This is a schematic diagram of another mailbox alarm device provided in an embodiment of this application;

[0024] Figure 3 This is a scenario application diagram of a mailbox alarm device provided in an embodiment of this application;

[0025] Figure 4 This is a flowchart of an email alarm method provided in an embodiment of this application;

[0026] Figure 5 This is a flowchart of a method for determining target detection results provided in an embodiment of this application;

[0027] Figure 6 This is a flowchart of another method for determining target detection results provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of the structure of an email alarm system provided in an embodiment of this application;

[0029] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0031] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0032] It should be understood that the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this application, "multiple" refers to two or more.

[0033] In the embodiments of this application, "at least one item" or its similar expression refers to any combination of these items, including any combination of a single item or a plurality of items. "One or more" means one or more, while "multiple" means two or more. For example, "at least one item" of a, b, or c can represent the following seven cases: a, b, c; a and b; a and c; b and c; a, b, and c. Each of a, b, and c can be an element or a set containing one or more elements.

[0034] In this application embodiment, "connection" refers to various connection methods such as direct connection or indirect connection to realize communication between devices. This application embodiment does not limit this in any way.

[0035] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0036] The electronic devices described in this application embodiment may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile internet devices (MIDs), or wearable devices, etc. The above are merely examples and not exhaustive, and include but are not limited to the above devices.

[0037] Of course, the aforementioned electronic devices can also be mailbox alarm devices.

[0038] The following describes the relevant content, concepts, meanings, technical issues, technical solutions, and beneficial effects involved in the embodiments of this application.

[0039] First, let me explain some of the technical terms used in this application:

[0040] A six-axis sensor is a composite sensor integrating a three-axis accelerometer and a three-axis gyroscope, capable of simultaneously detecting two motion states of an object in three-dimensional space. The three-axis accelerometer measures the linear acceleration of the object in the X, Y, and Z directions, reflecting the rate of change of the object's velocity (such as the pushing or pulling force and speed increase / decrease when opening a door). The three-axis gyroscope measures the angular velocity of the object around the X, Y, and Z axes, reflecting the rate of change of the object's rotational motion (such as the rate of change of rotation angle when opening a door). In this application, the six-axis sensor is used to detect the opening and closing action of the mailbox door (such as whether it rotates, the rotation speed, and the pushing or pulling force), providing data support for determining whether the mailbox door is open.

[0041] Mailbox alarm: This refers to the function of detecting abnormal conditions in the mailbox through sensors (such as the mailbox door being opened illegally, items inside being stolen, foreign objects appearing, etc.) and transmitting the abnormal information to administrators or users.

[0042] Please see Figure 1 , Figure 1 This is a schematic diagram of a mailbox alarm device provided in an embodiment of this application; it can be seen that the mailbox alarm device may include a six-axis sensor, a communication module, a control module, etc., which are not limited here, wherein:

[0043] The six-axis sensor is used to collect data. It integrates a three-axis accelerometer and a three-axis gyroscope, which can detect the motion data (acceleration, angular velocity changes) of the mailbox door and identify whether the mailbox door is open (such as the motion characteristics when rotating or pushing and pulling). It can convert the motion data into electrical signals and transmit them to the communication module and / or control module in real time.

[0044] The communication module is used for data transmission, and common types include 4G modules, WiFi modules, and Bluetooth modules. It can receive alarm commands from the control module and send information (such as "mailbox door abnormally opened") to administrators.

[0045] The control module is used to control and coordinate the work of other modules, and is usually composed of a microcontroller or embedded chip. It can receive and parse data from the six-axis sensor (to determine the movement status of the mailbox door) to determine whether an alarm should be triggered; after determining that an alarm has been triggered, it sends an "alarm send" command to the communication module.

[0046] It should be explained that, in order to save costs, the structure of the mailbox alarm device can be simplified by removing the control module and replacing it with a cloud server. The communication module can communicate with the cloud server, which receives real-time data uploaded by the communication module (such as the movement data of the mailbox door) and analyzes the data to determine whether to trigger an alarm, thereby replacing the function of the control module.

[0047] Please see Figure 2 , Figure 2 This is a schematic diagram of another mailbox alarm device provided in the embodiments of this application; it can be seen that, in addition to a six-axis sensor, a communication module, and a control module, the mailbox alarm device may also include a power supply module, which supplies power to the mailbox alarm device.

[0048] Please see Figure 3 , Figure 3 This is a scenario application diagram of a mailbox alarm device provided in this application embodiment. As can be seen, the mailbox alarm device is installed on the inner side wall of the target mailbox (close to the door but not affecting its opening and closing), preventing external damage. Simultaneously, its proximity to the door's movement area facilitates the detection of door movement by a six-axis sensor (such as changes in acceleration / angular velocity during rotation or pushing / pulling). When someone attempts to open the "mailbox door," the mailbox alarm device can execute the mailbox alarm method provided in this application embodiment, as follows:

[0049] Obtain the internal information of the first mailbox of the target mailbox;

[0050] The target motion data of the mailbox door is detected by the six-axis sensor.

[0051] The target detection result is determined based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open;

[0052] When the target detection result includes that the mailbox door is open, obtain the internal information of the second mailbox of the target mailbox;

[0053] The target alarm information is determined based on the information inside the first mailbox and the information inside the second mailbox;

[0054] The target alarm information is sent to the administrator via the communication module to ensure mailbox security.

[0055] It should be explained that the above-mentioned mailbox alarm device can also perform some or all of the steps of the mailbox alarm method provided in the embodiments of this application.

[0056] Please see Figure 4 , Figure 4 This is a flowchart of a mailbox alarm method provided in an embodiment of this application. The method is applied to a mailbox alarm device (hereinafter referred to as the device), which may include a six-axis sensor and a communication module. The mailbox alarm device is installed inside the target mailbox, and the method includes, but is not limited to, the following steps:

[0057] S401. Obtain the internal information of the first mailbox of the target mailbox.

[0058] In this embodiment, a six-axis sensor can detect the motion state of the mailbox door (such as changes in acceleration and angular velocity). When the door is detected to move from rest (linear acceleration abruptly changes from 0), it is determined that the door opening has begun. When the door is detected to return to rest from motion (linear acceleration returns to 0 and remains so for a certain period, such as 2 seconds), it is determined that the door opening has ended. The time difference between the start and end of the door opening is calculated to obtain the duration of the first opening. Additionally, a weighing sensor can be installed at the bottom of the target mailbox or under the mail-bearing surface. Pressure changes reflect the number of mail items, and the weighing data is obtained through the weighing sensor. The weighing sensor can be physically or verbally connected to a communication module, thereby transmitting the weighing data to the aforementioned device. Each time new mail is added, the weight increases, and the device can adjust the weight based on the unit weight of the mail (which may be pre-set). The device can calculate the change in mail quantity (weight, such as the average weight of ordinary letters or small packages) by dividing the weight change by the weight of a unit mail and rounding it down. Adding the change in mail quantity to the initial mail quantity gives the first mail quantity. Similarly, the device can also include an environmental sensor to detect environmental data around the target mailbox and obtain the first environmental data. Specifically, the environmental data can include at least one of the following: temperature, humidity, light intensity, etc., which are not limited here. For example, assuming the environmental data is temperature, the environmental sensor can be a temperature sensor to detect the temperature around the target mailbox and obtain the temperature data, which is the first environmental data. Finally, the first mailbox internal information can be composed of the first door opening duration, the first mail quantity, and the first environmental data.

[0059] S402, Detect the target motion data of the mailbox door of the target mailbox using the six-axis sensor.

[0060] In this embodiment, the six-axis sensor can integrate a three-axis accelerometer and a three-axis gyroscope; the six-axis sensor can be rigidly fixed inside the mailbox door, near the hinge (the rotation axis of the mailbox door), so that the X, Y, and Z axes of the six-axis sensor are consistent with the movement direction of the mailbox door (for example, the X axis can point to the width direction of the mailbox door, the Y axis can point to the height direction of the mailbox door, and the Z axis can point to the thickness direction of the mailbox door), which facilitates subsequent data analysis.

[0061] In a specific embodiment, the sampling frequency of the six-axis sensor can be set first, for example, 50~100Hz (i.e., 50~100 data acquisitions per second), to ensure that the details of the rapid door opening action are captured. Then, the six-axis sensor operates at the set sampling frequency to collect the linear acceleration and angular velocity data of the mailbox door. Specifically, the linear acceleration of the mailbox door on the X, Y, and Z axes can be collected by a three-axis accelerometer to obtain three linear acceleration data points, and the angular velocity of the mailbox door on the X, Y, and Z axes can be collected by a three-axis gyroscope to obtain three angular velocity data points, thereby obtaining the target motion data.

[0062] S403. Determine the target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open.

[0063] Optionally, the target motion data includes: three linear acceleration data points and three angular velocity data points, with each linear acceleration data point corresponding to one angular velocity data point. (See also...) Figure 5 , Figure 5 This is a flowchart of a method for determining a target detection result provided in an embodiment of this application. Step S403, determining the target detection result based on the target motion data, may include... Figure 5 The steps shown are as follows:

[0064] A1. Determine the maximum linear acceleration corresponding to the three linear acceleration data, and the maximum angular velocity corresponding to the three angular velocity data;

[0065] A2. When the maximum linear acceleration is greater than the first preset linear acceleration, and / or the maximum angular velocity is greater than the first preset angular velocity, it is determined that the target detection result includes the mailbox door being opened;

[0066] A3. When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, determine the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data to obtain the first linear acceleration data; determine the angular velocity data corresponding to the first linear acceleration data to obtain the first angular velocity data; determine the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.

[0067] In this embodiment of the application, both the first preset linear acceleration and the first preset angular velocity can be preset in advance or defaulted.

[0068] In a specific embodiment, the maximum linear acceleration corresponding to the three linear acceleration data points and the maximum angular velocity corresponding to the three angular velocity data points can be determined. Specifically, the data points of the three linear acceleration data points can be compared pairwise to find the maximum value, which is the maximum linear acceleration. Similarly, the data points of the three angular velocity data points can be compared pairwise to find the maximum value, which is the maximum angular velocity. When the maximum linear acceleration is greater than the first preset linear acceleration and / or the maximum angular velocity is greater than the first preset angular velocity, the target detection result can be determined as the mailbox door being open.

[0069] When the maximum linear acceleration is not greater than a first preset linear acceleration, and the maximum angular velocity is not greater than a first preset angular velocity, the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data can be determined to obtain the first linear acceleration data. Specifically, it can be determined which axis the maximum linear acceleration belongs to, and the linear acceleration data corresponding to that axis is recorded as the first linear acceleration data. Then, the angular velocity data corresponding to the first linear acceleration data is determined to obtain the first angular velocity data. Specifically, it can be determined that the target axis corresponding to the first linear acceleration data (one of the three axes X, Y, and Z) can be determined. Then, the corresponding angular velocity data can be found from the three angular velocity data based on the target axis, which is the first angular velocity data. For example, if the target axis corresponding to the first linear acceleration data is the X-axis, the angular velocity data corresponding to the X-axis can be found from the three angular velocity data, which is the first angular velocity data. Finally, the target detection result can be determined based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data.

[0070] Thus, when the maximum linear acceleration (such as the impact force of violently pushing a door) exceeds the first preset linear acceleration, or the maximum angular velocity (such as the speed at which the door rotates rapidly) exceeds the first preset angular velocity, it is directly determined that "the mailbox door has been opened". This can quickly determine "the door has been opened" without complicated calculations, avoiding missed detections due to delays. When the motion data does not exceed the preset threshold (such as when the door is gently pushed but not fully opened, or when it shakes slightly), a secondary judgment is made using the axis data corresponding to the maximum linear acceleration and the angular velocity data of that axis, thereby avoiding misjudgments.

[0071] Optionally, the first linear acceleration data includes multiple linear accelerations, each corresponding to a multiple first sampling time; the first angular velocity data includes multiple angular velocities, each corresponding to a multiple second sampling time; step A3, determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data, may include the following steps:

[0072] B1. When the maximum linear acceleration is greater than the second preset linear acceleration, a first acceleration line is obtained by fitting the plurality of linear accelerations and the plurality of first sampling times; the horizontal axis of the first acceleration line is time, and the vertical axis is linear acceleration; the second preset linear acceleration is less than the first preset linear acceleration.

[0073] B2. Fit the multiple angular velocities and the multiple second sampling times to obtain a first angular velocity line; the horizontal axis of the first angular velocity line is time, and the vertical axis is angular velocity;

[0074] B3. Determine the target detection result based on the first acceleration line and the first angular velocity line;

[0075] B4. When the maximum linear acceleration is not greater than the second preset linear acceleration, the target detection result is determined to include the mailbox door not being opened.

[0076] In this embodiment of the application, the second preset linear acceleration can be preset in advance or defaulted.

[0077] In a specific embodiment, when the maximum linear acceleration is greater than the second preset linear acceleration, a first acceleration line can be obtained by fitting multiple linear accelerations and multiple first sampling times. Specifically, each linear acceleration and its corresponding first sampling time can be combined to obtain multiple first coordinate points. Then, a linear fitting method (e.g., least squares method) can be used to fit these multiple first coordinate points to obtain the first acceleration line. Next, a first angular velocity line can be obtained by fitting multiple angular velocities and multiple second sampling times. Specifically, the method for obtaining the first angular velocity line can be the same as the method for obtaining the first acceleration line. Finally, the target detection result can be determined based on the first acceleration line and the first angular velocity line.

[0078] When the maximum linear acceleration is not greater than the second preset linear acceleration, the target detection result can be determined as the mailbox door not being opened.

[0079] Thus, when the maximum linear acceleration is not greater than the second preset linear acceleration, it is directly determined that "the mailbox door is not open" without the need for subsequent fitting analysis, which reduces the computing power consumption of the device (especially suitable for low-power devices powered by batteries). At the same time, it avoids misjudging environmental vibrations as door opening actions. In addition, when the maximum linear acceleration is greater than the second preset linear acceleration, the data is fitted and analyzed to obtain the target detection result.

[0080] Optionally, step B3, determining the target detection result based on the first acceleration line and the first angular velocity line, may include the following steps:

[0081] C1. Determine the first slope corresponding to the first acceleration line and the second slope corresponding to the first angular velocity line;

[0082] C2. Determine the ratio between the first slope and the second slope;

[0083] C3. If the ratio is less than or equal to 0, then the target detection result is determined to be that the mailbox door has been opened;

[0084] C4. If the ratio is greater than 0, then determine the slope difference between the first slope and the second slope to obtain the target slope difference.

[0085] C5. When the target slope difference is greater than the preset slope difference, the target detection result is determined to be that the mailbox door has been opened;

[0086] C6. When the target slope difference is not greater than the preset slope difference, predict the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration based on the first acceleration line to obtain the first prediction moment;

[0087] C7. Determine the first time length between the first predicted time and the current time;

[0088] C8. If the first time length is not greater than the preset time length, then it is determined that the target detection result includes the mailbox door being opened;

[0089] C9. If the first time length is greater than the preset time length, then predict the moment when the angular velocity of the mailbox door reaches the first preset angular velocity based on the first angular velocity line to obtain the second predicted moment;

[0090] C10. Determine the second time length between the second predicted time and the current time;

[0091] C11. If the second time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened;

[0092] C12. If the second time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0093] In this embodiment, the preset slope difference and preset duration can both be preset in advance or defaulted.

[0094] In a specific embodiment, the first slope corresponding to the first acceleration line and the second slope corresponding to the first angular velocity line can be determined. Specifically, the first linear equation of the first acceleration line, y = ax + b, can be obtained, where y is the linear acceleration value, x is the time point, a is the first slope, and b is the intercept. The first slope can be obtained from this first linear equation, and similarly, the second slope can also be obtained. Then, the ratio between the first slope and the second slope can be determined, as follows:

[0095] Ratio = First slope / Second slope;

[0096] The ratio can be obtained from the above formula. If the ratio is less than or equal to 0, it means that the trends of acceleration (first slope) and angular velocity (second slope) are opposite in direction, or one of them has no trend (e.g., the first slope is 0). In this case, the target detection result can be determined as the mailbox door being open. For example, suppose the user initially pushes the door with a large force (acceleration increases with time, the first slope is positive), and the door begins to rotate (angular velocity increases with time, the second slope is positive); subsequently, the user reduces the pushing force (acceleration decreases with time, the first slope becomes negative), but the door continues to accelerate due to inertia (angular velocity continues to increase, the second slope is still positive). At this time, the first slope is negative, the second slope is positive, and the ratio is less than 0, but the door is obviously in a "continuously open" state. Therefore, the target detection result can be determined as the mailbox door being open.

[0097] If the ratio is greater than 0, the slope difference between the first slope and the second slope can be determined, yielding the target slope difference. Specifically, the target slope difference can be obtained by subtracting the second slope from the first slope. When the target slope difference is greater than the preset slope difference, it indicates a significant difference between the rate of change of acceleration and the rate of change of angular velocity. For example, assuming the acceleration slope is 3.0 and the angular velocity slope is 0.5, the difference is 2.5, which is greater than the preset slope difference of 1.0. This difference does not exist in "non-opening motion" but rather represents a "non-steady state" that may occur during the opening process (such as uneven force, sudden smoothing after the door hinge jams). In this case, the target detection result can be determined as the mailbox door being opened.

[0098] When the target slope difference is not greater than the preset slope difference, the moment when the linear acceleration of the mailbox door reaches the first preset linear acceleration can be predicted based on the first acceleration line, thus obtaining the first predicted moment. Specifically, the first preset linear acceleration can be substituted into the first linear equation for calculation to obtain the first predicted moment. Then, the first time length between the first predicted moment and the current moment can be determined. For example, the first time length can be obtained by subtracting the current moment from the first predicted moment. If the first time length is not greater than the preset duration, it means that the linear acceleration of the mailbox door can reach the first preset linear acceleration in a short time, thus opening the door. Therefore, it can be determined that the target detection result includes the mailbox door being opened.

[0099] If the first time length is greater than the preset time length, the moment when the mailbox door's angular velocity reaches the first preset angular velocity can be predicted based on the first angular velocity line, thus obtaining the second predicted time. Specifically, the equation of the second line corresponding to the first angular velocity line can be obtained, and the first preset angular velocity can be substituted into the second line equation for calculation to obtain the second predicted time. Then, the second time length between the second predicted time and the current time can be determined. For example, the second time length can be obtained by subtracting the current time from the second predicted time. If the second time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened.

[0100] If the second time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0101] In this way, by using a multi-level progressive logic of "slope ratio → difference threshold → time prediction" to judge the mailbox door status, "non-opening movement" is filtered out layer by layer, reducing misjudgments and improving the accuracy of mailbox door status judgment.

[0102] Optionally, when the target slope difference is not greater than the preset slope difference, the method may further include the following steps:

[0103] D1. Determine the resultant acceleration data corresponding to the three linear acceleration data;

[0104] D2. Determine the second acceleration line corresponding to the resultant acceleration data; the horizontal axis of the second acceleration line is time, and the vertical axis is the resultant acceleration;

[0105] D3. Determine the maximum resultant acceleration corresponding to the resultant acceleration data, and the third slope corresponding to the second acceleration line;

[0106] D4. Determine the resultant angular velocity data corresponding to the three angular velocity data;

[0107] D5. Determine the second angular velocity line corresponding to the resultant angular velocity data; the horizontal axis of the second angular velocity line is time, and the vertical axis is the resultant angular velocity;

[0108] D6. Determine the maximum resultant angular velocity corresponding to the resultant angular velocity data, and the fourth slope corresponding to the second angular velocity line;

[0109] D7. Determine the target detection result based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.

[0110] In this embodiment, the resultant acceleration data corresponding to the three linear acceleration data can be determined first. Specifically, these three linear acceleration data correspond to the acceleration of the object (mailbox door) in the X-axis, Y-axis, and Z-axis directions in three-dimensional space, respectively. These three accelerations are perpendicular to each other and together constitute the motion acceleration vector of the object (mailbox door) in space. The resultant acceleration data can be obtained by synthesizing these three linear acceleration data according to the principle of spatial vector synthesis. Then, the second acceleration line corresponding to the resultant acceleration data can be determined. Specifically, the method for obtaining the second acceleration line can be the same as the method for obtaining the first acceleration line, and will not be repeated here.

[0111] Furthermore, the maximum resultant acceleration corresponding to the resultant acceleration data and the third slope corresponding to the second acceleration line can be determined. Specifically, the maximum value in the resultant acceleration data, i.e., the maximum resultant acceleration, can be found. Then, the equation of the third line corresponding to the second acceleration line can be obtained, and the third slope can be determined based on the equation of the third line. Then, the resultant angular velocity data corresponding to the three angular velocity data can also be determined. Specifically, the method for obtaining the resultant angular velocity data can be the same as the method for obtaining the resultant acceleration data, and will not be repeated here.

[0112] Then, the second angular velocity line corresponding to the resultant angular velocity data can be determined. Specifically, the method for obtaining the second angular velocity line can be the same as that for obtaining the first angular velocity line, and will not be repeated here. Next, the maximum resultant angular velocity corresponding to the resultant angular velocity data and the fourth slope corresponding to the second angular velocity line can be determined. Specifically, the maximum value in the resultant angular velocity data, i.e., the maximum resultant angular velocity, can be found. Then, the equation of the fourth line corresponding to the second angular velocity line can be obtained, and the fourth slope can be determined based on the equation of the fourth line. Finally, the target detection result can be determined based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.

[0113] In this way, by synthesizing the three linear acceleration data (angular velocity data), the combined acceleration data (combined angular velocity data) is obtained, which integrates the linear motion intensity (rotation intensity) of the X, Y, and Z axes, avoiding the omission caused by "single axis data not exceeding the standard but multiple axis superposition is severe".

[0114] Optional, please refer to Figure 6 , Figure 6 This is a flowchart of another method for determining target detection results provided in an embodiment of this application. Step D7, determining the target detection result based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope, may include... Figure 6 The steps shown are as follows:

[0115] E1. When the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, the target detection result is determined to include the mailbox door being open.

[0116] E2. When the maximum resultant acceleration is not greater than the first preset linear acceleration and the maximum resultant angular velocity is not greater than the first preset angular velocity, obtain the target motion duration corresponding to the target motion data;

[0117] E3. Determine the total rotation angle of the target based on the target motion duration and the second angular velocity linearity;

[0118] E4. If the total rotation angle of the target is greater than the preset rotation angle, then the target detection result is determined to include the mailbox door being open;

[0119] E5. If the total rotation angle of the target is not greater than the preset rotation angle, then determine the average resultant angular velocity corresponding to the resultant angular velocity data; determine the third time length based on the total rotation angle of the target, the average resultant angular velocity, and the preset rotation angle;

[0120] E6. If the third time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened;

[0121] E7. If the third time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0122] In this embodiment of the application, the preset rotation angle can be preset in advance or defaulted. For example, the preset rotation angle can be 60 degrees.

[0123] In a specific embodiment, when the maximum resultant acceleration is greater than the first preset linear acceleration and / or the maximum resultant angular velocity is greater than the first preset angular velocity, it indicates that the mailbox door is subjected to a large thrust or impact force, causing the door to change from a stationary state to a moving state in a short time and be opened quickly. At this time, it can be determined that the target detection result includes the mailbox door being opened.

[0124] When the maximum resultant acceleration is not greater than the first preset linear acceleration and the maximum resultant angular velocity is not greater than the first preset angular velocity, the target motion duration corresponding to the target motion data can be obtained. Specifically, the acquisition time of each data point in the target motion data can be obtained first, resulting in multiple acquisition times. The earliest and latest times among these multiple acquisition times can be determined, and the target motion duration can be obtained by subtracting the earliest time from the latest time. Then, the total rotation angle of the target can be determined based on the target motion duration and the second angular velocity line. Specifically, the total rotation angle of the target can be obtained by integrating the second angular velocity line within the target motion duration. If the total rotation angle of the target is greater than the preset rotation angle, it is determined that the target detection result includes the mailbox door being opened.

[0125] If the total rotation angle of the target is not greater than the preset rotation angle, the average resultant angular velocity data can be calculated, i.e., the average resultant angular velocity. Then, the third time length can be determined based on the total rotation angle of the target, the average resultant angular velocity, and the preset rotation angle. Specifically, the target angle difference can be obtained by subtracting the total rotation angle of the target from the preset rotation angle. Then, the target angle difference can be divided by the average resultant angular velocity to obtain the third time length. If the third time length is greater than the preset time length, it is determined that the target detection result includes the mailbox door not being opened.

[0126] If the third time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0127] Thus, when the maximum resultant acceleration (maximum resultant angular velocity) exceeds the first preset linear acceleration (first preset angular velocity), the door is directly determined to be open. Otherwise, the door is determined to be open based on the total rotation angle of the target and the preset rotation angle. If the total rotation angle of the target is greater than the preset rotation angle, the door is determined to be open. If the total rotation angle of the target is not greater than the preset rotation angle, the door is determined not to be open. This filters out "meaningless minor shaking" and improves the accuracy of the judgment.

[0128] S404. When the target detection result includes that the mailbox door is open, obtain the internal information of the second mailbox of the target mailbox.

[0129] In this embodiment of the application, when the target detection result includes that the mailbox door is open, the internal information of the second mailbox of the target mailbox can be obtained. Specifically, the method for obtaining the internal information of the second mailbox can be the same as the method for obtaining the internal information of the first mailbox, and will not be described in detail here.

[0130] S405. Determine the target alarm information based on the information inside the first mailbox and the information inside the second mailbox.

[0131] In this embodiment of the application, the difference information between the internal information of the first mailbox and the internal information of the second mailbox can be determined, and the target alarm information can be determined based on the difference information.

[0132] Optionally, the information inside the first mailbox includes: the number of first emails, the duration of the first door opening, and the first environmental data; the information inside the second mailbox includes: the number of second emails, the duration of the second door opening, and the second environmental data; determining the target alarm information based on the information inside the first mailbox and the information inside the second mailbox may include the following steps:

[0133] S51. Determine the difference between the number of the second emails and the number of the first emails to obtain the target quantity difference;

[0134] S52. Determine the first anomaly score corresponding to the target quantity difference;

[0135] S53. Determine the difference between the duration of the second door opening and the duration of the first door opening to obtain the target duration difference;

[0136] S54. Determine the second anomaly score corresponding to the target duration difference;

[0137] S55. Determine a third anomaly score based on the first anomaly score and the second anomaly score;

[0138] S56. Determine the deviation between the second environmental data and the first environmental data to obtain the target deviation.

[0139] S57. Determine the target adjustment coefficient corresponding to the target deviation;

[0140] S58. Adjust the third anomaly score according to the target adjustment coefficient to obtain the target anomaly score;

[0141] S59. Determine the target anomaly level corresponding to the target anomaly score;

[0142] S510. Determine the target alarm information corresponding to the target anomaly level.

[0143] In this embodiment of the application, the anomaly score represents the quantitative index of anomalies in the target email address. The anomaly score can range from 0 to 10. The higher the anomaly score, the greater the possibility that the target email address is abnormal (e.g., emails have been stolen).

[0144] In a specific embodiment, the target quantity difference can be obtained by subtracting the first quantity from the second quantity of emails. Then, the first abnormal score corresponding to the target quantity difference can be determined. For example, a pre-stored mapping relationship between the quantity difference and the abnormal score can be used to determine the first abnormal score corresponding to the target quantity difference. Then, the target duration difference can be obtained by subtracting the first duration from the second duration of door opening. Next, the second abnormal score corresponding to the target duration difference can be determined. Similarly, a pre-stored mapping relationship between the duration difference and the abnormal score can be used to determine the second abnormal score corresponding to the target duration difference.

[0145] Furthermore, a third anomaly score can be determined based on the first and second anomaly scores. Specifically, the first and second anomaly scores can be directly added together to obtain the third anomaly score. Alternatively, a first weight (e.g., 0.7) corresponding to the first anomaly score and a second weight (e.g., 0.3) corresponding to the second anomaly score can be determined, with the sum of the first and second weights being 1. A weighted calculation is then performed based on the first anomaly score, the second anomaly score, the first weight, and the second weight to obtain the third anomaly score. Then, the deviation between the second environmental data and the first environmental data can be determined, as follows:

[0146] Target deviation = (Second environmental data - First environmental data) / First environmental data × 100%;

[0147] Based on the above formula, the target deviation can be obtained. Then, the target adjustment coefficient corresponding to the target deviation can be determined. Specifically, a pre-stored mapping relationship between deviation and adjustment coefficient can be used to determine the target adjustment coefficient corresponding to the target deviation. The target adjustment coefficient can range from 0 to 0.15. Then, the third anomaly score can be adjusted according to the target adjustment coefficient, as follows:

[0148] Target anomaly score = third anomaly score × (1 + target adjustment coefficient);

[0149] Based on the above formula, the target anomaly score can be obtained. Then, the target anomaly level corresponding to the target anomaly score can be determined. Specifically, the target anomaly level can be determined based on the magnitude of the target anomaly score. For example, when the target anomaly score is between 0 and 3, the corresponding target anomaly level is low; when the target anomaly score is between 4 and 7, the corresponding target anomaly level is medium; and when the target anomaly score is between 8 and 10, the corresponding target anomaly level is high. Finally, the target alarm information corresponding to the target anomaly level can be determined. Specifically, corresponding target alarm information can be generated based on the level of the target anomaly. A preset mapping relationship between anomaly levels and alarm information can be stored in advance, and the target alarm information corresponding to the target anomaly level can be determined based on this mapping relationship.

[0150] S406. The target alarm information is sent to the administrator through the communication module to ensure mailbox security.

[0151] In this embodiment, the target alarm information can be sent via SMS, email, mobile phone pop-up, or voice prompt. The communication module sends the target alarm information to the administrator to prompt the administrator to conduct a security check on the target mailbox, thereby ensuring mailbox security. For example, the target alarm information could be: "[Smart Mailbox Alert in xx Community] Mailbox number x in building x experienced an anomaly at x o'clock: 2 items were missing after opening the door, suspected theft. Please check immediately."

[0152] As can be seen, the mailbox alarm method described in this application first confirms whether the mailbox door is open using a six-axis sensor, then compares the differences in internal information before and after the door is opened to determine whether there is an anomaly (such as mail theft, foreign object intrusion, etc.). After confirming that there is an anomaly, the communication module performs an early warning operation, thereby realizing the mailbox anomaly alarm function.

[0153] Please see Figure 7 , Figure 7This is a schematic diagram of a mailbox alarm system provided in an embodiment of this application; the mailbox alarm system 700 can be applied to a mailbox alarm device, which includes a six-axis sensor and a communication module. The mailbox alarm device is installed inside the target mailbox. The mailbox alarm system 700 includes: an acquisition unit 701, an anomaly detection unit 702, and an alarm unit 703, wherein:

[0154] The acquisition unit 701 is used to acquire the internal information of the first mailbox of the target mailbox; and to detect the target motion data of the mailbox door of the target mailbox through the six-axis sensor;

[0155] The anomaly detection unit 702 is used to determine the target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open;

[0156] The acquisition unit 701 is further configured to acquire the internal information of the second mailbox of the target mailbox when the target detection result includes that the mailbox door is open;

[0157] The alarm unit 703 is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and to send the target alarm information to the administrator through the communication module to ensure mailbox security.

[0158] Optionally, the target motion data includes: three linear acceleration data points and three angular velocity data points, with each linear acceleration data point corresponding to one angular velocity data point. In determining the target detection result based on the target motion data, the anomaly detection unit 702 is specifically used for:

[0159] Determine the maximum linear acceleration corresponding to the three linear acceleration data points, and the maximum angular velocity corresponding to the three angular velocity data points;

[0160] When the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, the target detection result is determined to include the mailbox door being open;

[0161] When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, the linear acceleration data corresponding to the maximum linear acceleration in the three linear acceleration data is determined to obtain the first linear acceleration data; the angular velocity data corresponding to the first linear acceleration data is determined to obtain the first angular velocity data; the target detection result is determined based on the maximum linear acceleration, the first linear acceleration data and the first angular velocity data.

[0162] Optionally, the first linear acceleration data includes multiple linear accelerations, the multiple linear accelerations corresponding to multiple first sampling times; the first angular velocity data includes multiple angular velocities, the multiple angular velocities corresponding to multiple second sampling times; in determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data, the anomaly detection unit 702 is specifically used for:

[0163] When the maximum linear acceleration is greater than the second preset linear acceleration, a first acceleration line is obtained by fitting the plurality of linear accelerations and the plurality of first sampling times; the horizontal axis of the first acceleration line is time, and the vertical axis is linear acceleration; the second preset linear acceleration is less than the first preset linear acceleration.

[0164] A first angular velocity line is obtained by fitting the multiple angular velocities and the multiple second sampling times; the horizontal axis of the first angular velocity line is time, and the vertical axis is angular velocity.

[0165] The target detection result is determined based on the first acceleration line and the first angular velocity line.

[0166] When the maximum linear acceleration is not greater than the second preset linear acceleration, the target detection result is determined to include the mailbox door not being opened.

[0167] Optionally, in determining the target detection result based on the first acceleration line and the first angular velocity line, the anomaly detection unit 702 is specifically used for:

[0168] Determine the first slope corresponding to the first acceleration line and the second slope corresponding to the first angular velocity line;

[0169] Determine the ratio between the first slope and the second slope;

[0170] If the ratio is less than or equal to 0, then the target detection result is determined to be that the mailbox door has been opened;

[0171] If the ratio is greater than 0, the slope difference between the first slope and the second slope is determined to obtain the target slope difference.

[0172] When the target slope difference is greater than a preset slope difference, the target detection result is determined to be that the mailbox door has been opened;

[0173] When the target slope difference is not greater than the preset slope difference, the first prediction time is obtained by predicting the time when the linear acceleration of the mailbox door reaches the first preset linear acceleration based on the first acceleration line.

[0174] Determine the first time length between the first predicted time and the current time;

[0175] If the first time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened;

[0176] If the first time length is greater than the preset time length, then the moment when the angular velocity of the mailbox door reaches the first preset angular velocity is predicted based on the first angular velocity line, and the second predicted time is obtained.

[0177] Determine the second time length between the second predicted time and the current time;

[0178] If the second time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened;

[0179] If the second time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0180] Optionally, when the target slope difference is not greater than the preset slope difference, the mailbox alarm system 700 is further specifically used for:

[0181] Determine the resultant acceleration data corresponding to the three linear acceleration data;

[0182] Determine the second acceleration line corresponding to the resultant acceleration data; the horizontal axis of the second acceleration line is time, and the vertical axis is the resultant acceleration;

[0183] Determine the maximum resultant acceleration corresponding to the resultant acceleration data, and the third slope corresponding to the second acceleration line;

[0184] Determine the resultant angular velocity data corresponding to the three angular velocity data;

[0185] Determine the second angular velocity line corresponding to the resultant angular velocity data; the horizontal axis of the second angular velocity line is time, and the vertical axis is the resultant angular velocity;

[0186] Determine the maximum resultant angular velocity corresponding to the resultant angular velocity data, and the fourth slope corresponding to the second angular velocity line;

[0187] The target detection result is determined based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.

[0188] Optionally, in determining the target detection result based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope, the anomaly detection unit 702 is specifically used for:

[0189] When the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, the target detection result is determined to include the mailbox door being open;

[0190] When the maximum resultant acceleration is not greater than the first preset linear acceleration and the maximum resultant angular velocity is not greater than the first preset angular velocity, the target motion duration corresponding to the target motion data is obtained;

[0191] The total rotation angle of the target is determined based on the target motion duration and the second angular velocity linearity.

[0192] If the total rotation angle of the target is greater than the preset rotation angle, then the target detection result is determined to include the mailbox door being open;

[0193] If the total rotation angle of the target is not greater than the preset rotation angle, then the average resultant angular velocity corresponding to the resultant angular velocity data is determined; the third time length is determined based on the total rotation angle of the target, the average resultant angular velocity, and the preset rotation angle.

[0194] If the third time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened;

[0195] If the third time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

[0196] Optionally, the information inside the first mailbox includes: a first number of emails, a first door opening duration, and first environmental data; the information inside the second mailbox includes: a second number of emails, a second door opening duration, and second environmental data; in determining the target alarm information based on the information inside the first mailbox and the information inside the second mailbox, the alarm unit 703 is specifically used for:

[0197] The difference between the number of the second email and the number of the first email is determined to obtain the target quantity difference;

[0198] Determine the first anomaly score corresponding to the difference in the target quantity;

[0199] The difference between the duration of the second door opening and the duration of the first door opening is determined to obtain the target duration difference.

[0200] Determine the second anomaly score corresponding to the target duration difference;

[0201] A third anomaly score is determined based on the first anomaly score and the second anomaly score;

[0202] Determine the deviation between the second environmental data and the first environmental data to obtain the target deviation.

[0203] Determine the target adjustment coefficient corresponding to the target deviation;

[0204] The third anomaly score is adjusted according to the target adjustment coefficient to obtain the target anomaly score;

[0205] Determine the target anomaly level corresponding to the target anomaly score;

[0206] Determine the target alarm information corresponding to the target anomaly level.

[0207] In specific implementations, the mailbox alarm system 700 described in the embodiments of the present invention can also execute other implementations described in the mailbox alarm method provided in the embodiments of the present invention, which will not be repeated here.

[0208] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include a processor, a memory, a communication interface, and one or more programs. The processor, memory, and communication interface can be interconnected via a bus. The one or more programs are stored in the memory and configured to be executed by the processor. In this embodiment, the electronic device can be applied to a mailbox alarm device. The mailbox alarm device includes a six-axis sensor and a communication module. The mailbox alarm device is installed inside a target mailbox. The program includes instructions for performing the following steps:

[0209] Obtain the internal information of the first mailbox of the target mailbox;

[0210] The target motion data of the mailbox door is detected by the six-axis sensor.

[0211] The target detection result is determined based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open;

[0212] When the target detection result includes that the mailbox door is open, obtain the internal information of the second mailbox of the target mailbox;

[0213] The target alarm information is determined based on the information inside the first mailbox and the information inside the second mailbox;

[0214] The target alarm information is sent to the administrator via the communication module to ensure mailbox security.

[0215] This application also provides a computer-readable storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.

[0216] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include an electronic device.

[0217] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

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

[0219] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above 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 or other forms.

[0220] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0221] The steps of the methods or algorithms described in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disk, portable hard disk, read-only optical disk (CD-ROM), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Furthermore, the ASIC can reside in a terminal device or management device. Alternatively, the processor and storage medium can exist as discrete components in the terminal device or management device.

[0222] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated.

[0223] The aforementioned computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media.

[0224] The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0225] The modules / units included in the various devices and products described in the above embodiments can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The implementation is achieved through a software program that runs on the processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into terminal equipment, each of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal equipment. Alternatively, at least some modules / units can be implemented through a software program that runs on the processor integrated within the terminal equipment, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.

[0226] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above descriptions are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A method for sending email alerts, characterized in that, An application to a mailbox alarm device, the mailbox alarm device including a six-axis sensor and a communication module, the mailbox alarm device being installed inside a target mailbox, the method comprising: Obtain the internal information of the first mailbox of the target mailbox; The target motion data of the mailbox door is detected by the six-axis sensor. The target detection result is determined based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open; When the target detection result includes that the mailbox door is open, obtain the internal information of the second mailbox of the target mailbox; The target alarm information is determined based on the information inside the first mailbox and the information inside the second mailbox; The target alarm information is sent to the administrator via the communication module to ensure mailbox security; The target motion data includes: three linear acceleration data points and three angular velocity data points, with each linear acceleration data point corresponding to one angular velocity data point. Determining the target detection result based on the target motion data includes: Determine the maximum linear acceleration corresponding to the three linear acceleration data points, and the maximum angular velocity corresponding to the three angular velocity data points; When the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, the target detection result is determined to include the mailbox door being open; When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data is determined to obtain the first linear acceleration data; the angular velocity data corresponding to the first linear acceleration data is determined to obtain the first angular velocity data; the target detection result is determined based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data. Wherein, the first linear acceleration data includes multiple linear accelerations, the multiple linear accelerations corresponding to multiple first sampling times; the first angular velocity data includes multiple angular velocities, the multiple angular velocities corresponding to multiple second sampling times; determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data includes: When the maximum linear acceleration is greater than the second preset linear acceleration, a first acceleration line is obtained by fitting the plurality of linear accelerations and the plurality of first sampling times; the horizontal axis of the first acceleration line is time, and the vertical axis is linear acceleration; the second preset linear acceleration is less than the first preset linear acceleration. A first angular velocity line is obtained by fitting the multiple angular velocities and the multiple second sampling times; the horizontal axis of the first angular velocity line is time, and the vertical axis is angular velocity. The target detection result is determined based on the first acceleration line and the first angular velocity line. When the maximum linear acceleration is not greater than the second preset linear acceleration, the target detection result is determined to include the mailbox door not being opened.

2. The method as described in claim 1, characterized in that, Determining the target detection result based on the first acceleration line and the first angular velocity line includes: Determine the first slope corresponding to the first acceleration line and the second slope corresponding to the first angular velocity line; Determine the ratio between the first slope and the second slope; If the ratio is less than or equal to 0, then the target detection result is determined to be that the mailbox door has been opened; If the ratio is greater than 0, the slope difference between the first slope and the second slope is determined to obtain the target slope difference. When the target slope difference is greater than a preset slope difference, the target detection result is determined to be that the mailbox door has been opened; When the target slope difference is not greater than the preset slope difference, the first prediction time is obtained by predicting the time when the linear acceleration of the mailbox door reaches the first preset linear acceleration based on the first acceleration line. Determine the first time length between the first predicted time and the current time; If the first time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened; If the first time length is greater than the preset time length, then the moment when the angular velocity of the mailbox door reaches the first preset angular velocity is predicted based on the first angular velocity line, and the second predicted time is obtained. Determine the second time length between the second predicted time and the current time; If the second time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened; If the second time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

3. The method as described in claim 2, characterized in that, When the target slope difference is not greater than the preset slope difference, the method further includes: Determine the resultant acceleration data corresponding to the three linear acceleration data; Determine the second acceleration line corresponding to the resultant acceleration data; the horizontal axis of the second acceleration line is time, and the vertical axis is the resultant acceleration; Determine the maximum resultant acceleration corresponding to the resultant acceleration data, and the third slope corresponding to the second acceleration line; Determine the resultant angular velocity data corresponding to the three angular velocity data; Determine the second angular velocity line corresponding to the resultant angular velocity data; the horizontal axis of the second angular velocity line is time, and the vertical axis is the resultant angular velocity; Determine the maximum resultant angular velocity corresponding to the resultant angular velocity data, and the fourth slope corresponding to the second angular velocity line; The target detection result is determined based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope.

4. The method as described in claim 3, characterized in that, Determining the target detection result based on the maximum resultant acceleration, the third slope, the maximum resultant angular velocity, and the fourth slope includes: When the maximum resultant acceleration is greater than the first preset linear acceleration, and / or the maximum resultant angular velocity is greater than the first preset angular velocity, the target detection result is determined to include the mailbox door being open; When the maximum resultant acceleration is not greater than the first preset linear acceleration and the maximum resultant angular velocity is not greater than the first preset angular velocity, the target motion duration corresponding to the target motion data is obtained; The total rotation angle of the target is determined based on the target motion duration and the second angular velocity linearity. If the total rotation angle of the target is greater than the preset rotation angle, then the target detection result is determined to include the mailbox door being open; If the total rotation angle of the target is not greater than the preset rotation angle, then the average resultant angular velocity corresponding to the resultant angular velocity data is determined; the third time length is determined based on the total rotation angle of the target, the average resultant angular velocity, and the preset rotation angle. If the third time length is greater than the preset time length, then the target detection result is determined to include the mailbox door not being opened; If the third time length is not greater than the preset time length, then the target detection result is determined to include the mailbox door being opened.

5. The method according to any one of claims 1-4, characterized in that, The first mailbox contains information including: a first number of emails, a first door opening duration, and first environmental data; the second mailbox contains information including: a second number of emails, a second door opening duration, and second environmental data; determining the target alarm information based on the information in the first and second mailboxes includes: The difference between the number of the second email and the number of the first email is determined to obtain the target quantity difference; Determine the first anomaly score corresponding to the difference in the target quantity; The difference between the duration of the second door opening and the duration of the first door opening is determined to obtain the target duration difference. Determine the second anomaly score corresponding to the target duration difference; A third anomaly score is determined based on the first anomaly score and the second anomaly score; Determine the deviation between the second environmental data and the first environmental data to obtain the target deviation. Determine the target adjustment coefficient corresponding to the target deviation; The third anomaly score is adjusted according to the target adjustment coefficient to obtain the target anomaly score; Determine the target anomaly level corresponding to the target anomaly score; Determine the target alarm information corresponding to the target anomaly level.

6. A mailbox alarm system, characterized in that, An application is made in a mailbox alarm device, which includes a six-axis sensor and a communication module. The mailbox alarm device is installed inside the target mailbox. The system includes: an acquisition unit, an anomaly detection unit, and an alarm unit, wherein: The acquisition unit is used to acquire the internal information of the first mailbox of the target mailbox; and to detect the target motion data of the mailbox door of the target mailbox through the six-axis sensor; The anomaly detection unit is used to determine the target detection result based on the target motion data; the target detection result includes one of the following: the mailbox door is open, or the mailbox door is not open; The acquisition unit is further configured to acquire internal information of the second mailbox of the target mailbox when the target detection result includes that the mailbox door is open; The alarm unit is used to determine target alarm information based on the internal information of the first mailbox and the internal information of the second mailbox; and to send the target alarm information to the administrator through the communication module to ensure mailbox security. The target motion data includes three linear acceleration data points and three angular velocity data points, with each linear acceleration data point corresponding to one angular velocity data point. In determining the target detection result based on the target motion data, the anomaly detection unit is specifically used for: Determine the maximum linear acceleration corresponding to the three linear acceleration data points, and the maximum angular velocity corresponding to the three angular velocity data points; When the maximum linear acceleration is greater than a first preset linear acceleration, and / or the maximum angular velocity is greater than a first preset angular velocity, the target detection result is determined to include the mailbox door being open; When the maximum linear acceleration is not greater than the first preset linear acceleration and the maximum angular velocity is not greater than the first preset angular velocity, the linear acceleration data corresponding to the maximum linear acceleration among the three linear acceleration data is determined to obtain the first linear acceleration data; the angular velocity data corresponding to the first linear acceleration data is determined to obtain the first angular velocity data; the target detection result is determined based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data. Wherein, the first linear acceleration data includes multiple linear accelerations, the multiple linear accelerations corresponding to multiple first sampling times; the first angular velocity data includes multiple angular velocities, the multiple angular velocities corresponding to multiple second sampling times; in determining the target detection result based on the maximum linear acceleration, the first linear acceleration data, and the first angular velocity data, the anomaly detection unit is specifically used for: When the maximum linear acceleration is greater than the second preset linear acceleration, a first acceleration line is obtained by fitting the plurality of linear accelerations and the plurality of first sampling times; the horizontal axis of the first acceleration line is time, and the vertical axis is linear acceleration; the second preset linear acceleration is less than the first preset linear acceleration. A first angular velocity line is obtained by fitting the multiple angular velocities and the multiple second sampling times; the horizontal axis of the first angular velocity line is time, and the vertical axis is angular velocity. The target detection result is determined based on the first acceleration line and the first angular velocity line. When the maximum linear acceleration is not greater than the second preset linear acceleration, the target detection result is determined to include the mailbox door not being opened.

7. An electronic device, characterized in that, include: Processor, memory, communication interface, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Sensor assembly for tank cars

    US20070120665A1

  • Intrusion detection system and intrusion detection method for door or window

    WO2021219747A1