A billing profile information data protection method based on large model technology

By analyzing the seasonal patterns and sensitivity levels of billing archive information data, and adjusting the number of rotations in the CKKS algorithm, the problem of low computational efficiency caused by ignoring seasonal differences in existing technologies is solved, thus achieving efficient data encryption protection.

CN122947162BActive Publication Date: 2026-11-20LONGSHINE TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611433879.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-20
Estimated Expiration
2046-09-16

AI Technical Summary

Technical Problem

Existing encryption methods based on large models fail to adequately consider the seasonal variations in billing profile data, resulting in excessive ciphertext rotations, increased computational overhead, and reduced overall encryption efficiency.

Method used

By analyzing the seasonal patterns and sensitivity levels of user electricity consumption data, the number of rotations in the CKKS algorithm is adjusted, and combined with the LLaMA pre-trained model and differential privacy technology, the billing profile information data is protected by group encryption.

Benefits of technology

It reduces the overhead of homomorphic operations, enhances the system's resistance to attacks, and improves encryption efficiency and data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122947162B_ABST
    Figure CN122947162B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of archive information protection, in particular to a charging archive information data protection method based on large model technology, which comprises the following steps: collecting charging archive information data of each user in each month, performing seasonal regularity analysis on power consumption data, grouping charging archive information data of each user in different seasons based on regularity characteristics; acquiring the sensitivity levels of each numerical data in the charging archive information; directly desensitizing low-sensitivity data; grouping medium-sensitivity and high-sensitivity data according to their corresponding regularity levels, setting different rotation numbers according to different groups, and then performing encryption protection by combining CKKS homomorphic encryption algorithm, so that the homomorphic operation cost is further reduced under the premise of ensuring the safety of sensitive data; and the technical problem of excessive ciphertext rotation number and low calculation efficiency caused by ignoring the seasonal regularity difference of power consumption in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of archival information protection technology, specifically to a method for protecting billed archival information data based on large model technology. Background Technology

[0002] Big data analytics can automatically extract, classify, and store billing profile information, while also extracting key information and potential risks from massive amounts of data. Combined with data encryption technology, it can effectively protect billing profile data and reduce the risk of leakage of business or individual economic activity records.

[0003] Existing large-model-based encryption methods typically use the CKKS algorithm to treat sensitive data output by the large model as plaintext, adding security noise based on LWE or RLWE problems, and combining differential privacy techniques to add additional noise according to sensitivity to ensure encryption security. However, billing profile data (such as electricity payment records) mainly reflects changes in users' electricity consumption. This type of data theoretically exhibits seasonal patterns, and the data distribution patterns differ between seasons. The CKKS algorithm fails to fully consider these differences in data during encoding, leading to excessive ciphertext rotations during homomorphic operations, increasing computational overhead and noise accumulation, and reducing overall encryption efficiency. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides a method for protecting billing profile information data based on large model technology, thereby resolving the existing issues.

[0005] This application proposes a method for protecting billing profile information data based on large-model technology, which employs the following technical solution: One embodiment of this application provides a method for protecting billing profile information data based on large model technology, the method comprising the following steps: Collect billing data of each user's electricity consumption for each month, including the electricity consumption of each user for each month; The electricity consumption data of each user in the same season over several consecutive years are spliced ​​together to obtain the electricity consumption sequence. The autocorrelation of the sequence and the degree of seasonal fluctuation are analyzed to determine the seasonal regularity characteristics of each user in each season. The weight values ​​for each user in each season are determined based on the magnitude of the seasonal regularity characteristics of each user in each season. The regularity level of each user in each season is determined by combining the degree of disorder in the distribution of seasonal regularity characteristics of all users in the same season. Based on all users' billing profile information and combined with the LLaMA pre-trained model, the sensitivity level of each numerical data is obtained. Based on the regularity level and the sensitivity level, the number of rotations is adjusted, and the billing profile information data is encrypted and protected using the CKKS algorithm.

