Control method and device for preventing pet from invading vehicle, electronic equipment and vehicle

By installing cameras and intrusion behavior discrimination models on vehicles to identify and alarm pets to drive them away, the problem of pets intruding on vehicles is solved and the safety and cleanliness of vehicles are guaranteed.

CN118665336APending Publication Date: 2024-09-20GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410833652.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Pets intrude on stationary vehicles, causing vehicle damage. It is difficult to effectively prevent and timely solve this problem with existing technology.

Method used

When the vehicle is parked, the surrounding image information is collected through the camera, and the pre-trained intrusion behavior discrimination model is used to identify pet behavior. When intrusion behavior is detected, an alarm prompt is provided, including speakers, lights, and displays, to drive away pets.

Benefits of technology

It effectively prevents pets from further intruding on vehicles, ensures the cleanliness and safety of vehicles, promptly warns pets and their owners, and improves the effect of driving away pets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118665336A
    Figure CN118665336A
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, and provides a control method and device for preventing a pet from invading a vehicle, electronic equipment and the vehicle. The method comprises the steps that when a vehicle is parked, first image information around a vehicle body is collected; performing pet behavior discrimination processing on the first image information by using an intruding behavior discrimination model to obtain a first behavior discrimination result, and performing training processing on a network model by using an image sample containing a pet intruding image in advance to obtain the intruding behavior discrimination model capable of identifying pet intruding behaviors; and in response to the first behavior judgment result that the pet infestation behavior exists, controlling the vehicle to give an alarm prompt. The existence of the pet infestation behavior is determined after identification and determination of the infestation behavior determination model, the vehicle is controlled to give an alarm prompt, further infestation and damage of the pet to the vehicle are avoided, the purpose of driving the pet is achieved through the alarm prompt, the pet can leave the vehicle, and the cleanliness and safety of the vehicle are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a control method, device, electronic device and vehicle for preventing pets from disturbing a vehicle. Background Art

[0002] Some pets (eg, cats, dogs) prefer to intrude on stationary objects (eg, urinate, scratch, etc.). If the stationary object is a vehicle, the intrusion of the pet is likely to cause damage to the vehicle.

[0003] Therefore, how to prevent pets from disturbing vehicles has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a control method, device, electronic device and vehicle for preventing pets from disturbing vehicles, so as to solve the technical problem that pets disturb vehicles and easily cause damage to vehicles.

[0005] Based on the above objectives, the present application provides a control method for preventing pets from disturbing a vehicle, comprising:

[0006] When the vehicle is parked, collecting first image information around the vehicle body;

[0007] Using an intrusion behavior discrimination model, the first image information is processed for pet behavior discrimination to obtain a first behavior discrimination result, wherein the network model is trained in advance using image samples containing pet intrusion images to obtain the intrusion behavior discrimination model capable of identifying pet intrusion behavior;

[0008] In response to the first behavior determination result being that pet intrusion behavior exists, the vehicle is controlled to issue an alarm prompt.

[0009] Based on the same inventive concept, the present application also provides a control device for preventing pets from disturbing a vehicle, comprising:

[0010] An image acquisition module is configured to acquire first image information around the vehicle body when the vehicle is parked;

[0011] a behavior discrimination module configured to use an intrusion behavior discrimination model to perform pet behavior discrimination processing on the first image information to obtain a first behavior discrimination result, wherein the intrusion behavior discrimination model capable of identifying pet intrusion behavior is obtained by pre-training a network model using image samples containing pet intrusion images;

[0012] The intrusion warning module is configured to control the vehicle to issue an alarm prompt in response to the first behavior judgment result being that pet intrusion behavior exists.

[0013] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0014] Based on the same inventive concept, the present application also provides a vehicle, comprising the device as described above or the electronic device as described above.

[0015] From the above, it can be seen that the control method, device, electronic device and vehicle for preventing pets from disturbing vehicles provided by the present application, when the vehicle is parked and in a stationary state, the vehicle will keep the image acquisition function started, so that after determining that the first image information around the vehicle body is collected, the first image information is input into the disturbance behavior discrimination model, and the first image information is processed for pet behavior discrimination using the disturbance behavior discrimination model. If it is determined that pet disturbance behavior exists, in order to avoid further disturbance and damage to the vehicle by the pet, the vehicle will be controlled to alarm. In this way, the purpose of driving away the pet is achieved through the alarm prompt, so that the pet can leave the vehicle, thereby ensuring the cleanliness and safety of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A flow chart of a control method for preventing pets from disturbing a vehicle according to an embodiment of the present application;

[0018] Figure 2 A flowchart of a control method for preventing pets from disturbing a vehicle according to another embodiment of the present application;

