Data sharing method, system, device and storage medium

By modifying the subscription area and adding similar keywords based on the preset offset distance in the data sharing system, the problems of insufficient privacy protection and low data processing efficiency in the existing technology are solved, and the enhancement of user privacy and data processing are achieved. Search efficiency.

CN118228319BActive Publication Date: 2024-09-17PEKING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410649321.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-17
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

When existing data sharing methods protect user privacy, privacy protection is insufficient, resulting in low data processing efficiency and poor scalability.

Method used

After receiving the subscription request at the publishing end, the subscription area is modified based on the preset offset distance, and similar keywords are added to the subscription keywords to form a new subscription request, thereby performing data search and sending, achieving the effect of double protection of user privacy. .

Benefits of technology

It effectively avoids directly exposing the user's location and points of interest, enhances privacy protection, and at the same time improves the relevance and accuracy of data retrieval, ensuring efficiency and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118228319B
    Figure CN118228319B
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and specifically, to a data sharing method, system, device and storage medium. The data sharing method applied to the publishing end includes: receiving a first subscription request sent by the subscribing end, the first subscription request including a first subscription area and a first subscription keyword; modifying the first subscription area to a second subscription area based on a preset offset distance, and adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword; combining the second subscription area and the second subscription keyword into a second subscription request, searching for data according to the second subscription request; and sending the searched data to the subscribing end. The present application can avoid directly exposing the specific location and points of interest of the subscribing end user, increase the level of privacy protection, and achieve the effect of privacy enhancement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular, to a data sharing method, system, device and storage medium. Background Art

[0002] With the development of communication technology, the amount of data shared through subscription and publication has exploded. Especially in this era of abundant geographic text data, more and more mobile users hope to find some effective ways to obtain local information of interest to them in a timely manner.

[0003] Therefore, it is very important for users to obtain the data they are interested in in a timely manner without exposing their privacy such as location and preferences. Existing data sharing methods use encrypted spatial index structures and differential privacy technologies to protect user privacy, but their privacy protection is not strong enough and also leads to poor data processing efficiency and scalability. Summary of the invention

[0004] Based on the above technical problems, the present application aims to provide a data sharing method, system, device and storage medium to solve at least one of the above technical problems.

[0005] In some embodiments, the first aspect of the present application provides a data sharing method, which is applied to a publishing end. The method includes:

[0006] Receiving a first subscription request sent by a subscriber, wherein the first subscription request includes a first subscription area and a first subscription keyword;

[0007] Modifying the first subscription area to a second subscription area based on a preset offset distance, and adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword;

[0008] combining the second subscription area and the second subscription keyword into a second subscription request, and searching for data according to the second subscription request;

[0009] The searched data is sent to the subscriber.

[0010] In one embodiment, the modifying the first subscription area to the second subscription area based on the preset offset distance includes:

[0011] Determine a plurality of candidate points based on a first center point and the preset offset distance, wherein the first center point is a center point of the first subscription area;

[0012] Determine a plurality of candidate subscription areas according to the plurality of candidate points respectively;

[0013] Determine the number of candidate objects in each of the plurality of candidate subscription areas that are hit by searching according to the first subscription keyword within a preset search duration;

[0014] The candidate subscription area with the least number of candidate objects is determined as the second subscription area.

[0015] In one embodiment, determining the candidate subscription area with the least number of candidate objects as the second subscription area includes:

[0016] For each candidate subscription area, counting the number of candidate objects that do not meet the preset condition and are searched within the preset search duration, wherein the candidate objects that do not meet the preset condition refer to candidate objects outside the first subscription area;

[0017] The candidate subscription area having the least number of candidate objects that do not satisfy the preset condition is determined as the second subscription area.

[0018] In one embodiment, for each candidate subscription area, counting the number of candidate objects that are searched within the preset search time and do not meet the preset condition includes:

[0019] For each candidate subscription area, searching for candidate objects corresponding to the first subscription keyword within the preset search duration according to a preset corresponding relationship; the preset corresponding relationship includes a plurality of corresponding relationships, each corresponding relationship representing a corresponding relationship between a keyword and an object related to the keyword;

[0020] The number of candidate objects in the first subscription area within the preset search duration is counted, and the number of candidate objects in each candidate subscription area that do not meet a preset condition is obtained based on the number and the number of candidate objects in each candidate subscription area.

[0021] In one embodiment, the adding a preset number of similar keywords to the first subscription keyword to obtain the second subscription keyword includes:

[0022] extracting semantic features of the first subscription keyword;

[0023] determining at least one similar keyword to the first subscription keyword according to the semantic feature;

[0024] The at least one similar keyword is combined with the first subscription keyword to obtain a second subscription keyword.

[0025] In one embodiment, the plurality of candidate subscription areas are rectangular areas, the rectangular areas completely cover the first subscription area, and the areas of the rectangular areas are larger than the area of ​​the first subscription area.

[0026] A second aspect of the present application provides a data sharing method, which is applied to a subscriber, and the method includes:

[0027] Sending a first subscription request to a publisher, wherein the first subscription request includes a first subscription area and a first subscription keyword;

[0028] receiving data searched and sent by the publisher based on the second subscription request;

[0029] The second subscription request is obtained by the publisher modifying the first subscription area to a second subscription area based on a preset offset distance, adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword, and combining the second subscription area and the second subscription keyword.

[0030] A third aspect of the present application provides a data sharing system, the system comprising a subscriber and a publisher; the publisher performs the following steps:

[0031] Receiving a first subscription request sent by a subscriber, wherein the first subscription request includes a first subscription area and a first subscription keyword;

[0032] Modifying the first subscription area to a second subscription area based on a preset offset distance, and adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword;

[0033] combining the second subscription area and the second subscription keyword into a second subscription request, and searching for data according to the second subscription request;

[0034] Sending the searched data to the subscriber;

[0035] The subscriber performs the following steps:

[0036] Sending a first subscription request to a publisher, wherein the first subscription request includes a first subscription area and a first subscription keyword;

[0037] receiving data searched and sent by the publisher based on the second subscription request;

[0038] The second subscription request is obtained by the publisher modifying the first subscription area to a second subscription area based on a preset offset distance, adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword, and combining the second subscription area and the second subscription keyword.

[0039] In a fourth aspect, the present application provides an electronic device including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the data sharing method described in each embodiment of the present application.

[0040] In a fifth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data sharing method described in each embodiment of the present application is implemented.

[0041] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:

[0042] The data sharing method in each embodiment of the present application, when applied to the publishing end, receives a first subscription request sent by the subscribing end, the first subscription request includes a first subscription area and a first subscription keyword, the first subscription area is modified to a second subscription area based on a preset offset distance, and a preset number of similar keywords are added to the first subscription keyword to obtain a second subscription keyword, and the subscription area and subscription keyword are double protected, which can avoid directly exposing the specific location and points of interest of the user on the subscribing end, increase the level of privacy protection, and achieve the effect of privacy enhancement. Furthermore, the second subscription area and the second subscription keyword are combined into a second subscription request, and data is searched according to the second subscription request, and the searched data is sent to the subscribing end. While achieving privacy enhancement, the relevance and accuracy of data retrieval are ensured, which not only ensures efficiency, but also increases the scalability of the sharing system. In short, the present application can not only enhance the privacy of the users on the subscribing end, but also improve the efficiency of data processing on the publishing end.

[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0045] Figure 1 is a schematic diagram of steps of a data sharing method in an exemplary embodiment of the present application;

[0046] Figure 2 This is a schematic diagram of modifying a first subscription area to a second subscription area in an exemplary embodiment of the present application;

[0047] Figure 3This is another schematic diagram of modifying a first subscription area to a second subscription area in an exemplary embodiment of the present application;