[0006] In one embodiment, the process of obtaining the seasonal pattern characteristics is as follows: Based on the autocorrelation, the first regularity characteristic of each user in each season is determined; based on the degree of seasonal fluctuation, the second regularity characteristic of each user in each season is determined. Based on the first regularity feature and the second regularity feature, the seasonal regularity features of each user in each season are determined, and the seasonal regularity features are positively correlated with the first regularity feature and the second regularity feature, respectively.

[0007] In one embodiment, the process of obtaining the first regular feature is as follows: Calculate the maximum value of the autocorrelation coefficient with a lag number greater than 0 for the electricity consumption series of each user in each season, and normalize it to between 0 and 1 to obtain the first regular characteristic of each user in each season.

[0008] In one embodiment, the process of obtaining the second regular feature is as follows: The electricity consumption sequence is decomposed into seasonal terms and residual terms using a time-series decomposition algorithm. The sum of the variances of all elements in the seasonal terms and the residual terms is calculated. The ratio of the variances of all elements in the seasonal terms to the sum is taken as the second regularity feature of each user in each season.

[0009] In one embodiment, the process of obtaining the assigned weight value is as follows: Arrange the seasonal patterns of all users in the same season in ascending order to obtain the ranking value of the seasonal patterns of each user in each season; obtain the difference between the ranking value of the seasonal patterns of each user in each season and the corresponding median, and use the ratio of the difference to the median as the allocation weight value of each user in each season.

[0010] In one embodiment, the process of obtaining the regularity level is as follows: Based on the assigned weight values ​​and the degree of disorder in the distribution of seasonal patterns of all users in the same season, the relative seasonal characteristics of each user in each season are constructed. The mean of the seasonal regularity feature and the relative seasonal feature is used as the grouping feature for each user in each season; Set the regularity level corresponding to each pre-divided group feature interval; The regularity level of each user in each season is determined based on the group feature interval in which the group features of each user in each season are located.

[0011] In one embodiment, the process of obtaining the relative seasonal characteristics of each user for each season is as follows: Calculate the standard deviation of the seasonal pattern characteristics of all users in the same season; determine the relative seasonal characteristics of each user in each season based on the standard deviation and the assigned weight value, wherein the relative seasonal characteristics are positively correlated with the standard deviation and the assigned weight value respectively.

[0012] In one embodiment, the step of encrypting and protecting the billing profile information data includes: The sensitivity levels include high, medium, and low sensitivity; low-sensitivity data is desensitized using a desensitization algorithm. Grouping is performed according to the regularity level; the mean of all group characteristics within the same group is used as the rotation number adjustment factor for that group, and the rotation number of each group is determined based on the rotation number adjustment factor; The CKKS algorithm, combined with the regularity level and the number of rotations, is used to encrypt and protect high-sensitivity and medium-sensitivity data.

[0013] In one embodiment, the process of obtaining the number of rotations is as follows: Multiply the difference between the value 1 and the rotation number adjustment factor by the preset maximum rotation number, and take the maximum value between the rounded-up result of the product and the preset minimum rotation number as the rotation number for each group.

[0014] In one embodiment, the process of encrypting and protecting highly sensitive and moderately sensitive data includes: The numerical data corresponding to all high-sensitivity and medium-sensitivity data in each group are combined into a real number vector. This real number vector is used as the input of the CKKS algorithm for encryption. When the real number vector is placed into the ciphertext slot, the number of rotations is used as the basis for guiding the regularity of the block length arrangement.

[0015] This application has at least the following beneficial effects: This application collects monthly billing profile data from each user; it performs seasonality analysis on electricity consumption data in two dimensions: different seasons for the same user and different seasons for different users. This reflects the seasonal regularity and differences in electricity consumption data for each user within the same season, highlighting the predictability of electricity consumption patterns for each user within the same season. Based on the regularity characteristics, the application groups the billing profile data for each user in different seasons; it obtains the sensitivity level of each numerical data in the billing profile data through an LLaMA pre-trained model; it desensitizes low-sensitivity data using a desensitization algorithm, and groups medium- and high-sensitivity data according to their corresponding regularity levels. Different rotation numbers are set for different groups, and then encryption protection is achieved using the CKKS homomorphic encryption algorithm. While ensuring the security of sensitive data, this further reduces the homomorphic computation overhead and prevents the misuse of large model outputs through differential privacy technology, enhancing the system's anti-attack capability. This solves the technical problem of excessive ciphertext rotations and low computational efficiency caused by ignoring seasonal differences in electricity consumption in existing technologies. Attached Figure Description