[0019] Figure 3 This is a structural block diagram of a control device for preventing pets from disturbing a vehicle according to an embodiment of the present application;

[0020] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0022] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0023] Some pets (e.g., cats or dogs) may disturb stationary vehicles, such as dogs urinating on the vehicle body or wheels, which not only corrodes the vehicle paint and affects the appearance, but may also cause unhappiness between the vehicle owner and the pet owner.

[0024] Generally, when pets invade vehicles, physical isolation or post-incident cleaning measures are used. However, this method is only a post-incident remedy for pets invading vehicles and cannot effectively prevent pets from invading vehicles in a timely manner.

[0025] In view of the above-described situation, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0026] The control method for preventing pets from disturbing a vehicle is proposed in the embodiments of the present application, such as Figure 1 As shown, the method includes:

[0027] Step 101: When a vehicle is parked, first image information around the vehicle body is collected.

[0028] In specific implementation, the pet-prevention mode of the vehicle is activated in advance, so that after the vehicle is parked, the external camera will remain activated regardless of whether the vehicle is turned off. In addition, multiple external cameras can be set up around the vehicle to collect images around the vehicle, thereby achieving comprehensive monitoring of the vehicle body without blind spots.

[0029] The vehicle exterior camera will collect corresponding image information around the vehicle in real time, and analyze the collected image information in real time to determine that a pet is included, and send the collected first image information containing the pet to the vehicle control system. The vehicle control system pre-stores an intrusion behavior discrimination model that can identify pet intrusion behavior.

[0030] Step 102, using the intrusion behavior discrimination model, performs pet behavior discrimination processing on the first image information to obtain a first behavior discrimination result, wherein the network model is trained in advance using image samples containing pet intrusion images to obtain the intrusion behavior discrimination model that can identify pet intrusion behavior.

[0031] In specific implementation, the first image information is preprocessed, the entity image (e.g., pet image and vehicle body image) in the first image information is extracted, and the edge of the extracted image is smoothed to remove the burrs. The processed image is then converted into a target format so that the image in the target format can correspond to the input port of the intrusion behavior discrimination model, ensuring that the image in the target format can be smoothly input into the intrusion behavior discrimination model.

[0032] The intrusion behavior discrimination model includes an input layer, multiple hidden layers and an output layer. After the image in the target format is input into the input layer, the input layer is used to send the image in the target format to each hidden layer in sequence. In this way, each hidden layer will perform behavioral analysis on the received data. Among them, each hidden layer can analyze a corresponding intrusion behavior. In this way, each hidden layer will send the analysis result to the next hidden layer for further analysis. After the analysis of the last hidden layer is completed, all the analysis results will be sent to the output layer, and the output layer will be used for integration to obtain the first behavior discrimination result. The first behavior discrimination result can be the presence of pet intrusion behavior or the absence of pet intrusion behavior.

[0033] Among them, the harassing behaviors include at least one of the following: urinating, scratching, biting, and lying on the car body.

[0034] Step 103: In response to the first behavior determination result being that pet intrusion behavior exists, controlling the vehicle to issue an alarm prompt.

[0035] In specific implementation, if the first behavior judgment result is that there is pet intrusion behavior, in order to prevent the pet from continuing to intrude the vehicle, it is necessary to control the vehicle's alarm module to issue an alarm prompt. The corresponding alarm module includes at least one of the following: an external speaker, a car light, and a display screen.

[0036] In addition, the intrusion behavior discrimination model can also add a hidden layer to analyze the degree of pet intrusion behavior, and send the degree of pet intrusion behavior and all analysis results to the output layer, which are integrated using the output layer to obtain the first behavior discrimination result including the degree of pet intrusion behavior.

[0037] In this way, the corresponding alarm prompt method can be configured according to the degree of pet intrusion behavior in the first behavior judgment result. The higher the degree of pet intrusion behavior, the more types of corresponding alarm prompt methods.

[0038] For example, low-level intrusion: choose one of the external speakers, lights and display screens for alarm prompts;

[0039] Moderate intrusion: Select two options from external speakers, lights, and display screens for alarm prompts;

[0040] Highly intrusive: External speakers, lights and display screens all sound an alarm.

[0041] Through the above scheme, when the vehicle is parked and in a stationary state, the vehicle will keep the image acquisition function started. In this way, after collecting the first image information around the vehicle body, the first image information is input into the intrusion behavior discrimination model, and the intrusion behavior discrimination model is used to perform pet behavior discrimination processing on the first image information. If it is determined that pet intrusion behavior exists, in order to avoid further intrusion and damage to the vehicle by the pet, the vehicle alarm prompt will be controlled. In this way, the purpose of driving away the pet is achieved through the alarm prompt, so that the pet can leave the vehicle, thereby ensuring the cleanliness and safety of the vehicle.