[0048] Figure 4 is a schematic diagram of experimental parameter settings in an exemplary embodiment of the present application;

[0049] Figure 5 This is a schematic diagram comparing the impact of the two methods on the number of subscription keywords in the experiment;

[0050] Figure 6 This is a schematic diagram comparing the impact of the two methods on the subscription area radius in the experiment;

[0051] Figure 7 This is a schematic diagram comparing the impact of the data sharing method described in the experiment on the offset distance of the subscription area center;

[0052] Figure 8 This is a comparison diagram of the number of additional keywords added by the data sharing method described in the experiment;

[0053] Fig. 9 This is a schematic diagram comparing the impact of the two methods on the number of queries in the experiment;

[0054] Fig.10 It is a structural schematic diagram of an electronic device provided by an exemplary embodiment of the present application.

[0055] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. DETAILED DESCRIPTION

[0056] With the advancement of communication technology, the number of people sharing information by subscribing and publishing data has increased dramatically. Especially in this era full of geographic text data, more and more mobile users hope to obtain local information of interest to them in a timely manner. Therefore, how to enable users to obtain the required data in a timely manner while protecting user privacy has become an important issue. The current data sharing method uses encrypted spatial index structure and differential privacy technology to protect user privacy, but there are problems such as insufficient privacy protection, low data processing efficiency, and poor scalability.

[0057] Therefore, the present application provides a data sharing method that can avoid directly exposing the specific location and points of interest of subscriber users, increase the level of privacy protection, and achieve the effect of privacy enhancement.

[0058] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0059] Example 1

[0060] This embodiment provides a data sharing method, such as Figure 1 As shown, applied to the publishing end, the method includes the following steps.

[0061] S1. Receive a first subscription request sent by a subscriber, where the first subscription request includes a first subscription area and a first subscription keyword.

[0062] The publisher first receives a subscription request from the subscriber. This request contains the first subscription area and the first subscription keyword. For example, a subscriber may be interested in Beijing's air quality data, so the subscription request they send may include Beijing as the subscription area and "air quality" as the keyword.

[0063] It can be seen that the data to be obtained by the above-mentioned subscriber mainly refers to geographic text data. With the continuous development of information services based on geographic location, the capacity of geographic text data has shown explosive growth. In this era of abundant geographic text data, more and more mobile users hope to find some effective ways to obtain local information of interest to them in a timely manner. Since mobile users are worried about disclosing their personal interests, needs and locations to service providers of location-based publish / subscribe systems, this application will perform privacy enhancement operations on the first subscription request sent by the user, so that mobile users can obtain the geographic text objects they need without having to worry about leaking their privacy.

[0064] Specifically, the first subscription request can be regarded as a spatial keyword subscription query, referred to as SKS query, and the subsequent first subscription request becomes a second subscription request after privacy enhancement, and the second subscription request is regarded as a privacy-enhanced spatial keyword subscription query, referred to as P-SKS query.

[0065] A geographic text object can be defined as a triple o=<ρ,ψ,t>, where o.ρ represents the geographic location, usually expressed in longitude and latitude spatial coordinates, o.ψ represents the text description, and ot represents the timestamp when the geographic text object is published.

[0066] A SKS query can be defined as a two-tuple q =<r,w> , where qr represents the subscription area, and qw represents the subscription keyword, such as the first subscription keyword, which can be a set of keywords connected by "and" or "or" semantics, such as (coffee shop or bar) and (cat or dog). Then given a geographic text object o, o is considered a match of q if and only if: (1) o.ρ∈qr, and (2) o.ψ satisfies qw. In other words, as a geographic text object that matches the SKS query, it needs to be within its subscription area, and its text description also satisfies the query requirements of the subscription keyword in the SKS query.

[0067] In order to protect the privacy content in the SKS query, this application will modify the structure of the SKS query into other forms in subsequent steps, converting the binary tuple into a quadruple.