[0016] Figure 1 A flowchart of a billing profile information data protection method based on large model technology provided in this application; Figure 2 A schematic diagram illustrating the process of obtaining seasonal patterns; Figure 3 This is a flowchart illustrating the steps of a billing profile information data protection method based on large model technology. Detailed Implementation

[0017] The following description, in conjunction with the accompanying drawings, details a specific scheme for a billing archive information data protection method based on large model technology provided in this application.

[0018] One embodiment of this application provides a method for protecting billing profile information data based on large model technology.

[0019] Specifically, the following method for protecting billing profile information data based on large model technology is provided. Please refer to [link / reference]. Figure 1 The method includes the following steps: Step S1: Collect billing information data of each user's electricity consumption for each month, including the electricity consumption of each user for each month.

[0020] This application analyzes the protection of user electricity billing profile information data. It obtains historical annual billing profile information data for all users from the billing system. In this embodiment, each user generates one billing profile data set per month, arranged and marked chronologically. To facilitate subsequent differentiation of users, all users are numbered starting from 001. That is: {“User 001”: [...], “2024.03 Profile”, “2024.04 Profile”, ...], “User 002”: [...], “2024.03 Profile”, “2024.04 Profile”, ...], ...}. Simultaneously, to analyze the seasonal patterns of each user's electricity consumption, the monthly electricity consumption data for each user is obtained from the billing profile information system, and the electricity consumption data for each user in each season of each year is composed into electricity consumption data sequences (one user has 4 electricity consumption data sequences per year). The obtained billing profile information data may contain missing values, symbols, null values, etc. Therefore, the billing profile information data is used as input for regular expressions for character cleaning and null value normalization. Regular expressions are a well-known technique, and the specific process will not be elaborated here.

[0021] Step S2 involves splicing together the electricity consumption data of all months in the same season for each user over several consecutive years to obtain an electricity consumption sequence. The autocorrelation of the sequence and the degree of seasonal fluctuation are then analyzed to determine the seasonal patterns of each user in each season.

[0022] The data protection of billing profile information based on large model technology involves using billing profile information data in a local trusted environment to train a large model, classifying sensitive information in the data into different levels, and then using the CKKS algorithm to encrypt highly sensitive information so that homomorphic computation can be performed directly on the ciphertext. Finally, differential privacy technology is used to add random noise to the decrypted query results to protect the output of the large model from being misused.

[0023] For electricity billing data, changes and differences in electricity consumption can directly characterize the numerical distribution differences of the overall data to be encrypted. Therefore, by analyzing the electricity consumption data of each user, each user is grouped and processed, and a different SIMD encoding layout is set for each group to reduce the number of rotations in homomorphic multiplication.

[0024] Electricity bill payment data is mostly numerical data. There will be differences in the regularity of electricity consumption of the same user in different seasons and the regularity of electricity consumption data of different users in the same season. For users whose electricity consumption data has strong seasonal regularity, their data to be encrypted can be placed continuously in the SIMD encoding vector in the CKKS algorithm, thereby reducing the number of rotations in homomorphic multiplication.

[0025] Based on the above analysis, this application first conducts a difference analysis on the regularity of electricity consumption data of the same user in different seasons and different users in the same season.

[0026] For the same user, the more regular and predictable the fluctuations in their electricity consumption data, the more likely their data to be encrypted can be placed continuously during SIMD encoding, thus reducing the number of rotations. While electricity consumption data theoretically exhibits seasonality, different users have different consumption patterns, and the strength of these seasonal patterns varies. This difference directly affects the continuous arrangement of data during SIMD encoding. Dispersing highly regular user data will increase the number of ciphertext rotations in homomorphic operations.