[0042] In some embodiments, step 103 includes:

[0043] Step 1031, in response to the first behavior determination result being that pet intrusion behavior exists, determine whether there is an owner of the pet based on the first image information to obtain a determination result.

[0044] In specific implementation, if the first behavior determination result is that there is pet harassment behavior, it is necessary to further determine whether the pet's owner is nearby. Specifically, the first image information around the vehicle body can be obtained again through the external camera, especially the first image information near the pet.

[0045] Specifically, the position of the pet is first determined, and a camera closest to the pet is controlled to collect first image information near the pet as the first image information around the vehicle body.

[0046] The corresponding first image information is: a picture or multiple pictures or a group of video frames.

[0047] The corresponding determination results include: whether the pet owner exists or not. It can be determined first whether there is a pet owner in the environment image. If not, the acquisition range of the corresponding camera can be expanded, and then a new environment image can be acquired to determine whether there is the pet owner in the new environment image. If yes, the determination result is directly determined to be that there is a pet owner, otherwise, the determination result is directly determined to be that there is no pet owner.

[0048] Step 1032, in response to determining that the determination result is that there is an owner of the pet, controlling the vehicle to issue a pet alarm prompt for the pet, and an owner alarm prompt for the pet's owner.

[0049] In specific implementation, if the judgment result is that there is a pet owner, it is determined that the pet's owner is nearby, so that both the pet and the owner can be reminded (that is, a pet alarm reminder for the pet, and an owner alarm reminder for the pet's owner are issued). While warning the pet to leave as soon as possible, the owner can also be warned, avoiding the situation where only a warning reminder for the pet cannot achieve the purpose of driving away the pet.

[0050] Alternatively, in step 1033, in response to determining that the determination result is that the owner of the pet does not exist, the vehicle is controlled to issue a pet alarm prompt for the pet.

[0051] In specific implementation, if the determination result is that the pet's owner does not exist, it is determined that the pet may not have an owner or the pet's owner is not nearby, so the pet is intelligently prompted (i.e., a pet alarm prompt is issued for the pet).

[0052] The pet alarm prompt can be provided in a prompting manner that the pet can find, thereby achieving the purpose of quickly alerting the pet. Wherein, the pet alarm prompt includes: light prompt and / or whistle prompt.

[0053] The owner alarm prompt can be provided in a manner that can be detected by a person, thereby warning the owner to take the pet away from the vehicle. The owner alarm prompt includes at least one of the following: a voice prompt with set voice content, a display prompt with set text, and a video prompt with set video content.

[0054] Through the above scheme, because pets generally have owners, for pets with owners, reminders can be given to both the pets and their owners, which can more effectively prevent pets from disturbing vehicles.

[0055] In some embodiments, determining whether there is an owner of the pet according to the first image information in step 1031 to obtain a determination result includes:

[0056] Step A: determining whether the pet in the first image information has a pulling object.

[0057] In a specific implementation, the traction object includes: a chain or a rope, etc. A large number of pet images containing various traction objects are used in advance to train the convolutional neural network model, and an image recognition model that can accurately identify the traction object is obtained. Specifically, the image recognition model can be used to further identify and determine the first image information to determine whether there is a traction object on the pet.

[0058] In this way, the image recognition model can be used to determine whether the pet in the first image information has a traction object. Then, the following is an analysis process of whether the pet's owner exists for the cases where there is a traction object and there is no traction object. The specific analysis process is as follows:

[0059] Step B1, in response to the existence of a traction object, after determining that there is a human image at the end of the traction object according to the first image information, a determination result is obtained that there is an owner of the pet.

[0060] In specific implementation, after determining that there is a traction object, the position of the traction object in the first image information is determined, and then the ends of the traction object are determined according to the position of the traction object, which are generally divided into two ends, one end traction pet, and the other end may be the owner of the pet. If there is a human image at the other end of the traction object in the first image information, then the determination result can be obtained that the owner of the pet exists.

[0061] In this way, subsequent reminders can be given to both the pet and the pet's owner (i.e., a pet alarm reminder is issued for the pet, and an owner alarm reminder is issued for the pet's owner).

[0062] Alternatively, in step B2, in response to the existence of a traction object, after determining according to the first image information that there is no human image at the end of the traction object, a determination result is obtained that the owner of the pet does not exist.

[0063] In specific implementation, after determining that there is a traction object, the position of the traction object in the first image information is determined, and then the ends of the traction object are determined according to the position of the traction object, which are generally divided into two ends, one end traction pet, and the other end may be the owner of the pet. If there is no human image at the other end of the traction object in the first image information, then the determination result can be obtained that the owner of the pet does not exist.