[0068] S2. Modify the first subscription area to a second subscription area based on a preset offset distance, and add a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword.

[0069] In a specific implementation manner, modifying the first subscription area to the second subscription area based on a preset offset distance includes S21-S24.

[0070] S21. Determine a plurality of candidate points based on a first center point and the preset offset distance, where the first center point is the center point of the first subscription area.

[0071] refer to Figure 2 , dividing the underlying space into an n×n grid ( Figure 2 where n is equal to 8), the circle is the first subscription area, Figure 2 The center of the first subscription area (blue) shown in the figure is the center point of the first subscription area. The preset offset distance is the distance offset from the center point of the first subscription area, which is the distance from the center point of the first subscription area to the center point of the second subscription area. The size of this distance can be set according to the specific application scenario. The preset offset distance here is Figure 2 In , that is, convert the above SKS query from a two-tuple to a four-tuple, which is ,in Indicates the subscription area, Indicates the preset offset distance relative to the center point of the subscription area. Indicates that the subscription keyword is the first subscription keyword. Relative to The number of additional similar keywords added.

[0072] After specifying the preset offset distance, multiple candidate subscription areas can be determined based on the center point of the first subscription area. Figure 2 Two candidate subscription areas, a red area and a green area, are illustrated in the figure. The spatial domain for underlying search in the present application is represented by a quadtree, in which each node corresponds to a rectangular spatial area, so the candidate subscription area is a rectangular area, which completely covers the first subscription area, and the area of ​​the rectangular area is larger than the area of ​​the first subscription area.

[0073] S22. Determine a plurality of candidate subscription areas according to the plurality of candidate points.

[0074] When implementing it, refer to Figure 2 and Figure 3 , set the center point of the first subscription area to a, and set c to the grid cell containing a, Figure 2 and Figure 3 The different locations of the center point of the first subscription area are shown in Figure 2 The center point of the first subscription area in is exactly at the intersection of the four grids, and Figure 3 The center point of the first subscription area in is only on the intersection of the two grids. Create a priority queue To store grid intersections, follow Sort the distances between the points in ascending order and set To store the center point candidates. is defined as Figure 2 The 4 red dots in Add all the points in . After initialization, iteratively select The top element in , and calculate and If the distance is less than , expand access and retrieve The adjacent grid intersections are added to Otherwise, is considered as a candidate point and Add to ,for Each candidate center point in , we calculate its corresponding The smallest set of rectangular grid cells centered at , which is the candidate subscription area mentioned above.

[0075] S23: Determine the number of candidate objects hit by searching according to the first subscription keyword within a preset search time in each of the multiple candidate subscription areas.

[0076] The preset search duration here is Figure 2 The sliding window in the current time span .

[0077] S24: Determine the candidate subscription area with the least number of candidate objects as the second subscription area.

[0078] For each candidate subscription area, the number of candidate objects that do not meet the preset conditions within the preset search time is counted, where the candidate objects that do not meet the preset conditions refer to the candidate objects outside the first subscription area; specifically, according to the pre-configured index structure, the text information of all geographic text objects in the sliding window is indexed through the inverted table, so that relevant objects can be efficiently retrieved according to the text content, ensuring that only qualified objects that meet the conditions are considered. The object counts associated with each grid cell are added to calculate the The total number of geotext objects within the indicated spatial region. Find the set of grid cells with the minimum sum of object counts , and Considered as The modified subscription area is the second subscription area, using express. Figure 2 and Figure 3 There are two candidate subscription areas in both and Of course, in actual application scenarios, the number of candidate subscription areas may be more than two, and this is only an illustrative example.

