Consultation information data desensitization method and system based on differential privacy

By constructing a dependency graph and using differential privacy noise processing, the problem of insufficient privacy protection and business logic consistency in the desensitization process of consultation information data in existing technologies is solved, and desensitized text that maintains business order consistency under privacy protection is generated.

CN123158682APending Publication Date: 2026-11-24ZHONGLIAN SHENFAN (BEIJING) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611465293.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to balance privacy protection and business logic consistency in the process of desensitizing consultation information data, resulting in desensitized texts that, while hiding sensitive words, lack sufficient consistency between business meaning and related data.

Method used

By acquiring source text data and splitting it into business node sequences and node parameter sets, a dependency graph is constructed, a privacy budget value is determined, differential privacy noise is generated and noise superposition is performed, error correction is performed by combining data tolerance and node constraint weights, and finally time-series rearrangement is performed to generate the target desensitized text.

Benefits of technology

This approach ensures the consistency of business sequence and data relevance in de-identified text while preserving privacy, thereby improving the usability and consistency of de-identified text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158682A_ABST
    Figure CN123158682A_ABST
Patent Text Reader

Abstract

The application provides a differential privacy-based consultation information data desensitization method and system, relates to the technical field of data security, and generates a business execution track and a dependency graph by splitting source text data into a business node sequence and a node parameter set. A privacy budget is allocated according to the data flow volume of each business node, a differential privacy noise is generated based on the privacy budget value, sensitive attribute data is added with noise to obtain noisy track data, error correction is performed on the noisy track data according to data tolerance and node constraint weight, target track data is generated, nodes are rearranged according to a time sequence constraint rule, and conflicting nodes are removed, and target desensitized text is output, so that the privacy protection and business logic consistency of the desensitized text can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data security technology, and in particular to a method and system for de-identifying consultation information data based on differential privacy. Background Technology

[0002] Consultation information data anonymization methods are used to protect sensitive content such as names, contact information, addresses, amounts, and times in consultation records before data sharing, testing, verification, or statistical analysis. As the online nature of consultation services increases, a large number of consultation texts, work order records, and processing logs need to be used securely. Therefore, this type of method has promising applications in secure data flow and business data reuse.

[0003] In the prior art, the patent with publication number CN119150354A identifies sensitive words in the text to be de-identified through named entity recognition, and replaces the sensitive words according to the replacement probability distribution determined by the exponential mechanism. This can perform differential privacy protection for sensitive words at the text level and reduce the risk of the original sensitive words being directly exposed.

[0004] However, consultation information typically contains not only individual sensitive words, but also processing steps, field relationships, and business sequence. Existing methods tend to focus on word replacement, easily overlooking the business connections between different contents in the consultation record. This results in the anonymized text hiding sensitive words, but with insufficient consistency in business meaning, processing order, or related data. Therefore, existing technologies suffer from the technical problem of struggling to balance privacy protection and business logic consistency in anonymized text. Summary of the Invention

[0005] The purpose of this application is to provide a method and system for de-identifying consultation information data based on differential privacy, so as to solve the problem in the prior art that it is difficult to balance privacy protection and business logic consistency in de-identified text.

[0006] To address the aforementioned technical problems, in a first aspect, this application provides a method for de-identifying consultation information data based on differential privacy, the method comprising: Obtain the source text data to be de-identified, and split the source text data into a business node sequence and a node parameter set according to the preset lexical analysis rules; The sensitive attribute data within the node parameter set is mapped to the business node sequence to generate a business execution trajectory, and the node dependency relationships between each node in the business execution trajectory are parsed to construct a dependency graph. The privacy budget value for each business node is determined based on the data flow volume of each business node in the dependency graph. Differential privacy noise is generated based on the privacy budget value, and noise superposition operation is performed on the sensitive attribute data using the differential privacy noise to generate noisy trajectory data; Error correction is performed on the noisy trajectory data based on data tolerance and node constraint weights to generate target trajectory data; Based on preset temporal constraint rules, the business nodes in the target trajectory data are rearranged in order, and temporal conflict nodes generated during the rearrangement process are removed. The target node sequence is then generated based on the remaining nodes to output the target desensitized text.

[0007] Optionally, the step of performing error correction on the noisy trajectory data based on data tolerance and node constraint weights to generate target trajectory data includes: Based on the dependency graph, extract the hierarchical association nodes containing core sensitive attributes from the noisy trajectory data; The hierarchical nodes that generate data offsets are marked as error nodes, and the data tolerance and node constraint weights of the error nodes in the consulting business are extracted. The error allocation ratio of the error node is determined based on the data tolerance and the node constraint weight. The data offset is allocated to each error node according to the error allocation ratio to obtain the initial compensation value of each error node. When the initial compensation value of any error node exceeds the corresponding data tolerance, the portion exceeding the data tolerance is determined as an overflow error, and the overflow error is allocated to the adjacent nodes of the error node according to the dependency graph to obtain the target compensation value of each error node and its adjacent nodes. The target compensation values ​​are superimposed onto the sensitive attribute data of the corresponding nodes in the noisy trajectory data to generate target trajectory data.

[0008] Optionally, the step of allocating the overflow error to the adjacent nodes of the error node according to the dependency graph to obtain the target compensation value for each error node and its adjacent nodes includes: Based on the dependency graph, the adjacent nodes corresponding to the error nodes are extracted, and the corresponding compensable amount is determined according to the data tolerance of each adjacent node and the current compensation value. The compensation order of each adjacent node is determined based on the topological hierarchy and node constraint weights between each adjacent node and the error node. According to the compensation order, the overflow error is sequentially distributed to each adjacent node, wherein the amount of error distributed to any adjacent node does not exceed the compensable amount of the adjacent node; The error amount allocated to each adjacent node is determined as the target compensation value of the corresponding adjacent node, and the initial compensation value of the error node, which is limited to the corresponding data tolerance, is determined as the target compensation value of the error node.

[0009] Secondly, this application provides a data anonymization system for consultation information based on differential privacy, the system comprising: The splitting module is used to obtain the source text data to be de-identified and split the source text data into a business node sequence and a node parameter set according to preset lexical analysis rules. The module is used to map the sensitive attribute data in the node parameter set to the business node sequence to generate a business execution trajectory, and to parse the node dependency relationship between each node in the business execution trajectory to construct a dependency relationship graph. The determination module is used to determine the privacy budget value corresponding to each business node based on the data flow volume of each business node in the dependency graph. The generation module is used to generate differential privacy noise based on the privacy budget value, and to perform a noise superposition operation on the sensitive attribute data using the differential privacy noise to generate noisy trajectory data; The correction module is used to perform error correction on the noisy trajectory data according to the data tolerance and node constraint weights, and generate target trajectory data; The output module is used to rearrange the business nodes in the target trajectory data according to preset temporal constraint rules, remove temporal conflict nodes generated during the rearrangement process, and generate a target node sequence based on the remaining nodes to output the target desensitized text.