[0027] Therefore, in this embodiment, the electricity consumption data sequences of all users in the ith season are concatenated to obtain the electricity consumption sequence L(i,a) of the ith user in the ith season. For example, the electricity consumption data sequences of the ith user in the summer of year M are concatenated in chronological order to obtain a long sequence, which is used as the electricity consumption sequence of the ith user in summer. Then, the electricity consumption sequence L(i,a) is used as the input of the autocorrelation analysis algorithm to obtain the autocorrelation coefficients of L(i,a) with lags greater than 0. To avoid overflow in subsequent calculations and to avoid negative numbers affecting subsequent calculations, the maximum autocorrelation coefficient is summed with the value 1 and then divided by 2 to normalize the maximum autocorrelation coefficient to between 0 and 1. This normalization result is used as the first regularity feature of L(i,a). The first regularity feature can reflect the regularity of the ith user's electricity consumption in the ith season. The larger the first regularity feature, the higher the repeatability and the stronger the regularity of the ith user's electricity consumption pattern in the ith season. In this embodiment, M is 5. In other embodiments of this application, the implementer may set the value of M according to the actual situation.

[0028] Furthermore, the seasonal electricity consumption data of the same user may be affected by random fluctuations, holiday effects, or extreme weather. For example, user A may have a high seasonal pattern of electricity consumption in the summer, but the peak intensity of electricity consumption may fluctuate greatly, which will lead to a decrease in the actual predictability of seasonal patterns. Therefore, this application takes L(i,a) as an example, using L(i,a) as the input of the Prophet time series decomposition algorithm to obtain the seasonal term and residual term of L(i,a), where the change point prior scale is set to 0.8 and the seasonal scale is set to 10. Then, the variance of all elements in the seasonal term and the sum of the variances of all elements in the residual term are calculated respectively. The ratio of the variance of all elements in the seasonal term to the sum (i.e., the ratio of seasonal fluctuation to total fluctuation) is calculated as the second regularity feature of L(i,a). The second regularity feature reflects the seasonal fluctuation intensity of the electricity consumption data of the i-th user in the a-th season. The larger the value of the second regularity feature, the more obvious the seasonal regularity of the electricity consumption data of the i-th user in the a-th season, the stronger the predictability, and the more suitable it is to be placed continuously in subsequent SIMD encoding to reduce the number of rotations.

[0029] Since the first regularity feature reflects the temporal regularity within the electricity consumption data sequence, and the second regularity feature reflects the dominance of the periodic component of the electricity consumption data sequence in the overall fluctuation, both determine the overall strength of the seasonal regularity from different perspectives and can effectively guide the decision-making of SIMD continuous arrangement. Using only a single feature may lead to misjudgment of regularity. Therefore, the two are combined as the seasonal regularity feature of L(i,a). Preferably, in this embodiment, the expression of the seasonal regularity feature is: In the formula, This represents the seasonal pattern characteristics of the i-th user in the a-th season. , Let represent the first and second regular characteristics of the i-th user in the a-th season, respectively.

[0030] It can comprehensively characterize the seasonal regularity of the electricity consumption data of the i-th user in the a-th season. The larger the value, the stronger the seasonal regularity of the electricity consumption data of the i-th user in the a-th season. Therefore, when encrypting the data of the i-th user in the a-th season, the number of rotations should be less to reduce the computational complexity.

[0031] The seasonal regularity of electricity consumption data is reflected in L(i,a) through statistical autocorrelation. By analyzing the proportion of seasonal fluctuations in the total fluctuations, the seasonal regularity of electricity consumption data can be reflected. Both methods can illustrate the degree of repetitive stability of electricity consumption data over time through seasonal regularity.

[0032] Step S3: Determine the weight value of each user for each season based on the magnitude of the seasonal regularity characteristics of each user in each season, and determine the regularity level of each user in each season by combining the degree of disorder in the distribution of seasonal regularity characteristics of all users in the same season.

[0033] Because electricity consumption data from different users in the same season varies in magnitude and fluctuation pattern due to differences in the type of electrical equipment and load characteristics, the seasonal regularity of electricity consumption data for each user in the same season will differ. This difference is also a key basis for subsequent grouping. Therefore, in this embodiment, the standard deviation of the seasonal regularity characteristics of all users in the a-th season is first calculated, denoted as . This is used to characterize the degree of grouping difference in electricity consumption data of all users in season a. The greater the degree of grouping difference, the more obvious the difference in electricity consumption among different users in season a.