[0064] In this way, subsequent prompts will only be given for pets (i.e., pet alarm prompts will be issued for pets).

[0065] Alternatively, in step B3, in response to the absence of a pulling object, it is determined based on the first image information that there is a human image staring at the pet for a time period greater than or equal to a threshold, and a determination result is that there is an owner of the pet.

[0066] In a specific implementation, after determining that there is no pulling object, the human image in the first image information is determined. If there are one or more human images, the human eye information in the one or more human images is determined, and the gaze position of the human image is determined based on the human eye information. If it is determined that the corresponding gaze position coincides with the pet position, the gaze duration of the human image on the pet is obtained, because if it is the owner of the pet, the owner will always be watching the pet. If the gaze duration of the human image on the pet is greater than or equal to the duration threshold, then the judgment result can be obtained that the owner of the pet exists.

[0067] In this way, subsequent reminders can be given to both the pet and the pet's owner (i.e., a pet alarm reminder is issued for the pet, and an owner alarm reminder is issued for the pet's owner).

[0068] Alternatively, in step B4, in response to the absence of a pulling object, it is determined based on the first image information that there is no human image staring at the pet for a time period greater than or equal to a threshold, and the determination result is that there is no owner of the pet.

[0069] In specific implementation, after determining that there is no traction object, the human image in the first image information is determined. If there is no human image, the judgment result is directly obtained that the owner of the pet does not exist. If there is one or more human images, the human eye information in the one or more human images is determined, and the gaze position of the human image is determined based on the human eye information. If it is determined that the corresponding gaze position is different from the pet position, the judgment result is directly obtained that the owner of the pet does not exist. If the corresponding gaze position coincides with the pet position, the gaze duration of the human image on the pet is obtained, because if it is the owner of the pet, the owner will always be watching the pet. If the gaze duration of the human image on the pet is less than the duration threshold, then the judgment result can be obtained that the owner of the pet does not exist.

[0070] In this way, subsequent reminders can be given only for pets (i.e., pet alarm reminders are issued for pets).

[0071] Through the above scheme, a variety of ways to determine whether the pet owner exists are given, so that it is possible to more accurately determine whether the owner of the pet that intrudes on the vehicle is nearby, and then to issue timely and targeted alarm prompts, so that the alarm prompt effect is effectively improved.

[0072] In some embodiments, after step 103, the method further includes:

[0073] Step 104, obtaining second image information around the vehicle body, and using the intrusion behavior discrimination model to perform pet behavior discrimination processing on the second image information to obtain a second behavior discrimination result.

[0074] In specific implementation, during the warning process after the alarm prompt is issued, the second image information will be collected in real time through the external camera of the vehicle, and the second image information will be continuously analyzed using the intrusion behavior discrimination model. The discrimination process of the second image information in the intrusion behavior discrimination model is the same as the above-mentioned discrimination process for the first image information.

[0075] The details are as follows:

[0076] First, the second image information is preprocessed, the entity image (for example, the pet image and the vehicle body image) in the second image information is extracted, and the edge of the extracted image is smoothed to remove the burrs. Then the processed image is converted into a target format so that the image in the target format can correspond to the input port of the intrusion behavior discrimination model, ensuring that the image in the target format can be smoothly input into the intrusion behavior discrimination model.

[0077] After the target format image is input into the input layer, the input layer is used to send the target format image to each hidden layer in turn. In this way, each hidden layer will perform behavioral analysis on the received data. Among them, each hidden layer can analyze a corresponding intrusion behavior. In this way, each hidden layer will send the analysis result to the next hidden layer for further analysis. After the analysis of the last hidden layer is completed, all the analysis results will be sent to the output layer, and the output layer will be used to integrate them to obtain the second behavior discrimination result. The second behavior discrimination result can be the presence of pet intrusion behavior or the absence of pet intrusion behavior.

[0078] Step 105, in response to determining within a predetermined time period after the alarm prompt that the second behavior determination result is that the pet stops disturbing the vehicle, the alarm prompt of the vehicle is controlled to end.

[0079] In specific implementation, if within the predetermined time period, the second behavior judgment result is determined to be that the pet has stopped harassing the vehicle, it is proved that the alarm prompt is effective and the pet has stopped harassing the vehicle. When it is determined that the pet has stopped harassing the vehicle, the vehicle's stop alarm prompt is directly controlled.

[0080] Alternatively, in step 106, in response to determining that the second behavior identification result is the presence of pet intrusion behavior after a predetermined period of time after the alarm prompt, the vehicle is controlled to issue a second alarm prompt.

[0081] In specific implementation, if after the preset alarm prompt period, the second behavior judgment result is still the presence of pet intrusion, and it is determined that the current alarm prompt may not be effective for the pet, it is necessary to activate the vehicle's secondary alarm prompt to further warn of pet intrusion through the secondary alarm prompt.