[0010] The differential privacy-based data anonymization method for consultation information provided in this application has the following beneficial effects: By acquiring source text data and splitting it into a sequence of business nodes and a set of node parameters, this application can organize the originally scattered consultation text into processable structured data; by mapping sensitive attribute data to business nodes and constructing a dependency graph, it can clarify the nodes to which sensitive data belongs and the business relationships between nodes; by determining the privacy budget value based on the data flow volume, it can match the privacy protection strength with the data exposure of each business node; by generating differential privacy noise through the privacy budget value, it can provide targeted perturbation protection for sensitive attribute data; by comparing the noisy trajectory data and the business execution trajectory and performing error correction, it can reduce the business data offset caused by noise addition; by chronological rearrangement and removing chronologically conflicting nodes, it can ensure that the output target anonymized text maintains a reasonable business order.

[0011] Furthermore, this application can determine the amount of correction each error node should bear by extracting hierarchical related nodes containing core sensitive attributes, calculating the data offset between the noisy statistics and the original statistics, and allocating compensation values ​​in combination with data tolerance and node constraint weights. When the initial compensation value exceeds the data tolerance, the overflow error is transferred to adjacent nodes, which can avoid a single node bearing a correction amount that exceeds the business allowable range. Finally, the target compensation value is superimposed on the sensitive attribute data of the corresponding node, which can improve the consistency and availability of related node data while preserving privacy perturbations. Attached Figure Description

[0012] To more clearly illustrate the technical solutions of the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart illustrating a method for de-identifying consultation information data based on differential privacy disclosed in this application; Figure 2 This is a dependency graph application scenario diagram disclosed in this application; Figure 3 This application discloses an illustration of a privacy budgeting and differential privacy noise application scenario. Figure 4 This is a diagram illustrating an application scenario of temporal reordering and target text output disclosed in this application. Figure 5 This is a schematic diagram of the structure of a consultation information data anonymization system based on differential privacy disclosed in this application. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0015] Figure 1 This is a flowchart illustrating a method for de-identifying consultation information data based on differential privacy disclosed in this application. Figure 1 As shown, the method includes: S101. Obtain the source text data to be de-identified, and split the source text data into a business node sequence and a node parameter set according to the preset lexical analysis rules.

[0016] The source text data includes text data such as consultation forms, consultation session records, consultation work orders, or business logs that need to be anonymized. Lexical analysis rules are used to identify business actions, field names, field values, time information, and node boundaries from the source text data. The business node sequence includes various business processing actions identified from the source text data and their order, such as acceptance nodes, material verification nodes, expert evaluation nodes, follow-up nodes, and archiving nodes. The node parameter set is used to store the field content corresponding to each business node, such as parameters such as name, contact information, amount, time, and material quantity.

[0017] In one specific implementation, the de-identification server first reads the source text data to be de-identified from a database, file storage system, or business interface, and performs sentence segmentation, field recognition, and business action recognition on the source text data according to preset lexical analysis rules. Then, the identified business actions are organized into a sequence of business nodes, and the field content related to each business action is assigned to the corresponding node, forming a set of node parameters. Through the above processing, the originally continuous natural language text or semi-structured text is converted into structured data that is easy to process in subsequent mapping, noise addition, and reconstruction.

[0018] In this embodiment of the application, the preset lexical analysis rules may include a business action vocabulary, field identification rules, and node boundary rules. The business action vocabulary is used to store business action words such as acceptance, verification, evaluation, follow-up visit, and archiving. The field identification rules are used to identify field names and field values ​​such as name, contact information, ID number, address, amount, time, and material quantity. The node boundary rules are used to determine the start and end positions of a business node based on paragraph separators, time tags, business status fields, or the position of action words.

[0019] S102. Map the sensitive attribute data in the node parameter set to the business node sequence to generate a business execution trajectory, and parse the node dependency relationship between each node in the business execution trajectory to construct a dependency relationship graph.

[0020] Sensitive attribute data includes data that needs to be anonymized, such as name, contact information, ID number, address, amount, and time; business execution trajectory is used to record the attribution and sequence of sensitive attribute data in each business node; dependency graph is used to store the association between business nodes in a graph structure, where business nodes are the vertices of the graph and the data flow or business sequence between nodes are the directed edges.

[0021] like Figure 2As shown, the dependency graph includes an acceptance node 21, a document verification node 22, an expert evaluation node 23, a follow-up node 24, an archiving node 25, and directed edges. The acceptance node 21 is connected to the document verification node 22 via directed edges. The document verification node 22 is connected to the expert evaluation node 23 via directed edges. The expert evaluation node 23 is connected to the follow-up node 24 via directed edges. The document verification node 22 is also connected to the archiving node 25 via directed edges.

[0022] In this embodiment of the application, S102 specifically includes: S1021. Extract the node identifiers carried by each sensitive attribute data in the node parameter set, match the node identifiers with the node identifiers of each business node in the business node sequence, and associate the successfully matched sensitive attribute data with the corresponding business node to generate a business execution trajectory.

[0023] The node identifier can be obtained by combining the business number, node type, text position index, and field sequence number, which enables sensitive attribute data to find its corresponding business node. When multiple identical field names appear in the same source text data, the de-identification server will prioritize the field with the closest text position, consistent node type, and identical business number as the matching object to avoid sensitive attribute data being incorrectly attached to other business nodes.

[0024] In this embodiment, identifier matching technology can be used for processing: first, the node identifier carried by each sensitive attribute data in the node parameter set is read; then, business nodes with the same node identifier are searched in the business node sequence; if a matching node is found, the sensitive attribute data is written into the parameter record of that business node; if multiple candidate nodes exist, the business node with the closest text position and consistent field type is selected first. Through the above processing, a business execution trajectory containing business nodes, node parameters, sensitive attribute data, and time tags can be obtained.

[0025] S1022. Identify associated business nodes with data input relationships, data output relationships, or business flow constraints from the business execution trajectory.

[0026] Among them, data input relationship means that a certain business node needs to use the data generated by the previous business node; data output relationship means that the data generated by a certain business node will be used by the next business node; business flow constraint means that business rules require two business nodes to be associated in a specific order or under specific conditions.

[0027] In this embodiment, the input fields, output fields, business number, and time stamp of each business node in the business execution trajectory are read, and it is determined whether there is a field succession relationship or business sequence requirement between different business nodes. For example, if a later business node reads the amount field output by a previous business node, then there is a data input relationship and a data output relationship between the two nodes; if the business rules require that material verification must occur before expert evaluation, then there is a business flow constraint between the two nodes. Through the above identification, a set of related business nodes and their corresponding relationship types can be obtained.

[0028] S1023. The associated business nodes are used as graph vertices, and directed edges are set according to the data flow direction between the associated business nodes to construct a dependency graph.

[0029] In this graph, vertices represent business nodes that participate in business processing; directed edges are used to represent the direction of data flow or the order of business processes between two business nodes.