[0079] The number of candidate objects in the first subscription area within the preset search duration is counted, and the number of candidate objects in each candidate subscription area that do not meet the preset conditions is obtained based on the number and the number of candidate objects in each candidate subscription area. Figure 2 As shown, within the time sliding window, There are 14 geographic text objects in the corresponding area ( Figure 2 The yellow dots in the figure represent geographic text objects. The number of geographic text objects in the first subscription area is 6. The number of candidate objects (referring to candidate geographic text objects) that do not meet the preset condition, i.e., are in the candidate subscription area but not in the first subscription area, is 5, within the grids indicated by c1 and c2. In contrast, in the same time period, only 9 objects fall within The number of candidate objects in the corresponding area, that is, in the candidate subscription area but not in the first subscription area, is 3. In comparison, the region It is considered more appropriate to modify the subscription zone, i.e. the zone It is the second subscription area.

[0080] It can be understood that selecting the area with the least number of candidate objects in the candidate subscription area as the second subscription area can effectively avoid the retrieval of too much irrelevant data while ensuring high relevance and accuracy of the data. This method can protect user privacy while avoiding interference from irrelevant information and improving retrieval efficiency.

[0081] In another specific implementation, when a preset number of similar keywords are added to the first subscription keyword to obtain the second subscription keyword, the semantic features of the first subscription keyword are first extracted, and then at least one similar keyword of the first subscription keyword is determined based on the semantic features, and finally the at least one similar keyword is combined with the first subscription keyword to obtain the second subscription keyword.

[0082] For example, if the first subscription keyword is a predicate phrase composed of "and" or "or", such as "air quality and cafe", the search will identify the semantic features of "air quality" and "cafe" respectively, and determine the keywords similar to them, such as "air condition", "PM2.5", "pollution level", "cafe", "coffee shop", etc., and then add these similar keywords to the above four-tuple , Relative to The number of additional similar keywords is set to 6 in this example. Finally, these similar keywords are combined into a predicate phrase through the word "or", that is, the second subscription keyword.

[0083] The first subscription request changes from a two-tuple to a four-tuple, and the space matches if match ,So Must cover .because cover , so it can be inferred that Must cover . Text matching, if q matches , Must meet .because Including additional terms connected by "or" semantics, it can be inferred that satisfy It can be seen that the first subscription request has privacy enhancement after modifying the first subscription area and the first subscription keyword. The privacy-enhanced spatial keyword subscription query No original query will be missed The real matching results are achieved. While achieving privacy enhancement, the relevance and accuracy of data retrieval are ensured, which can not only enhance the privacy of subscriber users but also improve the quality of data processing on the publisher side.

[0084] S3. Combine the second subscription area and the second subscription keyword into a second subscription request, and search for data according to the second subscription request.

[0085] The second subscription area and the second subscription keyword after privacy enhancement are combined to form a new subscription request, namely the second subscription request. The second subscription request is also a subscription query. During the query search process, advanced query optimization techniques can be used to ensure query efficiency. For example, composite indexes, full-text search techniques or natural language processing tools can be used to improve the accuracy and speed of keyword searches.

[0086] When searching specifically, for example, given a P-SKS query set , the output is matching the space and keyword requirements P-SKS query set First set for The root node of the index, The index is a quadtree structure in the spatial domain, accessed by Get the node by using the inverted list associated with the word in For each query in the inverted list, ,examine Is it covered .if cover ,we will Considered as of matches and will Add to matching result set Next, we evaluate The area coverage in the child nodes of , and perform the same calculation until it reaches a leaf node. Finally, return The matching result query set is the data searched and output according to the second subscription request.

[0087] It can be seen that the S3 step ensures high data relevance and high query efficiency while protecting user privacy from being leaked.

[0088] S4. Send the searched data to the subscriber.

[0089] Before sending data to the subscriber, the publisher can process and encapsulate the searched data and then send it to the subscriber. For example, the searched data can be cleaned and formatted to ensure that the sent data is accurate and easy to understand. In addition, the system will encrypt the data according to the user's security settings to ensure the security of the data during transmission. Data transmission can be carried out in a variety of ways, including but not limited to API calls, Webhook push or direct data streaming. The key to this step is to ensure the timeliness and accuracy of the data sent to the subscriber, while protecting the security and privacy of the data during transmission.

[0090] The above processing not only improves the system's response speed and data processing capabilities, but also strengthens the protection of user privacy, allowing users to receive and use data with peace of mind.

[0091] This embodiment also conducted an experiment to compare the direct subscription matching method (DSM for short) and the double privacy enhanced data sharing method (PPLPS for short) provided in this application, and compared their performance in terms of operating efficiency, matching effectiveness and method scalability.

[0092] Two real-world datasets, the FQ dataset and the XT dataset, are used in the experiment. The FQ dataset is collected from Foursquare and consists of 1 million global check-in information. Each check-in consists of a spatial location point and a short text description. The XT dataset is collected from X (formerly known as Twitter). XT contains 5 million tweets with location information. Specifically, each tweet is represented by a spatial coordinate and a short text. All check-ins in the FQ dataset and tweets in the XT dataset are geo-text objects.

[0093] This application generates the original SKS query in the following steps: First, randomly select a geotext object from the FQ dataset or the XT dataset ; then As the center of the subscription area, the area radius is determined according to the specific application scenario and can be a random value or a preset value. Select a fixed number of words set in advance and use them as subscription keywords. For specific parameter settings, see Figure 4 .

[0094] DSM has no index structure. When a new geotext object arrives from the data stream, we traverse the P-SKS query collection and check whether the new object meets the spatial and keyword requirements of each P-SKS query. If the new object meets the corresponding requirements indicated by the P-SKS query, the query is added to the match list associated with the new object.

[0095] refer to Figure 5 ,The experiment evaluates the impact of the number of subscription keywords. Figure 5 It can be seen that the runtime of both DSM and PPLPS increases when increasing the number of keywords from 1 to 5. The reason is that the more subscribed keywords are, the longer the text domain inspection time is. We also found that the runtime growth trend of PPLPS is less significant compared to DSM. This can be explained by the fact that keyword predicates connected by “and” semantics may not incur additional inspection costs due to the indexing scheme of the present application. In addition, the inverted file is able to filter out P-SKS queries that have no text overlap with each incoming geotext object at an early stage, thereby avoiding unnecessary operations to a large extent.

[0096] refer to Figure 6 ,The experiment evaluates the running time of DSM and PPLPS when the subscription area radius varies. Figure 6 It can be seen that when we increase the subscription area radius from 1 km to 100 km, the running time of both DSM and PPLPS is relatively stable, but in general, the performance of PPLPS is consistently 4-8 times better than that of DSM.

[0097] refer to Figure 7 , for the data sharing method, when changing the subscription center offset distance (i.e. the above-mentioned preset offset distance, parameter ), we evaluate the proportion of eligible matches that meet the condition. The higher the value, the greater the deviation of the subscription area of ​​the P-SKS query relative to the subscription area of ​​its original SKS query. Given an SKS query q and its P-SKS query ,use The proportion of qualified results is calculated by the following formula:

[0098]

[0099] in, express The number of matching geographic text objects received, express The number of matching geographic text objects received.

[0100] from Figure 7 It can be seen that when we When changing from 1 km to 5 km, the proportion of qualified results of PPLPS shows a slight downward trend, which indicates that the data sharing method described in this application is effective in enhancing privacy.

[0101] Next reference Figure 8, for the data sharing method, the performance of changing the number of additional subscription keywords (i.e., the similar keywords mentioned above) is evaluated using the parameter Indicates. Figure 8 It can be seen that when When increasing from 1 to 5, the performance of PPLPS shows a slight downward trend. This is because The larger the value of , the greater the deviation of the subscription keyword predicate of the P-SKS query relative to the keyword predicate of its original SKS query (the first subscription request mentioned above). Therefore, the number of similar keywords added can be set to maintain the matching degree between subscription and publication.

[0102] Further, refer to Fig. 9 ,The scalability of DSM and PPLPS is evaluated. Fig. 9 It shows that when we increase the number of P-SKS queries from 500K to 2M and from 2M to 8M on the FQ dataset and XT dataset respectively, the running time of DSM shows a linear growth trend. In contrast, the performance of PPLPS remains stable. This is because this application can filter out most of the query candidates that do not meet the conditions and obtain the best search results.

[0103] It is not difficult to see from the experiment that in terms of operating efficiency and matching effectiveness, when the number of keywords increases, the increase in running time of PPLPS is smaller than that of DSM, showing better performance stability. In addition, when the radius of the subscription area increases significantly, the running time of PPLPS remains stable and its performance is better than DSM. In terms of privacy protection, by adjusting the subscription center offset distance (preset search distance), PPLPS can increase privacy protection while only slightly reducing the proportion of qualified matching results, proving the effectiveness of its privacy enhancement. In terms of scalability, even if the number of P-SKS queries increases significantly, the performance of PPLPS remains stable, while DSM shows a linear increase in running time, indicating that PPLPS is more suitable for large-scale applications.

[0104] In general, the data sharing method provided in this application shows significant advantages in improving privacy protection, improving operational efficiency and scalability, effectively balancing the needs of performance and privacy protection, and proving the excellent overall performance of its technical solution.

[0105] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0106] Example 2