[0082] The above scheme can avoid the situation where the alarm prompt fails to drive away the pet. The secondary alarm prompt can further drive away the pet, thereby allowing the pet to leave quickly.

[0083] In some embodiments, controlling the vehicle to issue a secondary alarm in step 106 includes:

[0084] Step 1061 , identifying the driving space around the vehicle, and comparing the driving space with a predetermined spatial range.

[0085] In specific implementation, after determining that the above alarm prompt is invalid for pets, the driving space around the vehicle will be identified, mainly the front and rear driving space of the vehicle. If the driving space is compared with the predetermined space range, the corresponding comparison result is that the driving space meets the requirements of the predetermined space range, or the driving space does not meet the requirements of the predetermined space range.

[0086] For example, the driving space is determined as the drivable distance in front of or behind the vehicle. If the drivable distance is less than 60 cm (i.e., the predetermined space range is 60 cm and above), it proves that the driving space does not meet the requirements of the predetermined space range; if the drivable distance is ≥ 60 cm, it proves that the driving space meets the requirements of the predetermined space range.

[0087] Step 1062, in response to the driving space being greater than or equal to the predetermined spatial range, controlling the vehicle to drive back and forth in the driving space.

[0088] Alternatively, in step 1063, in response to the driving space being smaller than the predetermined space range, the vehicle is controlled to vibrate to give a prompt. The secondary alarm prompt includes: a back-and-forth driving prompt or a vibration prompt in the driving space.

[0089] In specific implementation, because pets are generally afraid of large moving objects, if ordinary alarm prompts are ineffective for pets, the vehicle can be moved to give a secondary alarm prompt to the pet.

[0090] If the driving space is ≥ the predetermined space range, it proves that the vehicle can travel back and forth, and the vehicle can warn the pet by driving back and forth with a larger amplitude, thereby achieving the purpose of driving the pet away.

[0091] If the driving space is less than the predetermined space range, it proves that the vehicle cannot travel back and forth. In order to enable the vehicle to move to alert the pet, a vibration prompt with a smaller amplitude can be used to warn the pet, which can also achieve the purpose of driving away the pet.

[0092] In addition, if the driving space is ≥ the predetermined space range, the pet can be warned by means of back-and-forth driving prompts and vibration prompts, which will have a better warning effect.

[0093] Through the above scheme, if ordinary alarm prompts cannot drive away pets, back and forth driving prompts and / or vibration prompts can be used to make the vehicle move, so that the pets are afraid of the huge moving vehicle, so that the pets leave as soon as possible and stop harassing the vehicle.

[0094] In some embodiments, after step 103, the method further includes:

[0095] Step 107, obtaining alarm prompt data and / or pet intrusion results.

[0096] Step 108: Send the alarm prompt data and / or the pet intrusion result to a user terminal connected to the vehicle for feedback prompt.

[0097] In specific implementation, after the alarm prompt, the alarm prompt data and the corresponding pet intrusion result (for example, the first image information with pet intrusion) will be sent to the user terminal, so that the user can be informed in time that the vehicle is intruded by the pet.

[0098] In addition, if after the alarm prompt, it is determined according to the process of the above steps 104 and 105 that the pet has stopped harassing the vehicle, data on the cessation of harassment (for example, image information of the pet stopping harassing the vehicle) will also be obtained and sent to the user terminal, so that the user can promptly know that the vehicle has successfully driven away the pet.

[0099] Through the above solution, the situation of pet intrusion into the vehicle can be notified to the user terminal, so that the user can be informed of the situation of pet intrusion into the vehicle in a timely manner, which is convenient for the user.

[0100] In some embodiments, the training process of the intrusion behavior discrimination model includes:

[0101] Step (1) is to obtain a first predetermined number of pet intrusion images and a second predetermined number of pet normal images, and to perform behavior marking on the pet intrusion images and the pet normal images respectively.

[0102] During specific implementation, the first predetermined quantity and the second predetermined quantity can be selected according to actual needs, for example, the first predetermined quantity is 10,000 sheets, and the second predetermined quantity is 10,000 sheets.

[0103] Each pet intrusion image is labeled with its corresponding pet type and intrusion behavior type. Each pet normal image is labeled with its corresponding pet type and normal behavior label.

[0104] Step (2), taking the pet intrusion image after behavior marking and the pet normal image after behavior marking as image samples.

[0105] In specific implementation, all behavior-marked pet intrusion images and behavior-marked pet normal images are scattered and integrated to obtain image samples, so that the network model can be trained using the image samples.

[0106] Step (3), inputting the image sample into the network model for training processing and outputting the pet behavior result of the image sample.

