Method and device for predicting appearance change operation results
By establishing a prediction model for the results of the appearance change operation and predicting the appearance data after the appearance change operation, the problem of people being unable to predict the results of the appearance change is solved, and an accurate prediction auxiliary decision-making tool is provided.
Patent Information
- Application Number
- CN202010608567.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-06-30
AI Technical Summary
It is difficult for people to predict the specific results of changing their appearance through physical exercise, healthy diet, or medical cosmetic surgery, and there is a lack of effective prediction methods.
By obtaining sample data before the appearance change operation, a result prediction model for the appearance change operation is established, and the model is used to predict the target user's appearance data after the appearance change operation, and the prediction results are provided to assist the user in decision-making.
Provide users with predicted appearance data after appearance change operations, help them make informed decisions, and improve the prediction accuracy and efficiency of appearance change operations.
Smart Images

Figure CN111767676B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of artificial intelligence technology, specifically to big data technology and image processing technology, and more particularly to a method and apparatus for predicting the results of appearance change operations using big data processing platform modeling. Background Art
[0002] As people's living standards improve, they begin to pay more attention to their appearance and hope to be able to predict how their appearance will change with age and lifestyle changes through technical means. Some people also hope to change their appearance by adopting a lifestyle of physical exercise and healthy diet, or through cosmetic surgery. The main concern before people consider changing their appearance through lifestyle choices or cosmetic surgery is that they cannot predict the results.
[0003] Therefore, a method is needed to predict the results of appearance change operations. Summary of the invention
[0004] The present disclosure provides a method, device, electronic device and computer-readable storage medium for predicting the results of an appearance change operation.
[0005] According to a first aspect of the present disclosure, a method for predicting the result of an appearance change operation is provided, comprising: obtaining sample data of an appearance change operation, wherein the sample data includes first appearance data of a user before the appearance change operation and second appearance data after the appearance change operation corresponding to the first appearance data; establishing a result prediction model of the appearance change operation based on the first appearance data and the second appearance data; obtaining the appearance data and intended appearance change operation of a target user, and based on the appearance data and intended appearance change operation of the target user, using the result prediction model of the appearance change operation to predict the appearance data of the target user after the intended appearance change operation.
[0006] According to a second aspect of the present disclosure, there is provided a device for predicting the result of an appearance change operation, comprising: an acquisition unit, configured to acquire sample data of the appearance change operation, wherein the sample data includes first appearance data of the user before the appearance change operation and second appearance data after the appearance change operation corresponding to the first appearance data; a modeling unit, configured to establish a result prediction model of the appearance change operation based on the first appearance data and the second appearance data; a prediction unit, configured to acquire the appearance data and the intended appearance change operation of the target user, and based on the appearance data and the intended appearance change operation of the target user, use the result prediction model of the appearance change operation to predict the appearance data of the target user after the intended appearance change operation.
[0007] According to the third aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the method for predicting appearance changes as provided in the first aspect.
[0008] According to a fourth aspect of the present disclosure, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for predicting appearance changes provided in the first aspect is implemented.
[0009] The method and device for predicting appearance changes provided by the present invention first establish a result prediction model based on sample data of appearance change operations, and then predict the appearance data of the target user after the appearance change operation based on the result prediction model. The predicted appearance data after the appearance change operation can be provided to the user to assist the user in making decisions.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0012] Figure 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
[0013] Figure 2 is a flow chart of an embodiment of a method for predicting the result of an appearance change operation according to the present application;
[0014] Figure 3 is a schematic diagram of an application scenario of the method for predicting the result of an appearance change operation according to the present application;
[0015] Figure 4 is a flowchart of another embodiment of a method for predicting the result of an appearance change operation according to the present application;
[0016] Figure 5 is a flow chart of another embodiment of a method for predicting the result of an appearance change operation according to the present application;
[0017] Figure 6 is a schematic structural diagram of an embodiment of a device for predicting the result of an appearance change operation according to the present application;
[0018] Figure 7It is a block diagram of an electronic device used to implement the method for predicting the result of an appearance change operation according to an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0020] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method for predicting a result of an appearance change operation or an apparatus for predicting a result of an appearance change operation of the present application can be applied.
[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0022] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be installed with various client applications for receiving push services, such as image applications, data collection applications, etc.
[0023] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting receiving push services, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers and desktop computers, etc.
[0024] The terminal devices 101, 102, 103 can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices. When the terminal devices 101, 102, 103 are software, they can be installed in the above electronic devices. They can be implemented as multiple software or software modules (for example, multiple software modules for providing distributed services), or they can be implemented as a single software or software module. No specific limitation is made here.
[0025] Server 105 can utilize the technology in the field of big data to classify or filter the appearance change data to obtain sample data of the appearance change, and then model the appearance change based on the sample data and utilize the technology in the field of artificial intelligence. It can also obtain the user's appearance data and the type of appearance change operation from terminal devices 101, 102, 103, predict the user's appearance changes using an appearance change prediction model, and provide the prediction results to terminal devices 101, 102, 103.
[0026] It should be noted that the method for predicting the result of an appearance change operation provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the device for predicting the result of an appearance change operation is generally arranged in the server 105 .
[0027] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0028] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a method for predicting the result of an appearance change operation according to the present disclosure. The method for predicting the result of an appearance change operation comprises the following steps:
[0029] Step 201, obtaining sample data of an appearance change operation, wherein the sample data includes first appearance data of the user before the appearance change operation and second appearance data after the appearance change operation corresponding to the first appearance data.
[0030] In this embodiment, the execution subject (eg Figure 1 The server shown in the figure can obtain sample data of the appearance change operation from the terminal or the Internet, and the sample data includes first appearance data, that is, the appearance data of the user before the appearance change operation, and second appearance data, that is, the appearance data of the user after the appearance change operation corresponding to the appearance data before the appearance change operation. The appearance data can be various data representing the appearance features of the user, such as a face image, a three-dimensional face model based on dense key points, and the like.
[0031] As an example, the sample data may be facial images of the user's appearance changes over the past 10 years, the appearance change operation is the appearance change of the user as the user ages, the appearance data of the user before the appearance change operation may be the user's facial images in the first year of sample collection, the appearance data of the user after the appearance change operation may be the user's facial images in the tenth year of sample collection, and the corresponding appearance change operation is the "increase age" operation. Alternatively, the sample data may be case data of cosmetic surgery, the appearance change operation may be cosmetic surgery or beauty operations, or operations on designated parts of the human body in cosmetic surgery, such as double eyelid surgery, the appearance data of the user before the appearance change operation may be the user's facial images before the cosmetic surgery, and the appearance data of the user after the appearance change operation may be the user's facial images after the cosmetic surgery.
[0032] Step 202: establishing a prediction model for the result of the appearance change operation based on the first appearance data and the second appearance data.
[0033] In this embodiment, according to the appearance data of the user before the appearance change operation in the sample data, and the appearance data of the user after the appearance change operation corresponding to the appearance data before the appearance change operation of the user, a result prediction model of the appearance change operation is established by using data mining technology, regression analysis, neural network and other algorithms. Among them, the result prediction model of the appearance change operation is used to predict the appearance data after the appearance change operation according to the appearance data before the appearance change operation. Modeling can be done in many ways. For example, the result prediction model is established by using a neural network algorithm. The initial training model can be iteratively trained based on the appearance data of the user before the appearance change operation in the sample data and the appearance data of the user after the appearance change operation. Feedback information is generated by using the difference between the appearance data before the appearance change operation of the user and the appearance data after the appearance change operation of the user (such as the difference in the characteristic value of the preset feature), and the initial model is updated. When the number of training times meets the preset number of times, the training is stopped, and the initial model that meets the number of training times is used as the final result prediction model. Alternatively, modeling can be done based on a mathematical model such as linear regression, and the parameters in the model are fitted based on the sample data.
[0034] Step 203, obtaining the appearance data and intended appearance change operation of the target user, and based on the appearance data and intended appearance change operation of the target user, using the appearance change operation result prediction model to predict the appearance data of the target user after the intended appearance change operation.
[0035] In this embodiment, the appearance data of the target user before the appearance change operation and the appearance change operation that the target user intends to perform are obtained by user input or reading data sent by the user, and the appearance data of the target user before the appearance change operation and the intended appearance change operation are input into a result prediction model of the appearance change operation, so as to use the result prediction model of the appearance change operation to predict the appearance data of the target user after the intended appearance change operation.
[0036] In some application scenarios, the success rate of the target user's appearance operation can also be evaluated based on the predicted appearance data of the target user after the appearance change operation. For example, when the appearance change operation is medical cosmetic surgery, the target user's facial image before the medical cosmetic surgery can be analyzed with previous case data to analyze the surgical success rate corresponding to the preoperative facial image in the case data with similar features or proportions to the target user's preoperative facial image, and the target user's surgical success rate can be determined based on the surgical success rate of similar users in the case data.
[0037] The method for predicting appearance changes provided in this embodiment first establishes a result prediction model based on sample data of appearance change operations, and then predicts the appearance data of the target user after the appearance change operation based on the result prediction model. The predicted appearance data after the appearance change operation can be provided to the user to assist the user in making decisions.
[0038] Optionally, a result prediction model of the appearance change operation is established based on the first appearance data and the second appearance data, including: extracting key point features of the first appearance data and the second appearance data; modeling the conversion relationship from the key point features of the first appearance data to the key point features of the second appearance data, to obtain a result prediction model.
[0039] In this embodiment, key points of the appearance data can be pre-set, and the key point features before the change in the appearance data of the user before the appearance change operation and the key point features after the change in the appearance data of the user after the appearance change operation are extracted, and a model is built based on the conversion relationship from the key point features before the change to the key point features after the change, so as to obtain a result prediction model. Among them, the key point features can be features that characterize appearance features that have a relatively large impact on appearance, such as the size of the eyes, the shape of the nose, etc. Specifically, a relationship model building algorithm such as a neural network algorithm, regression analysis, or recursive analysis can be used to build a model based on the conversion relationship from the key point features before the change to the key point features after the change, so as to obtain a result prediction model. This embodiment selects key points and builds a result prediction model based on the changes in the key point features, so that a result prediction model with accurate prediction results can be established while using less data, and the efficiency of model building can be improved.
[0040] In some application scenarios, such as Figure 3 As shown, 301 to 308 in the preset face image are key points of the face image (it can be understood that the key points can be any points in the face image, and the key points selected here are only used as examples). The face image scanning system can be used to collect the characteristic values of the key points 301 to the key points 308 before the user's appearance change operation (such as the reflectivity of the key points, the degree of concavity of the key points, or the spacing or position relationship between the key points, etc.) as the first appearance data, and collect the characteristic values of the key points 301 to the key points 308 after the user's appearance change operation as the second appearance data, and establish a result prediction model of the appearance change operation based on the first appearance data and the second appearance data. When the target user inputs his / her facial image before the appearance change operation into the result prediction model of the appearance change operation and selects the intended appearance change operation, the result prediction model will calculate the feature values of key points 301 to 308 of the target user's facial image after the appearance change operation based on the feature values of key points 301 to 308 before the appearance change operation, and output the target user's facial image after the appearance change operation generated based on the feature values of key points 301 to 308 of the target user's facial image after the appearance change operation.
[0041] Optionally, the sample data also includes user body condition data corresponding to the second appearance data, and a result prediction model of the appearance change operation is established based on the first appearance data and the second appearance data, including: establishing a result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data and the user's body condition data.
[0042] In this embodiment, a prediction model for the result of the appearance change operation is established using data mining technology or regression analysis algorithms based on the user's appearance data before the appearance change operation in the sample data, the user's appearance data after the appearance change operation corresponding to the user's appearance data before the appearance change operation, and the user's body condition data corresponding to the user's appearance data after the appearance change operation. Among them, the user's body condition data can be a physical health condition, such as the symptoms of the sequelae suffered by the user after undergoing medical cosmetic surgery. In this embodiment, the user's body condition data corresponding to the user's appearance data after the appearance change operation is used as one of the factors for establishing the result prediction model, and other body conditions other than the appearance change of the appearance change operation can also be used as prediction results, so that multi-dimensional prediction result information can be provided to the user.
[0043] Optionally, the sample data also includes user body state data corresponding to the second appearance data, and the method for predicting the result of an appearance change operation also includes: using a result prediction model of the appearance change operation to predict the target user's body state information after the intended appearance change operation.
[0044] In this embodiment, the result prediction model can be used to predict the target user's physical state information after the appearance change operation according to the type of appearance change operation selected by the target user (for example, the surgical project of medical cosmetic surgery, etc.), so that the target user can know the physical state information after the appearance change operation, and provide the user with more prediction result information to help the user make accurate decisions.
[0045] Further references Figure 4 , which shows a process 400 of another embodiment of a method for predicting the result of an appearance change operation, comprising the following steps:
[0046] Step 401, obtaining sample data of an appearance change operation, the sample data including first appearance data of the user before the appearance change operation and second appearance data after the appearance change operation corresponding to the first appearance data, the sample data also including first vital sign data of the user before the appearance change operation and second vital sign data after the appearance change operation corresponding to the first appearance data.
[0047] The description of the first appearance data and the second appearance data in this embodiment is consistent with the description in step 201 and will not be repeated here.
[0048] In this embodiment, sample data of the appearance change operation can be obtained from the terminal or the Internet, and the sample data includes first physical sign data, that is, the physical sign data of the user before the appearance change operation, and second physical sign data, that is, the physical sign data of the user after the appearance change operation corresponding to the physical sign data before the appearance change operation. For example, the sample data can be case data of medical cosmetic surgery, the appearance change operation can be medical cosmetic surgery or beauty operation, the physical sign data of the user before the appearance change operation can be the user's physical health status before the medical cosmetic surgery, and the physical sign data of the user after the appearance change operation can be the user's physical health status after the medical cosmetic surgery, whether sequelae have occurred, etc.
[0049] Step 402, establishing a result prediction model of the appearance change operation based on the first appearance data and the second appearance data, and establishing a physical sign prediction model based on the first physical sign data and the corresponding second physical sign data.
[0050] The description of establishing the result prediction model in this embodiment is consistent with step 202 and will not be repeated here.
[0051] In this embodiment, a physical sign prediction model is established using data mining technology or regression analysis algorithms based on the physical sign data of the user before the appearance change operation in the sample data and the physical sign data of the user after the appearance change operation corresponding to the physical sign data before the appearance change operation. The physical sign prediction model is used to predict the physical sign data after the appearance change operation based on the physical sign data before the appearance change operation.
[0052] Step 403, acquiring the appearance data and intended appearance change operation of the target user, and based on the appearance data and intended appearance change operation of the target user, using the appearance change operation result prediction model to predict the appearance data of the target user after the intended appearance change operation. And acquiring the target user's vital sign data and intended appearance change operation, and based on the target user's vital sign data, using the vital sign prediction model to predict the target user's vital sign data after the intended appearance change operation.
[0053] In this embodiment, the description of using the result prediction model to predict the appearance data of the target user after the appearance change operation based on the appearance data before the appearance change is consistent with step 203 and will not be repeated here.
[0054] In this embodiment, the target user's vital sign data before the appearance change operation and the intended appearance change operation are obtained by user input or reading data sent by the user, and the target user's vital sign data before the appearance change operation is input into the vital sign prediction model, so as to use the vital sign prediction model to predict the target user's vital sign data after the intended appearance change operation.
[0055] The method for predicting appearance changes provided in this embodiment first establishes a vital sign prediction model based on sample data of appearance change operations, and then predicts the vital sign data of the target user after the appearance change operation based on the vital sign prediction model. It can provide the user with predicted vital sign data after the appearance change operation to assist the user in making decisions.
[0056] Further references Figure 5 , which shows a process 500 of another embodiment of a method for predicting the result of an appearance change operation, comprising the following steps:
[0057] Step 501, obtaining sample data of an appearance change operation, wherein the sample data includes the first appearance data of the user before the appearance change operation and the second appearance data after the appearance change operation corresponding to the first appearance data; the sample data also includes the first appearance data of the user before the appearance change operation and the second appearance data after the appearance change operation corresponding to the first appearance data.
[0058] In this embodiment, the first appearance data, the second appearance data, the first vital sign data, and the second vital sign data are consistent with the description in step 201 and step 401, and are not repeated here.
[0059] Step 502, establishing a result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data, and the first vital sign data and the corresponding second vital sign data.
[0060] In this embodiment, a prediction model for the result of the appearance change operation is established using data mining technology or regression analysis algorithms based on the user's appearance data before the appearance change operation, the appearance data of the user after the appearance change operation corresponding to the appearance data before the appearance change operation, and the user's physical sign data before the appearance change operation, and the physical sign data of the user after the appearance change operation corresponding to the physical sign data before the appearance change operation. This embodiment establishes a result prediction model based on multi-dimensional data before and after the appearance change operation, which can improve the prediction accuracy of the established result prediction model.
[0061] Step 503, obtaining the target user's appearance data, vital sign data and intended appearance change operations, and predicting the target user's intended appearance data and vital sign data using a result prediction model of the appearance change operations based on the target user's appearance data, vital sign data and intended appearance change operations.
[0062] In this embodiment, the result prediction model can be used to predict the target user's appearance data and physical sign data after the intended appearance change operation based on the target user's appearance data and physical sign data before the appearance change operation and the appearance change operation that the target user intends to perform. For example, if the appearance operation change is rhinoplasty, the image and health status of the target user's nose after the rhinoplasty can be judged based on the image of the target user's nose before the operation and the health status of the nose, such as whether the bridge of the nose has cracks due to a heavy blow, etc., such as whether there will be sequelae such as twisted bridge of the nose or blockage. This embodiment uses the result prediction model established based on the appearance data and physical sign data to predict the appearance data and physical sign data of the target user after the appearance operation, so that the prediction model can perform multi-dimensional analysis on the data of the target user after the appearance operation, thereby making the prediction result more accurate.
[0063] In the above combination Figure 2 , Figure 4 and Figure 5 In some optional implementations of the described embodiments, the method for predicting the results of an appearance change operation also includes: generating operation risk warning information of the target user's intended appearance change operation based on the prediction result of the appearance change operation's intended appearance change operation by a result prediction model of the appearance change operation.
[0064] In this embodiment, according to the prediction result of the appearance change operation of the target user output by the appearance change operation result prediction model, a warning information of the risk of the target user performing the appearance change operation that he intends to perform is generated. Among them, the prediction result can be the face image of the target user after the appearance operation changes and / or the physical sign data after the appearance operation changes, and the risk warning information can be the appearance change degree generated based on the face image after the appearance operation changes and the comparison of the face image after the appearance operation changes, or the physical sign data report generated based on the physical sign data after the appearance operation changes. For example, the appearance change operation is a double eyelid surgery in medical beauty surgery. If the prediction result of the appearance change operation of the target user output by the appearance change operation result prediction model is that the eyelid change in the face image is not obvious and will be replaced with sequelae such as keratitis, then the target user is issued a surgical risk warning according to the prediction result. This embodiment sends risk warning information to the target user according to the prediction result, which can further help the target user make a decision on whether to perform the appearance change operation.
[0065] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for predicting the result of an appearance change operation. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0066] like Figure 6 As shown, the device 600 for predicting the result of an appearance change operation in this embodiment, wherein the device 600 includes: an acquisition unit 601, a modeling unit 602, and a prediction unit 603, wherein the acquisition unit 601 is configured to acquire sample data of an appearance change operation, wherein the sample data includes first appearance data of the user before the appearance change operation and second appearance data after the appearance change operation corresponding to the first appearance data; the modeling unit 602 is configured to establish a result prediction model of the appearance change operation based on the first appearance data and the second appearance data; the prediction unit 603 is configured to acquire the appearance data and the intended appearance change operation of the target user, and based on the appearance data and the intended appearance change operation of the target user, use the result prediction model of the appearance change operation to predict the appearance data of the target user after the intended appearance change operation.
[0067] In some embodiments, the modeling unit includes: an extraction module configured to extract key point features of the first appearance data and the second appearance data; a first modeling module configured to model the conversion relationship from the key point features of the first appearance data to the key point features of the second appearance data to obtain a result prediction model.
[0068] In some embodiments, the device also includes: obtaining user body state data corresponding to the second appearance data; a modeling unit, including: a first modeling sub-unit, configured to establish a result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data, and the user's body state data; the device also includes: a second modeling module, configured to use the result prediction model of the appearance change operation to predict the target user's body state information after the intended appearance change operation.
[0069] In some embodiments, the sample data also includes first vital sign data of the user before the appearance change operation and second vital sign data after the appearance change operation corresponding to the first appearance data.
[0070] In some embodiments, the device also includes: a third modeling module, configured to establish a vital sign prediction model based on the first vital sign data and the corresponding second vital sign data; a vital sign prediction module, configured to obtain the vital sign data and intended appearance change operation of the target user, and based on the vital sign data of the target user before the appearance change operation, use the vital sign prediction model to predict the vital sign data of the target user after the intended appearance change operation.
[0071] In some embodiments, the modeling unit includes: a second modeling sub-unit, configured to establish a result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data, and the first vital sign data and the corresponding second vital sign data; the device also includes: a fourth modeling module, configured to obtain the target user's vital sign data and intended appearance change operation, and based on the target user's vital sign data and the intended appearance change operation, use the result prediction model of the appearance change operation to predict the target user's vital sign data after the intended appearance change operation.
[0072] In some embodiments, the device also includes: a prompt unit configured to generate operation risk prompt information of the target user's intended appearance change operation based on the prediction result of the appearance change operation result prediction model for the target user's intended appearance change operation.
[0073] Each unit in the above device 600 is similar to the reference Figure 2 , Figure 4 and Figure 5 Therefore, the operations, features and technical effects described above for the method for predicting the result of the appearance change operation are also applicable to the device 600 and the units contained therein, and will not be repeated here.
[0074] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0075] like Figure 7, is a block diagram of an electronic device 700 for predicting the result of an appearance change operation according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0076] like Figure 7 As shown, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 701 is taken as an example.
[0077] The memory 702 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method for predicting the result of an appearance change operation provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for predicting the result of an appearance change operation provided in the present application.
[0078] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method for predicting the result of the appearance change operation in the embodiment of the present application (for example, the attached Figure 6 The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, the method for predicting the result of the appearance change operation in the above method embodiment is implemented.
[0079] The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of an electronic device for predicting the results of an appearance change operation, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device for predicting the results of an appearance change operation via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0080] The electronic device for predicting the result of the appearance change operation may further include: an input device 703, an output device 704 and a bus 707. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus 705 or other means. Figure 7 The connection via bus 705 is taken as an example.
[0081] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for predicting the result of the appearance change operation, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0082] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0084] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0085] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0086] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0087] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0088] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for predicting the result of an appearance change operation, comprising: Acquire sample data of an appearance change operation, wherein the sample data includes first appearance data and first vital sign data of the user before the appearance change operation, and second appearance data and second vital sign data corresponding to the first appearance data after the appearance change operation, wherein the appearance change operation includes an age increase operation, medical cosmetic surgery, or cosmetic operation; Establishing a result prediction model of the appearance change operation based on the first appearance data and the second appearance data, including: establishing the result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data, and the first vital sign data and the corresponding second vital sign data; Acquire the appearance data and intended appearance change operation of the target user, and based on the appearance data and intended appearance change operation of the target user, use a result prediction model of the appearance change operation to predict the appearance data of the target user after the intended appearance change operation; Obtain the target user's vital sign data and intended appearance change operation, and based on the target user's vital sign data and intended appearance change operation, use a result prediction model of the appearance change operation to predict the target user's vital sign data after the intended appearance change operation.
2. The method according to claim 1, wherein: The step of establishing a result prediction model of the appearance change operation based on the first appearance data and the second appearance data comprises: Extracting key point features from the first facial appearance data and the second facial appearance data; The conversion relationship between the key point features of the first facial appearance data and the key point features of the second facial appearance data is modeled to obtain the result prediction model.
3. The method according to claim 1, wherein: The method further includes: acquiring user body state data corresponding to the second appearance data; The step of establishing a result prediction model of the appearance change operation based on the first appearance data and the second appearance data comprises: Establishing a result prediction model of the appearance change operation based on the first appearance data, the corresponding second appearance data, and the user's body state data; The method further comprises: The result prediction model of the appearance change operation is used to predict the physical state information of the target user after the intended appearance change operation.
4. The method according to claim 1, wherein: The method further comprises: Establishing a physical sign prediction model according to the first physical sign data and the corresponding second physical sign data; The target user's vital sign data and intended appearance change operation are obtained, and based on the target user's vital sign data, the target user's vital sign data after the intended appearance change operation is predicted using the vital sign prediction model.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises: Based on the prediction result of the appearance change operation result prediction model for the target user's intended appearance change operation, operation risk warning information of the target user's intended appearance change operation is generated.
6. A device for predicting the result of an appearance change operation, comprising: an acquisition unit configured to acquire sample data of an appearance change operation, wherein the sample data includes first appearance data and first vital sign data of the user before the appearance change operation, and second appearance data and second vital sign data after the appearance change operation corresponding to the first appearance data, wherein the appearance change operation includes an operation of increasing age, a medical cosmetic surgery, or a cosmetic operation; A modeling unit is configured to establish a result prediction model of the appearance change operation based on the first appearance data and the second appearance data, including: establishing the result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data, and the first vital sign data and the corresponding second vital sign data; an appearance prediction unit configured to obtain appearance data and an intended appearance change operation of a target user, and based on the appearance data and the intended appearance change operation of the target user, predict the appearance data of the target user after the intended appearance change operation using a result prediction model of the appearance change operation; The vital sign prediction unit is configured to obtain the target user's vital sign data and intended appearance change operation, and based on the target user's vital sign data and intended appearance change operation, use a result prediction model of the appearance change operation to predict the target user's vital sign data after the intended appearance change operation.
7. The device according to claim 6, wherein: The modeling unit comprises: An extraction module, configured to extract key point features from the first appearance data and the second appearance data; The first modeling module is configured to model the conversion relationship between the key point features of the first appearance data and the key point features of the second appearance data to obtain the result prediction model.
8. The device according to claim 6, wherein: The device further comprises: acquiring user body state data corresponding to the second appearance data; The modeling unit comprises: A first modeling subunit is configured to establish a result prediction model of the appearance change operation based on the first appearance data and the corresponding second appearance data and the user's body state data; The device also includes: The second modeling module is configured to use the result prediction model of the appearance change operation to predict the body state information of the target user after the intended appearance change operation.
9. The device according to claim 6, wherein: The device also includes: A third modeling module is configured to establish a physical sign prediction model according to the first physical sign data and the corresponding second physical sign data; The vital sign prediction module is configured to obtain the target user's vital sign data and intended appearance change operation, and based on the target user's vital sign data before the appearance change operation, use the vital sign prediction model to predict the target user's vital sign data after the intended appearance change operation.
10. The device according to any one of claims 6 to 9, wherein: The device also includes: The prompting unit is configured to generate operation risk prompting information of the target user's intended appearance change operation based on the prediction result of the appearance change operation result prediction model for the target user's intended appearance change operation.
11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.