[0034] Because the seasonal patterns of electricity consumption data from different users in the same season vary, the distribution of seasonal patterns across all users' electricity consumption data is uneven. Some users' seasonal patterns are close to the median, while others are higher or lower. This deviation directly affects the priority of subsequent grouping. Users whose patterns deviate more from the overall pattern have more skewed electricity consumption patterns. In SIMD encoding, mixing these with regular users may increase additional data rearrangement overhead. Therefore, it is necessary to construct weights for assigning grouping differences to each user. First, the seasonal patterns of all users in season a are arranged in ascending order to obtain the ranking value of each user's seasonal patterns in season a. Further, taking the i-th user as an example, the formula for calculating its weights is: ,in, This represents the weight value assigned to the i-th user in the a-th season. This represents the ranking value of the seasonal pattern characteristics of the i-th user in the a-th season. This represents the number of users with electricity consumption data in the a-th season. This represents the median of the ranking values ​​of the seasonal pattern characteristics of all users in season a; when calculating the weight allocation, the current sample size is first determined. Is it greater than 1? ,but The calculation formula remains unchanged; if ,but Set to 0.

[0035] Furthermore, and The product of and is used as the relative seasonal characteristic of the i-th user in the a-th season. The relative seasonal characteristic reflects the degree of deviation of the i-th user's electricity consumption in the a-th season from the overall level. The larger the relative seasonal characteristic, the more the i-th user's electricity consumption pattern deviates from the overall level in the a-th season.

[0036] Furthermore, the seasonal regularity of each user's electricity consumption data in each season should be analyzed by combining its own seasonal regularity with the relative seasonal regularity of its electricity consumption data with that of other users in the same season, in order to characterize the comprehensive seasonal regularity of each user's electricity consumption data in each season. Therefore, this application takes the electricity consumption data of each user in season a as an example. Considering that the relative seasonal characteristics of each user in season a are obtained by multiplying the assigned weights by the overall standard deviation, the numerical range of which depends on the distribution of the original electricity consumption data and the number of users, the original values ​​of the relative seasonal characteristics among different users may have significant differences in dimensionality, and the absolute values ​​of the assigned weights also lack a unified boundary. If the relative seasonal characteristics are directly used for subsequent analysis, large numerical characteristics may completely dominate the calculation, leading to unreasonable analysis results.

[0037] Therefore, the relative seasonal characteristics of all users in season a are first normalized using a maximum value normalization algorithm, so that the relative seasonal characteristics are within the range (0,1). Further, taking L(i,a) as an example, the grouping characteristics of the billing profile information data for the i-th user in season a are constructed by combining the seasonal regularity characteristics of L(i,a) with the normalized values ​​of the relative seasonal characteristics. Preferably, in this embodiment, the expression of the grouping characteristics is: In the formula, This represents the grouping characteristics of the billing profile information data for the i-th user in the a-th season. This represents the seasonal pattern characteristics of the i-th user in the a-th season. This represents the normalized value of the relative seasonal characteristic of the i-th user in the a-th season. Since... and The seasonal regularity of L(i,a) can be reflected from different perspectives. Therefore, the two are combined by using an equal weighting method to represent the comprehensive seasonal regularity of L(i,a).

[0038] This reflects the comprehensive seasonal regularity of L(i,a); The larger the value, the stronger the overall seasonal regularity of L(i,a). When encrypting the billing profile data of the i-th user in the a-th season, the number of rotations should be reduced. The seasonality of L(i,a) is reflected by analyzing its own regularity. The relative seasonality of L(i,a) is reflected by analyzing the deviation of each user's electricity consumption data characteristics from the overall data in the same season; both reflect the user's electricity consumption characteristics in that season from different dimensions.