[0107] In specific implementation, the network model is a pre-built neural network model, including an input layer, multiple hidden layers and an output layer, wherein the number of hidden layers is equal to the number of behavior types corresponding to the pet, so that each hidden layer can analyze and process one type of behavior.

[0108] After the image sample data is input into the network model, it is sent to the hidden layer through the input layer. After each hidden layer performs behavioral analysis on the image sample data, the analysis result is sent to the next hidden layer, and so on. After the last hidden layer is analyzed and processed, all the analysis results are sent to the output layer. The output layer is used to integrate these analysis results. The output pet behavior results include: the type of pet and the corresponding behavior analysis results.

[0109] Step (4), determining a loss value according to the difference between the pet behavior result and the behavior mark of the image sample, and adjusting the internal parameters of the network model based on the loss value.

[0110] In specific implementation, the pet behavior results output by the output layer of the network model can be compared with the behavior marks of the image sample. If the loss values ​​determined for the same (the loss value can be calculated using the cross entropy loss function) are relatively small, the content parameters of the network model can be adjusted to a smaller extent, or even without adjustment. If they are different, the loss value can be determined based on the difference between the pet behavior results and the behavior marks of the image sample. In this case, the loss value is larger, and the content parameters of the network model can be adjusted to a larger extent.

[0111] Step (5), in response to determining that all image samples have been trained, the adjusted network model is used as the intrusion behavior discrimination model.

[0112] In specific implementation, after all image samples are trained, pet intrusion images and normal pet images containing behavioral markers can be collected as test samples to test the final adjusted network model. After the test, the test results are compared with the behavioral markers corresponding to the test samples to determine the accuracy of the test.

[0113] If the accuracy is ≥ a set threshold (eg, 98% or 99%), it proves that the final adjusted network model can be used as an intrusion behavior discrimination model.

[0114] If the accuracy rate is less than the set threshold, it proves that the finally adjusted network model still needs to be trained. Then, the first predetermined number of pet intrusion images and the second predetermined amount of normal pet images are collected again and behavior marked, and new image samples are obtained to continue training the finally adjusted network model and continue testing with test samples until the accuracy rate is ≥ the set threshold. Then, the finally adjusted network model is used as an intrusion behavior discrimination model.

[0115] Through the above scheme, a nuisance behavior discrimination model that can accurately identify and determine the pet behavior in the image can be obtained, so that the accuracy of the nuisance behavior discrimination model can be effectively improved.

[0116] The following is a specific example of a method for preventing pets from disturbing a vehicle. The execution process is as follows:

[0117] 1. Turn on the pet nuisance prevention function in the car computer master control.

[0118] 2. When the pet intrusion prevention function is turned on, the external camera and external speakers on the car computer will remain turned on.

[0119] 3. Execution strategy process, such as Figure 2 As shown:

[0120] S1. Obtain vehicle status information and determine that the current vehicle status information is a parking state.

[0121] S2. Acquire images around the vehicle body (i.e., first image information), wherein the image is captured in real time by high-sensitivity, wide-angle camera lights installed around the vehicle to fully cover the surrounding environment of the vehicle body.

[0122] S3. Analyze and process the image using an intrusion behavior discrimination model to determine whether there is pet intrusion behavior in the image.

[0123] Among them, the nuisance behavior discrimination model analyzes the image in real time to accurately identify whether there is a pet dog (or other pet) in the image, and whether the pet dog is about to urinate on the car body or wheels (i.e. pet nuisance behavior).

[0124] The harassment behavior discrimination model is obtained by training a network model using a large number of images of dogs of different breeds, sizes and postures and their specific behavior patterns (harassment behavior or normal behavior) as image samples.

[0125] S4. Determine whether the pet owner is nearby based on the image. If yes, proceed to step S5; otherwise, proceed to step S6.

[0126] S5. Prompt a pet alarm to the pet, and prompt an owner alarm to the owner.

[0127] Among them, pet alarm prompts include: flashing lights and honking horns; owner alarm prompts include: voice prompts, for example, using preset polite language to remind the owner to pay attention to pet behavior.

[0128] S6. Provide pet alarm reminder for pets.

[0129] S7, determine whether the pet stops the harassing behavior, if yes, go to step S10, otherwise go to step S8.

[0130] S8. Acquire the driving space in front and behind the vehicle body, and determine that the driving space meets a predetermined space range (for example, the front / rear distance is greater than or equal to 60 cm).

[0131] S9, controlling the vehicle to drive back and forth in the driving space.

[0132] S10: Integrate the alarm prompt data and / or pet intrusion results, and send them to the user terminal connected to the vehicle for feedback prompt.

[0133] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0134] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0135] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a control device for preventing pets from disturbing vehicles.