[0107] This embodiment provides a data sharing method, which is applied to a subscriber, and the method includes the following steps:

[0108] The first step is to send a first subscription request to the publisher, wherein the first subscription request includes a first subscription area and a first subscription keyword.

[0109] The second step is to receive data searched and sent by the publisher based on a second subscription request; wherein the second subscription request is obtained by the publisher modifying the first subscription area to a second subscription area based on a preset offset distance, adding a preset number of similar keywords to the first subscription keyword, obtaining a second subscription keyword, and combining the second subscription area and the second subscription keyword. The specific process of obtaining the second subscription request is consistent with that described in Example 1.

[0110] Furthermore, this embodiment also provides a data sharing system, which includes a subscription end and a publishing end.

[0111] The publishing end includes a receiving module, a modifying module, a combining module and a sending module. The receiving module is used to receive a first subscription request sent by a subscribing end, wherein the first subscription request includes a first subscription area and a first subscription keyword; the modifying module is used to modify the first subscription area to a second subscription area based on a preset offset distance, and add a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword; the combining module is used to combine the second subscription area and the second subscription keyword into a second subscription request, and search for data according to the second subscription request; the sending module is used to send the searched data to the subscribing end.

[0112] The subscriber end includes a sending module and a receiving module, wherein the sending module is used to send a first subscription request to the publisher end, wherein the first subscription request includes a first subscription area and a first subscription keyword;