[0030] In this embodiment, the associated business nodes are first designated as vertices of the graph. Then, directed edges are set according to the direction from which the data is generated and which node it is used. For example, if the consultation amount generated by the acceptance node is used by the expert evaluation node, then the directed edge points from the acceptance node to the expert evaluation node. This dependency graph can be stored using an edge table or an adjacency table for subsequent statistical data flow, privacy budget allocation, and error correction.

[0031] This application unifies the business nodes and the dependencies between nodes into a dependency graph, which provides a clear data foundation for subsequent privacy budget allocation, differential privacy noise addition, and error correction.

[0032] S103. Determine the privacy budget value corresponding to each business node based on the data flow volume of each business node in the dependency graph.

[0033] The data flow volume includes the amount of sensitive attribute data flowing into and out of the business node, which is used to represent the flow of sensitive attribute data in the business node; the privacy budget value is used to characterize the degree of privacy loss that the business node is willing to bear. The smaller the privacy budget value, the stronger the privacy protection constraint; therefore, the business node with a higher risk of privacy leakage corresponds to a smaller privacy budget value.

[0034] In this embodiment of the application, S103 specifically includes: S1031. Calculate the privacy leakage risk based on the data flow of each business node in the dependency graph, and allocate the preset global privacy budget to each node according to the preset allocation relationship between the privacy leakage risk and the privacy budget value, thereby generating the privacy budget value corresponding to each business node.

[0035] Among them, privacy leakage risk is used to represent the degree of exposure that may occur after sensitive attribute data is accessed, transmitted or left in business nodes; the preset allocation relationship is used to define the correspondence between privacy leakage risk and privacy budget value. It can be a rule table, a budget allocation rule configured by the system, or a formula expression. The sum of the privacy budget values ​​obtained by all business nodes shall not exceed the preset global privacy budget; the global privacy budget is the total privacy protection amount allowed to be used in this de-identification task.

[0036] S1031 specifically includes: A1. Based on the directed edges in the dependency graph, determine the data transmission path of sensitive attribute data through each business node.

[0037] The data transmission path is used to represent the route taken by sensitive attribute data from one business node to another.

[0038] In this embodiment, graph traversal techniques can be used for processing: starting from the business node carrying sensitive attribute data, subsequent business nodes are visited one by one according to the direction indicated by the directed edges, and the order of nodes traversed by the sensitive attribute data is recorded; if a business node is connected to multiple subsequent nodes at the same time, the access order is determined according to the business order or time tag stored in the directed edges. Through the above processing, the transmission route of sensitive attribute data in the dependency graph can be obtained.

[0039] A2. Calculate the amount of sensitive attribute data flowing into and out of each business node along the data transmission path to obtain the data flow volume of each business node.

[0040] In this embodiment, counting and statistical techniques can be used for processing: read the input and output records of each business node along the data transmission path, and count the number of times sensitive attribute data enters the business node, the number of fields, or the number of data records respectively; use the same statistical caliber in the same statistical analysis to avoid mixing different types of data volumes; after the statistics are completed, organize the inflow and outflow data volumes into the data flow volume of the business node.

[0041] A3. Obtain the duration of the sensitive attribute data in the corresponding business node.

[0042] Among them, data dwell time is used to represent the time elapsed between when sensitive attribute data enters a certain business node and when it leaves that business node.

[0043] In this embodiment, the data dwell time can be obtained through business logs, time tags, or node processing records: read the time when sensitive attribute data enters the business node and the time when it leaves the business node, and determine the data dwell time of the sensitive attribute data in the corresponding business node through the time difference; if a business node lacks a departure time, the processing completion time or business status change time of the node can be used as the departure time.

[0044] A4. Based on the data flow volume and data dwell time of the same business node, determine the privacy leakage risk used to characterize the degree of exposure of sensitive attribute data in the corresponding business node.

[0045] In this embodiment, a normalized weighted rule can be used for processing: first, the data flow volume and data dwell time are converted into the same evaluation scale, and then a comprehensive evaluation is performed according to the preset weight to obtain the privacy leakage risk. The preset weight can be configured by business rules. For example, when the consulting business is more concerned about the situation where sensitive attribute data is transmitted multiple times, the weight corresponding to the data flow volume can be increased; when the consulting business is more concerned about the situation where sensitive attribute data is retained in the node for a long time, the weight corresponding to the data dwell time can be increased.

[0046] Specifically, the first The data flow volume of each business node is denoted as . , will the The data dwell time of each business node is denoted as . The sensitivity level of the sensitive attribute data field in this business node is recorded as follows: The de-identification server respectively... , and Normalization is performed to obtain the normalized data throughput. Duration of normalized data and normalized field sensitivity levels Then calculate the privacy leakage risk according to formula (1). : (1) in, Indicates the business node sequence number; Indicates the first Privacy risks at individual business nodes; This indicates the risk weight corresponding to the data flow volume; This indicates the risk weight corresponding to the duration the data is displayed; This represents the risk weight corresponding to the sensitivity level of the field, and satisfies... The weight value can be obtained from the security policy of the consulting business, the field sensitivity level table, or the audit rules configuration.

[0047] After calculating the privacy leakage risk at each business node, the de-identification server records the global privacy budget as follows: , will the The privacy budget value for each business node is denoted as: The privacy budget value can be determined according to formula (2): (2) in, Indicates the first Privacy budget value for each business node; This indicates the global privacy budget corresponding to this de-identification task; This represents the minimum privacy budget that can be allocated to a single business node, in order to avoid a privacy budget value of zero. The specific value can be set according to the minimum availability requirements of the de-identification task. Indicates the sequence number of the business node participating in the budget allocation; Indicates the first Privacy risks at individual business nodes; This is used to avoid division by zero when the risk of privacy leakage is zero. In other examples, if the sum of the budgets of all nodes exceeds... In such cases, the budget will be further reduced proportionally so that the sum of all privacy budget values ​​does not exceed the global privacy budget.

[0048] This application uses A1-A4 to combine data flow volume, data dwell time, and dependency graph to allocate privacy budget, enabling different business nodes to obtain corresponding privacy protection configurations according to the exposure of their sensitive attribute data, providing a clear basis for subsequent differential privacy noise generation.

[0049] This application tracks the data transmission path of sensitive attribute data, counts the data flow and data dwell time of each business node, and determines the privacy leakage risk accordingly. Then, it allocates privacy budget values ​​according to the privacy leakage risk, so that the subsequent noise addition processing can match the sensitive attribute exposure of each business node, thereby improving the targeting of privacy budget allocation and the adaptability of de-identification processing.

[0050] S104. Generate differential privacy noise based on the privacy budget value, and use the differential privacy noise to perform a noise superposition operation on the sensitive attribute data to generate noisy trajectory data.