[0136] refer to Figure 3 , the device comprises:

[0137] The image acquisition module 201 is configured to acquire first image information around the vehicle body when the vehicle is parked;

[0138] The behavior discrimination module 202 is configured to use an intrusion behavior discrimination model to perform pet behavior discrimination processing on the first image information to obtain a first behavior discrimination result, wherein the intrusion behavior discrimination model capable of identifying pet intrusion behavior is obtained by pre-training a network model using image samples containing pet intrusion images;

[0139] The intrusion prompt module 203 is configured to control the vehicle to issue an alarm prompt in response to the first behavior determination result being that a pet intrusion behavior exists.

[0140] In some embodiments, the intrusion warning module 203 includes:

[0141] a pet owner determination unit configured to determine whether there is an owner of the pet according to the first image information in response to the first behavior determination result being that the pet intrusion behavior exists, and obtain a determination result;

[0142] The alarm prompt unit is configured to control the vehicle to issue a pet alarm prompt for the pet and an owner alarm prompt for the pet owner in response to determining that the determination result is that the owner of the pet exists; or, in response to determining that the determination result is that the owner of the pet does not exist, control the vehicle to issue a pet alarm prompt for the pet.

[0143] In some embodiments, the pet owner determination unit is specifically configured to:

[0144] Determine whether the pet in the first image information is pulling an object;

[0145] In response to the presence of the traction object, after determining that there is a human image at the end of the traction object according to the first image information, a determination result is obtained that the owner of the pet exists; or,

[0146] In response to the presence of the pulling object, after determining according to the first image information that there is no human image at the end of the pulling object, a determination result is obtained that the owner of the pet does not exist; or,

[0147] In response to the absence of the pulling object, determining, based on the first image information, that there is a human image that looks at the pet for a time period greater than or equal to a threshold, and obtaining a determination result that there is an owner of the pet; or

[0148] In response to the absence of the pulling object, it is determined based on the first image information that there is no human image staring at the pet for a time period greater than or equal to a threshold, and the determination result is that there is no owner of the pet.

[0149] In some embodiments, the apparatus further comprises:

[0150] The stop harassment determination module is configured to obtain second image information around the vehicle body after the control vehicle issues an alarm prompt, and use the harassment behavior discrimination model to perform pet behavior discrimination processing on the second image information to obtain a second behavior discrimination result;

[0151] In response to determining that the second behavior determination result is that the pet has stopped disturbing the vehicle within a predetermined time after the alarm prompt, the alarm prompt of the vehicle is controlled to end; or,

[0152] In response to determining, after a predetermined period of time after the alarm prompt, that the second behavior determination result is the presence of pet intrusion behavior, the vehicle is controlled to issue a secondary alarm prompt.

[0153] In some embodiments, stopping the intrusion determination module is specifically configured to:

[0154] Identifying a driving space around the vehicle and comparing the driving space with a predetermined spatial range;

[0155] In response to the driving space being greater than or equal to the predetermined spatial range, controlling the vehicle to drive back and forth in the driving space; or,

[0156] In response to the driving space being smaller than the predetermined space range, controlling the vehicle to vibrate to give a prompt;

[0157] Wherein, the secondary alarm prompt includes: a back and forth driving prompt or a vibration prompt in the driving space.

[0158] In some embodiments, the apparatus further comprises an intrusion feedback module configured to:

[0159] Obtain alarm alert data and / or pet infestation results;

[0160] The alarm prompt data and / or the pet intrusion result are sent to a user terminal connected to the vehicle for feedback prompt.

[0161] In some embodiments, the apparatus further comprises: a model training module configured to:

[0162] Acquire a first predetermined number of pet intrusion images and a second predetermined data amount of pet normal images, and perform behavior marking on the pet intrusion images and the pet normal images respectively;

[0163] The pet intrusion images after behavior marking and the pet normal images after behavior marking are used as image samples;

[0164] Inputting the image sample into a network model for training and processing to output the pet behavior result of the image sample;

[0165] Determining a loss value according to a difference between the pet behavior result and the behavior mark of the image sample, and adjusting internal parameters of the network model based on the loss value;

[0166] In response to determining that all image samples have been trained, the adjusted network model is used as the intrusion behavior discrimination model.

[0167] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0168] The device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0169] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the above embodiments when executing the program.

[0170] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0171] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0172] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0173] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0174] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0175] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0176] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0177] The electronic device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0178] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in any of the above embodiments.

[0179] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0180] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0181] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.

[0182] Based on the same inventive concept, the present application also provides a vehicle, including the device described in the above embodiment or the electronic device described in the above embodiment. The beneficial effects of the embodiments with the corresponding device or electronic device are not described in detail here.

[0183] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0184] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.

[0185] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0186] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.

