A method and system for injecting false information into a recommendation system in a big data scenario
By constructing a false information injection model and simulating the false information injection process of the recommendation system in a big data environment, we solve the impact of false information on the recommendation system, analyze and prevent false information, and improve the accuracy and user trust of the recommendation system.
Patent Information
- Application Number
- CN202111447123.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-11-30
AI Technical Summary
Recommendation systems in big data environments face the problem of false information injection, which leads to inaccuracy in recommendation results and a decrease in user trust, affecting the normal operation of the system.
Cosine similarity is used to construct a similarity matrix to form a false information injection model. Random injection, average injection, popular injection and unorganized malicious injection models are used to simulate the behavior of false users, interfere with the recommendation system, and analyze the impact of injection.
By simulating the process of false information injection, we can intuitively see the difference between the normal operation of the recommendation system and the influence of false information, helping to analyze and prevent the distribution of false information, and improve the accuracy of the recommendation system and user trust.
Smart Images

Figure CN114168846B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of network technology, and in particular relates to a method and system for injecting false information into a recommendation system in a big data scenario. Background Art
[0002] With the development of mobile networks, the scale of information data has exploded, and the concept of big data has received widespread attention. While big data enriches human life, it also brings a lot of problems. Information overload is one of the most serious problems in the current big data environment. This problem will greatly reduce the utilization rate of information, and users have to spend a lot of energy to screen redundant information. Big data has five characteristics: huge data volume, fast speed, multiple modes, difficult to distinguish, low value, and low density. Due to these characteristics, traditional recommendation systems cannot meet the requirements for data processing capabilities. At the same time, the existence of big data makes users have higher requirements for real-time and accuracy of recommendation systems.
[0003] The recommendation system based on collaborative filtering algorithm helps users quickly find information that they have not discovered but may be interested in in the future, and actively pushes it to users. The essence of the recommendation system is to effectively filter and push matching information. Compared with search engines, it does not require users to put forward clear search purposes, but needs to analyze user behavior data and discover user preferences, so as to quickly provide users with recommended information, help different users discover personalized new things that they are interested in, and provide a better user experience. The core idea of the collaborative filtering recommendation algorithm is to predict the user's potential interest in the project based on historical behavior data. The collaborative filtering algorithm pushes items of interest based on the similarity between users. The Pearson correlation coefficient and the cosine similarity formula are both methods used to calculate user similarity.
[0004] The recommendation system based on collaborative filtering has greatly improved the search efficiency of users, but at the same time it has also faced some challenges and problems. A large amount of user information is an important part of the recommendation system. Due to the openness of the system, some malicious users purposefully inject false user information into the collaborative filtering system and manipulate these false users, thereby changing the ranking of the manipulated system, which is conducive to the display of their specific information on more user pages. The recommendation system is open to users, and the collaborative filtering algorithm requires a large amount of user historical ratings as a basis for recommendation. Therefore, regardless of the identity of the user, they can participate. The adversary can add a large number of false user ratings to the system based on this vulnerability. The injection of false information seriously interferes with the recommendation results of the recommendation system, seriously affects the real user experience, causes users to gradually lose trust in the recommendation system, damages the legitimate interests of users and platforms, and hinders the popularization and improvement of collaborative filtering recommendation technology in various fields. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method and system for injecting false information into a recommendation system in a big data scenario in response to the deficiencies in the above-mentioned prior art, so as to simulate the process of false users interfering with the recommendation system and the impact on the recommendation results.
[0006] The present invention adopts the following technical solutions:
[0007] The method for injecting false information into the recommendation system in a big data scenario includes the following steps:
[0008] S1. Build the Movielens dataset as a real dataset for the recommendation system;
[0009] S2, based on the data set constructed in step S1, a similarity matrix is constructed using cosine similarity to represent the similarity between the target user a and other users;
[0010] S3, based on the similarity matrix of target user a constructed in step S2, obtain the K users with the highest similarity by sorting, list all the items preferred by the K users, remove the items that have been rated by target user a, sort them according to the interest level, calculate the top N items, and recommend the resulting recommendation result page to target user a;
[0011] S4, constructing a false information injection model with injection type, injection intensity, filling rate and selection rate parameter values according to the recommendation result of the target user a formed in step S3;
[0012] S5. Form false users and false information according to the false information injection model constructed in step S4;
[0013] S6. After injecting the false user and false information obtained in step S5 into the real data set of step S1, a new recommendation page result is finally obtained which is interfered by the false information through steps S2 and S3.
[0014] Specifically, in step S2, the similarity W between the target user a and other users b is ab The calculation is as follows:
[0015]
[0016] Among them, N(a) is the list of preferred items of target user a, and N(b) is the list of preferred items of other user b.
[0017] Specifically, in step S2, when the target user a and the other user b are both interested in an unpopular item, the similarity W between the target user a and the other user b is ab The calculation is as follows:
[0018]
[0019] Among them, N(a) is the list of items preferred by the target user a, N(b) is the list of items preferred by other user b, and N(i) is the set of users who have taken actions on item i.
[0020] Specifically, in step S3, the interest degree p(a, i) is calculated as follows:
[0021]
[0022] Among them, i is the item, S(a, K) is the K users who are closest to the interest of the target user a, N(i) is the set of users who have taken actions on item i, and W ab is the interest similarity between the target user a and other user b, and R bi is the interest of other user b in item i.
[0023] Specifically, in step S4, the injection model M is:
[0024]
[0025] Among them, x is the selection function, δ is the parameter controlling the selected item set, is the parameter value controlling the filled item set, and γ is the parameter controlling the target item set.
[0026] Specifically, in step S4, the injection model includes a random injection model, an average injection model, a popularity injection model, and an unorganized malicious injection model. The unorganized malicious injection model is obtained by confusing the random injection model, the average injection model, and the popularity injection model. Each fake user generates a random number between 0 and 1. If the random number flag > 0.6, the fake user adopts the average injection model. If 0.4 < flag <= 0.6, the fake user adopts the random injection model. When the random number flag <= 0.4, the fake user adopts the popularity injection model.
[0027] Furthermore, in the random injection model, the items in the filled item set I F are selected by random sampling, and the items in the filled item set I F are assigned values using a Gaussian distribution.
[0028] Furthermore, in the average injection model, the items in the filled item set I F are selected by random sampling, including the items in the filled item set I F being scored using the mean distribution of each item.
[0029] Furthermore, in the popularity injection model, the selected item set I S is selected using Zip’s law, and the filled item set I FThe items in the sample set are randomly selected. t ], using Gaussian distribution for I F Rating the items in .
[0030] Another technical solution of the present invention is a false information injection system for a recommendation system in a big data scenario, comprising:
[0031] Data module, building the Movielens dataset as the real dataset for the recommendation system;
[0032] Similarity module, based on the data set, uses cosine similarity to construct a similarity matrix to represent the similarity between target user a and other users;
[0033] The interest module, based on the similarity matrix of target user a, obtains the K users with the highest similarity through sorting, lists all the items preferred by the K users, removes the items that have been rated by target user a, sorts them according to the interest level, calculates the top N items, and recommends the resulting recommendation result page to target user a;
[0034] A construction module is used to construct a false information injection model with injection type, injection intensity, filling rate and selection rate parameter values according to the recommendation results of the target user a;
[0035] The scoring module generates fake users and fake information based on the fake information injection model;
[0036] The injection module injects fake users and fake information into the real data set, and finally obtains a new recommendation page result that is interfered by the fake information.
[0037] Compared with the prior art, the present invention has at least the following beneficial effects:
[0038] The present invention discloses a method for injecting false information into a recommendation system in a big data scenario. The false information injection mode of the recommendation system constructed by the whole method step setting can intuitively show the difference between the result produced by the normal operation of the recommendation system and the erroneous result produced after the false information is injected. According to the difference, the distribution and influence degree of the false information can be analyzed.
[0039] Furthermore, by calculating the similarity W between the target user a and other users ab , thus constructing a similarity matrix is to realize the collaborative filtering recommendation algorithm. The principle of calculating the similarity between the target user a and other users is to use the cosine similarity formula, and the angle between two vectors represents the similarity between users.
[0040] Furthermore, when the target user and other users are interested in popular items, it is difficult to distinguish the interest preferences of the target user and other users. However, when the target user and other users are interested in unpopular items, the similarity between the target user and other users will be greatly improved, which is conducive to improving the accuracy of user similarity in the recommendation system. Increasing the similarity weight of unpopular items will change the similarity value.
[0041] Furthermore, p(a,i) is calculated by using this formula to predict the interest of target user a in other projects, thus realizing collaborative filtering algorithm. The predicted value is calculated by ab The product of (the interest similarity between A and other users) and other users' interest in the item.
[0042] Furthermore, the purpose of setting the injection model M is to provide a basic injection model for implementing the false information injection method, to formulate the characteristics of the injection method, and to add more complex and effective injection methods.
[0043] Furthermore, the benefit of building four types of attack models is to increase the diversity of false information injection methods. The unorganized malicious injection model is a mixture of multiple models, which is more in line with the chaotic and complex situation of false information injection in real life.
[0044] Furthermore, the random injection model setting aims to add common and simple false information injection methods.
[0045] Furthermore, the setting of the average injection model increases the diversity of the false information injection model and is a more effective injection method.
[0046] Furthermore, the setting of the average injection model increases the diversity of the false information injection model. By scoring popular items, it is more consistent with the behavior of normal users, and the injection of false information is more concealed and unnoticed.
[0047] In summary, the present invention builds a false information injection model for the recommendation system under the collaborative filtering algorithm, which can restore the risks of recommendation systems in real life. According to the difference in recommendation results before and after the false information injection, the method of false information injection can be better understood, so as to better detect and prevent it.
[0048] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the present invention;
[0050] Figure 2 This is a schematic diagram of the injection model overview;
[0051] Figure 3 This is the distribution diagram of rating data of real users 17 of the recommendation system;
[0052] Figure 4 Pie chart of real and fake users;
[0053] Figure 5 Comparison diagram of target items of four types of injection models, where (a) is a random injection model, (b) is an average injection model, (c) is a popular injection model, and (d) is an unorganized malicious injection model;
[0054] Figure 6 Comparison diagram of the rating data of fake user 805, where (a) is the random injection model, (b) is the average injection model, (c) is the popular injection model, and (d) is the unorganized malicious injection model;
[0055] Figure 7 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0058] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0059] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0060] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0061] See also Figure 1 The present invention provides a method for injecting false information into a recommendation system in a big data scenario, a collaborative filtering recommendation algorithm, which forms a matrix through a large number of users' rating data, the rating data comes from the Movieslens data set, and calculates the similarity between users; when the user Tim logs into the system, the nearest neighbor user is found according to the user's historical rating data and sorted by similarity, and the interest score of the unrated item is calculated, and the recommendation result is generated according to the interest score.
[0062] See also Figure 7 The present invention provides a method for injecting false information into a recommendation system in a big data scenario, comprising the following steps:
[0063] S1. Build the Movielens dataset as a real dataset for the recommendation system;
[0064] S2. Based on the real data set constructed in step S1, find users with similar interests, and find the users with the highest similarity based on the similarity between two users. Since the existence of popular products will affect the calculation of the similarity between users, the improved cosine similarity is used to construct a matrix to express the similarity between the target user a and other users;
[0065] Using the cosine similarity formula, the similarity can be expressed by formula 1:
[0066]
[0067] Among them, N(a) is the list of preferred items of target user a, and N(b) is the list of preferred items of other user b.
[0068] When two users are interested in popular item A, it does not mean that their interests are similar, because a large number of users are also interested in it at the same time. However, when two users are interested in an unpopular item C, this can greatly increase the similarity of their interests. The formula penalizes the greatly increased similarity between users a and b due to their interest in popular products by 1 / log(1+|N(i)|). The similarity is expressed by formula 2:
[0069]
[0070] S3, based on the similarity matrix of target user a constructed in step S2, obtain the K users with the highest similarity by sorting, list all the items preferred by K users, remove the items that a has rated, sort them according to the interest level, calculate the top N items, form a recommendation result page, and recommend them to the target user;
[0071] For each unloved item i, the interest level of the target user a is expressed by Formula 3:
[0072]
[0073] Among them, a is the user, i is the project, S(a,K) are the K users with the closest interests to the target user a, N(i) is the set of users who have taken actions on item i, and w ab is the interest similarity between target user a and other user b, R bi is the interest of other user b in item i.
[0074] Recommend the top N projects to target users based on their interest in the projects from high to low.
[0075] S4. Construct random injection model, average injection model, popular injection model, and unorganized malicious injection model. The four types of models have three parameters: injection intensity, filling rate, and selection rate.
[0076] Since the recommendation system needs to collect user information, the system is open to the public. The adversary adds a large amount of fake user information to the system in an attempt to change the recommendation results. The injection model formula is expressed as:
[0077]
[0078] Where x is It is the selection function, i t , I, U, φ represent the target project, all projects, all users, and a specific set of injection type parameters, respectively. The target project is selected by γ, and I φ is the set of unrated items, I s and I F is extracted from I, indicating the selection item set and the filling item set, I s and I F According to δ and Make adjustments.
[0079] See also Figure 2 , the injection model overview includes
[0080] I S is the set of selected items, I SRelated to the target project, the adversary passes I S Make the injection of fake users more effective, S It may be an empty set, and the function δ determines I S The rating value of the item in .
[0081] I F is a set of filled items, the adversary passes I F To reduce the sparseness of the injected model profile, I F Randomly select items to form, function Confirm I F The rating value of the item in .
[0082] I t is the target item set, which usually contains only one item I t , the function γ determines I t The rating value of .
[0083] I φ is the collection of unrated items.
[0084] All injection models are based on Figure 2 However, the different contents of each part will produce different injection models.
[0085] Random injection model, general injection capability, selection set I S Not included, fill item collection I F The items in the sample are randomly selected and Gaussian distribution is used to F Assign values to the items in .
[0086] The average injection model has good injection capability and can better meet the interests of malicious users. Select the project set I S Not included, fill item collection I F The items in the table are selected by random sampling. F The items in are scored using their own mean distribution.
[0087] Popular injection model, select item set I S Use Zip's law to select the most popular items and fill the item set I F The items in the sample set are randomly selected. t ], using Gaussian distribution for I F Rating of items in .
[0088] The unorganized malicious injection model confuses the above three injection models, making it more complex and difficult to detect, and it is easier for fake users to successfully disguise themselves.
[0089] Each fake user generates a random number between 0 and 1. If flag > 0.6, the fake user adopts the average injection model. If 0.4 < flag <= 0.6, the fake user adopts the random injection model. When flag <= 0.4, the fake user adopts the popular injection model.
[0090] S5. According to the injection model selected in step S4 and the parameter values of injection intensity, filling rate, and selection rate, form the number of fake users and the scoring data of the fake users.
[0091] Obtain the number of fake users by multiplying the value of the injection intensity by the number of real users in the dataset. Form fake messages according to the data distribution of the selected fake information in the injection model, as well as the values of the filling rate and selection rate and the number of all items.
[0092] S6. Inject the fake dataset obtained in step S5 into the real dataset of the recommendation system, and the recommendation system is interfered by the fake information to form a new recommendation page result.
[0093] In another embodiment of the present invention, a fake information injection system for a recommendation system in a big data scenario is provided. This system can be used to implement the fake information injection method for a recommendation system in the above-mentioned big data scenario. Specifically, the fake information injection system for a recommendation system in this big data scenario includes a data module, a similarity module, an interest module, a construction module, a scoring module, and an injection module.
[0094] Among them, the data module constructs the Movielens dataset as the real dataset of the recommendation system.
[0095] The similarity module, based on the dataset, uses cosine similarity to construct a similarity matrix to represent the similarity between the target user a and other users.
[0096] The interest module, based on the similarity matrix of the target user a, obtains the top K users with the highest similarity through sorting, lists all the items preferred by the top K users, excludes the items that the target user a has already rated, sorts them according to the level of interest, and calculates the top N items, and recommends the formed recommendation result page to the target user a.
[0097] The construction module constructs a fake information injection model with parameter values of injection type, injection intensity, filling rate, and selection rate according to the recommendation result of the target user a.
[0098] The scoring module forms fake users and fake information according to the fake information injection model.
[0099] The injection module injects the fake users and fake information into the real dataset, and finally obtains a new recommendation page result interfered by the fake information.
[0100] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the false information injection method of the recommendation system in the big data scenario, including:
[0101] The Movielens dataset is constructed as a real dataset for the recommendation system; based on the constructed dataset, a similarity matrix is constructed using cosine similarity to represent the similarity between target user a and other users; based on the similarity matrix of target user a, the K users with the highest similarity are obtained by sorting, all items preferred by the K users are listed, items that have been rated by target user a are eliminated, and the items are sorted according to their interest, the top N items are calculated, and the formed recommendation result page is recommended to target user a; a false information injection model with injection type, injection strength, filling rate and selection rate parameter values is constructed according to the recommendation results of target user a; false users and false information are formed according to the false information injection model; after the obtained false users and false information are injected into the real dataset, a new recommendation page result is finally obtained which is interfered by the false information.
[0102] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0103] The processor may load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the method for injecting false information into a recommendation system in a big data scenario in the above embodiment; the processor may load and execute the following steps:
[0104] The Movielens dataset is constructed as a real dataset for the recommendation system; based on the constructed dataset, a similarity matrix is constructed using cosine similarity to represent the similarity between target user a and other users; based on the similarity matrix of target user a, the K users with the highest similarity are obtained by sorting, all items preferred by the K users are listed, items that have been rated by target user a are eliminated, and the items are sorted according to their interest, the top N items are calculated, and the formed recommendation result page is recommended to target user a; a false information injection model with injection type, injection strength, filling rate and selection rate parameter values is constructed according to the recommendation results of target user a; false users and false information are formed according to the false information injection model; after the obtained false users and false information are injected into the real dataset, a new recommendation page result is finally obtained which is interfered by the false information.
[0105] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0106] The system's data set is integrated and reorganized from the public Movielens data set, collecting rating data on more than 9,000 movies from 671 users between 1996 and 2016. Figure 3 It is a scatter plot of the distribution of project rating data of real user 17 in the recommendation system. The horizontal axis represents the id of the movie project, and the vertical axis represents the rating value.
[0107] Random injection, average injection, popular injection, and unorganized malicious injection models are compared. The target project is selected as I t The number is 117665, the injection intensity is 0.2, the filling rate is 0.1, and the selection rate is 0.1. Four models are compared.
[0108] The number of fake users is generated based on the product of the number of real users in the system and the injection intensity. Therefore, the number of fake users generated by the four models is 133. Figure 4 shown.
[0109] The horizontal axis is the user ID in the system, and the vertical axis is the target project I t =The rating value is 117665. Figure 5 ,6,7 show that the four types of models are used to target project I t The result after injection scoring is given by Figure 5 It can be seen that after 671, the scores of the target items are linearly continuous and are all 5, indicating that the score injection of the target items is successful.
[0110] Under the conditions of injection intensity of 0.2, filling rate of 0.1, and selection rate of 0.1, the data distribution diagram of fake user 805 generated by the four injection models is as follows, with the horizontal axis representing the project ID in the system and the vertical axis representing the rating value. The distribution of the rating data of fake users under each injection model, through model comparison, it is found that the more complex the injection model, the closer the distribution of the fake user's rating data is to the data distribution of the real user's rating.
[0111] In summary, the present invention provides a method and system for injecting false information into a recommendation system in a big data scenario. The collaborative filtering algorithm can filter information that is difficult to automatically analyze by machines, such as music, etc., share other people's experience, avoid incomplete and inaccurate content analysis, and can filter based on some complex concepts and recommend new information to discover potential interests and preferences of users that they have not yet discovered. The recommendation function is effectively implemented, and a normal recommendation result page can be displayed when it is not injected; the process of malicious users injecting false information into the recommendation system is simulated to improve the ranking of target items, thereby interfering with the normal operation of the recommendation system, and the two are contrasted.
[0112] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0113] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0114] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0116] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A method for injecting false information into a recommendation system in a big data scenario, characterized in that: It includes the following steps: S1. Construct the Movielens dataset as the real dataset of the recommendation system; S2. Based on the dataset constructed in step S1, use cosine similarity to construct a similarity matrix to represent the similarity between the target user a and other users b; S3. Based on the similarity matrix of the target user a constructed in step S2, obtain the top K users with the highest similarity through sorting, list all the items preferred by the K users,剔除 the items that the target user a has already rated, sort them according to the degree of interest, calculate the top N items, and recommend the formed recommendation result page to the target user a; S4. Construct a false information injection model with parameter values of injection type, injection intensity, filling rate, and selection rate according to the recommendation result of the target user a formed in step S3; S5. Form false users and false information according to the false information injection model built in step S4; S6. After injecting the false users and false information obtained in step S5 into the real dataset in step S1, obtain the final recommendation page result interfered by false information through steps S2 and S3, restore the risks existing in the recommendation system in real life through the above operations, and understand the injection method of false information according to the difference in the recommendation results before and after false information injection, and detect and prevent it.
2. The method for injecting false information into a recommendation system in a big data scenario according to claim 1, characterized in that: In step S2, the similarity W between the target user a and other users b is ab The calculation is as follows: Among them, N(a) is the list of items preferred by the target user a, and N(b) is the list of items preferred by other users b.
3. The method for injecting false information into a recommendation system in a big data scenario according to claim 1, characterized in that: In step S2, when the target user a and the other user b are both interested in an unpopular item, the similarity W between the target user a and the other user b is ab The calculation is as follows: Among them, N(a) is the list of items preferred by the target user a, N(b) is the list of items preferred by other users b, and N(i) is the set of users who have taken actions on item i.
4. The method for injecting false information into a recommendation system in a big data scenario according to claim 1, characterized in that: In step S3, the interest degree p(a,i) is calculated as follows: Where i is a project, S(a,K) is the K users with the closest interests to the target user a, N(i) is the set of users who have acted on project i, and W ab is the interest similarity between target user a and other user b, R bi is the interest of other user b in item i.
5. The method for injecting false information into a recommendation system in a big data scenario according to claim 1, characterized in that: In step S4, the injection model M is: Among them, x is the selection function, δ is the parameter that controls the set of selected items, is the parameter value that controls the filling item set, and γ is the parameter that controls the target item set.
6. The method for injecting false information into a recommendation system in a big data scenario according to claim 1, characterized in that: In step S4, the injection model includes a random injection model, an average injection model, a popular injection model, and an unorganized malicious injection model. The unorganized malicious injection model is obtained by confusing the random injection model, the average injection model, and the popular injection model. Each false user generates a random number between 0 and 1. If the random number flag > 0.6, the false user adopts the average injection model. If 0.4 < flag <= 0.6, the false user adopts the random injection model. When flag <= 0.4, the false user adopts the popular injection model.
7. The method for injecting false information into a recommendation system in a big data scenario according to claim 6, characterized in that: Randomly inject into the model, fill the item set I F The items are randomly selected and Gaussian distribution is used to fill the item set I F Assign values to the items in .
8. The method for injecting false information into a recommendation system in a big data scenario according to claim 6, characterized in that: Average injection into the model, filling the project set I F The items in the set are randomly selected, including the filling item set I F The items in are scored using their own mean distribution.
9. The method for injecting false information into a recommendation system in a big data scenario according to claim 6, characterized in that: In the popular injection model, select the project set I S Use Zip's law to select and fill the item collection I F The items in the sample set are randomly selected. t ], using Gaussian distribution for I F Rating the items in .
10. A false information injection system for recommendation system in big data scenario, characterized in that: It includes: A data module that constructs the Movielens dataset as the real dataset of the recommendation system; A similarity module that, based on the dataset, uses cosine similarity to construct a similarity matrix to represent the similarity between the target user a and other users; An interest degree module that, based on the similarity matrix of the target user a, obtains the top K users with the highest similarity through sorting, lists all the items preferred by the K users,剔除 the items that the target user a has already rated, sorts them according to the degree of interest, calculates the top N items, and recommends the formed recommendation result page to the target user a; A construction module that constructs a false information injection model with parameter values of injection type, injection intensity, filling rate, and selection rate according to the recommendation result of the target user a; A scoring module that forms false users and false information according to the false information injection model; The injection module injects fake users and false information into the real data set, and finally obtains a new recommendation page result that is interfered with by the false information. Through the above operation, the risks of the recommendation system in real life are restored. According to the difference in recommendation results before and after the injection of false information, the method of false information injection is understood, and it can be detected and prevented.
Citation Information
Patent Citations
Intelligent community oriented electronic commerce information recommendation method
CN106651546A
Fast density clustering double-layer network recommendation method based on graph structure filtering
CN108304479A