[0051] like Figure 3 As shown, Figure 3 This includes query sensitivity, privacy budget, differential privacy noise, sensitive attribute data, and noisy trajectory data. Query sensitivity and privacy budget are used to determine differential privacy noise, and the differential privacy noise and sensitive attribute data work together to generate noisy trajectory data.

[0052] Among them, differential privacy noise is used to randomly perturb sensitive attribute data without directly disclosing the original sensitive attribute data; the noisy trajectory data includes business nodes, node identifiers, noisy sensitive attribute data and corresponding time labels, which are used to represent the business execution trajectory after noise superposition operation.

[0053] In this embodiment of the application, for numeric fields such as amount and duration, S104 specifically includes: S1041. Calculate the ratio between the query sensitivity and the privacy budget value of the same business node, and determine the ratio as the noise scale parameter of the corresponding business node.

[0054] Query sensitivity is used to represent the magnitude of change in results that sensitive attribute data in a business node may cause during querying or statistics. For example, changes in fields such as amount, duration, and material quantity will affect the statistical results when they are analyzed. Therefore, query sensitivity is needed to limit the basic range of noise generation. When the same business node contains multiple sensitive fields, the change in the field that has the greatest impact on the query results can be taken as the query sensitivity of that business node. The noise scaling parameter is used to convert the query sensitivity and privacy budget value into control parameters that can be directly used to generate noise.

[0055] In this embodiment of the application, if the query result of a certain business node is easily affected by a single sensitive attribute data, the query sensitivity will increase; if the privacy budget value obtained by the business node decreases, the noise scale parameter will increase accordingly, thereby making the differential privacy noise generated subsequently have a stronger perturbation effect.

[0056] S1042. Determine the probability distribution function of the corresponding service node based on the noise scale parameter.

[0057] The probability distribution function is used to generate random noise that meets the requirements of differential privacy according to the noise scale parameter. For example, it may include the Laplace distribution function for numerical sensitive attribute data or the random response probability function for discrete sensitive attribute data.

[0058] In this embodiment, for numerically sensitive attribute data such as amount, quantity, and duration, a Laplace mechanism can be used for processing: zero is used as the center of the noise distribution, and a noise scale parameter is used to control the diffusion range of the noise value, thereby determining the probability distribution function of the corresponding business node. In this way, while preserving the numerical format of the fields, different intensities of random perturbations can be set for different business nodes.

[0059] In another specific implementation, for discrete categorical sensitive attribute data such as status labels and event types that are not suitable for direct superposition of numerical noise, a random response mechanism can be used for processing. First, a preset candidate value range for the corresponding field is obtained, and each candidate value in the preset candidate value range is used as a discrete value of the random response probability distribution function. Next, based on the privacy budget value of the corresponding business node and the number of candidate values ​​in the preset candidate value range, a first probability of retaining the original category value and a second probability of replacing the original category value with any other candidate value are determined. Then, each candidate value and its corresponding probability are combined into a random response probability distribution function. During random sampling, the original category value is retained according to the first probability, or the original category value is replaced with any other candidate value in the preset candidate value range according to the second probability, resulting in a discrete categorical differential privacy processing result. The preset candidate value range is pre-established based on field definitions and business configurations before executing this desensitization task.

[0060] For identifiers such as names, ID numbers, contact information, and detailed addresses, irreversible tokenization, replacement with non-real placeholder identifiers, or generalization methods are used, and random response mechanisms are not adopted.

[0061] S1043. Random sampling is performed in the sample space corresponding to the probability distribution function to obtain the noise value of the corresponding business node, and the noise value is determined as differential privacy noise superimposed on the corresponding sensitive attribute data.

[0062] The sample space is used to represent the range of noise values ​​that the probability distribution function is allowed to extract. For numerical sensitive attribute data, the sample space can be the range of values ​​that can be adjusted for amount, quantity, or duration. For discrete sensitive attribute data, the sample space can be a preset candidate value range.

[0063] In this embodiment, for numerical sensitive attribute data, the noise value is superimposed on the original field value in the same unit, and the superimposed field value is written to the corresponding business node; for discrete sensitive attribute data, the original field value is retained or replaced with a field value from the candidate value range based on the sampling results. After the above processing is completed, the noise-added sensitive attribute data, node identifiers, and business node order are rearranged to generate noise-added trajectory data.

[0064] For numerically sensitive attribute data, the first... The query sensitivity of each business node is denoted as: Record the privacy budget value as and in accordance with Determine noise scale parameters Query sensitivity The amount field can be determined based on the maximum impact of changes to a single record on the statistical results; for example, the amount field can be determined based on the upper limit of the amount in a single consultation record or the statistical scope allowed for the field, the material quantity field can be determined based on the upper limit of the number of material pieces in a single record, and the time field can be determined based on the time window that a single record is allowed to move to.

[0065] When using the Laplace mechanism, the data masking server is centered at 0 and... Noise generated for scale parameters and will Sensitive attribute data are superimposed onto data of the same unit. To avoid mixing data of different units, noise is generated for fields such as amount, material quantity, and duration under their respective field types, and no addition or subtraction operations are performed between different fields.

[0066] For discrete sensitive attribute data, a random response mechanism can be used: the de-identification server first establishes candidate value ranges for the name, category label, or status label in the node, and then determines the appropriate value based on the privacy budget. Determine the probability of retaining the original field value and the probability of replacing it with other field values ​​in the candidate value domain. The candidate value domain can be generated from a dictionary of fields of the same type, a historical de-identification dictionary, or a business configuration table, but the one-to-one correspondence between the candidate value domain and the original field value is not disclosed when outputting the target de-identified text.

[0067] This application maps query sensitivity, privacy budget value, and differential privacy noise generation process to specific business nodes, enabling different business nodes to perform noise superposition operations according to the change range of their own sensitive attribute data and privacy protection quota, thereby improving the targeting of noise addition processing and providing a data foundation for subsequent error correction and target desensitized text generation.

[0068] S105. Perform error correction on the noisy trajectory data according to the data tolerance and node constraint weights to generate target trajectory data.

[0069] Among them, data tolerance is used to indicate the range within which sensitive attribute data in the node can be adjusted; node constraint weight is used to indicate the degree of constraint of the node in business relationships; target trajectory data includes business nodes, sensitive attribute data, node order and node time information after noise superposition and error correction.

[0070] In this embodiment of the application, S105 specifically includes: S1051. Extract the hierarchical association nodes containing core sensitive attributes from the noisy trajectory data based on the dependency graph.

[0071] Among them, core sensitive attributes include sensitive attributes such as amount, contact information, document information, key time, and quantity of materials that may affect business judgment or identity recognition; hierarchical association nodes are used to represent business nodes that have upstream and downstream connections with core sensitive attributes in the dependency graph.

[0072] In this embodiment of the application, a graph neighborhood retrieval technique can be used for processing: first, locate the business nodes containing core sensitive attributes in the noisy trajectory data, then search forward and backward along the directed edges in the dependency graph for nodes that have data transmission relationships or business constraint relationships with them, and organize these nodes into hierarchical related nodes.