[0187] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0188] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0189] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0190] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A control method for preventing pets from disturbing a vehicle, characterized in that: include: When the vehicle is parked, collecting first image information around the vehicle body; Using an intrusion behavior discrimination model, the first image information is processed for pet behavior discrimination to obtain a first behavior discrimination result, wherein the network model is trained in advance using image samples containing pet intrusion images to obtain the intrusion behavior discrimination model capable of identifying pet intrusion behavior; In response to the first behavior determination result being that pet intrusion behavior exists, the vehicle is controlled to issue an alarm prompt.

2. The method according to claim 1, characterized in that: In response to the first behavior determination result being that the pet intrusion behavior exists, controlling the vehicle to issue an alarm prompt includes: In response to the first behavior determination result being that pet intrusion behavior exists, determining whether there is an owner of the pet according to the first image information to obtain a determination result; In response to determining that the determination result is that the owner of the pet exists, controlling the vehicle to issue a pet alarm prompt for the pet and an owner alarm prompt for the pet owner; or, In response to determining that the determination result is that the owner of the pet does not exist, the vehicle is controlled to issue a pet alarm prompt for the pet.

3. The method according to claim 2, characterized in that The determining whether there is an owner of the pet according to the first image information to obtain a determination result includes: Determine whether the pet in the first image information is pulling an object; In response to the presence of the traction object, after determining that there is a human image at the end of the traction object according to the first image information, a determination result is obtained that the owner of the pet exists; or, In response to the presence of the pulling object, after determining according to the first image information that there is no human image at the end of the pulling object, a determination result is obtained that the owner of the pet does not exist; or, In response to the absence of the pulling object, determining, based on the first image information, that there is a human image that looks at the pet for a time period greater than or equal to a threshold, and obtaining a determination result that there is an owner of the pet; or In response to the absence of the pulling object, it is determined based on the first image information that there is no human image staring at the pet for a time period greater than or equal to a threshold, and the determination result is that there is no owner of the pet.

4. The method according to claim 1, characterized in that: After the vehicle is controlled to give an alarm, the method further includes: Acquire second image information around the vehicle body, and use the intrusion behavior discrimination model to perform pet behavior discrimination processing on the second image information to obtain a second behavior discrimination result; In response to determining that the second behavior determination result is that the pet has stopped disturbing the vehicle within a predetermined time after the alarm prompt, the alarm prompt of the vehicle is controlled to end; or, In response to determining, after a predetermined period of time after the alarm prompt, that the second behavior determination result is the presence of pet intrusion behavior, the vehicle is controlled to issue a secondary alarm prompt.

5. The method according to claim 4, characterized in that The controlling the vehicle to give a secondary alarm prompt comprises: Identifying a driving space around the vehicle and comparing the driving space with a predetermined spatial range; In response to the driving space being greater than or equal to the predetermined spatial range, controlling the vehicle to drive back and forth in the driving space; or, In response to the driving space being smaller than the predetermined space range, controlling the vehicle to vibrate to give a prompt; Wherein, the secondary alarm prompt includes: a back and forth driving prompt or a vibration prompt in the driving space.

6. The method according to claim 1, characterized in that After the vehicle is controlled to give an alarm prompt, the method further includes: Obtain alarm alert data and / or pet infestation results; The alarm prompt data and / or the pet intrusion result are sent to a user terminal connected to the vehicle for feedback prompt.

7. The method according to claim 1, characterized in that The training process of the intrusion behavior discrimination model includes: Acquire a first predetermined number of pet intrusion images and a second predetermined data amount of pet normal images, and perform behavior marking on the pet intrusion images and the pet normal images respectively; The pet intrusion images after behavior marking and the pet normal images after behavior marking are used as image samples; Inputting the image sample into a network model for training and processing to output the pet behavior result of the image sample; Determining a loss value according to a difference between the pet behavior result and the behavior mark of the image sample, and adjusting internal parameters of the network model based on the loss value; In response to determining that all image samples have been trained, the adjusted network model is used as the intrusion behavior discrimination model.

8. A control device for preventing pets from disturbing a vehicle, characterized in that: include: An image acquisition module is configured to acquire first image information around the vehicle body when the vehicle is parked; a behavior discrimination module configured to use an intrusion behavior discrimination model to perform pet behavior discrimination processing on the first image information to obtain a first behavior discrimination result, wherein the intrusion behavior discrimination model capable of identifying pet intrusion behavior is obtained by pre-training a network model using image samples containing pet intrusion images; The intrusion warning module is configured to control the vehicle to issue an alarm prompt in response to the first behavior judgment result being that pet intrusion behavior exists.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A vehicle, characterized in that: Includes the device according to claim 8 or the electronic device according to claim 9.