A method, device, equipment and medium for determining associated equipment
By using a large language model in the user device system to generate usage prediction text and calculate similarity, it solves the problem of difficult to determine the association between different devices, and achieves accurate analysis of associated devices and recommendation of push information.
Patent Information
- Application Number
- CN202410936649.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In a huge user equipment system, how to determine the correlation between devices based on their subsequent usage, especially when different devices and usage information are different, conduct subsequent usage analysis and recommend push notifications that match the device usage. information.
By inputting the usage record text of the target APP in the device into the preset large language model, the usage prediction text is generated, and the similarity of the predicted text is calculated. When the similarity is greater than the threshold, the association between the devices is determined. At the same time, the preset classification rules and weights are used to calculate priorities and determine the type and relevance of the device.
It is possible to identify devices with associated subsequent usage from devices of different types with incompatible data, improving the accuracy of analysis of associated devices and push information recommendations.
Smart Images

Figure CN118467715B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of text processing technology, and in particular to a method, device, equipment and medium for determining an associated device. Background Art
[0002] At present, in the huge user device system, in order to grasp the usage of devices and applications of various users, the software development kit SDK is used to upload the installation information and usage information of each APP in the device to the database. Among them, there are inevitably different new and old devices used by the same user, and the device and usage information of each user are different, which makes it very difficult to analyze the subsequent usage of massive devices. Therefore, how to determine the relationship between devices based on the subsequent usage of the devices is an urgent problem to be solved. Summary of the invention
[0003] The present invention aims to provide a method, apparatus, device and medium for determining associated devices, so as to determine devices with associated relationships for subsequent usage, thereby facilitating subsequent analysis of the associated devices and recommending push information that is consistent with the device usage.
[0004] According to a first aspect of the present invention, there is provided a method for determining an associated device, comprising the following steps:
[0005] The target usage record text of the target APP in the given first device is input into a preset large language model to generate a first usage prediction text.
[0006] The target usage record text of the target APP in a given second device is input into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0007] The text similarity between the first usage situation prediction text and the second usage situation prediction text is obtained.
[0008] When the text similarity is greater than a preset text similarity threshold, it is determined that the first device and the second device are associated devices corresponding to the target APP.
[0009] Further, determining the first device and the second device according to a preset classification rule includes the following steps:
[0010] Receive a target usage record text of a target APP in a given initial device and the number of key APP installations corresponding to the initial device; the number of key APP installations refers to the number of all APPs installed in the initial device.
[0011] According to the preset character quantity weight and the preset installation quantity weight, the weighted sum of the character quantity of the target usage record text of the target APP in the initial device and the key APP installation quantity is calculated to obtain the priority of the initial device.
[0012] When the priority of the initial device is greater than a preset priority threshold, the initial device is determined to be a first device; otherwise, the initial device is determined to be a second device.
[0013] Furthermore, the first usage prediction text and the second usage prediction text are prediction texts with the same format generated by using the same prediction text template.
[0014] Further, the obtaining of the text similarity between the first usage prediction text and the second usage prediction text comprises the following steps:
[0015] According to several target positions in the prediction text template, several first prediction values corresponding to the target positions are obtained from the first usage prediction text, and several second prediction values corresponding to the target positions are obtained from the second usage prediction text; the target positions refer to positions where missing values exist in the prediction text template.
[0016] A target ratio corresponding to each target position is obtained; the target ratio corresponding to the target position refers to a ratio of a minimum value to a maximum value between a first predicted value corresponding to the target position and a second predicted value corresponding to the target position.
[0017] According to the given position weight corresponding to each target position, a weighted sum of a plurality of target ratios and a plurality of position weights is calculated to obtain the text similarity between the first usage prediction text and the second usage prediction text.
[0018] Furthermore, the method further comprises the following steps:
[0019] The original usage record text of the target APP in the given first device is compared with the given record text template to determine whether there is any data missing in the original usage record text of the target APP in the first device.
[0020] When there is no data missing in the original usage record text of the target APP in the first device, the original usage record text of the target APP in the first device is determined as the target usage record text of the target APP in the first device.
[0021] When there is missing data in the original usage record text of the target APP in the first device, the original usage record text of the target APP in the first device is input into the trained target neural network model to obtain the target usage record text of the target APP in the first device.
[0022] According to a second aspect of the present invention, a device for determining an associated device is provided, the device comprising:
[0023] The first generating module is used to input the target usage record text of the target APP in the given first device into a preset large language model to generate a first usage prediction text.
[0024] The second generation module is used to input the target usage record text of the target APP in a given second device into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0025] The first acquisition module is used to acquire the text similarity between the first usage prediction text and the second usage prediction text.
[0026] The first determination module is used to determine that the first device and the second device are associated devices corresponding to the target APP when the text similarity is greater than a preset text similarity threshold.
[0027] Furthermore, it also includes a classification module, and the classification module includes:
[0028] The receiving module is used to receive the target usage record text of the target APP in a given initial device and the number of key APP installations corresponding to the initial device; the number of key APP installations refers to the number of all APPs installed in the initial device.
[0029] The first calculation module is used to calculate the weighted sum of the number of characters in the target usage record text of the target APP in the initial device and the number of key APP installations according to a preset character number weight and a preset installation number weight, so as to obtain the priority of the initial device.
[0030] The second determination module is used to determine that the initial device is a first device when the priority of the initial device is greater than a preset priority threshold, otherwise, determine that the initial device is a second device.
[0031] Furthermore, the first usage prediction text and the second usage prediction text are prediction texts with the same format generated by using the same prediction text template.
[0032] Furthermore, the first acquisition module includes:
[0033] The second acquisition module is used to obtain a number of first prediction values corresponding to a number of target positions in the prediction text template from the first usage prediction text, and to obtain a number of second prediction values corresponding to a number of target positions from the second usage prediction text; the target position refers to a position where a missing value exists in the prediction text template.
[0034] The third acquisition module is used to obtain a target ratio corresponding to each target position; the target ratio corresponding to the target position refers to the ratio of the minimum value to the maximum value of the first predicted value corresponding to the target position and the second predicted value corresponding to the target position.
[0035] The second calculation module is used to calculate the weighted sum of several target ratios and several position weights according to the position weight corresponding to each given target position, so as to obtain the text similarity between the first usage prediction text and the second usage prediction text.
[0036] Furthermore, the method further comprises a preprocessing module, wherein the preprocessing module comprises:
[0037] The judgment module is used to compare the original usage record text of the target APP in the given first device with the given record text template to determine whether there is any data missing in the original usage record text of the target APP in the first device.
[0038] The third determination module is used to determine the original usage record text of the target APP in the first device as the target usage record text of the target APP in the first device when there is no data missing in the original usage record text of the target APP in the first device.
[0039] The fourth acquisition module is used to input the original usage record text of the target APP in the first device into the trained target neural network model when there is missing data in the original usage record text of the target APP in the first device, so as to obtain the target usage record text of the target APP in the first device.
[0040] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for determining associated devices when executing the computer program.
[0041] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned method for determining an associated device when executed by a processor.
[0042] Compared with the prior art, the present invention has at least the following beneficial effects:
[0043] The method for determining associated devices described in the present invention first inputs the target usage record text of the target APP in the given first device and the target usage record text of the target APP in the second device into a preset large language model respectively, and generates a first usage prediction text and a second usage prediction text respectively to achieve the prediction of the usage of the two devices, and then calculates the text similarity of the first usage prediction text and the second usage prediction text. When the text similarity is greater than the preset text similarity threshold, the first device and the second device are determined to be associated devices corresponding to the target APP. By calculating the text similarity of the usage prediction text, devices with associated relationships in subsequent usage can be determined from devices of different types and with unconnected data, so as to perform subsequent analysis on the associated devices and recommend push information that conforms to the device usage. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flowchart of a method for determining an associated device provided in Embodiment 1 of the present invention;
[0046] Figure 2 A partial flow chart of the steps of obtaining a target usage record text provided in the first embodiment of the present invention;
[0047] Figure 3 A flowchart of steps for determining a first device and a second device provided in Embodiment 1 of the present invention;
[0048] Figure 4 A flowchart of step S300 provided in the first embodiment of the present invention;
[0049] Figure 5 A schematic diagram of a device for determining an associated device provided in Embodiment 1 of the present invention;
[0050] Figure 6 A schematic diagram of a preprocessing module provided in Embodiment 2 of the present invention;
[0051] Figure 7 A schematic diagram of a classification module provided in Embodiment 2 of the present invention;
[0052] Figure 8This is a schematic diagram of a first acquisition module 300 provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.
[0054] Embodiment 1
[0055] like Figure 1 As shown, this embodiment 1 provides a method for determining an associated device, including the following steps:
[0056] S100, inputting a target usage record text of a target APP in a given first device into a preset large language model to generate a first usage prediction text.
[0057] Specifically, the preset large language model is a model trained using recorded text samples according to several objectives. Those skilled in the art are aware of the training implementation process of the large language model, which will not be described in detail here.
[0058] Specifically, the first usage prediction text refers to a text that predicts the usage of a target APP in a first device within a future target time period; technicians in this field set the future target time period according to actual needs, for example, predicting the usage of a target APP within the next year.
[0059] Specifically, Figure 2 As shown, the method further comprises the following steps:
[0060] S101, compare the original usage record text of the target APP in the given first device with the given record text template to determine whether there is any data missing in the original usage record text of the target APP in the first device; it can be understood that: the original usage record text records data with the record text template as a template, and the required data can be screened and recorded according to the data information uploaded by the SDK.
[0061] Preferably, the original usage record text of the target APP includes the average usage time of the target APP in several different preset periods; technicians in this field can also set the required information according to actual needs, such as: average number of uses, maximum usage time period or a combination of several information, etc., wherein the target APP can be a car purchase APP, a shopping APP, etc.
[0062] Specifically, the record text template refers to a template that includes several usage data information of the APP to be recorded; for example, the record text template is: the average usage time of the target APP within half a year is ——, the average usage time within one year is ——, and the average usage time within two years is ——; wherein, the average usage time can be the average time calculated based on the total usage time of each day, or it can be the average time calculated based on the total usage time of each time. Technical personnel in this field will set it according to actual needs.
[0063] S102: When there is no data missing in the original usage record text of the target APP in the first device, determine the original usage record text of the target APP in the first device as the target usage record text of the target APP in the first device.
[0064] For better understanding, the following explanation is made: when the original usage record text of the target APP in the first device is "the average usage time of the target APP in half a year is 1 hour, the average usage time in one year is 1 hour, and the average usage time in two years is 0.5 hours", there is no missing data.
[0065] S103, when there is missing data in the original usage record text of the target APP in the first device, the original usage record text of the target APP in the first device is input into the trained target neural network model to obtain the target usage record text of the target APP in the first device; it can be understood that: the existence of missing data in the original usage record text of the target APP means that all required information is not recorded in the original usage record text of the target APP, wherein all required information refers to all information that needs to be recorded provided in the record text template.
[0066] For better understanding, the following explanation is made: when the original usage record text of the target APP in the first device is "the average usage time of the target APP in half a year is 1 hour, and the average usage time in one year is 0.5 hours", the average usage time in two years is not recorded, then there is missing data.
[0067] Specifically, the target neural network model is a model trained based on several usage record text samples with missing data. Those skilled in the art are aware of the training implementation process of the neural network model, for example, the natural language processing model based on deep learning, which will not be described here.
[0068] The above describes the process of obtaining the target usage record text. The original usage record text of the target APP is compared with the record text template. When the original usage record text does not record the required complete information, the recorded information is supplemented to predict more accurate usage information in the future time period.
[0069] S200, inputting the target usage record text of the target APP in a given second device into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0070] Preferably, the target usage record text of the target APP in the second device refers to the original usage record text of the target APP in the second device; considering that the second device has been used for a short time and the device performance is relatively complete, data missing is not considered.
[0071] Specifically, the second usage prediction text refers to a text that predicts the usage of a target APP in a second device within a future target time period.
[0072] Specifically, the first usage prediction text and the second usage prediction text are prediction texts with the same format generated by using the same prediction text template; it can be understood that: the required information type for prediction is consistent and the prediction time period is consistent; for example, the average usage time of the target APP in the next year is ——, and the average number of uses is ——.
[0073] As described above, according to different device types, texts recording complete information are selected and input into a trained preset large language model. By classifying the devices and making predictions respectively, a more accurate prediction text that conforms to the actual usage of the device can be obtained.
[0074] Preferably, Figure 3 As shown, determining the first device and the second device according to a preset classification rule includes the following steps:
[0075] S001, receiving the target usage record text of the target APP in a given initial device and the number of key APP installations corresponding to the initial device; the number of key APP installations refers to the number of all APPs installed in the initial device; if the same APP is installed repeatedly for multiple times, it is recorded as one installation number.
[0076] S002, based on the preset character quantity weight and the preset installation quantity weight, the weighted sum of the character quantity of the target usage record text of the target APP in the initial device and the key APP installation quantity is calculated to obtain the priority of the initial device; those skilled in the art set the character quantity weight and the installation quantity weight according to actual needs.
[0077] Preferably, the character quantity weight is greater than the installation quantity weight.
[0078] Specifically, the priority of the initial device meets the following conditions:
[0079] P=D1×W1+D2×W2, where P is the priority of the initial device, D1 is the number of characters in the target usage record text of the target APP in the initial device, W1 is the preset character number weight, D2 is the number of key APP installations corresponding to the initial device, and W2 is the preset installation number weight.
[0080] S003, when the priority of the initial device is greater than a preset priority threshold, the initial device is determined to be a first device, otherwise, the initial device is determined to be a second device; technicians in this field set the preset priority threshold according to actual needs, which will not be repeated here.
[0081] As mentioned above, based on the number of characters in the target usage record text of the target APP in the initial device, the number of key APP installations is also introduced to judge the type of device. When the priority is high, it indicates that the number of characters in the target usage record text and the number of key APP installations are relatively large, and it is considered to be an old device, that is, it is judged as the first device, otherwise it is judged as the second device. The accuracy of device classification is improved by combining the number of characters and the number of APPs.
[0082] S300: Obtain text similarity between the first usage prediction text and the second usage prediction text.
[0083] Preferably, Figure 4 As shown, step S300 also includes the following steps:
[0084] S301, according to several target positions in the prediction text template, obtain several first prediction values corresponding to several target positions from the first usage prediction text, and obtain several second prediction values corresponding to several target positions from the second usage prediction text; the target position refers to the position where there is a missing value in the prediction text template; it can be understood that: the target position refers to the position where the missing value needs to be added in the prediction text template when generating the first usage prediction text or the second usage prediction text.
[0085] For ease of understanding, the prediction text template and target position are explained with examples: when the prediction text template is "The average usage time of the target APP in the next year is ——, and the average number of uses is ——", it includes two target positions, that is, the positions of two "——" in the text; when the first usage prediction text is "The average usage time of the target APP in the next year is 1h, and the average number of uses is 3", the first prediction values are 1h and 3 respectively.
[0086] S302, obtaining a target ratio corresponding to each target position; the target ratio corresponding to the target position refers to a ratio of a minimum value to a maximum value between a first predicted value corresponding to the target position and a second predicted value corresponding to the target position.
[0087] S303: Calculate a weighted sum of a plurality of target ratios and a plurality of position weights according to a given position weight corresponding to each target position, and obtain text similarity between the first usage prediction text and the second usage prediction text.
[0088] Preferably, the text similarity meets the following conditions:
[0089] S=∑ n j=1 (min(a j ,b j ) / max(a j ,b j )×H j ), where S is the text similarity, n is the number of target positions in the predicted text template, and a j is the first predicted value corresponding to the jth target position in the predicted text template, b j is the second predicted value corresponding to the jth target position in the predicted text template, H j is the position weight corresponding to the jth target position in the predicted text template, where H1 to H j The values decrease in sequence.
[0090] As mentioned above, the ratio of the minimum value to the maximum value of the two predicted values can reflect the data proximity of the two predicted values, and the position weight of the target position can reflect the importance of the data information corresponding to the target position. Therefore, the text similarity obtained according to the target ratio and position weight is more reasonable, thereby increasing the accuracy of the associated device judgment.
[0091] S400, when the text similarity is greater than a preset text similarity threshold, determining that the first device and the second device are associated devices corresponding to the target APP; technicians in this field set the text similarity threshold according to actual needs, which will not be repeated here.
[0092] The method for determining associated devices described in this embodiment first inputs the target usage record text of the target APP in the given first device and the target usage record text of the target APP in the second device into the preset large language model respectively, and generates a first usage prediction text and a second usage prediction text respectively, so as to predict the usage of the two devices, and then calculates the text similarity between the first usage prediction text and the second usage prediction text. When the text similarity is greater than the preset text similarity threshold, the first device and the second device are determined to be associated devices corresponding to the target APP. By calculating the text similarity of the usage prediction text, devices with associated relationships in subsequent usage can be determined from devices of different types and with unconnected data, so as to perform subsequent analysis on the associated devices and recommend push information that is consistent with the device usage.
[0093] Embodiment 2
[0094] like Figure 5 As shown, this embodiment 2 provides a device for determining an associated device, the device comprising:
[0095] The first generating module 100 is used to input a target usage record text of a target APP in a given first device into a preset large language model to generate a first usage prediction text.
[0096] Specifically, the preset large language model is a model trained using recorded text samples according to several objectives. Those skilled in the art are aware of the training implementation process of the large language model, which will not be described in detail here.
[0097] Specifically, the first usage prediction text refers to a text that predicts the usage of a target APP in a first device within a future target time period; technicians in this field set the future target time period according to actual needs, for example, predicting the usage of a target APP within the next year.
[0098] Specifically, as shown in 6, the device further includes a preprocessing module, and the preprocessing module includes:
[0099] The judgment module 101 is used to compare the original usage record text of the target APP in a given first device with a given record text template to determine whether there is any data missing in the original usage record text of the target APP in the first device; it can be understood that: the original usage record text records data based on the record text template, and the required data can be screened and recorded according to the data information uploaded by the SDK.
[0100] Preferably, the original usage record text of the target APP includes the average usage time of the target APP in several different preset periods; technicians in this field can also set the required information according to actual needs, such as: average number of uses, maximum usage time period or a combination of several information, etc., wherein the target APP can be a car purchase APP, a shopping APP, etc.
[0101] Specifically, the record text template refers to a template that includes several usage data information of the APP to be recorded; for example, the record text template is: the average usage time of the target APP within half a year is ——, the average usage time within one year is ——, and the average usage time within two years is ——; wherein, the average usage time can be the average time calculated based on the total usage time of each day, or it can be the average time calculated based on the total usage time of each time. Technical personnel in this field will set it according to actual needs.
[0102] The third determination module 102 is used to determine the original usage record text of the target APP in the first device as the target usage record text of the target APP in the first device when there is no data missing in the original usage record text of the target APP in the first device.
[0103] For better understanding, the following explanation is made: when the original usage record text of the target APP in the first device is "the average usage time of the target APP in half a year is 1 hour, the average usage time in one year is 1 hour, and the average usage time in two years is 0.5 hours", there is no missing data.
[0104] The fourth acquisition module 103 is used to input the original usage record text of the target APP in the first device into the trained target neural network model to obtain the target usage record text of the target APP in the first device when there is missing data in the original usage record text of the target APP in the first device; it can be understood that: the existence of missing data in the original usage record text of the target APP means that all required information is not recorded in the original usage record text of the target APP, wherein all required information refers to all information that needs to be recorded provided in the record text template.
[0105] For better understanding, the following explanation is made: when the original usage record text of the target APP in the first device is "the average usage time of the target APP in half a year is 1 hour, and the average usage time in one year is 0.5 hours", the average usage time in two years is not recorded, then there is missing data.
[0106] Specifically, the target neural network model is a model trained based on several usage record text samples with missing data. Those skilled in the art are aware of the training implementation process of the neural network model, for example, the natural language processing model based on deep learning, which will not be described here.
[0107] The above describes the process of obtaining the target usage record text. The original usage record text of the target APP is compared with the record text template. When the original usage record text does not record the required complete information, the recorded information is supplemented to predict more accurate usage information in the future time period.
[0108] The second generation module 200 is used to input the target usage record text of the target APP in a given second device into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0109] Preferably, the target usage record text of the target APP in the second device refers to the original usage record text of the target APP in the second device; considering that the second device has been used for a short time and the device performance is relatively complete, data missing is not considered.
[0110] Specifically, the second usage prediction text refers to a text that predicts the usage of a target APP in a second device within a future target time period.
[0111] Specifically, the first usage prediction text and the second usage prediction text are prediction texts with the same format generated by using the same prediction text template; it can be understood that: the required information type for prediction is consistent and the prediction time period is consistent; for example, the average usage time of the target APP in the next year is ——, and the average number of uses is ——.
[0112] As described above, according to different device types, texts recording complete information are selected and input into a trained preset large language model. By classifying the devices and making predictions respectively, a more accurate prediction text that conforms to the actual usage of the device can be obtained.
[0113] Preferably, Figure 7 As shown, the device also includes a classification module, and the classification module includes:
[0114] Receiving module 001 is used to receive the target usage record text of the target APP in a given initial device and the key APP installation quantity corresponding to the initial device; the key APP installation quantity refers to the number of all APPs installed in the initial device; if the same APP is installed repeatedly for multiple times, it is recorded as one installation quantity.
[0115] The first calculation module 002 is used to calculate the weighted sum of the number of characters in the target usage record text of the target APP in the initial device and the number of key APP installations according to a preset character number weight and a preset installation number weight, so as to obtain the priority of the initial device; those skilled in the art set the character number weight and the installation number weight according to actual needs.
[0116] Preferably, the character quantity weight is greater than the installation quantity weight.
[0117] Specifically, the priority of the initial device meets the following conditions:
[0118] P=D1×W1+D2×W2, where P is the priority of the initial device, D1 is the number of characters in the target usage record text of the target APP in the initial device, W1 is the preset character number weight, D2 is the number of key APP installations corresponding to the initial device, and W2 is the preset installation number weight.
[0119] The second determination module 003 is used to determine that the initial device is the first device when the priority of the initial device is greater than a preset priority threshold, otherwise, the initial device is determined to be the second device; technicians in this field set the preset priority threshold according to actual needs, which will not be repeated here.
[0120] As mentioned above, based on the number of characters in the target usage record text of the target APP in the initial device, the number of key APP installations is also introduced to judge the type of device. When the priority is high, it indicates that the number of characters in the target usage record text and the number of key APP installations are relatively large, and it is considered to be an old device, that is, it is judged as the first device, otherwise it is judged as the second device. The accuracy of device classification is improved by combining the number of characters and the number of APPs.
[0121] The first acquisition module 300 is used to acquire text similarity between the first usage prediction text and the second usage prediction text.
[0122] Preferably, Figure 8 As shown, the first acquisition module 300 includes:
[0123] The second acquisition module 301 is used to acquire a number of first prediction values corresponding to a number of target positions in the first usage prediction text according to a number of target positions in the prediction text template, and to acquire a number of second prediction values corresponding to a number of target positions from the second usage prediction text; the target position refers to a position where a missing value exists in the prediction text template; it can be understood that: the target position refers to a position in the prediction text template where a missing value needs to be added when generating the first usage prediction text or the second usage prediction text.
[0124] For ease of understanding, the prediction text template and target position are explained with examples: when the prediction text template is "The average usage time of the target APP in the next year is ——, and the average number of uses is ——", it includes two target positions, that is, the positions of two "——" in the text; when the first usage prediction text is "The average usage time of the target APP in the next year is 1h, and the average number of uses is 3", the first prediction values are 1h and 3 respectively.
[0125] The third acquisition module 302 is used to obtain a target ratio corresponding to each target position; the target ratio corresponding to the target position refers to the ratio of the minimum value to the maximum value of the first predicted value corresponding to the target position and the second predicted value corresponding to the target position.
[0126] The second calculation module 303 is used to calculate the weighted sum of a number of target ratios and a number of position weights according to the position weight corresponding to each given target position, so as to obtain the text similarity between the first usage prediction text and the second usage prediction text.
[0127] Preferably, the text similarity meets the following conditions:
[0128] S=∑ n j=1 (min(a j ,b j ) / max(a j ,b j )×H j ), where S is the text similarity, n is the number of target positions in the predicted text template, and a j is the first predicted value corresponding to the jth target position in the predicted text template, b j is the second predicted value corresponding to the jth target position in the predicted text template, H j is the position weight corresponding to the jth target position in the predicted text template, where H1 to H j The values decrease in sequence.
[0129] As mentioned above, the ratio of the minimum value to the maximum value of the two predicted values can reflect the data proximity of the two predicted values, and the position weight of the target position can reflect the importance of the data information corresponding to the target position. Therefore, the text similarity obtained according to the target ratio and position weight is more reasonable, thereby increasing the accuracy of the associated device judgment.
[0130] The first determination module 400 is used to determine that the first device and the second device are associated devices corresponding to the target APP when the text similarity is greater than a preset text similarity threshold. Those skilled in the art set the text similarity threshold according to actual needs, which will not be repeated here.
[0131] When the associated device determination device described in this embodiment is running, the target usage record text of the target APP in the given first device and the target usage record text of the target APP in the second device are firstly input into the preset large language model respectively, and the first usage prediction text and the second usage prediction text are generated respectively to realize the prediction of the usage of the two devices, and then the text similarity of the first usage prediction text and the second usage prediction text is calculated. When the text similarity is greater than the preset text similarity threshold, the first device and the second device are determined to be associated devices corresponding to the target APP. By calculating the text similarity of the usage prediction text, the device with the subsequent usage having an associated relationship can be determined from the devices of different types and with unconnected data, so as to perform subsequent analysis on the associated devices and recommend push information that meets the device usage.
[0132] Embodiment 3
[0133] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0134] The target usage record text of the target APP in the given first device is input into a preset large language model to generate a first usage prediction text.
[0135] The target usage record text of the target APP in a given second device is input into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0136] The text similarity between the first usage situation prediction text and the second usage situation prediction text is obtained.
[0137] When the text similarity is greater than a preset text similarity threshold, it is determined that the first device and the second device are associated devices corresponding to the target APP.
[0138] Embodiment 4
[0139] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0140] The target usage record text of the target APP in the given first device is input into a preset large language model to generate a first usage prediction text.
[0141] The target usage record text of the target APP in a given second device is input into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule.
[0142] The text similarity between the first usage situation prediction text and the second usage situation prediction text is obtained.
[0143] When the text similarity is greater than a preset text similarity threshold, it is determined that the first device and the second device are associated devices corresponding to the target APP.
[0144] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0145] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0146] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for determining an associated device, characterized in that: The following steps are involved: Inputting a target usage record text of a given target APP in a first device into a preset large language model to generate a first usage prediction text; Inputting a target usage record text of a target APP in a given second device into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule; Obtaining text similarity between the first usage situation prediction text and the second usage situation prediction text; When the text similarity is greater than a preset text similarity threshold, determining that the first device and the second device are associated devices corresponding to the target APP; Wherein, determining the first device and the second device according to a preset classification rule includes the following steps: Receive a target usage record text of a target APP in a given initial device and the number of key APP installations corresponding to the initial device; the number of key APP installations refers to the number of all APPs installed in the initial device; According to a preset character quantity weight and a preset installation quantity weight, a weighted sum of the character quantity of the target usage record text of the target APP in the initial device and the key APP installation quantity is calculated to obtain the priority of the initial device; When the priority of the initial device is greater than a preset priority threshold, the initial device is determined to be a first device; otherwise, the initial device is determined to be a second device.
2. The method for determining associated devices according to claim 1, characterized in that: The first usage situation prediction text and the second usage situation prediction text are prediction texts with the same format generated by using the same prediction text template.
3. The method for determining associated devices according to claim 2, characterized in that: The obtaining of the text similarity between the first usage prediction text and the second usage prediction text comprises the following steps: According to the target positions in the prediction text template, obtaining a number of first prediction values corresponding to the target positions from the first usage prediction text, and obtaining a number of second prediction values corresponding to the target positions from the second usage prediction text; the target positions refer to positions where there are missing values in the prediction text template; Obtaining a target ratio corresponding to each target position; the target ratio corresponding to the target position refers to a ratio of a minimum value to a maximum value between a first predicted value corresponding to the target position and a second predicted value corresponding to the target position; According to the given position weight corresponding to each target position, a weighted sum of a plurality of target ratios and a plurality of position weights is calculated to obtain the text similarity between the first usage prediction text and the second usage prediction text.
4. The method for determining associated devices according to claim 1, characterized in that: The method further comprises the following steps: Compare the original usage record text of the target APP in the given first device with the given record text template to determine whether there is any data missing in the original usage record text of the target APP in the first device; When there is no data missing in the original usage record text of the target APP in the first device, determining the original usage record text of the target APP in the first device as the target usage record text of the target APP in the first device; When there is missing data in the original usage record text of the target APP in the first device, the original usage record text of the target APP in the first device is input into the trained target neural network model to obtain the target usage record text of the target APP in the first device.
5. A device for determining an associated device, characterized in that: The device comprises: A first generating module, configured to input a target usage record text of a target APP in a given first device into a preset large language model to generate a first usage prediction text; A second generation module is used to input the target usage record text of the target APP in the given second device into a preset large language model to generate a second usage prediction text; the first device and the second device are determined according to a preset classification rule; A first acquisition module, configured to acquire text similarity between the first usage prediction text and the second usage prediction text; A first determination module, configured to determine that the first device and the second device are associated devices corresponding to a target APP when the text similarity is greater than a preset text similarity threshold; The device also includes a classification module, and the classification module includes: A receiving module, configured to receive a target usage record text of a target APP in a given initial device and the number of key APP installations corresponding to the initial device; the number of key APP installations refers to the number of all APPs installed in the initial device; A first calculation module is used to calculate the weighted sum of the number of characters in the target usage record text of the target APP in the initial device and the number of key APP installations according to a preset character number weight and a preset installation number weight, so as to obtain the priority of the initial device; The second determination module is used to determine that the initial device is a first device when the priority of the initial device is greater than a preset priority threshold, otherwise, determine that the initial device is a second device.
6. The device for determining associated equipment according to claim 5, characterized in that: The first usage situation prediction text and the second usage situation prediction text are prediction texts with the same format generated by using the same prediction text template.
7. The device for determining associated equipment according to claim 6, characterized in that: The first acquisition module includes: a second acquisition module, configured to acquire, according to the target positions in the prediction text template, a plurality of first prediction values corresponding to the target positions from the first usage prediction text, and acquire a plurality of second prediction values corresponding to the target positions from the second usage prediction text; the target positions refer to positions where there are missing values in the prediction text template; A third acquisition module is used to acquire a target ratio corresponding to each target position; the target ratio corresponding to the target position refers to a ratio of a minimum value to a maximum value between a first predicted value corresponding to the target position and a second predicted value corresponding to the target position; The second calculation module is used to calculate the weighted sum of several target ratios and several position weights according to the position weight corresponding to each given target position, so as to obtain the text similarity between the first usage prediction text and the second usage prediction text.
8. The device for determining associated equipment according to claim 5, characterized in that: The device also includes a preprocessing module, which includes: A judgment module, used to compare the original usage record text of the target APP in the given first device with the given record text template to judge whether there is any data missing in the original usage record text of the target APP in the first device; A third determination module is used to determine the original usage record text of the target APP in the first device as the target usage record text of the target APP in the first device when there is no data missing in the original usage record text of the target APP in the first device; The fourth acquisition module is used to input the original usage record text of the target APP in the first device into the trained target neural network model when there is missing data in the original usage record text of the target APP in the first device, so as to obtain the target usage record text of the target APP in the first device.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for determining an associated device according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for determining an associated device according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Equipment information correlation method and system and control system therefor
CN108200114A
Terminal identification method and device
CN109961080A
User association method and device
CN110035116A
Evaluation model generation method and device, equipment association method and device and storage medium
CN110866241A
Data association method and device
CN112488140A