[0113] The receiving module is used to receive data searched and sent by the publisher based on the second subscription request; wherein the second subscription request is obtained by the publisher modifying the first subscription area to a second subscription area based on a preset offset distance, adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword, and combining the second subscription area and the second subscription keyword.

[0114] The data sharing system can avoid directly exposing the specific location and points of interest of subscriber users, increase the level of privacy protection, and achieve the effect of privacy enhancement.

[0115] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0116] Example 3

[0117] This embodiment provides an electronic device, as shown below Fig.10 ,like Fig.10 As shown, the electronic device 2 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes any one of the data sharing methods in the embodiments of the present application.

[0118] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0119] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the programs after receiving execution instructions. The data sharing method disclosed in any implementation of the above-mentioned embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.

[0120] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the data sharing method in combination with its hardware.

[0121] This embodiment also provides a computer-readable storage medium corresponding to the data sharing method provided in the aforementioned embodiment, on which a computer program is stored, and when the computer program is executed by the processor, the data sharing method provided in any of the aforementioned embodiments will be executed. In addition, examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which will not be described one by one here.

[0122] In addition, an embodiment of the present application further provides a computer program product, including a computer program, which implements any one of the data sharing methods in the aforementioned embodiments when executed by a processor.

[0123] Those skilled in the art will appreciate that the various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components of the virtual machine creation device according to the embodiments of the present application.