[0039] The grouping characteristics of each user's billing profile data for each season are calculated using the above method. Based on all billing profile data, the grouping characteristics expressed by seasonal patterns can effectively distinguish the stability and predictability of different users' electricity consumption patterns, thus providing a quantitative basis for optimizing the number of rotations. Therefore, this application, based on the concept of quartiles, obtains the value range of grouping features for all users across all seasons. Based on the 0.25, 0.5, and 0.75 quartiles of this value range, it divides the range into four intervals: [0, 0.25], (0.25, 0.5], (0.5, 0.75], and (0.75, 1] ​​quartile intervals. All data falling within each interval are grouped together, and the regularity level corresponding to each group is, in order, very low regularity, low regularity, medium regularity, and high regularity. For example, if the grouping feature of the i-th user in the a-th season falls within the (0.25, 0.5] quartile interval of this value range, then the regularity level corresponding to the billing profile information data of the i-th user in the a-th season is low regularity.

[0040] Step S4: Based on all users' billing profile information data and combined with the LLaMA pre-trained model, obtain the sensitivity level of each numerical data.

[0041] A field name library for numerical data in the billing profile information data is constructed. This involves extracting the field names of numerical data from the billing profile information data, such as user ID, payment amount, electricity consumption, and active power. All numerical field names are extracted from the cleaned billing profile information data. Then, the extracted field names and corresponding values ​​from each user's monthly billing profile record are concatenated into a natural language sentence, such as "User ID is 001, electricity consumption is 350.5 kWh, electricity bill is 210.3 yuan". Field extraction and value concatenation are well-known techniques in the field, and the specific methods will not be elaborated further.

[0042] All natural language sentences are used as input to the LLaMA pre-trained model. A zero-shot approach is employed for sensitive information identification and classification, outputting the sensitivity level for each numerical data point. Sensitivity levels include: high sensitivity, medium sensitivity, and low sensitivity. During inference, the maximum number of tokens is set to 512. The LLaMA pre-trained model is publicly known and will not be elaborated upon further. Specifically, for the sensitivity-related output natural response paragraph sequence data obtained from the large model, a structured regular expression parsing code is used to extract the interception function module. This module obtains flags that meet specific constant constraints (in this application, only the three fixed label categories 'high,' 'medium,' and 'low' present in the sentence are extracted, while redundant short labels and paragraph phrases are filtered out). Only after obtaining the corresponding clean state identifier is this state attribute transmitted as a parameter for subsequent matching, desensitization, or encryption protection.

[0043] Step S5: Based on the regularity level and the sensitivity level, adjust the number of rotations and combine the CKKS algorithm to encrypt and protect the billing file information data.

[0044] The tiered low-sensitivity data is used as input to a generalized desensitization algorithm for desensitization processing. During this process, numerical data undergoes interval generalization, and character data is replaced with "*". The generalized desensitization algorithm is a well-known technique, and its specific process will not be elaborated further. For high-sensitivity and medium-sensitivity data, they are first used as input to the CKKS homomorphic encryption algorithm for encryption, obtaining the ciphertext for each data point. After obtaining the sensitivity level purity status identifier from the model output, the corresponding numerical data is extracted from records marked as high-sensitivity and medium-sensitivity, generating a numerical sequence. Based on this numerical sequence, according to the regularity of the corresponding billing archive information data, all high-sensitivity and medium-sensitivity data in the same group are consecutively arranged in memory to form a real number vector. Finally, this real number vector is used as an input batch of the SIMD encoder of the CKKS algorithm for encoding and encryption. During the encryption process, the polynomial degree of the CKKS algorithm is set to 16384, and the scaling factor is set to 2. 40 The modular chain length is set to 10, and the multiplication depth is set to 5. To reduce the overhead of homomorphic computation, the number of ciphertext rotations required for each group during SIMD alignment is determined based on the grouping characteristics of each group. For each group, taking the g-th group as an example, the average of all corresponding grouping characteristics in the g-th group is used as the rotation number adjustment factor for the g-th group. Specifically, during grouping, if the data samples are too concentrated, resulting in no data entity falling into a certain interval and causing an empty set for the corresponding group, the averaging process of the grouping characteristics of the empty group is skipped, and its rotation number adjustment factor is directly set to a constant of 1. The rotation number of the g-th group is calculated based on this rotation adjustment factor, and the calculation relationship is as follows: In the formula, This represents the number of rotations in the g-th group. This represents the minimum number of rotations required for the g-th group. This represents the maximum number of rotations in the g-th group. This indicates the rotation number adjustment factor for group g; it is not specified in this application. and The value of is subject to special restrictions, and the implementer can adjust it according to the actual situation. In this embodiment, The length of the largest data in the g-th group is determined by the length of the largest data in the g-th group. If the length of the largest data in the g-th group is L, then based on the principle of exhaustive search, the following will be used: Set as , Set to 1; When performing the operation of inserting real-valued vectors into the ciphertext slots, the rotation count characteristics of each group calculated above are used as the basis for guiding the regularity of block length arrangement. The block length of the ciphertext slots is calculated, including... A real vector of n elements is divided into several data blocks according to a step size, and the length of each data block is... It is calculated from the total capacity of the ciphertext slot and the number of rotations, with the specific formula as follows: ,in This represents the maximum total number of real slots supported by a single CKKS ciphertext; subsequently, the length is truncated as described above. The real number vector is truncated and sequentially mapped and interleaved into the SIMD ciphertext slots to complete the encoding preparation. This objectively reduces the frequency of operations to shift and align to the misaligned slots during the comparison and query process, thereby reducing unnecessary rotation overhead on the basis of encryption protection.

