Pet relationship graph updating method, device, equipment and computer readable storage medium
By filtering and associating pet nose print information and updating the pet relationship map, the problem of information isolation in the pet database is solved, and automatic tracing and management of pet relationships are achieved.
Patent Information
- Application Number
- CN202111632775.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In existing pet databases, each pet's information is stored separately, making it impossible to effectively trace the pet.
By obtaining pet nose print information and using the location and feature information corresponding to the pet nose print information, the pet relationship map is screened and updated, the association relationship between pets is established, and the automatic tracing of pet relationships is achieved.
It realizes the automatic update of pet relationship map, facilitates the tracing and management of pet relationships, and improves the accuracy and relevance of pet information.
Smart Images

Figure CN114332931B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method, apparatus, device, and computer-readable storage medium for updating a pet relationship map. Background Art
[0002] It is well known that different types of pets have different living habits.
[0003] It has been discovered that pet nose prints are similar to human fingerprints. As a result, various organizations have begun establishing pet databases for pet care and medical purposes. Existing pet databases contain relevant information about different pets, such as the pet's name, address, and owner contact information. However, these databases primarily record the pet's own information and cannot be used for pet tracing. Summary of the Invention
[0004] The present application provides a pet relationship map updating method, apparatus, device and computer-readable storage medium, aiming to solve the problem that the existing pet information database stores the information of each pet separately and cannot trace the pets.
[0005] In one aspect, the present application provides a method for updating a pet relationship graph, the method comprising:
[0006] Obtain the pet nose print information to be processed;
[0007] According to the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information;
[0008] determining target nose print information that matches the pet characteristic information from the candidate nose print information according to the pet characteristic information corresponding to the pet nose print information;
[0009] The preset pet relationship map is updated according to the association relationship between the pet nose print information and the target nose print information.
[0010] In some embodiments of the present application,
[0011] After obtaining the pet nose print information to be processed, the following steps are included:
[0012] If there is preset nose print information identical to the pet's nose print information in the preset pet relationship map, output the target nose print information corresponding to the preset nose print information;
[0013] If there is no preset nose print information identical to the pet nose print information in the preset pet relationship map, the step of screening the preset pet nose prints in the preset pet relationship map according to the pet position information corresponding to the pet nose print information to obtain the corresponding candidate nose print information is executed.
[0014] In some embodiments of the present application, the pet nose print information is filtered according to the pet location information corresponding to the pet nose print information to obtain candidate nose print information, including:
[0015] Obtaining pet location information corresponding to the pet nose print information, and obtaining pet location information associated with each preset pet nose print in a preset pet relationship map;
[0016] respectively calculating the distance between the pet location information corresponding to the pet nose print information and the pet location information associated with each of the preset pet nose prints;
[0017] The preset pet nose prints whose distance is less than the preset distance threshold are set as candidate nose print information.
[0018] In some embodiments of the present application, determining target nose print information that matches the pet feature information from the candidate nose print information based on the pet feature information corresponding to the pet nose print information includes:
[0019] Obtaining pet feature information corresponding to the pet nose print information, the pet feature information including: species feature, gender feature, and appearance feature;
[0020] Comparing the pet feature information corresponding to the pet nose print information with the pet features corresponding to each candidate nose print information to obtain a comprehensive similarity, wherein the comprehensive similarity is obtained by weighted calculation of the similarity of species feature, gender feature and appearance feature;
[0021] The candidate nose print information with a comprehensive similarity higher than a preset similarity threshold is set as the target nose print information for matching the pet feature information.
[0022] In some embodiments of the present application, updating the preset pet relationship map according to the association between the pet nose print information and the target nose print information includes:
[0023] Comparing the pet age corresponding to the pet nose print information with the pet age corresponding to the target nose print information;
[0024] If the pet age corresponding to the pet nose print information is greater than the pet age corresponding to the target nose print information, a parent node is added to the target nose print information and the parent node is associated with the pet nose print information to update the preset pet relationship map;
[0025] If the pet age corresponding to the pet nose print information is less than or equal to the pet age corresponding to the target nose print information, a child node is added to the target nose print information and the child node is associated with the pet nose print information to update the preset pet relationship map.
[0026] In some embodiments of the present application, after updating the preset pet relationship map based on the association between the pet nose print information and the target nose print information, the method includes:
[0027] Obtaining nose print information of the pet to be treated, and status information corresponding to the pet nose print information;
[0028] Query the preset pet relationship map to obtain the target nose print information associated with the pet's nose print information, as well as the historical diagnosis and treatment records corresponding to the target nose print information;
[0029] According to the status information corresponding to the pet's nose print information and the historical diagnosis and treatment records corresponding to the target nose print information, a pet medication recommendation plan is output.
[0030] In some embodiments of the present application, after updating the preset pet relationship map based on the association between the pet nose print information and the target nose print information, the method includes:
[0031] Receive a pet pairing request, and obtain pet nose print information associated with the pet pairing request, and pet feature information corresponding to the pet nose print information;
[0032] Querying a preset pet relationship map to obtain candidate nose print information that is unrelated to the pet's nose print information;
[0033] The pet feature information corresponding to the pet nose print information and the pet feature information corresponding to the candidate nose print information are fused to obtain a pet feature phenotype and output it.
[0034] On the other hand, the present application provides a pet relationship map updating device, the pet relationship map updating device comprising:
[0035] An acquisition module is used to obtain the pet nose print information to be processed;
[0036] a screening module, configured to screen the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information, to obtain candidate nose print information;
[0037] a determination module, configured to determine target nose print information that matches the pet characteristic information from the candidate nose print information based on the pet characteristic information corresponding to the pet nose print information;
[0038] An updating module is used to update the preset pet relationship map according to the association relationship between the pet nose print information and the target nose print information.
[0039] On the other hand, the present application also provides a pet relationship map updating device, wherein the pet relationship map updating device is a charging cabinet and / or a server, and the pet relationship map updating device includes:
[0040] one or more processors;
[0041] Memory; and
[0042] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps in the pet relationship map updating method.
[0043] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the steps in the pet relationship map updating method.
[0044] The technical solution of this application obtains the pet nose print information to be processed; based on the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information; based on the pet feature information corresponding to the pet nose print information, target nose print information that matches the pet feature information is determined from the candidate nose print information; and based on the association between the pet nose print information and the target nose print information, the preset pet relationship map is updated. In this embodiment, based on the pet location information and pet feature information corresponding to the pet nose print information, candidate nose print information is screened from the preset pet relationship map, and target nose print information is screened from the screened candidate nose print information. Finally, the relationship between the pet nose print information and the target nose print information is determined, thereby achieving automatic updating of the pet relationship map and facilitating pet relationship tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 This is a scenario diagram of the pet relationship graph updating method provided in an embodiment of the present application;
[0047] Figure 2This is a flow chart of an embodiment of the method for updating the pet relationship graph in the embodiment of the present application;
[0048] Figure 3 This is a flow chart of an embodiment of pet feature comparison in the pet relationship graph updating method provided in the embodiments of the present application;
[0049] Figure 4 This is a flow chart of an embodiment of the pet relationship map in the pet medical treatment in the pet relationship map updating method provided in the embodiment of the present application;
[0050] Figure 5 This is a flowchart of an embodiment of pet pairing in the pet relationship map updating method provided in the embodiments of the present application;
[0051] Figure 6 This is a schematic structural diagram of an embodiment of a pet relationship map updating device provided in an embodiment of the present application;
[0052] Figure 7 It is a structural diagram of an embodiment of a pet relationship map updating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of the present invention.
[0054] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0055] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to make and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that one of ordinary skill in the art will recognize that the invention can be practiced without these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
[0056] The embodiments of the present application provide a pet relationship map updating method, apparatus, device, and computer-readable storage medium, which are described in detail below.
[0057] The pet relationship graph updating method in the embodiment of the present invention is applied to a pet relationship graph updating device, and the pet relationship graph updating device is arranged in the pet relationship graph updating device. The pet relationship graph updating device is provided with one or more processors, memories, and one or more applications, wherein the one or more applications are stored in the memories and configured to be executed by the processor to implement the pet relationship graph updating method; the pet relationship graph updating device can be a server.
[0058] like Figure 1 As shown, Figure 1 This is a scenario diagram of the pet relationship graph updating method in an embodiment of the present application. The pet relationship graph updating scenario in the embodiment of the present invention includes a pet relationship graph updating device 100 (a pet relationship graph updating device is integrated in the pet relationship graph updating device 100), and a computer-readable storage medium corresponding to the pet relationship graph update is run in the pet relationship graph updating device 100 to execute the pet relationship graph update.
[0059] It is understandable that Figure 1 The pet relationship graph updating device in the pet relationship graph updating scenario shown, or the devices included in the pet relationship graph updating device, does not constitute a limitation on the embodiments of the present invention. That is, the number of devices, devices, and types of devices included in the pet relationship graph updating scenario, or the number of devices and types of devices included in each device do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.
[0060] The pet relationship map updating device 100 in the embodiment of the present invention is mainly used to: obtain the pet nose print information to be processed; screen the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information to obtain candidate nose print information; determine the target nose print information that matches the pet feature information from the candidate nose print information according to the pet feature information corresponding to the pet nose print information; and update the preset pet relationship map according to the association relationship between the pet nose print information and the target nose print information.
[0061] In the embodiments of the present invention, the pet relationship graph update device 100 may be an independent pet relationship graph update device, or a pet relationship graph update device network or pet relationship graph update device cluster composed of multiple pet relationship graph update devices. For example, the pet relationship graph update device 100 described in the embodiments of the present invention includes, but is not limited to, a computer, a network host, a single network pet relationship graph update device, a set of multiple network pet relationship graph update devices, or a cloud pet relationship graph update device composed of multiple pet relationship graph update devices. The cloud pet relationship graph update device is composed of a large number of computers or network pet relationship graph update devices based on cloud computing.
[0062] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer pet relationship graph update devices as shown in , or pet relationship graph update device network connection relationships, such as Figure 1 Only one pet relationship map updating device is shown. It can be understood that the pet relationship map updating scenario can also include one or more other pet relationship map updating devices, which are not limited here. The pet relationship map updating device 100 can also include a memory for storing data, for example, storing relevant data for pet relationship map updating.
[0063] In addition, in the pet relationship graph update scenario of the present application, the pet relationship graph update device 100 can be provided with a display device, or the pet relationship graph update device 100 can be provided with no display device and can be communicatively connected to an external display device 200, and the display device 200 is used to output the results of the pet relationship graph update method executed by the pet relationship graph update device. The pet relationship graph update device 100 can access a backend database 300 (the backend database can be in the local memory of the pet relationship graph update device, or the backend database can be set in the cloud). The backend database 300 stores information related to the pet relationship graph update, for example, the backend database 300 stores relevant data of the pet relationship graph update.
[0064] It should be noted that Figure 1 The scenario diagram of the pet relationship map updating method shown is only an example. The scenario of the pet relationship map updating described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.
[0065] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a method for updating a pet relationship map in an embodiment of the present application. The method for updating a pet relationship map includes steps 201 to 204:
[0066] 201, obtaining the pet nose print information to be processed.
[0067] In this embodiment, the pet relationship graph updating method is applied to a pet relationship graph updating device. The type of the pet relationship graph updating device is not specifically limited. In this embodiment, the pet relationship graph updating device is described by taking a server as an example.
[0068] The server obtains the pet nose print information to be processed, wherein the type of the pet is not limited. For example, if the pet is a dog, the pet nose print information refers to the nose print information that uniquely identifies the pet. The pet nose print information is similar to human fingerprints, each with its own unique characteristics, and can identify the pet.
[0069] Specifically, step 201, after obtaining the pet nose print information to be processed, includes:
[0070] (1) querying a preset pet relationship map to determine whether there is preset nose print information identical to the pet nose print information in the preset pet relationship map;
[0071] (2) If there is preset nose print information identical to the pet's nose print information in the preset pet relationship map, output the target nose print information corresponding to the preset nose print information;
[0072] (3) If there is no preset nose print information identical to the pet nose print information in the preset pet relationship map, the step of screening the preset pet nose prints in the preset pet relationship map according to the pet position information corresponding to the pet nose print information is performed to obtain the corresponding candidate nose print information.
[0073] That is, a pet relationship map is preset in the server. The preset pet relationship map refers to the relationship network between different pets. The preset pet relationship map contains different nodes. Each node corresponds to the nose print information of a specific pet, and is also associated with the birth time of the specific pet, pet species characteristics, pet gender characteristics, pet appearance characteristics, pet owner contact information, and pet medical records, etc.
[0074] The server queries the preset pet relationship map to determine whether there is preset nose print information that is identical to the pet nose print information in the preset pet relationship map; for example, the server compares the pet nose print information to be processed with each preset pet nose print information in the preset pet relationship map to determine the similarity between the pet nose print information to be processed and each preset pet nose print information, wherein the comparison of pet nose print similarity is similar to the comparison of human fingerprint similarity, the server obtains the highest similarity and determines whether the highest similarity is higher than a preset similarity threshold, the preset similarity threshold refers to the critical value for identifying whether it is the same pet, for example, the preset similarity threshold is set to 90%; if the highest similarity is higher than the preset similarity threshold, the server determines that there is preset nose print information that is identical to the pet nose print information in the preset pet relationship map, if the highest similarity is not higher than the preset similarity threshold, the server determines that there is no preset nose print information that is identical to the pet nose print information in the preset pet relationship map.
[0075] If there is preset nose print information identical to the pet nose print information in the preset pet relationship map, the server outputs the target nose print information corresponding to the preset nose print information, so as to avoid repeatedly adding the same pet nose print information; if there is no preset nose print information identical to the pet nose print information in the preset pet relationship map, the server executes the step of screening the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information to obtain the candidate nose print information.
[0076] In this embodiment, after the server obtains the pet's nose print information, it first determines whether the pet's nose print information already exists in the preset pet relationship map. If the pet's nose print information already exists in the preset pet relationship map, it directly outputs it. If the pet's nose print information does not already exist in the preset pet relationship map, candidate nose print information related to the pet's nose print information is screened from the preset pet relationship map based on the pet's location information. Specifically, the process includes:
[0077] 202. Filter the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information to obtain candidate nose print information.
[0078] The server obtains pet location information corresponding to the pet's nose print information. The pet location information refers to location information of the pet's usual activity area. The pet location information can be location information collected by a positioning device on the pet, location information corresponding to the pet's owner's terminal, location information corresponding to the pet's birthplace, or location information corresponding to the pet's home address. The server screens preset pet nose prints in a preset pet relationship map based on the pet's location information corresponding to the pet's nose print information, specifically including:
[0079] (1) Obtaining pet location information corresponding to the pet nose print information, and obtaining pet location information associated with each preset pet nose print in a preset pet relationship map;
[0080] (2) respectively calculating the distance between the pet location information corresponding to the pet nose print information and the pet location information associated with each of the preset pet nose prints;
[0081] (3) The preset pet nose prints whose distance is less than the preset distance threshold are set as candidate nose print information.
[0082] The server obtains the pet location information corresponding to the pet nose print information, and obtains the pet location information associated with each preset pet nose print in the preset pet relationship map; the server respectively calculates the distance between the pet location information corresponding to the pet nose print information and the pet location information associated with each preset pet nose print; the server compares the distance with a preset distance threshold, which can be set according to the situation. For example, if the preset distance threshold is 3 kilometers, the server sets the preset pet nose prints whose distance is less than the preset distance threshold as candidate nose print information.
[0083] In this embodiment, the preset nose print information in the pet relationship map is screened according to the pet location information corresponding to the pet nose print information, thereby reducing the amount of data processing and further improving the data accuracy.
[0084] 203 : Determine target nose print information that matches the pet characteristic information from the candidate nose print information based on the pet characteristic information corresponding to the pet nose print information.
[0085] The server compares the pet characteristic information corresponding to the pet nose print information to be processed with the pet characteristic information corresponding to each candidate nose print information based on the pet characteristic information corresponding to the pet nose print information, which includes but is not limited to: pet body shape characteristics, pet gender characteristics, pet coat color characteristics and other pet phenotypes. For example, the server compares the pet type corresponding to the pet nose print information to be processed with the pet type corresponding to each candidate nose print information to obtain the degree of similarity between the pet nose print information to be processed and each candidate nose print information. The server uses the candidate nose print information with the highest similarity as the target nose print information for matching the pet characteristic information.
[0086] In this embodiment, the server determines the target nose print information that matches the pet feature information from the candidate nose print information. The server further determines the association relationship between the pet nose print information and the target nose print information to update the preset pet relationship map, specifically including:
[0087] 204. Update the preset pet relationship map according to the association between the pet nose print information and the target nose print information.
[0088] The server queries whether the pet's nose print information and the target's nose print information have the same owner, whether the pet's nose print information and the target's nose print information were born at the same address, and the ages of the pet's nose print information and the target's nose print information, and determines the association between the pet's nose print information and the target's nose print information. The server updates the preset pet relationship map based on the association between the pet's nose print information and the target's nose print information; specifically, it includes:
[0089] (1) comparing the pet age corresponding to the pet nose print information with the pet age corresponding to the target nose print information;
[0090] (2) If the pet age corresponding to the pet nose print information is greater than the pet age corresponding to the target nose print information, a parent node is added to the target nose print information and the parent node is associated with the pet nose print information to update the preset pet relationship map;
[0091] (3) If the pet age corresponding to the pet nose print information is less than or equal to the pet age corresponding to the target nose print information, a new child node is added to the target nose print information and the child node is associated with the pet nose print information to update the preset pet relationship map.
[0092] The server compares the pet age corresponding to the pet nose print information with the pet age corresponding to the target nose print information; if the pet age corresponding to the pet nose print information is greater than the pet age corresponding to the target nose print information, the server adds a parent node to the target nose print information and associates the parent node with the pet nose print information to update the preset pet relationship map; if the pet age corresponding to the pet nose print information is less than or equal to the pet age corresponding to the target nose print information, the server adds a child node to the target nose print information and associates the child node with the pet nose print information to update the preset pet relationship map.
[0093] In this embodiment, candidate nose print information is filtered from a preset pet relationship map based on the pet location information and pet feature information corresponding to the pet nose print information, and target nose print information is filtered from the filtered candidate nose print information. Finally, the relationship between the pet nose print information and the target nose print information is determined, and the pet relationship map is automatically updated to facilitate pet relationship tracing.
[0094] Reference Figure 3 , Figure 3 This is a flow chart of an embodiment of pet feature comparison in the pet relationship map updating method provided in the embodiments of this application.
[0095] In some embodiments of the present application, step 203 determines target nose print information that matches the pet feature information from the candidate nose print information based on the pet feature information corresponding to the pet nose print information, specifically including steps 301 to 303:
[0096] 301, obtaining pet characteristic information corresponding to the pet nose print information, the pet characteristic information including: species characteristics, gender characteristics, and appearance characteristics;
[0097] The server obtains pet feature information corresponding to the pet nose print information, and the pet feature information includes: species feature, gender feature and appearance feature, wherein the species type refers to the pet type or pet population; the pet appearance feature refers to the pet's fur color, fur length and pet body shape, etc.; the pet feature in this embodiment is a specific example, and those skilled in the art can add it according to the specific situation.
[0098] 302 , comparing the pet feature information corresponding to the pet nose print information with the pet features corresponding to each candidate nose print information to obtain a comprehensive similarity, wherein the comprehensive similarity is obtained by weighted calculation of the similarity of species feature, gender feature and appearance feature.
[0099] The server compares the type characteristics, gender characteristics and appearance characteristics in the pet feature information corresponding to the pet nose print information with the type characteristics, gender characteristics and appearance characteristics in the pet features corresponding to each candidate nose print information, and obtains the type characteristic similarity, gender characteristic similarity and appearance characteristic similarity between the pet nose print information and the candidate nose print information. In this embodiment, the weights corresponding to the type characteristics, gender characteristics and appearance characteristics are preset according to the specific circumstances of the pet. The server sets the weights corresponding to the type characteristic similarity, gender characteristic similarity and appearance characteristic similarity according to the preset weights corresponding to the type characteristics, gender characteristics and appearance characteristics, so as to obtain the comprehensive similarity.
[0100] 303 , setting the candidate nose print information whose comprehensive similarity is higher than a preset similarity threshold as the target nose print information for matching the pet feature information.
[0101] The server sets the candidate nose print information with a comprehensive similarity higher than a preset similarity threshold as the target nose print information for pet feature matching. In this embodiment, the server performs a comprehensive weighting based on pet feature information such as species, gender, and appearance to obtain the target nose print feature, making the pet association more accurate.
[0102] Reference Figure 4 , Figure 4 It is a flow chart of an embodiment of the pet relationship map in the pet medical treatment in the pet relationship map updating method provided in the embodiment of this application.
[0103] In some embodiments of the present application, after the pet relationship map is updated, the server queries the preset pet relationship map to perform pet medical management, specifically including steps 401 to 403:
[0104] 401 , obtaining nose print information of a pet to be treated and status information corresponding to the nose print information of the pet.
[0105] The server obtains the nose print information of the pet to be treated, and the status information corresponding to the nose print information of the pet, wherein the status information refers to the mental state of the pet, the body temperature of the pet, etc.
[0106] 402 , querying a preset pet relationship map to obtain target nose print information associated with the pet's nose print information, and historical diagnosis and treatment records corresponding to the target nose print information.
[0107] The server queries the preset pet relationship graph to determine the target node corresponding to the pet's nose print information and the associated nodes of the target node. The server uses the preset nose print information corresponding to the associated node as the target nose print information associated with the pet's nose print information. Then, the server obtains the historical diagnosis and treatment records corresponding to the target nose print information, wherein the historical diagnosis and treatment records include but are not limited to the consultation time, consultation address, medical history information and doctor's order information, etc.
[0108] 403 : Outputting a pet medication recommendation plan based on the status information corresponding to the pet's nose print information and the historical diagnosis and treatment records corresponding to the target nose print information.
[0109] The server compares the status information corresponding to the pet's nose print information with the status information in the historical medical records corresponding to each target nose print information. The server compares the target disease with the disease in the historical medical records corresponding to the target nose print information for the same status information to obtain the most matching disease information. The server uses the medication information corresponding to the most matching disease information as a pet medication recommendation and outputs it.
[0110] In this embodiment, based on determining the target node corresponding to the pet's nose print information and the associated nodes of the target node, the server uses the preset nose print information corresponding to the associated node as the target nose print information associated with the pet's nose print information. In this way, the target nose print information closest to the pet to be treated can be found, and then medication recommendations can be made based on the historical diagnosis and treatment records of the target nose print information, which can make the medication recommendations more reasonable.
[0111] Reference Figure 5 , Figure 5 This is a flow chart of an embodiment of pet pairing in the pet relationship map updating method provided in the embodiments of the present application.
[0112] In some embodiments of the present application, the pet relationship map updating method specifically includes steps 501 to 503:
[0113] 501. Receive a pet pairing request, and obtain pet nose print information associated with the pet pairing request, and pet feature information corresponding to the pet nose print information.
[0114] The server receives a pet pairing request, wherein the triggering method of the pet pairing request is not limited. For example, the user enters the pet pairing number xxx on the mobile phone, the mobile phone sends the request to the server, the server triggers the pet pairing request, and the server obtains the pet nose print information associated with the pet pairing request, as well as the pet feature information corresponding to the pet nose print information.
[0115] 502. Query a preset pet relationship map to obtain candidate nose print information that is unrelated to the pet's nose print information.
[0116] The server queries a preset pet relationship graph, and obtains candidate nose print information that is not related to the pet nose print information. That is, the server obtains a target node corresponding to the pet nose print information associated with the pet pairing request, and obtains a candidate node that has no association with the target node. The server uses the pet nose print corresponding to the candidate node as the candidate nose print information that is not related to the pet nose print information.
[0117] 503 , fusing the pet feature information corresponding to the pet nose print information and the pet feature information corresponding to the candidate nose print information to obtain and output a pet feature phenotype.
[0118] The server fuses the pet feature information corresponding to the pet nose print information and the pet feature information corresponding to the candidate nose print information to obtain and output the pet feature phenotype. That is, the server fuses according to the characteristics of each pet. For example, the pet feature phenotype corresponding to black hair and black hair is black hair.
[0119] In this embodiment, the server integrates the pet feature information to obtain the pet feature phenotype, so that users can pair pets according to the phenotype, making the preset pet relationship map pet pairing more optimized.
[0120] In order to better implement the pet relationship map updating method in the embodiment of the present application, based on the pet relationship map updating method, the embodiment of the present application also provides a pet relationship map updating device, such as Figure 6 As shown, Figure 6 : This is a schematic diagram of an embodiment of a pet relationship map updating device provided in an embodiment of the present application; the pet relationship map updating device includes:
[0121] An acquisition module 601 is used to acquire the pet nose print information to be processed;
[0122] A screening module 602 is configured to screen the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information to obtain candidate nose print information;
[0123] A determination module 603 is configured to determine target nose print information that matches the pet feature information from the candidate nose print information based on the pet feature information corresponding to the pet nose print information;
[0124] The updating module 604 is configured to update the preset pet relationship map according to the association between the pet nose print information and the target nose print information.
[0125] In some embodiments of the present application, the pet relationship map updating device further includes:
[0126] If there is preset nose print information identical to the pet's nose print information in the preset pet relationship map, output the target nose print information corresponding to the preset nose print information;
[0127] If there is no preset nose print information identical to the pet nose print information in the preset pet relationship map, the step of screening the preset pet nose prints in the preset pet relationship map according to the pet position information corresponding to the pet nose print information to obtain the corresponding candidate nose print information is executed.
[0128] In some embodiments of the present application, the pet relationship map updating device screening module 602 includes:
[0129] Obtaining pet location information corresponding to the pet nose print information, and obtaining pet location information associated with each preset pet nose print in a preset pet relationship map;
[0130] respectively calculating the distance between the pet location information corresponding to the pet nose print information and the pet location information associated with each of the preset pet nose prints;
[0131] The preset pet nose prints whose distance is less than the preset distance threshold are set as candidate nose print information.
[0132] In some embodiments of the present application, the determination module 603 in the pet relationship map updating device includes:
[0133] Obtaining pet feature information corresponding to the pet nose print information, the pet feature information including: species feature, gender feature, and appearance feature;
[0134] Comparing the pet feature information corresponding to the pet nose print information with the pet features corresponding to each candidate nose print information to obtain a comprehensive similarity, wherein the comprehensive similarity is obtained by weighted calculation of the similarity of species feature, gender feature and appearance feature;
[0135] The candidate nose print information with a comprehensive similarity higher than a preset similarity threshold is set as the target nose print information for matching the pet feature information.
[0136] In some embodiments of the present application, the updating module 604 in the pet relationship graph updating device further includes:
[0137] Comparing the pet age corresponding to the pet nose print information with the pet age corresponding to the target nose print information;
[0138] If the pet age corresponding to the pet nose print information is greater than the pet age corresponding to the target nose print information, a parent node is added to the target nose print information and the parent node is associated with the pet nose print information to update the preset pet relationship map;
[0139] If the pet age corresponding to the pet nose print information is less than or equal to the pet age corresponding to the target nose print information, a child node is added to the target nose print information and the child node is associated with the pet nose print information to update the preset pet relationship map.
[0140] In some embodiments of the present application, the pet relationship map updating device further includes:
[0141] Obtaining nose print information of the pet to be treated, and status information corresponding to the pet nose print information;
[0142] Query the preset pet relationship map to obtain the target nose print information associated with the pet's nose print information, as well as the historical diagnosis and treatment records corresponding to the target nose print information;
[0143] According to the status information corresponding to the pet's nose print information and the historical diagnosis and treatment records corresponding to the target nose print information, a pet medication recommendation plan is output.
[0144] In some embodiments of the present application, the pet relationship map updating device further includes:
[0145] Receive a pet pairing request, and obtain pet nose print information associated with the pet pairing request, and pet feature information corresponding to the pet nose print information;
[0146] Querying a preset pet relationship map to obtain candidate nose print information that is unrelated to the pet's nose print information;
[0147] The pet feature information corresponding to the pet nose print information and the pet feature information corresponding to the candidate nose print information are fused to obtain a pet feature phenotype and output it.
[0148] In this embodiment, the pet nose print information to be processed is obtained; based on the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information; based on the pet feature information corresponding to the pet nose print information, target nose print information that matches the pet feature information is determined from the candidate nose print information; and based on the association between the pet nose print information and the target nose print information, the preset pet relationship map is updated. In this embodiment, based on the pet location information and pet feature information corresponding to the pet nose print information, candidate nose print information is screened from the preset pet relationship map, and target nose print information is screened from the screened candidate nose print information. Finally, the relationship between the pet nose print information and the target nose print information is determined, thereby achieving automatic updating of the pet relationship map and facilitating pet relationship tracing.
[0149] The embodiment of the present invention also provides a pet relationship map updating device, such as Figure 7 As shown, Figure 7 It shows a structural diagram of a pet relationship graph updating device involved in an embodiment of the present invention.
[0150] The pet relationship map updating device integrates any of the pet relationship map updating devices provided in the embodiments of the present invention. The pet relationship map updating device is a charging cabinet and / or a server. The pet relationship map updating device includes:
[0151] one or more processors;
[0152] Memory; and
[0153] One or more applications, wherein the one or more applications are stored in the memory and configured to execute, by the processor, the steps of the pet relationship map updating method described in any of the above-mentioned pet relationship map updating method embodiments.
[0154] Specifically, the pet relationship map updating device may include one or more processing core processors 701, one or more computer-readable storage media memories 702, a power supply 703, and an input unit 704. Figure 7 The pet relationship map updating device structure shown in the figure does not constitute a limitation on the pet relationship map updating device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0155] Processor 701 is the control center of the pet relationship map update device. It utilizes various interfaces and circuits to connect the various components of the entire pet relationship map update device. By running or executing software programs and / or modules stored in memory 702 and accessing data stored in memory 702, it performs various functions of the pet relationship map update device and processes data, thereby providing overall monitoring of the pet relationship map update device. Optionally, processor 701 may include one or more processing cores; preferably, processor 701 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 701.
[0156] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created based on the use of the pet relationship map update device, etc. In addition, the memory 702 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0157] The pet relationship map updating device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 703 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0158] The pet relationship map updating device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0159] Although not shown, the pet relationship map updating device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 701 in the pet relationship map updating device will load the executable files corresponding to one or more application processes into the memory 702 according to the following instructions, and the processor 701 will run the application stored in the memory 702 to implement various functions as follows:
[0160] Obtain the pet nose print information to be processed;
[0161] According to the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information;
[0162] determining target nose print information that matches the pet characteristic information from the candidate nose print information according to the pet characteristic information corresponding to the pet nose print information;
[0163] The preset pet relationship map is updated according to the association relationship between the pet nose print information and the target nose print information.
[0164] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0165] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include a read-only memory (ROM), random access memory (RAM), a disk, or an optical disk. A computer program is stored on the computer-readable storage medium, which is loaded by a processor to execute any of the pet relationship graph updating methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor may execute the following steps:
[0166] Obtain the pet nose print information to be processed;
[0167] According to the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information;
[0168] determining target nose print information that matches the pet characteristic information from the candidate nose print information according to the pet characteristic information corresponding to the pet nose print information;
[0169] The preset pet relationship map is updated according to the association relationship between the pet nose print information and the target nose print information.
[0170] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above and will not be repeated here.
[0171] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to implement as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments and will not be repeated here.
[0172] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0173] The above is a detailed introduction to a pet relationship map updating method provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A pet relationship graph updating method, characterized in that: The pet relationship graph updating method includes: Obtain the pet nose print information to be processed; According to the pet location information corresponding to the pet nose print information, the preset pet nose prints in the preset pet relationship map are screened to obtain candidate nose print information; determining target nose print information that matches the pet characteristic information from the candidate nose print information according to the pet characteristic information corresponding to the pet nose print information; updating the preset pet relationship map according to the association between the pet nose print information and the target nose print information; Wherein, determining target nose print information that matches the pet characteristic information from the candidate nose print information based on the pet characteristic information corresponding to the pet nose print information includes: Obtaining pet feature information corresponding to the pet nose print information, the pet feature information including: species feature, gender feature, and appearance feature; Comparing the pet feature information corresponding to the pet nose print information with the pet features corresponding to each candidate nose print information to obtain a comprehensive similarity, wherein the comprehensive similarity is obtained by weighted calculation of the similarity of species feature, gender feature and appearance feature; The candidate nose print information with a comprehensive similarity higher than a preset similarity threshold is set as the target nose print information for matching the pet feature information.
2. The pet relationship map updating method according to claim 1, characterized in that: After obtaining the pet nose print information to be processed, the following steps are included: If there is preset nose print information identical to the pet's nose print information in the preset pet relationship map, output the target nose print information corresponding to the preset nose print information; If there is no preset nose print information identical to the pet nose print information in the preset pet relationship map, the step of screening the preset pet nose prints in the preset pet relationship map according to the pet position information corresponding to the pet nose print information to obtain the corresponding candidate nose print information is executed.
3. The pet relationship map updating method according to claim 1, characterized in that: The method of screening the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information to obtain candidate nose print information includes: Obtaining pet location information corresponding to the pet nose print information, and obtaining pet location information associated with each preset pet nose print in a preset pet relationship map; respectively calculating the distance between the pet location information corresponding to the pet nose print information and the pet location information associated with each of the preset pet nose prints; The preset pet nose prints whose distance is less than the preset distance threshold are set as candidate nose print information.
4. The pet relationship map updating method according to claim 1, characterized in that: The updating of the preset pet relationship map according to the association between the pet nose print information and the target nose print information includes: Comparing the pet age corresponding to the pet nose print information with the pet age corresponding to the target nose print information; If the pet age corresponding to the pet nose print information is greater than the pet age corresponding to the target nose print information, a parent node is added to the target nose print information and the parent node is associated with the pet nose print information to update the preset pet relationship map; If the pet age corresponding to the pet nose print information is less than or equal to the pet age corresponding to the target nose print information, a child node is added to the target nose print information and the child node is associated with the pet nose print information to update the preset pet relationship map.
5. The pet relationship map updating method according to claim 1, characterized in that: After updating the preset pet relationship map based on the association between the pet nose print information and the target nose print information, the method includes: Obtaining nose print information of the pet to be treated, and status information corresponding to the pet nose print information; Query the preset pet relationship map to obtain the target nose print information associated with the pet's nose print information, as well as the historical diagnosis and treatment records corresponding to the target nose print information; According to the status information corresponding to the pet's nose print information and the historical diagnosis and treatment records corresponding to the target nose print information, a pet medication recommendation plan is output.
6. The pet relationship map updating method according to any one of claims 1 to 5, characterized in that: After updating the preset pet relationship map based on the association between the pet nose print information and the target nose print information, the method includes: Receive a pet pairing request, and obtain pet nose print information associated with the pet pairing request, and pet feature information corresponding to the pet nose print information; Querying a preset pet relationship map to obtain candidate nose print information that is unrelated to the pet's nose print information; The pet feature information corresponding to the pet nose print information and the pet feature information corresponding to the candidate nose print information are fused to obtain a pet feature phenotype and output it.
7. A pet relationship map updating device, characterized in that: The pet relationship map updating device includes: An acquisition module is used to obtain the pet nose print information to be processed; a screening module, configured to screen the preset pet nose prints in the preset pet relationship map according to the pet location information corresponding to the pet nose print information, to obtain candidate nose print information; a determination module, configured to determine target nose print information that matches the pet characteristic information from the candidate nose print information based on the pet characteristic information corresponding to the pet nose print information; An updating module, configured to update the preset pet relationship map according to the association between the pet nose print information and the target nose print information; Wherein, the determining module is further used for: Obtaining pet feature information corresponding to the pet nose print information, the pet feature information including: species feature, gender feature, and appearance feature; Comparing the pet feature information corresponding to the pet nose print information with the pet features corresponding to each candidate nose print information to obtain a comprehensive similarity, wherein the comprehensive similarity is obtained by weighted calculation of the similarity of species feature, gender feature and appearance feature; The candidate nose print information with a comprehensive similarity higher than a preset similarity threshold is set as the target nose print information for matching the pet feature information.
8. A pet relationship map updating device, characterized in that: The pet relationship map updating device is a charging cabinet and / or a server, and the pet relationship map updating device includes: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps in the pet relationship map updating method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the pet relationship map updating method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Community pet dog identification method and device, equipment and medium
CN110765323A
Animal / pet identification system and method based on biometrics
US20150078626A1