Sharing information processing method, device, storage medium and electronic device
By identifying user preference data or using a sharing prediction model to determine the target sharing location, the problem of user inconvenience when sharing information in a multi-APP environment is solved, and the user experience and ease of operation are improved.
Patent Information
- Application Number
- CN201910647584.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-07-26
AI Technical Summary
In a multi-APP environment, users need to select the target location among complex options when sharing information, which leads to inconvenient operation and affects the user experience.
By obtaining user identification and the type of information to be shared, identifying user preference data or using a sharing prediction model to determine the target sharing location, and displaying it on the terminal first, simplifying the user's selection process.
It simplifies the user's sharing operation process, improves the user experience, and has high robustness in the absence of user historical sharing data, and can reasonably predict users' sharing intentions.
Smart Images

Figure CN112241327B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of human-computer interaction technology, and in particular to a shared information processing method, a shared information processing device, a computer-readable storage medium, and an electronic device. Background Art
[0002] When users use electronic devices such as smartphones and personal computers in their daily lives, they often need to share information with other users. Such sharing behavior can be cross-APP (Application), such as sharing news in a news APP to a social APP, sharing music in a music APP to a network disk, or it can be within an APP, such as sharing articles in a social APP to friends or groups in the social APP.
[0003] Currently, when users need to share information, all possible sharing locations are usually displayed on the sharing interface, and then the user selects the target location they want to share. This processing method increases the complexity of user operations, especially when there are many apps installed in the electronic device that can share information. The user needs to drag the interface to find the target location, or some electronic devices set up multiple levels of options on the sharing interface, or fold some options. It is very inconvenient for the user to select the target location, which affects the user experience.
[0004] Therefore, how to enable users to share information conveniently is an urgent problem to be solved.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The present disclosure provides a shared information processing method, a shared information processing device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent improving the problem of user operation inconvenience in the current information sharing process.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of the present disclosure, a method for processing shared information is provided, including: obtaining information to be shared and a user identifier that sends the information to be shared from a terminal, identifying the type of the information to be shared as a target type; when user preference data corresponding to the target type under the user identifier is found, determining a target sharing position of the information to be shared according to the user preference data; when user preference data corresponding to the target type under the user identifier is not found, determining the target sharing position of the information to be shared by using a sharing prediction model; and sending the target sharing position to the terminal so as to preferentially display the target sharing position on the terminal.
[0009] Optionally, the user preference data corresponding to the target type under the user identifier is obtained in the following manner: collecting historical sharing events corresponding to the user identifier; counting historical sharing events of each type according to the type of information shared in each historical sharing event; and calculating the user preference data corresponding to the target type under the user identifier based on the time distribution characteristics of the historical sharing events of the target type.
[0010] Optionally, the user preference data corresponding to the target type includes: the preference for sharing information of the target type to each sharing location; the calculation of the user preference data corresponding to the target type under the user identifier based on the time distribution characteristics of the historical sharing events of the target type, including: arranging the historical sharing events of the target type in chronological order, merging continuous historical sharing events with the same sharing location into a historical sharing event set, and forming unmerged historical sharing events into historical sharing event sets of single events; calculating the weight of each historical sharing event set according to the order of each historical sharing event set and the number of events therein; merging the weights of the historical sharing event sets with the same sharing location to calculate the preference for sharing information of the target type to each sharing location.
[0011] Optionally, when calculating the user preference data, if a preset condition is met, the user preference data is determined to be a null value; wherein the preset condition includes any one or more combinations of the following: the number of historical sharing events corresponding to the target type is less than a first threshold; the number of historical sharing events corresponding to the target type in the most recent preset period is less than a second threshold; the sharing preferences of the various sharing locations are lower than a third threshold.
[0012] Optionally, the target sharing location includes: a sharing location with the highest preference, or a sharing location with a preference higher than a preset preference threshold.
[0013] Optionally, the sharing prediction model is obtained in the following manner: obtaining historical sharing events of different users, extracting multiple groups of sample data therefrom, each group of sample data including user information, and any N+1 consecutive historical sharing events corresponding to the user information and with the same sharing information type, where N is a positive integer not less than 2; using the user information and the sharing positions of the first N events in the N+1 historical sharing events as training data, and using the sharing position of the last event in the N+1 historical sharing events as annotation data, to train a machine learning model to obtain the sharing prediction model.
[0014] Optionally, the information to be shared is information shared in a target application, and the target sharing location is a sharing location in the target application.
[0015] According to a second aspect of the present disclosure, a shared information processing device is provided, including: an acquisition module, used to acquire information to be shared and a user identifier of a user who sends the information to be shared from a terminal, and identify the type of the information to be shared as a target type; a first processing module, used to determine a target sharing position of the information to be shared according to the user preference data when user preference data corresponding to the target type under the user identifier is found; a second processing module, used to predict the target sharing position of the information to be shared according to a sharing prediction model when user preference data corresponding to the target type under the user identifier is not found; and a sending module, used to send the target sharing position to the terminal, so as to preferentially display the target sharing position on the terminal.
[0016] Optionally, the sharing information processing device also includes: a user preference analysis module, which is used to collect historical sharing events corresponding to the user identifier, count each type of historical sharing events according to the type of information shared in each historical sharing event, and calculate the user preference data corresponding to the target type under the user identifier based on the time distribution characteristics of the historical sharing events of the target type.
[0017] Optionally, the user preference data corresponding to the target type includes: the preference for sharing information of the target type to each sharing location; the user preference analysis module is also used to arrange historical sharing events of the target type in chronological order, merge continuous historical sharing events with the same sharing location into a historical sharing event set, and form unmerged historical sharing events into historical sharing event sets of single events, calculate the weight of each historical sharing event set according to the order of each historical sharing event set and the number of events therein, merge the weights of the historical sharing event sets with the same sharing location, and calculate the preference for sharing information of the target type to each sharing location.
[0018] Optionally, the user preference analysis module is also used to determine that the user preference data is a null value if a preset condition is met when calculating the user preference data; wherein the preset condition includes any one or more combinations of the following: the number of historical sharing events corresponding to the target type is less than a first threshold; the number of historical sharing events corresponding to the target type in a recent preset period is less than a second threshold; the sharing preferences of each sharing location are lower than a third threshold.
[0019] Optionally, the target sharing location includes: a sharing location with the highest preference, or a sharing location with a preference higher than a preset preference threshold.
[0020] Optionally, the sharing information processing device also includes: a model training module, which is used to obtain historical sharing events of different users and extract multiple groups of sample data therefrom, each group of sample data includes user information, and any N+1 consecutive historical sharing events with the same sharing information type corresponding to the user information, N is a positive integer not less than 2, and the user information and the sharing positions of the first N events in the N+1 historical sharing events are used as training data, and the sharing position of the last event in the N+1 historical sharing events is used as annotation data to train the machine learning model to obtain the sharing prediction model.
[0021] Optionally, the information to be shared is information shared in a target application, and the target sharing location is a sharing location in the target application.
[0022] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned methods for processing shared information is implemented.
[0023] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods for sharing information processing by executing the executable instructions.
[0024] The technical solution disclosed in this disclosure has the following beneficial effects:
[0025] After the server obtains the information to be shared and the user ID from the terminal, it searches for the user preference data according to the user ID and the type of information to be shared. If found, the target sharing location of the information to be shared is determined according to the user preference data. If not found, the target sharing location is determined by the sharing prediction model, and finally the target sharing location is returned to the terminal for priority display on the terminal. On the one hand, whether based on user preference data or sharing prediction model, the determined target sharing location is a prediction of the location where the user shares the information to be shared, and it is displayed on the sharing page on the terminal in priority, which can facilitate the user to perform sharing operations. The target location can be selected without sliding the page or clicking multiple times, which simplifies the operation process and improves the user experience. On the other hand, the dual approach of user preference data and sharing prediction model can improve the flexibility of processing sharing information. In the absence of user historical sharing data, the user's sharing intention can also be reasonably predicted, which has high robustness.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 to Figure 3 A schematic diagram of a page for sharing information in the related art is shown;
[0029] Figure 4 A schematic diagram of a system architecture of the operating environment of this exemplary embodiment is shown;
[0030] Figure 5 A flow chart of a method for processing shared information in this exemplary embodiment is shown;
[0031] Figure 6 A sub-flow chart of a method for processing shared information in this exemplary embodiment is shown;
[0032] Figure 7 A structural block diagram of a sharing information processing device in this exemplary embodiment is shown;
[0033] Figure 8 An electronic device for implementing the above method in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0035] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0036] In one solution of the related art, the process of sharing information can be as follows: Figure 1 As shown in the figure, a user shares a piece of news in the news app on his phone, and a sharing page pops up, which provides sharing location options, including friends, work groups, dynamics, blogs, etc. The user selects the target location to share the news to. Due to the size limit of the page, Figure 1 Only 4 options can be displayed on the page, such as Figure 2 As shown in the figure, swiping the page to the right will display the remaining options. If there are many locations to share or the screen size is small, multiple pages will be needed. It can be seen that when the user selects a sharing location, he needs to swipe the page to find the target location. In addition, the options displayed on the page may be a submenu, which contains multiple specific sharing locations, such as Figure 2 and Figure 3 As shown, the "System" option on the page is a submenu. After clicking the "System" option, multiple sharing locations under "System" are displayed, such as SMS, email, etc., so the user needs to make an additional selection operation. Sometimes the options that are not displayed are folded into the "More" option, so the user needs to make further operations. Therefore, in the above information sharing process, the user needs to perform multiple operations to select the target location, which is very inconvenient.
[0037] Based on one or more of the above problems, this exemplary embodiment first provides a method for processing shared information. It should be noted that the sharing described in this exemplary embodiment includes various similar operations such as sharing, forwarding, and sending to friends. Figure 4 The system architecture diagram of the operating environment of the method is shown. Figure 4 As shown, system 400 may include: one or more of terminal devices 401, 402, 403, network 404 and server 405. Terminal devices 401, 402, 403 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc.; network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405, and may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.; server 405 may be a background server that provides sharing services. It should be understood that Figure 4 The number of terminal devices and servers in the embodiment is only for illustration. According to actual needs, there may be any number of terminal devices and servers. For example, server 405 may be a server cluster composed of multiple servers.
[0038] The shared information processing method of this exemplary embodiment may be executed on the server 405 . Figure 5 A process of the method is shown, which may include the following steps S510 to S540:
[0039] Step S510: obtaining information to be shared and a user identifier of the user who sends the information to be shared from the terminal, and identifying the type of the information to be shared as the target type.
[0040] In this exemplary embodiment, the user performs the information sharing operation on the terminal, usually by clicking the share option on the page of the information to be shared, which can trigger the terminal to send the information to be shared to the server. The information to be shared can be of various types such as news, music, video, document, picture, etc. The server identifies its type as the target type for subsequent processing. The server can classify the shareable information to different degrees in advance. The present disclosure does not limit the granularity of classification. For example, all news can be regarded as one type of information, or the news can be further classified. Based on the division of news sections in the APP, more detailed types such as current news, sports news, and science and technology news can be determined.
[0041] When the terminal sends information to be shared, it is sent through a specific user identifier. For example, when a user shares an article in a social APP, the user identifier can be the user's APP account, mobile phone number, etc. The message received by the server contains relevant information of the user identifier.
[0042] In an optional implementation, the information to be shared may be information shared by a user in a target application, such as an article, file, link, etc. shared by a user in a social APP.
[0043] Step S520: When the user preference data corresponding to the target type under the user identification is found, the target sharing location of the information to be shared is determined according to the user preference data.
[0044] Among them, the user preference data is the conclusive data obtained by the server based on the historical sharing events of the user sharing the target type of information, which indicates which sharing location or locations the user prefers to share the target type of information to. For example, it may include: the most preferred sharing location when the user shares the target type of information, or the preference for sharing the target type of information to each sharing location. The server can store the user preference data in a data table, with the user ID and the type of information as indexes. After finding the user preference data corresponding to the target type under the user ID, one or more sharing locations that the user prefers most can be determined as the target sharing location. If multiple target sharing locations are determined, they can also be sorted according to their preference levels.
[0045] In an optional implementation, the target sharing location may be a sharing location in a target application. For example, when a user shares information in a social APP, the information may be shared to different location modules of the social APP, including friends, groups, dynamics, spaces, favorites, etc.
[0046] Step S530: When the user preference data corresponding to the target type under the user identification is not found, the target sharing location of the information to be shared is determined by using the sharing prediction model.
[0047] The situation where the user preference data is not found may include: the user is sharing the target type of information for the first time, or the number of times the target type of information is shared is small, and the server is not sufficient to count the user's preferences, or the time since the user last shared the target type of information is long, and the user's preferences may have changed, etc. In this exemplary embodiment, the sharing prediction model is a machine learning model obtained by the server based on the big data of different users for pre-training, and is used to predict the target sharing location of the user's next sharing of information. Unlike the user preference data, the sharing prediction model represents the group preferences of different users, and is suitable for predicting user sharing behavior in the absence of personalized user preference data.
[0048] In an optional implementation, the user information corresponding to the user identifier (such as user age, gender, registration time, login frequency, membership level) and the target type can be input into the sharing prediction model, or the user's previous sharing event information can be input into the sharing prediction model, etc. The present disclosure does not limit the specific information content of the input model, which is related to the model training process. After the model is processed, the target sharing location is output.
[0049] Step S540, sending the target sharing location to the terminal, so as to preferentially display the target sharing location on the terminal.
[0050] After determining the target sharing location of the information to be shared through the above step S520 or step S530, the server sends the target sharing location back to the terminal, and the terminal displays the target sharing location on the sharing page first for user selection. Or when there is only one target sharing location, it can also jump directly to the target sharing location, eliminating the user selection operation step.
[0051] For example: if the user prefers to share files to a network disk, the network disk will be displayed at the front of the sharing page on the terminal when sharing files; if the user prefers to share a web link to the colleague bar or chat session of the enterprise communication APP, the colleague bar and chat session will be displayed at the front of the sharing page on the terminal when sharing a web link, and so on.
[0052] The present exemplary embodiment is further described below through two aspects: user preference data and sharing prediction model.
[0053] First, user preference data:
[0054] This exemplary embodiment provides a method for obtaining user preference data. Figure 6 , including the following steps S610 to S630:
[0055] Step S610, collecting historical sharing events corresponding to the above user identification;
[0056] Step S620, counting various types of historical sharing events according to the types of information shared in each historical sharing event;
[0057] Step S630 , based on the time distribution characteristics of the historical sharing events of the target type, calculate the user preference data corresponding to the target type under the user identification.
[0058] Among them, the server can record each sharing event of the user through the log library to form a historical sharing event library as a basis for analyzing user sharing preferences, or collect user sharing events from various terminals. For example, the interface #contentID_userID_type can be set on the terminal, where contentID represents the content of the shared information, userID is the user ID, and type is the type of information shared, such as stored as chat information msg, picture pic, text t, file d, video v, web link h, public account article wx, etc. The data can also include the time when the user shared the information. The server obtains the data of historical sharing events from the terminal through the above interface and then performs statistical analysis.
[0059] When collecting statistics, historical sharing events are classified and filtered according to user identification and the type of shared information. For example, the interface #Server_time_type_place can be set to convert the collected historical sharing events, where place indicates the location where the information was shared in the historical sharing event. For example, Table 1 shows a data table of historical sharing events of a user about a file type (represented by d) in May 2019, where the first entry indicates that the user shared the file to a friend at 14:46:23 on May 3, 2019.
[0060] Table 1
[0061]
[0062]
[0063] Assuming the target type is a file, historical sharing events of the file type are counted to form a data table, and then the time distribution characteristics of each sharing location are obtained based on the data table, and then the user preference data is calculated. For example, the sharing locations may include friends, network disks, and work groups. The number of times the file is shared to friends, network disks, and work groups in the past month or all time can be counted, and the location with the most times is used as the user preference data. The time distribution characteristics may include statistical data in multiple dimensions or forms, which is not limited in this disclosure.
[0064] In an optional implementation, the user preference data corresponding to the target type may include: the preference of sharing the information of the target type to each sharing location; based on this, step S630 may be specifically implemented by the following steps:
[0065] Arrange the historical sharing events of the target type in chronological order, merge the continuous historical sharing events with the same sharing position into a historical sharing event set, and form the unmerged historical sharing events into a historical sharing event set of a single event respectively;
[0066] Calculate the weight of each historical sharing event set according to the order of each historical sharing event set and the number of events therein;
[0067] The weights of the historical sharing event sets with the same sharing location are combined to calculate the preference of sharing the target type of information to each sharing location.
[0068] Taking the data in Table 1 as an example, the historical sharing events in Table 1 are arranged into an array in chronological order from recent to distant, and the sharing location of each historical sharing event is recorded. A represents friends, B represents network disk, and C represents work group. The array is:
[0069] (C,C,B,A,A,C,C,C,C,B,B,A);
[0070] Then, the continuous historical sharing events with the same sharing position are merged into a historical sharing event set, and the above array can be expressed as:
[0071] (2C, B, 2A, 4C, 2B, A);
[0072] Among them, 2C represents a historical sharing event set formed by merging two consecutive historical sharing events with sharing location C, and B represents a single event set with sharing location B. It can be seen that in the above array, each item represents a historical sharing event set.
[0073] Then calculate the weight of each item separately. The calculation principle is: the weight of each item is negatively correlated with the order of the item and positively correlated with the number of events. There are many specific calculation methods, which are not limited in this disclosure. An example is provided below:
[0074] The power function can be used for calculation: W = seq a ·quan b ; Where W is the weight, seq is the order, quan is the number of events, a and b are preset exponential parameters, a<0, b>1, which can be assigned according to experience and actual needs. For example, a=-0.5, b=1.5, and the above array is calculated in this way, we can get:
[0075] W(2C)=1 -0.5 2 1.5 =2.83;
[0076] W(B)=2 -0.5 1 1.5 =0.71;
[0077] W(2A)=3 -0.5 2 1.5 =1.63;
[0078] W(4C)=4 -0.5 ·41.5 =4;
[0079] W(2B)=5 -0.5 2 1.5 =1.26;
[0080] W(A)=6 -0.5 1 1.5 =0.41;
[0081] Then, the items with the same shared position are merged, 2C and 4C are merged, with a weight of 6.83, B and 2B are merged, with a weight of 1.97, and 2A and A are merged, with a weight of 2.04. The weights are then normalized, and the preferences of A, B, and C (the highest is 1) are 0.19, 0.18, and 0.63, respectively. Of course, the final results will be different depending on the normalization algorithm used, and this disclosure does not limit this.
[0082] Based on the preferences of the sharing locations calculated in the above-mentioned various ways, in step S520, the sharing location with the highest preference, or the sharing location with a preference higher than a preset preference threshold, can be determined as the target sharing location. The preset preference threshold is used as a criterion for judging whether the user has a preference, and can be set according to experience or actual needs.
[0083] In an optional implementation, the server may set a logic unit #Sever_contentID_ussrID_type_place to parse the current sharing event according to the user preference data to obtain the target sharing location. The terminal may set a logic unit #show_contentID_place to communicate with the above logic unit of the server to obtain and display the target sharing location.
[0084] It should be added that, in an optional implementation, when calculating the user preference data, if a preset condition is met, it can be determined that the user preference data is a null value. The preset condition may include any one or more of the following combinations:
[0085] The number of historical sharing events corresponding to the target type is less than the first threshold, indicating that the number of historical sharing events corresponding to the target type is too small to determine the user preference;
[0086] The number of historical sharing events corresponding to the target type in the most recent preset period is less than the second threshold, indicating that the number of historical sharing events corresponding to the target type in the most recent period is too small to determine the user's recent preference. The most recent preset period may be the most recent week, the most recent month, etc.;
[0087] The sharing preference of each sharing location is lower than the third threshold, which means that the user has no obvious preference for each sharing location and it is difficult to determine the user's preference. The third threshold may be 0.5, 0.7, etc.
[0088] Among them, there is no correlation between the first threshold, the second threshold and the third threshold, and they can all be set according to experience or actual needs, and the present disclosure does not limit this. If the user preference data of the target type is null, when the user shares information of the target type next time, step S530 is executed, that is, the target sharing location is determined by the sharing prediction model.
[0089] Second, share the prediction model:
[0090] The shared prediction model can be obtained in the following ways:
[0091] Obtain historical sharing events of different users, and extract multiple sets of sample data from them, each set of sample data includes user information and any N+1 consecutive historical sharing events corresponding to the user information and with the same sharing information type, where N is a positive integer not less than 2;
[0092] The user information and the sharing locations of the first N events in N+1 historical sharing events are used as training data, and the sharing location of the last event in N+1 historical sharing events is used as annotation data to train the machine learning model and obtain the sharing prediction model.
[0093] Among them, the server has the advantage of big data, and can collect historical sharing events of different users, and organize them into sample data in groups according to the above method. N+1 consecutive historical sharing events with the same sharing information type means that these N+1 historical sharing events are of the same type, and there are no other historical sharing events of the same type between any two adjacent ones. User information can include information on various attributes such as user age, gender, registration time, login frequency, and membership level. Users can also be profiled, and users can be classified based on their profiles. Then, user information can include the category to which the user belongs. For each sharing location, the above-mentioned method of encoding the sharing location in Table 1 can be referred to for numerical conversion. Then, the user information and the sharing locations of the first N events can be converted into feature vectors as training data, and the converted values of the sharing location of the last event can be used as annotation data to train machine learning models, such as neural network models, support vector machine models, logistic regression models, random forest models, etc. After the training is completed, a sharing prediction model can be obtained. The value of N can be set according to experience and actual needs. Generally, the larger N is, the more accurate the prediction result is, and of course, the higher the requirements for data are.
[0094] Based on the above method, a sharing prediction model is trained, and the user's previous N sharing events are used as part of the input data. In combination with user information, feature learning and mining are performed to achieve higher prediction accuracy. In addition, multiple groups of sample data can be mined from the same type of historical sharing events of the same user, thereby providing rich data support for model training and facilitating the implementation of the training process.
[0095] In summary, in this exemplary embodiment, after the server obtains the information to be shared and the user identification from the terminal, it searches for user preference data according to the user identification and the type of information to be shared. If found, the target sharing location of the information to be shared is determined according to the user preference data. If not found, the target sharing location is determined by the sharing prediction model, and finally the target sharing location is returned to the terminal for priority display on the terminal. On the one hand, whether based on user preference data or sharing prediction model, the determined target sharing location is a prediction of the location where the user shares the information to be shared, and it is displayed on the sharing page of the terminal in priority, which can facilitate the user to perform sharing operations. The target location can be selected without sliding the page or clicking multiple times, which simplifies the operation process and improves the user experience. On the other hand, the dual approach of user preference data and sharing prediction model can improve the flexibility of processing sharing information. In the absence of user historical sharing data, the user's sharing intention can also be reasonably predicted, which has high robustness.
[0096] The exemplary embodiment of the present disclosure also provides a sharing information processing device, which can be configured on the server 405. Figure 7 As shown, the sharing information processing device 700 may include: an acquisition module 710, used to obtain the information to be shared and the user identifier of the user who sends the information to be shared from the terminal, and identify the type of the information to be shared as the target type; a first processing module 720, used to determine the target sharing position of the information to be shared according to the user preference data when the user preference data corresponding to the target type under the user identifier is found; a second processing module 730, used to predict the target sharing position of the information to be shared according to the sharing prediction model when the user preference data corresponding to the target type under the user identifier is not found; a sending module 740, used to send the target sharing position to the terminal, so as to preferentially display the target sharing position on the terminal.
[0097] In an optional embodiment, the sharing information processing device 700 may also include: a user preference analysis module (not shown in the figure), which is used to collect historical sharing events corresponding to the user identifier, count each type of historical sharing event according to the type of information shared in each historical sharing event, and calculate the user preference data corresponding to the target type under the user identifier based on the time distribution characteristics of the historical sharing events of the target type.
[0098] In an optional embodiment, the user preference data corresponding to the target type may include: the preference for sharing information of the target type to each sharing location; the user preference analysis module (not shown in the figure) can also be used to arrange historical sharing events of the target type in chronological order, merge continuous historical sharing events with the same sharing location into a historical sharing event set, and form unmerged historical sharing events into historical sharing event sets of single events respectively, calculate the weight of each historical sharing event set according to the order of each historical sharing event set and the number of events therein, merge the weights of the historical sharing event sets with the same sharing location, and calculate the preference for sharing information of the target type to each sharing location.
[0099] In an optional embodiment, a user preference analysis module (not shown in the figure) can also be used to determine that the user preference data is a null value when calculating the user preference data if a preset condition is met; wherein the preset condition includes any one or more of the following combinations: the number of historical sharing events corresponding to the target type is less than a first threshold; the number of historical sharing events corresponding to the target type in the most recent preset period is less than a second threshold; the sharing preference of each sharing location is lower than a third threshold.
[0100] In an optional implementation, the target sharing location may include: a sharing location with the highest preference, or a sharing location with a preference higher than a preset preference threshold.
[0101] In an optional embodiment, the sharing information processing device 700 may also include: a model training module (not shown in the figure), which is used to obtain historical sharing events of different users and extract multiple groups of sample data therefrom, each group of sample data includes user information, and any N+1 consecutive historical sharing events corresponding to the user information and with the same sharing information type, N is a positive integer not less than 2, and the user information and the sharing positions of the first N events in the N+1 historical sharing events are used as training data, and the sharing position of the last event in the N+1 historical sharing events is used as annotation data to train the machine learning model to obtain a sharing prediction model.
[0102] In an optional implementation, the information to be shared may be information shared in a target application, and the target sharing location may be a sharing location in the target application.
[0103] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The details of the undisclosed scheme can be found in the implementation method of the method part, so they will not be repeated here.
[0104] It should be noted that, although several modules of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be concretized.
[0105] An exemplary embodiment of the present disclosure also provides an electronic device. Figure 8 The structure diagram of a computer system suitable for implementing the electronic device of the embodiment of the present disclosure is shown. It should be noted that: Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0106] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0107] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0108] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the computer system 800 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0109] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram or flow chart, and the combination of the square boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0112] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device can implement the following embodiment. Figure 5 or Figure 6 The various steps shown, etc.
[0113] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0114] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0115] It can also be understood that in the specific implementation of the present application, data related to user information such as information to be shared, user identification, user preference data, historical sharing event information, etc., when the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
Claims
1. A method for processing shared information, characterized in that: include: Acquire the information to be shared and the user identifier that sends the information to be shared from the terminal, and identify the type of the information to be shared as the target type; When user preference data corresponding to the target type under the user identifier is found, a target sharing location of the information to be shared is determined according to the user preference data; When the user preference data corresponding to the target type under the user identifier is not found, determining the target sharing location of the information to be shared by using a sharing prediction model; sending the target sharing location to the terminal, so as to preferentially display the target sharing location on the terminal; The user preference data corresponding to the target type under the user identification is obtained in the following manner: Collecting historical sharing events corresponding to the user identifier; According to the type of information shared in each of the historical sharing events, statistics are collected on each type of historical sharing event; Arrange the historical sharing events of the target type in chronological order, merge the continuous historical sharing events with the same sharing position into a historical sharing event set, and form the unmerged historical sharing events into a historical sharing event set of a single event respectively; Calculating the weight of each of the historical sharing event sets according to the order of each of the historical sharing event sets and the number of events therein, wherein the weight of each historical sharing event set is negatively correlated with its order and positively correlated with the number of events therein; The weights of the historical sharing event sets with the same sharing location are merged, and the merged weights are normalized to obtain the preference of sharing the information of the target type to each sharing location, and the preference is used as the user preference data corresponding to the target type under the user identifier.
2. The method according to claim 1, characterized in that When calculating the user preference data, if a preset condition is met, determining that the user preference data is a null value; The preset conditions include any one or more of the following combinations: The number of the historical sharing events corresponding to the target type is less than a first threshold; The number of the historical sharing events corresponding to the target type in a recent preset period is less than a second threshold; The sharing preference of each sharing location is lower than the third threshold.
3. The method according to claim 1, characterized in that The target sharing location includes: a sharing location with the highest preference, or a sharing location with a preference higher than a preset preference threshold.
4. The method according to claim 1, characterized in that: The sharing prediction model is obtained by: Obtain historical sharing events of different users, and extract multiple groups of sample data therefrom, each group of sample data including user information and any N+1 consecutive historical sharing events corresponding to the user information and having the same sharing information type, where N is a positive integer not less than 2; The user information and the sharing locations of the first N events in the N+1 historical sharing events are used as training data, and the sharing location of the last event in the N+1 historical sharing events is used as annotation data to train a machine learning model to obtain the sharing prediction model.
5. The method according to any one of claims 1 to 4, characterized in that: The information to be shared is information shared in a target application, and the target sharing location is a sharing location in the target application.
6. A shared information processing device, characterized in that: include: An acquisition module, used for acquiring the information to be shared and the user identification that sends the information to be shared from the terminal, and identifying the type of the information to be shared as the target type; A first processing module, configured to determine a target sharing location of the information to be shared according to the user preference data when user preference data corresponding to the target type under the user identifier is found; A second processing module is used to predict the target sharing location of the information to be shared according to the sharing prediction model when the user preference data corresponding to the target type under the user identifier is not found; A sending module, used for sending the target sharing location to the terminal, so as to preferentially display the target sharing location on the terminal; The user preference data corresponding to the target type under the user identification is obtained in the following manner: Collecting historical sharing events corresponding to the user identifier; According to the type of information shared in each of the historical sharing events, statistics are collected on each type of historical sharing event; Arrange the historical sharing events of the target type in chronological order, merge the continuous historical sharing events with the same sharing position into a historical sharing event set, and form the unmerged historical sharing events into a historical sharing event set of a single event respectively; Calculating the weight of each of the historical sharing event sets according to the order of each of the historical sharing event sets and the number of events therein, wherein the weight of each historical sharing event set is negatively correlated with its order and positively correlated with the number of events therein; The weights of the historical sharing event sets with the same sharing location are merged, and the merged weights are normalized to obtain the preference of sharing the information of the target type to each sharing location, and the preference is used as the user preference data corresponding to the target type under the user identifier.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 5 by executing the executable instructions.
Citation Information
Patent Citations
Network resource recommendation method and apparatus, electronic device, server and storage medium
CN108304441A
Content sharing method, terminal device, and storage medium
CN109271078A