[0045] After decryption, the plaintext decrypted by CKKS is used as input for differential privacy technology, and Laplace noise is added to protect the output privacy. The privacy budget is set to 0.5, and the sensitivity is set to 1. Then, by periodically (e.g., monthly) collecting the latest regulatory texts and attack cases, the pre-trained large model is fine-tuned, updating its sensitive information identification rules and de-identification strategies. During each adjustment, the cleaning, classification, de-identification, encryption, querying, decryption, and noise addition operations of each user's data are recorded, and logs are stored based on a chained hash table structure to ensure that the logs are immutable and achieve compliance traceability. The large model fine-tuning, differential privacy technology, and chained hash table structure are all well-known technologies in the field and will not be described in detail here.

[0046] A schematic diagram illustrating the process of obtaining seasonal patterns is shown below. Figure 2 As shown; the flowchart of the above method is as follows. Figure 3 As shown.

[0047] In summary, this application's embodiments collect monthly billing profile data from each user; perform seasonality analysis on electricity consumption data across two dimensions: different seasons for the same user and the same season for different users. This reflects the seasonal regularity and differences in electricity consumption data for each user within the same season, highlighting the predictability of each user's electricity consumption patterns within the same season. Based on these regularity characteristics, the billing profile data for each user in different seasons is grouped. A pre-trained LLaMA model is used to obtain the sensitivity level of each numerical data point in the billing profile data. Low-sensitivity data is desensitized using a desensitization algorithm, while medium- and high-sensitivity data are grouped according to their corresponding regularity levels. Different rotation counts are set for different groups, and then encrypted using the CKKS homomorphic encryption algorithm. This approach further reduces the homomorphic computation overhead while ensuring the security of sensitive data, and differential privacy technology prevents the misuse of large model outputs, enhancing the system's anti-attack capability. This solves the technical problem in existing technologies where ignoring seasonal differences in electricity consumption leads to excessive ciphertext rotations and low computational efficiency.

Claims