[0073] S1052. Mark the hierarchical association node that generates data offset as an error node, and extract the data tolerance and node constraint weight of the error node in the consulting business.

[0074] Among them, data offset is used to represent the statistical difference generated before and after noise addition for the same business node or the same related node group; error correction is used to constrain and adjust the results after noise addition without restoring the original sensitive attribute data, so that it still meets the basic correlation requirements between business nodes; error node is used to represent the data node that needs to participate in the correction; the data tolerance of error node in consulting business can be understood as the range of business errors that are allowed to be retained when consulting information is reviewed, verified or supervised.

[0075] Furthermore, the data offset is generated in the following way: the range of nodes to be compared is determined according to the node identifier of the hierarchical related nodes; then the same fields, such as amount, duration or material quantity, are read from the noisy trajectory data and the business execution trajectory respectively, and the noisy statistics and the original statistics are obtained using the same statistical method; then the difference between the two is compared and the difference is recorded as the data offset, which can clarify the offset direction and offset magnitude caused by the noise processing to the related business data.

[0076] In this embodiment, the hierarchical nodes that generate data offsets are first marked as error nodes. Then, a preset rule table is queried according to node type, field type, and business constraint type to read the corresponding data tolerance and node constraint weight. For example, the amount field can correspond to the amount tolerance, the time field can correspond to the time window tolerance, and the material quantity field can correspond to the quantity tolerance. As shown in Table 1, Table 1 is used to illustrate how the system reads the corresponding data tolerance source and node constraint weight source according to the business constraint indicators: Table 1 Preset Rules Table

[0077] The data tolerance sources and node constraint weight sources in Table 1 correspond to the field types, node types, and business constraint types. The above rule table is only a configuration example of this application embodiment. In actual applications, it can be adjusted according to the consulting business type, field configuration, and audit rules. This application does not limit it in this regard.

[0078] S1053. Determine the error allocation ratio of the error node according to the data tolerance and the node constraint weight, and allocate the data offset to each error node according to the error allocation ratio to obtain the initial compensation value of each error node.

[0079] Among them, the error allocation ratio is used to represent the distribution relationship of data offset among multiple error nodes; the initial compensation value is used to represent the correction amount first allocated to a certain error node.

[0080] In this embodiment, a weighted allocation technique can be used for processing: First, the data tolerance and node constraint weight of each error node are read; then, the correction share that each error node can bear is determined by combining the data tolerance and node constraint weight. The data tolerance is used to limit the compensation range, and the node constraint weight is used to reflect the business constraint strength; then, the data offset is allocated to each error node according to the error allocation ratio to obtain the initial compensation value of each error node.

[0081] As an optional implementation, the error allocation ratio and the initial compensation value can be determined according to formulas (3) and (4): (3) (4) in, Indicates the first The error distribution ratio of each error node; Indicates the first Data tolerance for each error node; Indicates the node constraint weights; Indicates the number of error nodes; Indicates the first term in the summation term Data tolerance for each error node; Indicates the first term in the summation term The node constraint weights of each error node; Indicates the data offset; This represents the initial compensation value. The above formula is used to explain the data offset allocation process between error nodes. In practical applications, it can be adjusted according to the type of consulting business, field configuration, security policy, and audit rules. This application does not impose any restrictions on this.

[0082] In the above formula, those participating in the same error allocation , and For fields of the same type, unit, and statistical scope, for example, when When indicating monetary offset, and All are monetary tolerances; when When indicating the offset of material quantity and All are material quantity tolerances; and The weight used to represent the compensation that a node can accept is a higher value, indicating that the node is more suitable to accept compensation without violating business constraints. If the weight is represented by the constraint strength in the business configuration, the constraint strength can be converted into a compensable weight before being substituted into the formula.

[0083] S1054. When the initial compensation value of any error node exceeds the corresponding data tolerance, the portion exceeding the data tolerance is determined as an overflow error, and the overflow error is allocated to the adjacent nodes of the error node according to the dependency graph to obtain the target compensation value of each error node and its adjacent nodes.

[0084] Among them, overflow error is used to represent the compensation portion that the error node cannot accept within its data tolerance; adjacent node refers to the business node that is directly connected to the error node through directed edges in the dependency graph; compensable amount is used to represent the amount of compensation that the adjacent node can still accept without exceeding its own data tolerance; target compensation value is used to represent the correction amount that is finally determined to be written to the corresponding node.

[0085] S1054 specifically includes: B1. Based on the dependency graph, extract the adjacent nodes corresponding to the error node, and determine the corresponding compensable amount according to the data tolerance of each adjacent node and the current compensation value.

[0086] The current compensation value represents the amount of compensation that has been allocated to the adjacent node during this error correction process.

[0087] In this embodiment, a graph adjacency query method can be used for processing: First, using the node identifier of the error node as the query condition, the upstream and downstream nodes directly connected to the error node through directed edges are found in the dependency graph, and the found business nodes are determined as adjacent nodes; then, the data tolerance and current compensation value of the corresponding fields of each adjacent node are read, and the part already occupied by the current compensation value is deducted from the data tolerance to obtain the compensable amount of the adjacent node. If the current compensation value of an adjacent node has reached the data tolerance, the compensable amount of the adjacent node is recorded as zero, and it will no longer accept overflow errors.

[0088] As an alternative implementation, the compensable amount of adjacent nodes can be as shown in formula (5): (5) in, Indicates the first The amount of compensation available for each adjacent node; This indicates the data tolerance of the adjacent node; This indicates that the adjacent node has currently been allocated a compensation value; Indicates the sequence number of the adjacent node participating in the calculation of the compensable quantity; This represents the total number of adjacent nodes currently participating in compensation allocation, used to limit the range of nodes processed during traversal. The above formula illustrates the process of determining the amount of compensation that adjacent nodes can accept. In practical applications, this can be adjusted according to the type of consulting business, field configuration, security policies, and audit rules; this application does not impose any restrictions on this.

[0089] When multiple adjacent nodes participate in absorbing overflow errors, the data masking server determines the processing order based on topological hierarchy distance, compensable weight, and node identifier; if traversing before... If there is still an unassigned error after a certain number of adjacent nodes, the unassigned error is recorded as a residual offset, and a data quality scoring or manual review process is triggered.

[0090] B2. Determine the compensation order of each adjacent node based on the topological hierarchy and node constraint weights between each adjacent node and the error node.

[0091] Among them, the topology level is used to represent the sequential position of business nodes in the dependency graph; the node constraint weight is used to represent the degree of constraint of business nodes in the same business constraint.

[0092] In this embodiment, the dependency graph is first sorted topologically to obtain the hierarchical position of each business node in the business link. Then, the topological hierarchical distance between each adjacent node and the error node is compared: adjacent nodes that are in adjacent business links with the error node and have the same constraint fields are selected first. If multiple adjacent nodes meet the condition, the compensation order is further determined according to the node constraint weight value. If the topological hierarchy and node constraint weight are the same, the compensation order is determined according to the fixed sorting of the node identifier.

