Information recommendation method, device, equipment and storage medium
By obtaining user data of different dimensions from multiple data providers and jointly recommending information, the problem of low accuracy of information recommendation in the existing technology is solved, and the precision and accuracy of information recommendation are improved.
Patent Information
- Application Number
- CN202011333235.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-23
AI Technical Summary
In the existing information recommendation methods, when each enterprise recommends information based on its own accumulated data analysis or modeling, the resulting model accuracy is low, resulting in low accuracy of information recommendation.
Obtain the intermediate recommendation information corresponding to the user from at least two data providers. Each intermediate recommendation information is obtained by different data providers based on the user's data in different dimensions. By combining the data of multiple data providers for information recommendation, it improves Information recommendation accuracy.
By combining data from multiple data providers, the feature dimensions of user data are enhanced and the precision and accuracy of information recommendations are improved.
Smart Images

Figure CN113761336B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an information recommendation method, device, equipment and storage medium. Background Art
[0002] When users use the Internet, they will generate various user behaviors, which include a lot of important information. Mining user behaviors can help us better understand user preferences, and thus make targeted information recommendations to users, thus shortening the time it takes to obtain information from the rich and diverse Internet resources and improving the efficiency of obtaining information.
[0003] At present, when recommending information to users, each enterprise performs data analysis or modeling based on its own accumulated data to recommend information. Taking the aviation industry as an example, at present, most of the merchants in the airport belong to a chain brand, such as catering, services, etc. These merchants are often branches of a large brand. When recommending information to users, each brand enterprise performs data analysis or modeling based on its own accumulated data to recommend information.
[0004] However, when enterprises perform data analysis or modeling based on their own accumulated data to make information recommendations, the analysis results or model accuracy obtained are often low, resulting in low accuracy of information recommendations. Summary of the invention
[0005] The present application provides an information recommendation method, apparatus, device and storage medium to overcome the problem of low accuracy of existing information recommendation.
[0006] In a first aspect, the present application provides an information recommendation method, comprising: receiving an information recommendation request sent by a first data provider, the information recommendation request being used to request information recommendation for a user; obtaining at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, and the at least two data providers include the first data provider; determining target recommendation information for the user based on the at least two intermediate recommendation information; and sending the target recommendation information to the first data provider.
[0007] In a second aspect, the present application provides an information recommendation method, which is applied to a data provider, and the method comprises: sending an information recommendation request to a coordination device, wherein the information recommendation request comprises an encrypted user identifier and is used to request information recommendation for the user; receiving the encrypted user identifier sent by the coordination device; recommending information to the user based on the encrypted user identifier, and sending the obtained intermediate recommendation information to the coordination device; receiving target recommendation information returned by the coordination device, wherein the target recommendation information is obtained by the coordination device based on at least two intermediate recommendation information provided by at least two data providers, and each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions; and pushing the target recommendation information to the user's terminal device.
[0008] In a third aspect, the present application provides an information recommendation device, comprising: a first receiving module, used to receive an information recommendation request sent by a first data provider, the information recommendation request being used to request information recommendation to a user; a first obtaining module, used to obtain at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, and the at least two data providers include the first data provider; a first determining module, used to determine target recommendation information for the user based on the at least two intermediate recommendation information; and a first sending module, used to send the target recommendation information to the first data provider.
[0009] In a fourth aspect, the present application provides an information recommendation device, comprising: a second sending module, used to send an information recommendation request to a coordination device, the information recommendation request including an encrypted user identifier and used to request information recommendation to the user; a second receiving module, used to receive the encrypted user identifier sent by the coordination device; the second sending module is also used to recommend information to the user based on the encrypted user identifier, and send the obtained intermediate recommendation information to the coordination device; the second receiving module is also used to receive target recommendation information returned by the coordination device, the target recommendation information is obtained by the coordination device based on at least two intermediate recommendation information provided by at least two data providers, and each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions; the second sending module is also used to push the target recommendation information to the user's terminal device.
[0010] In a fifth aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the method described in the first aspect and each possible design of the first aspect; or, the processor executes the computer execution instructions stored in the memory, so that the processor executes the method described in the second aspect.
[0011] In a sixth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium runs on a computer, the computer executes the method described in the first aspect and each possible design of the first aspect; or, when the computer-readable storage medium runs on a computer, the computer executes the method described in the second aspect.
[0012] The information recommendation method, apparatus, device and storage medium provided in the embodiments of the present application receive an information recommendation request sent by a first data provider for requesting information recommendation for a user; obtain at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, and the at least two data providers include the first data provider; determine the target recommendation information for the user based on the at least two intermediate recommendation information; and send the target recommendation information to the first data provider. Since the present embodiment obtains at least two intermediate recommendation information corresponding to the user from at least two data providers, and each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, it is possible to combine the data of multiple data providers for information recommendation, thereby improving the accuracy of information recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A schematic diagram of an application scenario of the information recommendation method provided in an embodiment of the present application;
[0014] Figure 2 A flowchart of the first embodiment of the information recommendation method provided in the embodiment of the present application;
[0015] Figure 3 An example diagram of the information recommendation method provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of determining recommended information provided in an embodiment of the present application;
[0017] Figure 5 A flowchart of a second embodiment of the information recommendation method provided in the embodiment of the present application;
[0018] Figure 6A flowchart of a third embodiment of the information recommendation method provided in the embodiment of the present application;
[0019] Figure 7 A schematic diagram of the structure of the first embodiment of the information recommendation device provided in the embodiment of the present application;
[0020] Figure 8 A schematic diagram of the structure of a second embodiment of an information recommendation device provided in an embodiment of the present application;
[0021] Fig. 9 A schematic diagram of the structure of a first embodiment of an electronic device provided in an embodiment of the present application;
[0022] Fig.10 A schematic diagram of the structure of a second electronic device embodiment provided in the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] Figure 1 Schematic diagram of application scenarios of the information recommendation method provided in the embodiment of the present application. Figure 1 As shown, the application scenario may include: at least two devices; wherein the at least two devices include: a first device 11, a second device 12, a third device 13, a fourth device 14 and a fifth device 15.
[0025] In the information recommendation scenario related to aviation business in actual application, the first device 11 may be a device of an airline; the second device 12 may be a device of an airport; the third device 13 may be a device of an airport shop; the fourth device 14 may be a device of an external data provider; the fifth device 15 may be a device of a coordinator, that is, an intermediate device between the first device 11 and the fourth device 14, which acts as a transfer between the first device 11 and the fourth device 14, so that the first device 11 and the fourth device 14 do not directly interact with each other. Similarly, the fifth device 15 is also an intermediate device between the second device 12 and the fourth device 14, and an intermediate device between the third device 13 and the fourth device.
[0026] Among them, airports, airlines, and airport shops can provide a large amount of user data. External data providers are user data providers other than airports, airlines, and airport shops. They have accumulated a large amount of personal and group data with precise labels, such as online shopping platforms, food delivery service platforms, or data providers that provide data services to the outside world. Among them, external data providers include at least one of online shopping platforms, food delivery service platforms, and data providers that provide data services to the outside world.
[0027] It should be understood that the at least two devices mentioned above are not limited to the first device 11, the second device 12, the third device 13, the fourth device 14 and the fifth device 15, and may be any other number of devices.
[0028] Exemplarily, the first device and the second device in this embodiment may be electronic devices, and the electronic devices may be terminal devices or servers. The embodiments of the present application do not limit the specific form of the electronic devices, which may be determined according to actual conditions.
[0029] In order to solve the problem of low accuracy of information recommendation in the prior art, an embodiment of the present application proposes an information recommendation method. The technical concept is to combine the user data of common users of different data providers in different dimensions to recommend information to users, thereby enhancing the characteristic dimensions of the user data, so that the user data includes richer information to improve the accuracy of information recommendation.
[0030] Below Figure 1 The application scenarios shown in the figure describe the technical solutions of the present application in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0031] Figure 2 This is a flow chart of the first embodiment of the information recommendation method provided in the present application. Figure 2 As shown, the information recommendation method provided in the embodiment of the present application may include the following steps:
[0032] Step S201: Send an information recommendation request to a coordination device, where the information recommendation request includes an encrypted user identifier.
[0033] In this embodiment, when a user uses aviation-related services, or is at an airport, airline, or airport shop, the device at the airport, airline, or airport shop collects user information, including the user's ID and information generated by the user handling business or consumption at the airport, airline, or airport shop (hereinafter referred to as user data), and then sends an information recommendation request to the coordination device based on the user's ID. It should be noted that when the device at the airport, airline, or airport shop sends an information recommendation request to the coordination device based on the user's ID, in order to protect the user's privacy, the encrypted user ID is sent. The user information is described in detail below in conjunction with specific scenarios:
[0034] Figure 3 This is an example diagram of the information recommendation method provided in the embodiment of the present application. Figure 3 As shown, in an optional example, when a user buys a ticket from an airline or a travel agency, the device where the airline is located can directly obtain the user information or obtain the user information from the travel agency, wherein the user information includes the user's identification and the user's itinerary information, such as the ticket price, whether it is a frequent flyer, the flight class, whether there are children or elderly people traveling together, whether it is a VIP customer, etc. In addition, if the user has booked other services such as a hotel through a travel agency, the user information may also include hotel reservation information, etc. The first device 11 extracts the user's identification from the user information, encrypts the user's identification, generates an information recommendation request, and sends it to the fifth device 15.
[0035] Please continue reading Figure 3 In another optional example, when a user registers at an airport, the registration information generated, such as which terminal the user will board the plane at and the facial image of the user taken on-site for facial recognition, will be input into the second device 12. The second device 12 extracts the user's identifier from the registration information, encrypts the user's identifier, generates an information recommendation request, and sends it to the fifth device 15.
[0036] Please continue reading Figure 3 In another optional example, when the user is in an airport shop, the device where the airport shop is located obtains the user's ID by scanning the boarding pass or performing facial recognition through the camera of the airport shop, encrypts the user's ID, generates an information recommendation request, and sends it to the fifth device 15.
[0037] The user identification is used to distinguish the user data of multiple users collected by the equipment at the airport, airline or airport shop. Therefore, the user identification must also be carried in the information recommendation request sent to the coordination device. The user identification refers to the user's unique identification code, including the user's facial data, ID number, mobile phone number, and the universally unique identification code (UUID) of the user's terminal device.
[0038] Step S202: Receive an information recommendation request sent by a first data provider.
[0039] In an embodiment of the present application, the first data provider may be an airport, an airline, or an airport shop. The first data provider sends an information recommendation request to the fifth device, which receives the information recommendation request and first matches the encrypted user identifier. If the match is successful, the encrypted user identifier is sent to the first device and the fourth device respectively.
[0040] Step S203: Receive the user identifier sent by the coordination device.
[0041] In this embodiment, the coordination device may be Figure 1 The fifth device shown. The first device and the fourth device respectively receive the encrypted user identification sent by the coordination device.
[0042] Step S204: Recommend information to the user based on the encrypted user identifier, and send the obtained intermediate recommendation information to the coordination device.
[0043] After the first device, the second device or the third device where the first data provider is located receives the encrypted user identifier, it determines the unencrypted user identifier based on the encrypted user identifier and the mapping relationship between the encrypted user identifier and the unencrypted user identifier, and then obtains the corresponding user data based on the unencrypted user identifier, and then recommends information to the user based on the obtained user data, and then feeds back the obtained intermediate recommendation information to the coordination device.
[0044] Likewise, the fourth device may also perform the same operation as the first device, the second device or the third device.
[0045] In this embodiment, the device where the first data provider is located and the fourth device both predict the user's preferences based on the data of the same user in different dimensions recorded by each of them to obtain intermediate recommendation information. For example, the data of the same user in different dimensions can be in the following table format:
[0046]
[0047]
[0048] It can be seen from the above table that the first data provider has part of the data of user A, and the external data provider has another part of the data of user B, and there is no overlap between the two parts of data. By combining the user data of the first data provider and the external data provider, the feature dimensions of the user data can be enriched.
[0049] Step S205: Obtain at least two intermediate recommendation information corresponding to the user from at least two data providers.
[0050] Each intermediate recommendation information is obtained by different data providers based on user data in different dimensions, and at least two data providers include a first data provider, and user data of one of the data providers has a corresponding label.
[0051] In this embodiment, the information recommendation request includes an encrypted user identifier; specifically, obtaining at least two intermediate recommendation information corresponding to the user from at least two data providers includes: determining whether the at least two data providers both have the encrypted user identifier; if so, sending the encrypted user identifier to the at least two data providers; receiving at least two intermediate recommendation information fed back by at least two data providers, wherein each data provider corresponds to one intermediate recommendation information; wherein the intermediate recommendation information fed back by each data provider is obtained by each data provider based on its own recommendation model and the relevant data of the user, and the recommendation model of each data provider is obtained by performing federated machine learning based on the user sample data of at least two data providers.
[0052] Step S206: Determine target recommendation information for the user based on at least two pieces of intermediate recommendation information.
[0053] Taking the first data provider and the external data provider as an example, the intermediate recommendation information fed back by the first data provider is the first intermediate recommendation information, and the intermediate recommendation information fed back by the second data provider is the second intermediate recommendation information. The fifth device will further determine the target recommendation information based on the first intermediate recommendation information and the second intermediate recommendation information.
[0054] In an optional implementation, determining target recommendation information for a user based on at least two intermediate recommendation information includes: fusing the at least two intermediate recommendation information to obtain the target recommendation information for the user. Taking the at least two intermediate recommendation information including the first intermediate recommendation information and the second intermediate recommendation information as an example, the union of the first intermediate recommendation information and the second intermediate recommendation information may be taken as the target recommendation information, the intersection of the first intermediate recommendation information and the second intermediate recommendation information may be taken as the target recommendation information, or the sum of the first intermediate recommendation information and the second intermediate recommendation information may be taken as the target recommendation information.
[0055] Please continue reading Figure 3 ,In a possible scenario, before the user arrives at the airport, the coordination ,device can push the obtained target recommendation information to the user, and the ,target recommendation information can be virtual resources, such as travel ,shopping vouchers.
[0056] In another possible scenario, when the user arrives at the airport, the coordination device can push the obtained target recommendation information to the user. The target recommendation information can be a virtual resource, such as recommending passengers whether to use the airport's fast security check channel, or providing coupons for some airport paid services.
[0057] In another possible scenario, when the user arrives at an airport shop, the coordination device may push the obtained target recommendation information to the user. The target recommendation information may be a virtual resource, such as a recommended product or coupon.
[0058] In another possible scenario, after a user consumes in an airport shop, the target recommendation information for the user can be determined based on the consumption data generated by the user, and online recommendations can be made. For example, when a user purchases a certain product in an airport shop, the user can be recommended information on a consumption platform (third-party consumption platform) other than the airport shop based on the user's consumption behavior, where the target recommendation information can still be a virtual resource, such as a recommended product or a coupon for a recommended product. Optionally, information on a third-party platform can be recommended to users with similar preferences to the user based on the user's consumption behavior. This embodiment does not specifically limit this.
[0059] Step S207: Send the target recommendation information to the first data provider.
[0060] Step S208: Receive target recommendation information returned by the coordination device.
[0061] The target recommendation information is obtained by coordinating at least two intermediate recommendation information provided by at least two data providers, and each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions.
[0062] Step S209: Push the target recommendation information to the user's terminal device.
[0063] Exemplarily, the target recommendation information can be displayed as a notification message in the message notification bar of the terminal device, or it can be pushed to the user in the form of a text message, or it can be displayed in the form of a message notification on the application (Application, APP) installed on the user's terminal device.
[0064] Optionally, the target recommendation information may be fed back to the first data provider so that the first data provider can make offline recommendations to the user. Similarly, the target recommendation information may be displayed on a graphical user interface of the first device, the second device, or the third device.
[0065] The information recommendation method provided in the embodiment of the present application receives an information recommendation request sent by a first data provider for requesting information recommendation for a user; obtains at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by a different data provider based on the user's data in different dimensions, and the at least two data providers include the first data provider; determines the target recommendation information for the user based on the at least two intermediate recommendation information; and sends the target recommendation information to the first data provider. Since this embodiment obtains at least two intermediate recommendation information corresponding to the user from at least two data providers, and each intermediate recommendation information is obtained by a different data provider based on the user's data in different dimensions, it is possible to combine the data of multiple data providers for information recommendation, thereby improving the accuracy of information recommendation.
[0066] Exemplarily, based on the above embodiments, the intermediate recommendation information fed back by each data provider is obtained by each data provider based on its own recommendation model and relevant user data, and the recommendation model of each data provider is obtained by federal machine learning based on user sample data from at least two data providers. Figure 4 This is a schematic diagram of determining recommended information provided in an embodiment of the present application. Figure 4As shown, taking the first data provider and the external data provider as an example, the first data provider has a first sub-recommendation model, and the external data provider has a second sub-recommendation model. The first data provider obtains the first user data collected by itself according to the user's identifier, and then inputs the first user data into the first recommendation model to obtain first intermediate recommendation information. Similarly, the external data provider obtains the second user data collected by itself according to the user's identifier, and then inputs the second user data into the second recommendation model to obtain second intermediate recommendation information. The first data provider and the external data provider respectively send the first intermediate recommendation information and the second intermediate recommendation information to the fifth device, so that the fifth device determines the target recommendation information according to the first intermediate recommendation information and the second intermediate recommendation information.
[0067] Exemplarily, based on the above embodiments, Figure 5 This is a flow chart of the second embodiment of the information recommendation method provided in the present application. This embodiment will introduce in detail how to train the recommendation model before using the recommendation model to determine the recommended information. Figure 5 As shown, the method may also include the following steps:
[0068] Step S501: Obtain a set of encrypted user identifications of at least two data providers.
[0069] In this embodiment, each data provider, such as an airport, an airport store, or an airline company, collects user information. Afterwards, the device of each data provider encrypts the user's identifier in the user information and sends it to the fifth device.
[0070] Optionally, the encryption algorithm may be a homomorphic encryption algorithm. Of course, other encryption algorithms may also be used, and this embodiment does not specifically limit this.
[0071] Please continue reading Figure 3 In one possible scenario, when a user buys a ticket, the airline obtains the user information, extracts the user ID (user identification) from it, encrypts it and sends it to the coordination device. At the same time, the fifth device also obtains the encrypted user ID from the external data provider. The coordination device then matches the user ID provided by the airline with the user ID obtained from the external data provider to determine the common user.
[0072] In another possible scenario, when the user arrives at the airport, the airport obtains the user information, extracts the user ID (user identification) from it, encrypts it and sends it to the coordination device. At the same time, the fifth device also obtains the encrypted user ID from the external data provider. The coordination device then matches the user ID provided by the airline and the user ID obtained from the external data provider to determine the common user.
[0073] In another possible scenario, when the user arrives at an airport shop, the airport shop obtains the user information, extracts the user ID (user identification) from it, encrypts it and sends it to the coordination device. At the same time, the fifth device also obtains the encrypted user ID from the external data provider. The coordination device then matches the user ID provided by the airline and the user ID obtained from the external data provider to determine the common user.
[0074] Step S502: Determine the identifier of a common user in the encrypted user identifier sets of at least two data providers.
[0075] Specifically, the fifth device determines the common user's identifier according to the common user's identifier in the encrypted user identifier set of at least two data providers, and then sends the common user's identifier to the at least two data providers.
[0076] Step S503: Perform federated machine learning based on the sample data corresponding to the identifier of the common user to obtain a recommendation model for each data provider.
[0077] Among them, after obtaining the encrypted common user's identifier, at least two data providers will determine the unencrypted user's identifier in their respective local locations based on the encrypted identifier and the mapping relationship between the encrypted identifier and the unencrypted identifier, and then obtain the user sample data corresponding to the unencrypted common user's identifier, and perform model training in their respective local locations based on the user sample data corresponding to the unencrypted common user's identifier to obtain a recommendation model. For example, after the first data provider and the external data provider obtain the unencrypted common user's identifier, the first data provider determines the first user sample data in the locally stored user data based on the unencrypted common user's identifier, and performs model training locally based on the first user sample data; similarly, the external data provider determines the second user sample data in the locally stored user data based on the unencrypted common user's identifier, and performs model training locally based on the second user sample data.
[0078] In this embodiment, different data providers encrypt their own user identification sets and send them to the fifth device, which determines the encrypted common user identification and returns the encrypted common user identification to each data provider, so that each data provider can perform model training locally based on the user sample data of the common user, thereby achieving model training without releasing the original data of each data provider, thereby protecting the data privacy of each data provider.
[0079] Exemplarily, based on the above embodiments, Figure 6 This is a flow chart of the third embodiment of the information recommendation method provided in the present application. Figure 6As shown, step S503 may specifically include the following steps:
[0080] Step S600: The coordinating device sends a public key to at least two data providers.
[0081] In this embodiment, the fifth device sends the public key to the first device and the fourth device, or the fifth device sends the public key to the second device and the fourth device, or the fifth device sends the public key to the third device and the fourth device.
[0082] Step S601: At least two data providers respectively encrypt the intermediate result using a public key and send it to each other.
[0083] Taking the first device and the fourth device as an example, the first device encrypts the intermediate result with a public key and sends it to the fourth device. Similarly, the fourth device encrypts the output result obtained by the current iterative training with a public key and sends it to the first device. The intermediate result is the result output by at least two data providers during the current iterative training process, which is used to calculate the gradient.
[0084] Step S602: At least two data providers respectively perform calculations based on the received encrypted intermediate results to obtain a first gradient value and a second gradient value, and the external data provider calculates a loss value.
[0085] In this embodiment, the first gradient value is the intermediate model parameter of the first data provider, and the second gradient value and the loss value are the intermediate model parameters of the external data provider. Still taking the first device and the fourth device as an example, the first device performs gradient calculation based on the encrypted intermediate result and the result output by itself in the current iterative training process to obtain the first gradient value. Similarly, the fourth device performs gradient calculation based on the encrypted intermediate result and the result output by itself in the current iterative training process to obtain the second gradient value. At the same time, the user data of the fourth device corresponds to the label data, so the fourth device will also calculate the loss value based on the label data.
[0086] Step S603: The external data provider sends the second gradient value and the loss value to the coordination device, and the first data provider sends the first gradient value to the coordination device.
[0087] Step S604: The coordination device calculates a total gradient according to the first gradient value, the second gradient value and the loss value, wherein the total gradient is an encrypted gradient value.
[0088] Specifically, in this step, the coordination device determines the total model parameters according to the intermediate model parameters of at least two data providers.
[0089] Step S605: The coordination device decrypts the total gradient and feeds it back to at least two data providers.
[0090] Step S606: At least two data providers update their respective model parameters according to the total gradient.
[0091] For the update of model parameters, please refer to the related art about the update process of iterative training of neural network model, which will not be repeated here.
[0092] Step S607: Repeat the above steps until the training convergence condition is reached to obtain the recommendation model of each data provider.
[0093] Among them, the convergence conditions include the desired training objectives, which can be set manually.
[0094] In this embodiment, the recommendation models of at least two data providers are half models, and the two half models can be combined to recommend information to users. When the half model of each data provider recommends information to users, the recommended information obtained is incomplete. Therefore, it is necessary to combine the recommendation models of at least two data providers for joint information recommendation. The specific implementation process of combining the recommendation models of at least two data providers for joint information recommendation has been introduced in the above-mentioned embodiment and will not be repeated here.
[0095] In this embodiment, the intermediate results of at least two data providers are encrypted, and then data is exchanged, and the total gradient is calculated by a third-party coordination device, so that the user data of at least two data providers can be retained locally and will not be leaked, thereby ensuring data security and user data privacy during model training.
[0096] On the basis of the above embodiment, the method of this embodiment may further include: receiving recommendation effect data of target recommendation information; and updating the recommendation model according to the recommendation effect data of the target recommendation information. In this embodiment, the recommendation effect data of the target recommendation information is collected by each data provider, and each data provider may update its own model regularly according to the actual use of the target recommendation information by the user, or the satisfaction of the feedback. For the model update process, please refer to the introduction of model training in the above embodiment, which will not be repeated here.
[0097] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0098] Figure 7 This is a schematic diagram of the structure of the first embodiment of the information recommendation device provided in the embodiment of the present application. The device can be integrated in the fourth device or implemented by the fourth device. The store system is installed on the second device. Figure 7As shown, the device includes: a first receiving module 71, a first obtaining module 72, a first determining module 73, and a first sending module 74; wherein the first receiving module 71 is used to receive an information recommendation request sent by a first data provider, and the information recommendation request is used to request information recommendation for a user; the first obtaining module 72 is used to obtain at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions, and the at least two data providers include the first data provider; the first determining module 73 is used to determine the target recommendation information for the user based on the at least two intermediate recommendation information; the first sending module 74 is used to send the target recommendation information to the first data provider.
[0099] In a possible design of an embodiment of the present application, the information recommendation request includes an encrypted user identifier; the first acquisition module 72 is specifically used to: determine whether the at least two data providers both have the encrypted user identifier; if so, send the encrypted user identifier to the at least two data providers; receive at least two intermediate recommendation information fed back by the at least two data providers, wherein each data provider corresponds to one intermediate recommendation information; wherein the intermediate recommendation information fed back by each data provider is obtained by each data provider based on its own recommendation model and the relevant data of the user, and the recommendation model of each data provider is obtained by performing federated machine learning based on the user sample data of the at least two data providers.
[0100] In a possible design of an embodiment of the present application, the device also includes: a training module 75; wherein the training module 75 is specifically used to: receive encrypted user sample data sent by the at least two data providers; determine the sample data of common users in the user encrypted sample data of the at least two data providers; perform federated machine learning based on the sample data of the common users to obtain a recommendation model for each data provider.
[0101] In a possible design of an embodiment of the present application, when the training module 75 performs federated machine learning based on the sample data of the common user to obtain a recommendation model for each data provider, it is specifically used to: send a public key to at least two data providers; receive intermediate model parameters sent by each data provider, wherein the intermediate model parameters are obtained by each data provider by training a local model based on the sample data of the common user; determine the total model parameters based on the intermediate model parameters sent by each data provider; send the total model parameters to each data provider, wherein the total model parameters are used to enable each data provider to update its respective local model; repeat the above steps until the convergence condition of the training is reached to obtain a recommendation model for each data provider.
[0102] In a possible design of an embodiment of the present application, the device also includes: an update module 76; wherein the update module 76 is specifically used to: receive recommendation effect data of the target recommendation information; and update the recommendation model according to the recommendation effect data of the target recommendation information.
[0103] In a possible design of an embodiment of the present application, the at least two data providers include any one of the following: an airport and an external data provider; an airline and an external data provider; an airport shop and an external data provider; wherein the external data provider is a user data provider other than the airport, the airline and the airport shop.
[0104] In a possible design of an embodiment of the present application, when the determination module determines the target recommendation information for the user based on the at least two intermediate recommendation information, it specifically includes: fusing the at least two intermediate recommendation information to obtain the target recommendation information for the user.
[0105] The device provided in the embodiment of the present application can be used to perform Figures 2 to 6 The implementation scheme of the information recommendation method in the illustrated embodiment has similar implementation principles and technical effects, which will not be described in detail here.
[0106] Figure 8 This is a schematic diagram of the structure of the second embodiment of the information recommendation device provided in the embodiment of the present application. The device can be integrated in the first device, the second device, and the third device, and can also be implemented by the first device, the second device, and the third device. Figure 8As shown, the device includes: a second sending module 81 and a second receiving module 82; wherein the second sending module 81 is used to send an information recommendation request to the coordination device, the information recommendation request includes an encrypted user identifier, and is used to request information recommendation for the user; the second receiving module 82 is used to receive the encrypted user identifier sent by the coordination device; the second sending module 81 is also used to recommend information to the user based on the encrypted user identifier, and send the obtained intermediate recommendation information to the coordination device; the second receiving module 82 is also used to receive target recommendation information returned by the coordination device, the target recommendation information is obtained by the coordination device based on at least two intermediate recommendation information provided by at least two data providers, and each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions; the second sending module 81 is also used to push the target recommendation information to the user's terminal device.
[0107] In a possible design of an embodiment of the present application, the device also includes: a second acquisition module 83 and a second determination module 84; wherein the second acquisition module 83 is used to obtain recommendation effect data of the target recommendation information; and the second determination module 84 is used to determine whether to push the target recommendation information based on the recommendation effect data of the target recommendation information.
[0108] In a possible design of an embodiment of the present application, the at least two data providers include any one of the following: an airport and an external data provider; an airline and an external data provider; an airport shop and an external data provider; wherein the external data provider is a user data provider other than the airport, the airline and the airport shop.
[0109] The device provided in the embodiment of the present application can be used to perform Figures 2 to 6 The implementation scheme of the first device in the illustrated embodiment has similar implementation principles and technical effects, which will not be described in detail here.
[0110] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the determination module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0111] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0112] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0113] Fig. 9 This is a schematic diagram of the structure of the electronic device embodiment 1 provided in the present application. Fig. 9 As shown, the electronic device may include: a processor 91, a memory 92, a display 93, a transceiver 94 and a system bus 95. The memory 92, the display 93 and the transceiver 94 are connected to the processor 91 through the system bus 95 and communicate with each other. The memory 92 is used to store computer execution instructions, the display 93 is used to display the processing results of the processor 91, and the transceiver 94 is used to communicate with other devices. When the processor 91 executes the above-mentioned computer execution instructions, the above-mentioned Figures 2 to 6 A scheme of an embodiment of the method is shown.
[0114] Fig.10 This is a schematic diagram of the structure of the electronic device embodiment 2 provided in the present application. Fig.10 As shown, the electronic device may include: a processor 101, a memory 102, a display 103, a transceiver 104 and a system bus 105. The memory 102, the display 103 and the transceiver 104 are connected to the processor 101 through the system bus 105 and communicate with each other. The memory 102 is used to store computer execution instructions, the display 103 is used to display the processing results of the processor 101, and the transceiver 104 is used to communicate with other devices. When the processor 101 executes the above-mentioned computer execution instructions, the above-mentioned Figures 2 to 6 A scheme of an embodiment of the method is shown.
[0115] Above Fig. 9 and Fig.10 The system bus mentioned in the specification may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
[0116] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0117] Optionally, the embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer executes the above Figures 2 to 6 The method of the second device of the illustrated embodiment; or
[0118] When the computer execution instruction is executed on the computer, the computer executes the above Figures 2 to 6 The method of the illustrated embodiment.
[0119] Optionally, the present application embodiment further provides a chip for executing instructions, the chip being used to execute the above Figures 2 to 6 The method of the embodiment shown, or the chip is used to execute the above Figures 2 to 6 The method of the illustrated embodiment.
[0120] The embodiment of the present application also provides a computer program product, the computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, at least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, the above-mentioned Figures 2 to 6 The method of the embodiment shown or the above Figures 2 to 6 The method of the illustrated embodiment.
[0121] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0122] It is understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An information recommendation method, It is characterized in that include: receiving an information recommendation request sent by a first data provider, wherein the information recommendation request is used to request information recommendation to a user; Obtaining at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, the at least two data providers include the first data provider, and each intermediate recommendation information is obtained by each data provider based on its own recommendation model and relevant data of the user; Determining target recommendation information for the user according to the at least two intermediate recommendation information; Sending the target recommendation information to the first data provider; The method further comprises: Obtaining a set of encrypted user identifications of the at least two data providers; Determining an identifier of a common user in the encrypted set of user identifiers of the at least two data providers; Sending a public key to the at least two data providers, so that the at least two data providers respectively use the public key to encrypt the intermediate results and send them to each other; and performing calculations based on the received encrypted intermediate results to obtain intermediate model parameters, wherein the intermediate results are the results output by the at least two data providers in the current iterative training process; Receiving intermediate model parameters sent by each data provider, where the intermediate model parameters are obtained by each data provider through training a local model based on the sample data of the common user; Determining total model parameters according to the intermediate model parameters sent by each data provider; Sending the total model parameters to each data provider, wherein the total model parameters are used to enable each data provider to update its own local model; Repeat the above steps until the convergence condition of training is reached, and obtain the recommendation model for each data provider.
2. The method according to claim 1, It is characterized in that The information recommendation request includes an encrypted user identifier; The obtaining, from at least two data providers, at least two intermediate recommendation information corresponding to the user includes: determining whether the at least two data providers both have the encrypted user's identifier; If yes, sending the encrypted user identifier to the at least two data providers; receiving at least two pieces of intermediate recommendation information fed back by the at least two data providers, wherein each data provider corresponds to one piece of intermediate recommendation information; The recommendation model of each data provider is obtained by performing federated machine learning based on the user sample data of the at least two data providers.
3. The method according to claim 1 or 2, It is characterized in that Also includes: Receiving recommendation effect data of the target recommendation information; The recommendation model is updated according to the recommendation effect data of the target recommendation information.
4. The method according to claim 1 or 2, It is characterized in that The at least two data providers include any of the following: Airports and external data providers; Airlines and external data providers; Airport shops and external data providers; The external data provider is a user data provider other than the airport, the airline and the airport shops.
5. The method according to claim 1 or 2, It is characterized in that The determining, according to the at least two intermediate recommendation information, target recommendation information for the user includes: The at least two intermediate recommendation information are merged to obtain target recommendation information for the user.
6. An information recommendation method, It is characterized in that Applied to a data provider, the method comprises: Sending an information recommendation request to the coordination device, wherein the information recommendation request includes an encrypted user identifier and is used to request information recommendation for the user; Receiving the encrypted user identifier sent by the coordination device; Recommending information to the user according to the encrypted user identifier, and sending the obtained intermediate recommendation information to the coordination device; Receive target recommendation information returned by the coordination device, where the target recommendation information is obtained by the coordination device based on at least two intermediate recommendation information provided by at least two data providers, each intermediate recommendation information is obtained by a different data provider based on data of the user in different dimensions, and each intermediate recommendation information is obtained by each data provider based on its own recommendation model and relevant data of the user; Pushing the target recommendation information to the user's terminal device; The method further comprises: Receive the public key sent by the coordinating device; At least two data providers encrypt the intermediate results using public keys respectively and send them to each other; The at least two data providers respectively perform calculations based on the received encrypted intermediate results to obtain intermediate model parameters, where the intermediate results are the results output by the at least two data providers during the current iterative training process, and the intermediate model parameters are obtained by each data provider training a local model based on sample data of a common user; Sending the intermediate model parameters to a coordination device, so that the coordination device determines the total model parameters according to the intermediate model parameters sent by each data provider; Each data provider receives the total model parameters, and the total model parameters are used to enable each data provider to update its own local model; Repeat the above steps until the convergence condition of training is reached, and obtain the recommendation model for each data provider.
7. The method according to claim 6, It is characterized in that Also includes: Obtain recommendation effect data of target recommendation information; Determine whether to push the target recommendation information according to the recommendation effect data of the target recommendation information.
8. The method according to claim 6 or 7, It is characterized in that The at least two data providers include any of the following: Airports and external data providers; Airlines and external data providers; Airport shops and external data providers; The external data provider is a user data provider other than the airport, the airline and the airport shops.
9. An information recommendation device, It is characterized in that include: A first receiving module, configured to receive an information recommendation request sent by a first data provider, wherein the information recommendation request is used to request information recommendation to a user; A first acquisition module is used to acquire at least two intermediate recommendation information corresponding to the user from at least two data providers, wherein each intermediate recommendation information is obtained by different data providers based on data of the user in different dimensions, and the at least two data providers include the first data provider; the intermediate recommendation information fed back by each data provider is obtained by each data provider based on its own recommendation model and relevant data of the user; A first determining module, configured to determine target recommendation information for the user based on the at least two intermediate recommendation information; A first sending module, used for sending the target recommendation information to the first data provider; The device also includes: a training module; wherein the training module is specifically used to: receive the encrypted user sample data sent by the at least two data providers; determine the sample data of a common user in the encrypted user sample data of the at least two data providers; perform federated machine learning based on the sample data of the common user to obtain a recommendation model for each data provider; When the training module performs federated machine learning based on the sample data of the common user to obtain the recommendation model of each data provider, it is specifically used to: send a public key to the at least two data providers, so that the at least two data providers respectively use the public key to encrypt the intermediate results and send them to each other; and calculate according to the received encrypted intermediate results to obtain intermediate model parameters, and the intermediate results are the results output by the at least two data providers in the current iterative training process; receive the intermediate model parameters sent by each data provider, and the intermediate model parameters are obtained by each data provider through training the local model according to the sample data of the common user; determine the total model parameters according to the intermediate model parameters sent by each data provider; send the total model parameters to each data provider, and the total model parameters are used to enable each data provider to update its own local model; repeat the above steps until the convergence condition of the training is reached to obtain the recommendation model of each data provider.
10. The device according to claim 9, It is characterized in that The information recommendation request includes an encrypted user identifier; Wherein, when the first acquisition module acquires at least two intermediate recommendation information corresponding to the user from at least two data providers, it specifically includes: determining whether the at least two data providers both have the encrypted user's identifier; If yes, sending the encrypted user identifier to the at least two data providers; receiving at least two pieces of intermediate recommendation information fed back by the at least two data providers, wherein each data provider corresponds to one piece of intermediate recommendation information; The recommendation model of each data provider is obtained by performing federated machine learning based on the user sample data of the at least two data providers.
11. An information recommendation device, It is characterized in that include: A second sending module, used to send an information recommendation request to the coordination device, wherein the information recommendation request includes an encrypted user identifier and is used to request information recommendation for the user; A second receiving module, used to receive the encrypted user identifier sent by the coordination device; The second sending module is further used to recommend information to the user according to the encrypted user identifier, and send the obtained intermediate recommendation information to the coordination device; The second receiving module is further used to receive target recommendation information returned by the coordination device, where the target recommendation information is obtained by the coordination device based on at least two intermediate recommendation information provided by at least two data providers, each of which is obtained by a different data provider based on data of the user in different dimensions; the intermediate recommendation information fed back by each data provider is obtained by each data provider based on its own recommendation model and relevant data of the user; The second sending module is further used to push the target recommendation information to the user's terminal device; The apparatus further comprises: receiving a public key sent by the coordination device; At least two data providers encrypt the intermediate results using public keys respectively and send them to each other; The at least two data providers respectively perform calculations based on the received encrypted intermediate results to obtain intermediate model parameters, where the intermediate results are the results output by the at least two data providers during the current iterative training process, and the intermediate model parameters are obtained by each data provider training a local model based on sample data of a common user; Sending the intermediate model parameters to a coordination device, so that the coordination device determines the total model parameters according to the intermediate model parameters sent by each data provider; Each data provider receives the total model parameters, and the total model parameters are used to enable each data provider to update its own local model; Repeat the above steps until the convergence condition of training is reached, and obtain the recommendation model for each data provider.
12. An electronic device, It is characterized in that include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 8.
