Data element compliance detection method and device based on sampling
By employing a sampling-based data element compliance inspection method, which utilizes authorization templates and sampling strategies to inspect authorization certificates, the low efficiency and high cost issues caused by full verification are resolved, achieving efficient and accurate compliance inspection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHONGDIAN DATA IND CO LTD
- Filing Date
- 2025-12-25
- Publication Date
- 2026-04-24
AI Technical Summary
In existing technologies, the post-event authorization verification of data element calls is a full verification, which results in a large processing volume, low efficiency, large amount of manual work, and high cost.
A sampling-based data element compliance detection method is adopted. An authorization template is formed by annotating the compliance authorization template, and the authorization letters are sampled according to the configured sampling strategy. The authorization template is then used for compliance detection.
It achieves efficient compliance testing of authorization certificates, reduces human intervention, avoids subjective errors, meets the stringent requirements of users with strong regulatory oversight, and improves the accuracy and efficiency of testing.
Smart Images

Figure CN121919861A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data element technology, and in particular to a sampling-based data element compliance testing method. Background Technology
[0002] There is an authorization verification mechanism during the data element call process; there are generally three scenarios: before, during, and after.
[0003] In post-event scenarios, compliance personnel need to initiate post-event authorization verification to ensure data compliance in order to proceed with subsequent resource cataloging and component processing.
[0004] However, because the current verification of the authorization letter for component calls is a full verification, the amount of data processing is relatively large and the efficiency is relatively slow. Furthermore, current data compliance authorization verification processes all require compliance personnel to log into the compliance system and perform manual verification. This involves a large workload and high costs due to the need to manually verify all component call records. Summary of the Invention
[0005] In view of this, the present invention provides a sampling-based data element compliance detection method.
[0006] The present invention proposes a sampling-based data element compliance detection method, comprising: Step 1: Annotate the compliant authorization template to create an authorization template; Step 2: Conduct random checks on the authorization letters according to the configured sampling strategy; During the random inspection process, the authorization template is used to perform compliance checks on the authorization letter.
[0007] In one implementation, the step of annotating the compliant authorization template to form an authorization template includes: Obtain the authorization template file, check the integrity and compliance of the template file, and after passing the verification, store the data in the file system and generate a unique template ID; Extract and label key elements from the current data, convert the labeling results into binary feature codes, establish a mapping relationship with the system's built-in compliance detection operators, and store them in the system; After annotation is completed, the current template will be activated, and the aforementioned feature codes will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance determination.
[0008] In one implementation, the step of randomly sampling the authorization letters according to the configured sampling strategy employs one or more of the following strategies: Time range selection: After receiving the time parameter, a binary mask for the corresponding interval is generated to filter the component call records within that range; Subject identifier matching: Quickly match multiple input subject identifiers; Percentage sampling: Implements pseudo-random number generation, performing random sampling based on integer percentages from 1 to 99; Number of items controlled: The sampling number is precisely controlled through sampling logic, and the sampling process is automatically terminated after the specified number of items is reached.
[0009] Another aspect of the present invention provides a sampling-based data element compliance testing device, comprising: The template annotation module is configured to annotate compliant authorization templates to create authorization templates; The sampling inspection module is configured to conduct random inspections of authorization letters according to the configured sampling strategy. During the random inspection process, the authorization template is used to perform compliance checks on the authorization letter.
[0010] In one implementation, the template annotation module is further configured as follows: Obtain the authorization template file, check the integrity and compliance of the template file, and after passing the verification, store the data in the file system and generate a unique template ID; Extract and label key elements from the current data, convert the labeling results into binary feature codes, establish a mapping relationship with the system's built-in compliance detection operators, and store them in the system; After annotation is completed, the current template will be activated, and the aforementioned feature codes will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance determination.
[0011] In one embodiment, the sampling detection module is further configured as follows: Time range selection system: After receiving the time parameter, it generates a binary mask for the corresponding range and filters the component call records within that range; Subject identifier matching system: quickly matches multiple input subject identifiers; Percentage sampling system: generates pseudo-random numbers and performs random sampling based on integer percentages from 1 to 99; Count control system: It precisely controls the number of samples through sampling logic and automatically terminates the sampling process after reaching the specified number of samples.
[0012] Another aspect of the present invention provides an electronic device, comprising: a memory and a processor, the memory storing a computer program. The processor is configured to execute the computer program to implement the sampling-based data element compliance inspection method as described in any of the preceding claims.
[0013] Another aspect of the present invention provides a computer-readable storage medium storing a computer program. The computer program is executed to implement the sampling-based data element compliance inspection method as described in any of the preceding claims.
[0014] By adopting the above technical solution, the present invention has at least the following advantages: The method provided by this invention, through the above-mentioned system design for component call scenarios, forms a complete closed loop for authorization compliance testing with the template annotation module and the sampling detection module. This ensures both the standardized processing of authorization templates and the accurate sampling detection of component calls, meeting the stringent compliance testing requirements of users under strict supervision. Attached Figure Description
[0015] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a schematic diagram of the FPGA+DSP upgrade hardware structure based on the CAN bus according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the Bin file generation process according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the online upgrade process according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the program startup and boot process according to an embodiment of the present invention. Detailed Implementation
[0016] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.
[0017] While exemplary embodiments of the invention are shown in the accompanying drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the invention and to fully convey its scope to those skilled in the art. The invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0018] This invention provides a sampling-based data element compliance detection method, such as... Figure 1 As shown, it includes the following steps: Step 1: Annotate the compliant authorization template to create an authorization template; Step 2: Conduct random checks on the authorization letters according to the configured sampling strategy; During the random inspection process, the authorization template is used to perform compliance checks on the authorization letter.
[0019] In this embodiment, the step of annotating the compliant authorization template to form an authorization template includes: Obtain the authorization template file, check the integrity and compliance of the template file, and after passing the verification, store the data in the file system and generate a unique template ID; Extract and label key elements from the current data, convert the labeling results into binary feature codes, establish a mapping relationship with the system's built-in compliance detection operators, and store them in the system; After annotation is completed, the current template will be activated, and the aforementioned feature codes will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance determination.
[0020] In this embodiment, the sampling inspection of the authorization letters according to the configured sampling strategy adopts one or more of the following strategies: Time range selection: After receiving the time parameter, a binary mask for the corresponding interval is generated to filter the component call records within that range; Subject identifier matching: Quickly match multiple input subject identifiers; Percentage sampling: Implements pseudo-random number generation, performing random sampling based on integer percentages from 1 to 99; Number of items controlled: The sampling number is precisely controlled through sampling logic, and the sampling process is automatically terminated after the specified number of items is reached.
[0021] A second embodiment of the present invention provides a data element compliance detection device based on sampling, such as... Figure 2 as well as Figure 3 As shown below, the technical solution provided in this embodiment will be described in detail.
[0022] In this embodiment, the compliant authorization template is first annotated by the template annotation module to form an authorization template. Then, the sampling inspection module performs random checks on the authorization documents according to a certain sampling strategy. During the sampling inspection, the authorization template undergoes compliance testing. The following is a detailed explanation of the relevant modules: Designed specifically for compliance testing scenarios involving component invocation authorization for users under stringent regulations (such as application developers like banks), the core module comprises two main categories: template annotation and sampling testing. By automating the entire authorization compliance process, it meets the stringent regulatory requirements for high security and reliability. Each category also includes both full-vector execution and segmented execution modes, allowing for flexible selection based on business complexity and ensuring efficient operation across various scenarios.
[0023] 1) Template annotation module The template annotation module constitutes the benchmark system for authorization compliance testing, and standardization is achieved through a three-level logical system module: 1. Template Upload: Supports receiving authorization template files in formats such as "Personal Information Authorization Letter". The system has built-in format verification logic to automatically detect the integrity and compliance of the file. After verification, the file data is stored in a dedicated file system, and a unique template ID is generated and associated with subsequent processing procedures.
[0024] 2. Feature Annotation: A programmable logic array is used to extract key elements, supporting precise annotation of core features such as the entity identifier, scope of authorization, and validity period in the authorization document. The system uses a preset feature recognition algorithm to convert the annotation results into binary feature codes, establishes a mapping relationship with the system's built-in compliance detection operators, and stores them in the system.
[0025] 3. Template Activation: Includes a state switching logic system. Upon receiving the annotation completion signal, the system controls the template status to switch from "pending activation" to "activated" via the enable terminal. The activated template feature code will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance judgment. At the same time, the system automatically records the activation time and version information, supporting traceability management.
[0026] 2) Sampling and Inspection Module The sampling inspection module achieves flexible and efficient compliance verification through multi-dimensional configuration logic, and its core consists of five major functional systems: 1. Testing Scenario Configuration System: Hardware-based "post-event" authorization scenario parameters are fixed, and the compliance path is limited to "personal authorization / enterprise authorization" through a dedicated pin. The authorization source is fixed to "authorization letter", ensuring the uniqueness and seriousness of the testing scenario.
[0027] 2. Time Configuration System: Supports configuring four levels of detection cycles: daily, weekly, monthly, and yearly. The system has built-in cycle conversion logic. For example, when detecting weekly data, it automatically parses the "week X + time point" parameter to generate corresponding rules; when detecting monthly data, it automatically identifies the number of days in the current month to ensure that the sampling range accurately covers the entire cycle of the previous month.
[0028] 3. Sampling Strategy System: Employs a parallel processing architecture, supporting combined computation of four sampling strategies: Time range selection system: After receiving the time parameter, it generates a binary mask for the corresponding range and filters the component call records within that range; Subject identifier matching system: quickly matches multiple input subject identifiers (comma-separated format); Percentage sampling system: Implements pseudo-random number generation and performs random sampling based on integer percentages from 1 to 99 (with built-in rounding logic). Count control system: It precisely controls the number of samples through sampling logic and automatically terminates the sampling process after reaching the specified number of samples.
[0029] The results of the four strategies are intersected by a logical AND gate to generate the final sample set.
[0030] 4. Sampling range limitation system: The system automatically generates time window parameters based on the detection cycle. For example, daily detection corresponds to the timestamp range of 0:00-24:00 of the previous day. The system embeds this range into the sampling process through time sequence logic to ensure the accuracy of data selection.
[0031] 5. Trigger Execution System: After each detection cycle ends, the system receives a cycle completion signal and triggers a sampling operation. Simultaneously, the sampling results are stored in the database, and the system is notified for further processing.
[0032] Compared with the prior art, the advantages of the embodiments of the present invention are at least as follows: 1. Enhanced Compliance and Reliability through High Efficiency and Automation: The system achieves fully automated processing of the authorization and compliance process through a three-level logic system in the template annotation module (such as automatic format verification and feature annotation) and a trigger execution system in the sampling detection module. This reduces human intervention and avoids subjective errors. At the same time, the built-in binary feature code and period conversion logic ensure accurate and efficient detection, meeting the stringent security and reliability requirements of highly regulated scenarios such as banks. 2. Flexible configuration to adapt to complex business scenarios: The solution supports full vector or segmented execution modes and integrates a multi-dimensional sampling strategy system (such as time masking, subject matching, and percentage sampling), allowing dynamic adjustment of detection parameters based on business complexity. This design optimizes resource allocation through a logic AND gate combination strategy, ensuring efficient operation in different cycles and scenarios (such as daily / weekly sampling), thus improving the system's applicability and scalability.
[0033] In summary, this embodiment, through the system design for the component call scenario described above, forms a complete closed loop for authorization compliance testing with the template annotation module and the sampling detection module. This ensures both the standardized processing of the authorization template and the accurate sampling detection of component calls, meeting the stringent compliance testing requirements of users under strict supervision.
[0034] A third embodiment of the present invention provides an electronic device, such as... Figure 4 As shown, it includes a memory and a processor, wherein the memory stores a computer program. The processor is used to execute the computer program to implement the sampling-based data element compliance detection method as described in the first embodiment.
[0035] A fourth embodiment of the present invention provides a computer-readable storage medium storing a computer program. The computer program is executed to implement the sampling-based data element compliance inspection method as described in the first embodiment.
[0036] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims. All of these forms are within the protection scope of this application.
Claims
1. A sampling-based data element compliance detection method, characterized in that, include: Step 1: Annotate the compliant authorization template to create an authorization template; Step 2: Conduct random checks on the authorization letters according to the configured sampling strategy; During the random inspection process, the authorization template is used to perform compliance checks on the authorization letter.
2. The sampling-based data element compliance detection method according to claim 1, characterized in that, The process of annotating compliant authorization templates to form authorization templates includes: Obtain the authorization template file, check the integrity and compliance of the template file, and after passing the verification, store the data in the file system and generate a unique template ID; Extract and label key elements from the current data, convert the labeling results into binary feature codes, establish a mapping relationship with the system's built-in compliance detection operators, and store them in the system; After annotation is completed, the current template will be activated, and the aforementioned feature codes will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance determination.
3. The sampling-based data element compliance detection method according to claim 2, characterized in that, The authorization letters are sampled according to the configured sampling strategy, using one or more of the following strategies: Time range selection: After receiving the time parameter, a binary mask for the corresponding interval is generated to filter the component call records within that range; Subject identifier matching: Quickly match multiple input subject identifiers; Percentage sampling: Implements pseudo-random number generation, performing random sampling based on integer percentages from 1 to 99; Number of items controlled: The sampling number is precisely controlled through sampling logic, and the sampling process is automatically terminated after the specified number of items is reached.
4. A sampling-based data element compliance testing device, characterized in that, include: The template annotation module is configured to annotate compliant authorization templates to create authorization templates; The sampling inspection module is configured to conduct random inspections of authorization letters according to the configured sampling strategy. During the random inspection process, the authorization template is used to perform compliance checks on the authorization letter.
5. The sampling-based data element compliance testing device according to claim 4, characterized in that, The template annotation module is further configured as follows: Obtain the authorization template file, check the integrity and compliance of the template file, and after passing the verification, store the data in the file system and generate a unique template ID; Extract and label key elements from the current data, convert the labeling results into binary feature codes, establish a mapping relationship with the system's built-in compliance detection operators, and store them in the system; After annotation is completed, the current template will be activated, and the aforementioned feature codes will be synchronized to the detection benchmark library as a reference standard for subsequent authorization compliance determination.
6. The sampling-based data element compliance testing device according to claim 5, characterized in that, The sampling detection module is further configured as follows: Time range selection system: After receiving the time parameter, it generates a binary mask for the corresponding range and filters the component call records within that range; Subject identifier matching system: quickly matches multiple input subject identifiers; Percentage sampling system: generates pseudo-random numbers and performs random sampling based on integer percentages from 1 to 99; Count control system: It precisely controls the number of samples through sampling logic and automatically terminates the sampling process after reaching the specified number of samples.
7. An electronic device, characterized in that, include: A memory and a processor, the memory storing a computer program. The processor is used to execute the computer program to implement the sampling-based data element compliance inspection method as described in any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that, The medium stores a computer program. The computer program is executed to implement the sampling-based data element compliance inspection method as described in any one of claims 1 to 3.