[0124] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A data sharing method, characterized in that: Applied to the publishing end, the method includes: Receiving a first subscription request sent by a subscriber, wherein the first subscription request includes a first subscription area and a first subscription keyword; Modifying the first subscription area to a second subscription area based on a preset offset distance, and adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword; combining the second subscription area and the second subscription keyword into a second subscription request, and searching for data according to the second subscription request; Sending the searched data to the subscriber; The modifying the first subscription area to the second subscription area based on the preset offset distance includes: Determine a plurality of candidate points based on a first center point and the preset offset distance, wherein the first center point is a center point of the first subscription area; Determine a plurality of candidate subscription areas according to the plurality of candidate points respectively; Determine the number of candidate objects in each of the plurality of candidate subscription areas that are hit by searching according to the first subscription keyword within a preset search duration; The candidate subscription area with the least number of candidate objects is determined as the second subscription area.

2. The data sharing method according to claim 1, characterized in that: The step of determining the candidate subscription area with the least number of candidate objects as the second subscription area includes: For each candidate subscription area, counting the number of candidate objects that do not meet the preset condition and are searched within the preset search duration, wherein the candidate objects that do not meet the preset condition refer to candidate objects outside the first subscription area; The candidate subscription area having the least number of candidate objects that do not satisfy the preset condition is determined as the second subscription area.

3. The data sharing method according to claim 2, characterized in that: The counting, for each candidate subscription area, of the number of candidate objects that are searched within the preset search time and do not meet the preset condition includes: For each candidate subscription area, searching for candidate objects corresponding to the first subscription keyword within the preset search duration according to a preset corresponding relationship; the preset corresponding relationship includes a plurality of corresponding relationships, each corresponding relationship representing a corresponding relationship between a keyword and an object related to the keyword; The number of candidate objects in the first subscription area within the preset search duration is counted, and the number of candidate objects in each candidate subscription area that do not meet a preset condition is obtained based on the number and the number of candidate objects in each candidate subscription area.

4. The data sharing method according to claim 1, characterized in that: The adding a preset number of similar keywords to the first subscription keyword to obtain the second subscription keyword includes: extracting semantic features of the first subscription keyword; determining at least one similar keyword to the first subscription keyword according to the semantic feature; The at least one similar keyword is combined with the first subscription keyword to obtain a second subscription keyword.

5. The data sharing method according to claim 1, characterized in that: The multiple candidate subscription areas are rectangular areas, the rectangular areas completely cover the first subscription area, and the areas of the rectangular areas are larger than the area of ​​the first subscription area.

6. A data sharing method, characterized in that: Applied to the subscriber, the method includes: Sending a first subscription request to a publisher, wherein the first subscription request includes a first subscription area and a first subscription keyword; receiving data searched and sent by the publisher based on the second subscription request; The second subscription request is obtained by the publisher modifying the first subscription area to a second subscription area based on a preset offset distance, adding a preset number of similar keywords to the first subscription keyword to obtain a second subscription keyword, and combining the second subscription area and the second subscription keyword; The modifying the first subscription area to the second subscription area based on the preset offset distance includes: Determine a plurality of candidate points based on a first center point and the preset offset distance, wherein the first center point is a center point of the first subscription area; Determine a plurality of candidate subscription areas according to the plurality of candidate points respectively; Determine the number of candidate objects in each of the plurality of candidate subscription areas that are hit by searching according to the first subscription keyword within a preset search duration; The candidate subscription area with the least number of candidate objects is determined as the second subscription area.

7. A data sharing system, characterized in that: The system includes a subscriber and a publisher; the publisher applies the data sharing method described in any one of claims 1 to 5; the subscriber applies the data sharing method described in claim 6.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the data sharing method as described in any one of claims 1-5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data sharing method as described in any one of claims 1 to 5 is implemented.