[0093] B3. According to the compensation order, the overflow error is sequentially distributed to each adjacent node, wherein the amount of error distributed to any adjacent node does not exceed the compensable amount of the adjacent node.

[0094] In this embodiment, the overflow error is treated as the amount of error to be allocated, and adjacent nodes are processed one by one according to the compensation order. For the currently processed adjacent node, the compensable amount of the adjacent node is read first, and then the portion of the amount of error to be allocated that does not exceed the compensable amount is allocated to the adjacent node. After the allocation is completed, the allocated portion is deducted from the amount of error to be allocated, and the next adjacent node is processed. If the amount of error to be allocated has been fully allocated, the allocation stops. If there is still an unallocated error after all adjacent nodes have been processed, the unallocated error is recorded as a residual offset, without forcibly exceeding the data tolerance of any node.

[0095] B4. The error amount allocated to each adjacent node is determined as the target compensation value of the corresponding adjacent node, and the initial compensation value of the error node, which is limited to the corresponding data tolerance, is determined as the target compensation value of the error node.

[0096] In this embodiment, the actual amount of error borne by each adjacent node is written into the target compensation value record of the corresponding adjacent node. For the error node itself, the initial compensation value that exceeds the data tolerance is no longer used. Instead, it is limited to the data tolerance, and the limited compensation value is used as the target compensation value of the error node. Through the above steps, the compensation results of the error node and the adjacent node are both constrained by the data tolerance. When the field is written back in the subsequent execution, no correction result exceeding the business allowable range will be generated.

[0097] This application uses B1-B4 to determine the adjacent nodes of the error node and its compensable amount from the dependency graph. Then, it determines the compensation order according to the topology level and node constraint weights, and distributes the overflow error sequentially within the range not exceeding the compensable amount. Finally, it obtains the target compensation value of the error node and its adjacent nodes, so that the error correction process is subject to data tolerance constraints.

[0098] S1055. The compensation values ​​of each target are superimposed on the sensitive attribute data of the corresponding node in the noisy trajectory data to generate target trajectory data.

[0099] In this embodiment, field write-back technology can be used for processing: First, the business node corresponding to the target compensation value is found based on the node identifier; then, the compensation method is determined based on the field type: for numerical sensitive attribute data such as amount, quantity, and duration, the target compensation value is superimposed on sensitive attribute data of the same unit; for categorical or textual sensitive attribute data, replacement correction is performed according to preset candidate value ranges or field rules; after the write-back is completed, the corrected node data, node order, and time information are reorganized to generate target trajectory data.

[0100] This application compares and correlates noisy trajectory data with business execution trajectory data, and allocates compensation amount according to data tolerance, node constraint weight and dependency graph, so that the noisy sensitive attribute data conforms to business association constraints while maintaining privacy perturbation, providing a consistent data foundation for subsequent target desensitized text output.

[0101] S106. Based on preset temporal constraint rules, the business nodes in the target trajectory data are rearranged in order, and temporal conflict nodes generated during the rearrangement process are removed. A target node sequence is generated based on the remaining nodes to output the target desensitized text.

[0102] like Figure 4 As shown, the left side contains the node data to be adjusted, including independent nodes and time offset vectors, which serve as the input for time series adjustment and provide the adjustable objects and corresponding adjustment amounts for the time series reordering interface in the middle; the middle is the time series reordering interface, which reorders the nodes according to the target time label and identifies time series conflicting nodes, ultimately forming the target node sequence; the right side is the output document area, which outputs the target desensitized text according to the target node sequence.

[0103] The preset timing constraint rules include the order rules between business nodes, time window rules, and rules for removing nodes, which are used to ensure that the business processing order in the target desensitized text conforms to the actual business logic; the target node sequence is used to store the arrangement result of business nodes after order rearrangement and conflict handling; the target desensitized text refers to the text data regenerated based on the target node sequence, sensitive attribute data in the target trajectory data, and non-sensitive text content in the source text data. The target desensitized text retains the basic order relationship between business nodes and the publicly available text content, and replaces the original sensitive attribute data with data that has undergone differential privacy processing or rule correction, for subsequent data sharing, testing and verification, or statistical analysis.

[0104] In this embodiment of the application, S106 specifically includes: S1061. Perform topological relationship analysis on the target trajectory data, and extract independent nodes from the target trajectory data based on the analysis results.

[0105] Among them, topology analysis is used to identify the connection relationships between business nodes; independent nodes are used to represent business nodes that do not have a direct data transmission relationship with other business nodes in the target trajectory data, or business nodes that, although they have business associations, will not have their main business link order changed by adjusting their time labels.

[0106] In this embodiment, the business nodes and the directed relationships between nodes in the target trajectory data are first read; then, the upstream and downstream nodes of each business node are identified according to the directed relationships, and the hierarchical position of each business node in the business link is determined; then, business nodes without direct upstream or downstream nodes, or business nodes that are at the same business level as other nodes and whose main business link order is not changed by adjusting the time tag, are extracted as independent nodes.

[0107] S1062. Generate a time offset vector that matches the independent node using a preset chaotic perturbation algorithm, and superimpose the time offset vector onto the initial time tag of the independent node to perform a timestamp update and generate a target time tag.

[0108] Among them, the preset chaotic perturbation algorithm is used to generate time adjustment amount with randomness; the time offset vector is used to record the time adjustment direction and adjustment magnitude corresponding to each independent node; the initial time label is used to represent the original time record of the business node in the target trajectory data; and the target time label is used to represent the time record after the timestamp update.

[0109] In this embodiment of the application, a logistic chaotic mapping can be used for processing: for the first... Each independent node, the data masking server first generates perturbation seeds that are unrelated to the sensitive attribute data. And based on the perturbation seed, perform a preset number of chaotic iterations to obtain the perturbation state value; then, based on the perturbation state value and the upper limit of the time window that the independent node is allowed to adjust, determine the corresponding time offset, as shown in formula (6): (6) in, Indicates the sequence number of the independent node. Indicates the first Time offset of each independent node; Indicates the first The perturbation seed corresponding to each independent node; Indicates the preset number of iterations; Indicates perturbation of seeds Iterate according to the logistic chaotic mapping with initial values. The disturbance state value obtained after this; Represents the logistic chaotic mapping function; Indicates the chaos control parameters; Indicates the first Each independent node allows for adjustment of the upper limit of the time window. The de-identification server will adjust the time offset. Stacked up to the first The initial timestamp of each independent node is used to generate the target timestamp for that independent node.

[0110] Before being written to the target timestamp, the time offset vector needs to be filtered by timing constraint rules: if a certain time offset causes a node to be earlier than its predecessor node, later than the allowed processing completion time, or changes the order of the main business links such as acceptance, verification, evaluation, and follow-up, then the time offset is determined to be unusable. For unusable time offsets, the de-identification server can regenerate the disturbance state value, reduce the upper limit of the time window, or restore the initial timestamp; abnormal node removal is only performed when the node is a removable node and removal will not disrupt the main business links.