1. A method for protecting billing profile information data based on large model technology, characterized in that, The method includes the following steps: Collect billing data of each user's electricity consumption for each month, including the electricity consumption of each user for each month; The electricity consumption data of each user in the same season over several consecutive years are spliced ​​together to obtain the electricity consumption sequence. The autocorrelation of the sequence and the degree of seasonal fluctuation are analyzed to determine the seasonal regularity characteristics of each user in each season. The weight values ​​for each user in each season are determined based on the magnitude of the seasonal regularity characteristics of each user in each season. The regularity level of each user in each season is determined by combining the degree of disorder in the distribution of seasonal regularity characteristics of all users in the same season. Based on all users' billing profile information and combined with the LLaMA pre-trained model, the sensitivity level of each numerical data is obtained. Based on the regularity level and the sensitivity level, the number of rotations is adjusted, and the billing file information data is encrypted and protected using the CKKS algorithm. The process of obtaining the seasonal pattern characteristics is as follows: Based on the autocorrelation, the first regularity characteristic of each user in each season is determined; based on the degree of seasonal fluctuation, the second regularity characteristic of each user in each season is determined. Based on the first regularity feature and the second regularity feature, the seasonal regularity feature of each user in each season is determined, and the seasonal regularity feature is positively correlated with the first regularity feature and the second regularity feature respectively; The process of obtaining the regularity level is as follows: Based on the assigned weight values ​​and the degree of disorder in the distribution of seasonal patterns of all users in the same season, the relative seasonal characteristics of each user in each season are constructed. The mean of the seasonal regularity feature and the relative seasonal feature is used as the grouping feature for each user in each season; Set the regularity level corresponding to each pre-divided group feature interval; The regularity level of each user in each season is determined based on the group feature interval where each user's group characteristics are located. The aforementioned encryption protection of billing profile information data includes: The sensitivity levels include high, medium, and low sensitivity; low-sensitivity data is desensitized using a desensitization algorithm. Grouping is performed according to the regularity level; the mean of all group characteristics within the same group is used as the rotation number adjustment factor for that group, and the rotation number of each group is determined based on the rotation number adjustment factor; The CKKS algorithm, combined with the regularity level and the number of rotations, is used to encrypt and protect high-sensitivity and medium-sensitivity data.

2. The method for protecting billing profile information data based on large model technology as described in claim 1, characterized in that, The process of obtaining the first regular feature is as follows: Calculate the maximum value of the autocorrelation coefficient with a lag number greater than 0 for the electricity consumption series of each user in each season, and normalize it to between 0 and 1 to obtain the first regular characteristic of each user in each season.

3. The method for protecting billing record information data based on large model technology as described in claim 1, characterized in that, The process of obtaining the second regular feature is as follows: The electricity consumption sequence is decomposed into seasonal terms and residual terms using a time-series decomposition algorithm. The sum of the variances of all elements in the seasonal terms and the residual terms is calculated. The ratio of the variances of all elements in the seasonal terms to the sum is taken as the second regularity feature of each user in each season.

4. The method for protecting billing record information data based on large model technology as described in claim 1, characterized in that, The process for obtaining the assigned weight values ​​is as follows: Arrange the seasonal patterns of all users in the same season in ascending order to obtain the ranking value of the seasonal patterns of each user in each season; obtain the difference between the ranking value of the seasonal patterns of each user in each season and the corresponding median, and use the ratio of the difference to the median as the allocation weight value of each user in each season.

5. The method for protecting billing record information data based on large model technology as described in claim 1, characterized in that, The process for obtaining the relative seasonal characteristics of each user in each season is as follows: Calculate the standard deviation of the seasonal pattern characteristics of all users in the same season; determine the relative seasonal characteristics of each user in each season based on the standard deviation and the assigned weight value, wherein the relative seasonal characteristics are positively correlated with the standard deviation and the assigned weight value respectively.

6. The method for protecting billing profile information data based on large model technology as described in claim 1, characterized in that, The process of obtaining the number of rotations is as follows: Multiply the difference between the value 1 and the rotation number adjustment factor by the preset maximum rotation number, and take the maximum value between the rounded-up result of the product and the preset minimum rotation number as the rotation number for each group.

7. The method for protecting billing profile information data based on large model technology as described in claim 1, characterized in that, The process of encrypting and protecting highly sensitive and moderately sensitive data includes: The numerical data corresponding to all high-sensitivity and medium-sensitivity data in each group are combined into a real number vector. This real number vector is used as the input of the CKKS algorithm for encryption. When the real number vector is placed into the ciphertext slot, the number of rotations is used as the basis for guiding the regularity of the block length arrangement.

Citation Information

Patent Citations

  • Electric quantity prediction method and system based on homomorphic encryption

    CN115249090A

  • Power data dynamic privacy protection method and system based on fully homomorphic encryption

    CN121997372A