[0111] S1063. When it is detected that the target time tag violates the pre-dependency conditions in the dependency graph and causes a business logic conflict, the node that triggers the business logic conflict is identified as a time-series conflict node, and the abnormal node is removed from the time-series conflict node.

[0112] Among them, business logic conflict is used to indicate that the target time tag and the order requirements of the business node are inconsistent; time sequence conflict node is used to indicate the business node that triggers the conflict; prerequisite dependency condition is used to indicate the business requirement that a certain business node must be completed before another business node.

[0113] In this embodiment, after rewriting the target time label into the dependency graph, the preceding dependency conditions are checked one by one: if the target time label of a certain business node makes it earlier than the business node that must precede it, or makes it exceed the business time window, then the business node is identified as a time-series conflict node; for time-series conflict nodes, the time offset vector can be regenerated or the initial time label can be restored; if the conflict still exists and the node is a removable node, then the abnormal node removal is performed; after the removal is completed, the target node sequence is generated according to the business sequence of the remaining nodes, and the target desensitized text is output by combining the non-sensitive text content and the noisy node parameters.

[0114] This application identifies independent nodes with adjustable time labels by performing topological relationship analysis on target trajectory data, then uses a chaotic perturbation algorithm to perform constrained time perturbation on the independent nodes, and checks whether the target time label violates the pre-dependent conditions; it corrects or removes nodes with temporal conflicts, so that the target node sequence conforms to the business sequence logic while having the effect of time perturbation.

[0115] It should be understood that before executing this de-identification task, the de-identification server divides the preset global privacy budget into multiple rounds of privacy budgets, ensuring that the sum of the privacy budgets for each round does not exceed the global privacy budget. Each round of privacy budget is used for one candidate de-identified text generation process. Once the corresponding candidate de-identified text is generated, the privacy budget for the same round is marked as consumed and cannot be reused in subsequent rounds.

[0116] The candidate anonymized text generated in each round is only written to the candidate result buffer in the controlled execution environment and is not released outside the controlled execution environment before data quality checks and global privacy budget verification are completed. If the data quality score of the current candidate anonymized text is lower than the data quality lower limit, the anonymization server determines whether there are any unused round privacy budgets; if so, it uses the next round privacy budget to reallocate the privacy budget values ​​of each business node and generates new candidate anonymized texts; if not, it stops regenerating.

[0117] After generating the candidate de-identified text, the de-identification server selects only one candidate de-identified text from the candidate result buffer—one with a data quality score not lower than the data quality lower limit and passing the global privacy budget check—as the target de-identified text to be published outside the controlled execution environment. The remaining candidate de-identified texts are not output. Therefore, after outputting the target de-identified text, the method further includes: C1. Based on the node correspondence between the target desensitized text and the source text data, determine the business node retention rate and non-sensitive text retention rate of the target desensitized text.

[0118] Among them, the node correspondence is used to represent the correspondence between business nodes in the source text data and business nodes in the target desensitized text; the business node retention rate is used to represent the completeness of the business nodes retained in the target desensitized text; and the non-sensitive text retention rate is used to represent the degree of retention of data content in the target desensitized text that does not involve sensitive attributes.

[0119] In this embodiment, the node correspondence between the source text data and the target desensitized text is first established according to the node identifier and the text position index; then, it is checked whether the business nodes in the source text data are retained in the target desensitized text. For non-sensitive text content, the non-sensitive text content retained in the target desensitized text is determined by comparing the text fragment identifier or the text position index.

[0120] C2. Determine the data quality score of the target desensitized text based on the business node retention rate and the non-sensitive text retention rate.

[0121] Among them, the data quality score is used to comprehensively reflect the business integrity and text usability of the target de-identified text.

[0122] In this embodiment of the application, a weighted scoring rule can be used for processing: the retention rate of business nodes and the retention rate of non-sensitive text are input into the preset scoring rule, and the data quality score is obtained according to the configured weights of business integrity and text readability. The scoring rule can be preset by business review requirements, de-identification release requirements or manual review standards.

[0123] As one implementation method, the business node retention rate can be denoted as... The retention rate of non-sensitive text is denoted as and in accordance with Calculate data quality score ,in, This is weighted towards business integrity. The lower limit for data quality can be set based on the use case of the anonymized text; for example, it can be increased for scenarios involving audit traceability. In scenarios where public samples are generated, the weight corresponding to the retention rate of non-sensitive text can be increased.

[0124] This application, through steps S101-S106, splits the source text data into business nodes and node parameters, establishes the correspondence between sensitive attribute data and business nodes, and combines dependency graphs to allocate privacy budgets, generate differential privacy noise, perform error correction and time sequence conflict handling, and finally outputs the target de-identified text; at the same time, it readjusts the privacy budget value through data quality feedback, so that the de-identification result protects sensitive attribute data while maintaining business relevance, node order and text usability.

[0125] Figure 5 This is a schematic diagram of the structure of a data anonymization system for consultation information based on differential privacy disclosed in this application, as shown below. Figure 5 As shown, the system may include: The splitting module 51 is used to obtain the source text data to be de-identified and split the source text data into a business node sequence and a node parameter set according to preset lexical analysis rules. The construction module 52 is used to map the sensitive attribute data in the node parameter set to the business node sequence to generate a business execution trajectory, and to parse the node dependency relationship between each node in the business execution trajectory to construct a dependency relationship graph. The determination module 53 is used to determine the privacy budget value corresponding to each business node based on the data flow volume of each business node in the dependency graph. The generation module 54 is used to generate differential privacy noise based on the privacy budget value, and to perform a noise superposition operation on the sensitive attribute data using the differential privacy noise to generate noisy trajectory data; Correction module 55 is used to perform error correction on the noisy trajectory data according to the data tolerance and node constraint weight, and generate target trajectory data; The output module 56 is used to rearrange the business nodes in the target trajectory data according to the preset time-series constraint rules, remove the time-series conflict nodes generated during the rearrangement process, and generate a target node sequence based on the remaining nodes to output the target desensitized text.

[0126] The differential privacy-based consultation information data desensitization system of this application embodiment is used to implement the aforementioned differential privacy-based consultation information data desensitization method. Therefore, the specific implementation of the differential privacy-based consultation information data desensitization system can be found in the embodiment section of the differential privacy-based consultation information data desensitization method above. The specific implementation can be referred to the description of the corresponding embodiments, and will not be repeated here.

[0127] The foregoing has provided a detailed description of a method and system for de-identifying consultation information data based on differential privacy, as provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of this application.

Claims

1. A method for data de-identification of consultation information based on differential privacy, characterized in that, include: Obtain the source text data to be de-identified, and split the source text data into a business node sequence and a node parameter set according to the preset lexical analysis rules; The sensitive attribute data within the node parameter set is mapped to the business node sequence to generate a business execution trajectory, and the node dependency relationships between each node in the business execution trajectory are parsed to construct a dependency graph. The privacy budget value for each business node is determined based on the data flow volume of each business node in the dependency graph. Differential privacy noise is generated based on the privacy budget value, and noise superposition operation is performed on the sensitive attribute data using the differential privacy noise to generate noisy trajectory data; Error correction is performed on the noisy trajectory data based on data tolerance and node constraint weights to generate target trajectory data; Based on preset temporal constraint rules, the business nodes in the target trajectory data are rearranged in order, and temporal conflict nodes generated during the rearrangement process are removed. The target node sequence is then generated based on the remaining nodes to output the target desensitized text.

2. The method of claim 1, wherein, The step of performing error correction on the noisy trajectory data based on data tolerance and node constraint weights to generate target trajectory data includes: Based on the dependency graph, extract the hierarchical association nodes containing core sensitive attributes from the noisy trajectory data; The hierarchical nodes that generate data offsets are marked as error nodes, and the data tolerance and node constraint weights of the error nodes in the consulting business are extracted. The error allocation ratio of the error node is determined based on the data tolerance and the node constraint weight. The data offset is allocated to each error node according to the error allocation ratio to obtain the initial compensation value of each error node. When the initial compensation value of any error node exceeds the corresponding data tolerance, the portion exceeding the data tolerance is determined as an overflow error, and the overflow error is allocated to the adjacent nodes of the error node according to the dependency graph to obtain the target compensation value of each error node and its adjacent nodes. The target compensation values ​​are superimposed onto the sensitive attribute data of the corresponding nodes in the noisy trajectory data to generate target trajectory data.

3. The method according to claim 2, characterized in that, The step of allocating the overflow error to the adjacent nodes of the error node according to the dependency graph, to obtain the target compensation value for each error node and its adjacent nodes, includes: Based on the dependency graph, the adjacent nodes corresponding to the error nodes are extracted, and the corresponding compensable amount is determined according to the data tolerance of each adjacent node and the current compensation value. The compensation order of each adjacent node is determined based on the topological hierarchy and node constraint weights between each adjacent node and the error node. According to the compensation order, the overflow error is sequentially distributed to each adjacent node, wherein the amount of error distributed to any adjacent node does not exceed the compensable amount of the adjacent node; The error amount allocated to each adjacent node is determined as the target compensation value of the corresponding adjacent node, and the initial compensation value of the error node, which is limited to the corresponding data tolerance, is determined as the target compensation value of the error node.

4. The method according to claim 1, characterized in that, The process of rearranging the order of service nodes within the target trajectory data based on preset temporal constraint rules and removing temporally conflicting nodes generated during the rearrangement includes: Perform topological analysis on the target trajectory data, and extract independent nodes from the target trajectory data based on the analysis results; A time offset vector matching the independent node is generated using a preset chaotic perturbation algorithm, and the time offset vector is superimposed on the initial time tag of the independent node to perform timestamp update and generate the target time tag; When the target time tag is detected to violate the pre-dependency conditions in the dependency graph and cause a business logic conflict, the node that triggers the business logic conflict is identified as a time-series conflict node, and the time-series conflict node is removed as an abnormal node.

5. The method according to claim 1, characterized in that, The generation of differential privacy noise based on the privacy budget value includes: Calculate the ratio between the query sensitivity and the privacy budget value for the same business node, and determine the ratio as the noise scale parameter for the corresponding business node; The probability distribution function of the corresponding service node is determined based on the noise scale parameter; Random sampling is performed in the sample space corresponding to the probability distribution function to obtain the noise value of the corresponding business node, and the noise value is determined as differential privacy noise superimposed on the corresponding sensitive attribute data.

6. The method according to claim 1, characterized in that, The step of determining the privacy budget value corresponding to each business node based on the data flow volume of each business node in the dependency graph includes: The privacy leakage risk is calculated based on the data flow of each business node in the dependency graph. The preset global privacy budget is allocated to each node according to the preset allocation relationship between the privacy leakage risk and the privacy budget value, thereby generating the privacy budget value corresponding to each business node.

7. The method according to claim 6, characterized in that, The calculation of privacy leakage risk based on the data flow volume of each business node in the dependency graph includes: Based on the directed edges in the dependency graph, determine the data transmission path of sensitive attribute data through each business node; The amount of sensitive attribute data flowing into and out of each business node along the data transmission path is counted to obtain the data flow volume of each business node. Obtain the duration of the sensitive attribute data in the corresponding business node; Based on the data flow volume and data dwell time of the same business node, the privacy leakage risk is determined to characterize the degree of exposure of sensitive attribute data in the corresponding business node.

8. The method according to claim 1, characterized in that, The step of mapping sensitive attribute data within the node parameter set to the business node sequence to generate a business execution trajectory, and parsing the node dependencies between nodes in the business execution trajectory to construct a dependency graph, includes: Extract the node identifiers carried by each sensitive attribute data in the node parameter set, match the node identifiers with the node identifiers of each business node in the business node sequence, and associate the successfully matched sensitive attribute data with the corresponding business node to generate a business execution trajectory; Identify associated business nodes with data input relationships, data output relationships, or business flow constraints from the business execution trajectory; The associated business nodes are used as vertices of the graph, and directed edges are set according to the data flow direction between the associated business nodes to construct a dependency graph.

9. The method according to claim 1, characterized in that, After outputting the de-identified target text, the method further includes: Based on the node correspondence between the target de-identified text and the source text data, determine the business node retention rate and non-sensitive text retention rate of the target de-identified text; The data quality score of the target de-identified text is determined based on the retention rate of the business nodes and the retention rate of non-sensitive text.

10. A data anonymization system for consultation information based on differential privacy, characterized in that, include: The splitting module is used to obtain the source text data to be de-identified and split the source text data into a business node sequence and a node parameter set according to preset lexical analysis rules. The module is used to map the sensitive attribute data in the node parameter set to the business node sequence to generate a business execution trajectory, and to parse the node dependency relationship between each node in the business execution trajectory to construct a dependency relationship graph. The determination module is used to determine the privacy budget value corresponding to each business node based on the data flow volume of each business node in the dependency graph. The generation module is used to generate differential privacy noise based on the privacy budget value, and to perform a noise superposition operation on the sensitive attribute data using the differential privacy noise to generate noisy trajectory data; The correction module is used to perform error correction on the noisy trajectory data according to the data tolerance and node constraint weights, and generate target trajectory data; The output module is used to rearrange the business nodes in the target trajectory data according to preset temporal constraint rules, remove temporal conflict nodes generated during the rearrangement process, and generate a target node sequence based on the remaining nodes to output the target desensitized text.

Citation Information

Patent Citations

  • Differential privacy-based text desensitization method, program product and computing device

    CN119150354A