Method, system, equipment and medium for generating special credit reports for market entities

Through blockchain and smart contract technology, combined with machine learning algorithms, special credit reports for market entities are automatically generated, which solves the problems of time, high cost and lack of unified standards in the traditional report generation process, and achieves efficient, accurate and credible reports. generate.

CN118520855BActive Publication Date: 2024-10-18SHANDONG INSPUR DIGITAL BUSINESS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410964275.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-18
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

The process of generating special credit reports for traditional market entities is time-consuming and cumbersome, with untimely information acquisition and human subjective factors, and lacks unified standards.

Method used

Blockchain technology is used for data storage and sharing, and reports are automatically generated by combining smart contracts and machine learning algorithms (such as K-means clustering and support vector machines) to ensure data transparency, security and the authenticity and credibility of reports.

Benefits of technology

It improves the efficiency of report generation, reduces time and cost consumption, reduces cumbersome processes, achieves unified standards, eliminates human subjective factors, ensures the accuracy and credibility of reports, and achieves transparency and non-tamperability of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520855B_ABST
    Figure CN118520855B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for generating special credit reports for market entities, and belongs to the technical field of blockchain and data processing. The technical problem to be solved by the present invention is how to realize the automatic generation of special credit reports for market entities with unified standards and improve the efficiency of report generation. The technical scheme adopted is: data collection, verification and cleaning: responsible departments in various fields obtain enterprise data information through diversified information channels of the Internet, and verify the accuracy and timeliness of the enterprise data information, and then clean the verified enterprise data information to obtain the cleaned enterprise data information; blockchain storage and sharing: blockchain technology is used to store enterprise data information on multiple nodes to form a distributed data storage system; and the market behavior information of enterprise entities is mined and analyzed to complete the field division; custom report templates; execute smart contracts to generate reports; report verification and tracing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain and data processing technology, and specifically to a method, system, device and medium for generating a special credit report for a market entity. Background Art

[0002] The traditional application process for special credit reports for market entities is as follows:

[0003] ① Fill in the application form: Fill in the application form, provide basic information of the individual or enterprise and the purpose of the special credit report of the market entity required.

[0004] ② Preparation of relevant materials: Prepare the relevant materials and documents that need to be submitted according to the application requirements.

[0005] ③ Material review and background investigation: After the application materials are submitted, the relevant departments or institutions will conduct a review to confirm the relevant market behavior records of the applicant or enterprise.

[0006] ④ Issuance of certification report: If the applicant or enterprise has no record of improper behavior, the relevant department or agency will issue a special credit report for the market entity and issue it to the applicant.

[0007] The traditional method consumes a lot of time and cost, has cumbersome procedures, does not obtain information in a timely manner, may involve subjective human factors, and lacks unified standards.

[0008] Therefore, how to automatically generate special credit reports for market entities with unified standards and improve the efficiency of report generation is a technical problem that needs to be solved urgently. Summary of the invention

[0009] The technical task of the present invention is to provide a method, system, device and medium for generating special credit reports for market entities, so as to solve the problem of how to automatically generate special credit reports for market entities with unified standards and improve the efficiency of report generation.

[0010] The technical task of the present invention is achieved in the following way: a method for generating a special credit report for a market entity, the method is as follows:

[0011] Data collection, verification and cleaning: Responsible departments in various fields obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain cleaned enterprise data information;

[0012] Blockchain storage and sharing: Using blockchain technology to store enterprise data information on multiple nodes to form a distributed data storage system, which means that data will not be controlled by a single node, and data is recorded on multiple nodes, increasing the transparency and credibility of data, recording and verifying data on each node, and enhancing data integrity and security; and completing the field division of enterprise entity market behavior information mining and analysis;

[0013] Custom report templates: Generate corresponding report templates according to field divisions;

[0014] Execute smart contracts to generate reports: Use the smart contract programming language (Solidity) to write code, set report generation rules through the code (for example, determine whether the subject exists), and the instructions and operations in the code are executed on the blockchain platform in sequence according to the pre-set rules. Extract the data of corporate market misconduct on the blockchain. If there is misconduct information data in the corporate subject market, the data is output and a PDF report is generated according to the report template configuration format, and the report hash code, applicant and generation time information are recorded;

[0015] Report verification and traceability: Through the decentralized nature of blockchain, each node records the generation and modification process of the report to ensure the authenticity and credibility of the report.

[0016] As a preference, an access control mechanism is used when storing and sharing blockchain. The access control mechanism controls permissions through the user's unit, and only users with corresponding permissions can access and modify data. Access log records are set to record all access and data modification behaviors to facilitate subsequent verification and tracing.

[0017] As a priority, the areas of mining and analyzing the market behavior information of corporate entities are divided as follows:

[0018] K-means clustering algorithm is an unsupervised learning algorithm that groups data according to similarity. K-means clustering algorithm is used to process enterprise data, identify the fields in the data, and then divide the data into different clusters, each cluster represents a field, which facilitates the classification and organization of data in different fields. Among them, the K-means clustering algorithm is used to divide the fields according to the data source unit. The formula is as follows:

[0019] ;

[0020] in, Indicates Item data; Indicates the unit of data origin; The label representing the cluster; Represents the weight of the data point, which is used to adjust the contribution of the corresponding data point to the distance of the cluster center point; Indicates the data source unit and cluster labels The distance between them; in the K-means clustering algorithm, the cluster center with the closest distance is assigned to , and then recalculate the cluster centers until convergence;

[0021] Use classification algorithms to identify whether data contains improper behavior information: Classification algorithms are supervised learning algorithms that classify data based on known labels; use classification algorithms to identify improper behavior in corporate data information and classify corporate data information into different categories to ensure that corporate entities can be quickly and accurately identified as to whether they contain records of market improper behavior, thereby improving the accuracy and efficiency of reports; among them, support vector machine algorithms are used to classify whether corporate entities contain information on market improper behavior, in the following format:

[0022] ;

[0023] If the corporate entity contains information about market misconduct, ;

[0024] If the corporate entity does not contain information on market misconduct, then ;

[0025] Among them, w represents the weight vector; x represents the feature vector; b represents the bias term; y represents the label, indicating whether the corporate entity contains information about market misconduct. The optimal weight vector and bias term are learned through the training data set, and the optimal weight vector and bias term are used to classify new data.

[0026] As a preference, the custom report template is as follows:

[0027] Domain configuration: The specific rules and requirements for report generation are clarified based on the domain information. The specific rules for report generation include the content of the report, the format of the report, and the standards of the report. The specific rules for report generation are used as part of the smart contract to guide the generation of the report.

[0028] Domain data binding: bind the domain and data according to the data item configuration to obtain domain configuration information;

[0029] Report configuration: Design the report's typesetting and layout through report template configuration, use rich text editing to insert watermark images, headers and footers, and control the size of the text and title text; then configure the data in the API interface provided by the blockchain platform, and choose to display it in the report in a list or summary text.

[0030] As a preferred method, the smart contract is executed to generate a report as follows:

[0031] (1) The enterprise entity submits a report application;

[0032] (2) Determine whether the enterprise entity exists:

[0033] ①If yes, proceed to step (3);

[0034] ②If not, jump to step (8);

[0035] (3) Obtain enterprise market information through blockchain API;

[0036] (4) Determine whether the enterprise's market information contains improper behavior:

[0037] ①If yes, go to step (5);

[0038] ②If not, jump to step (8);

[0039] (5) Output data according to the report template and generate a PDF report;

[0040] (6) Generate a report record and report information from the report and store them in the blockchain; the report record includes a hash value of the report;

[0041] (7) Output PDF report;

[0042] (8) End.

[0043] Preferably, the code instructions and operations for executing the smart contract to generate a report are as follows:

[0044] In Java, the code instruction gasProvider.transfer(contractAddress, data,parameterMap) is used to complete the operation of calling the smart contract function using the web3j library;

[0045] Use the code command yarn add pdf-lib to complete the smart contract installation and import the required libraries and dependencies;

[0046] The operation of defining the data structure is completed through the code instruction struct BlockchainData, that is, the structure or variable used to store blockchain data is defined in the smart contract;

[0047] Use the code instruction uint balance = web3.eth.getBalance(msg.sender) to complete the operation of calling the blockchain API to obtain data;

[0048] The operation of writing data into the report template is completed through the code instruction function generateReport() public, that is, according to the format and requirements of the PDF report template, the obtained data is written into the PDF report template using the string operation and formatting methods of Solidity;

[0049] The operation of generating a PDF report is completed through the code instruction pdfLib.generatePDF(), that is, the PDF report template and data are merged to generate a PDF report using the function or method provided by the PDF library.

[0050] Preferably, report verification and traceability are as follows: the corporate entity uploads the PDF report to the blockchain platform, and the blockchain platform verifies the authenticity or editing of the PDF report through the blockchain, making it convenient for relevant departments or institutions to verify the authenticity and compliance of the report.

[0051] A market subject special credit report generation system, the system is used to implement the above market subject special credit report generation method, the system comprises:

[0052] The data collection, verification and cleaning module is used by responsible departments in various fields to obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain the cleaned enterprise data information;

[0053] The blockchain storage and sharing module is used to store enterprise data information on multiple nodes using blockchain technology to form a distributed data storage system. This means that data will not be controlled by a single node, and data is recorded on multiple nodes, which increases the transparency and credibility of the data. Data is recorded and verified on each node to enhance the integrity and security of the data. It also mines and analyzes the market behavior information of enterprise entities to complete the field division.

[0054] Report template customization module, used to generate corresponding report templates according to field division;

[0055] Smart contract execution and report generation module, which is used to write code using the smart contract programming language (Solidity), set report generation rules through code (for example, determine whether the subject exists), and the instructions and operations in the code are executed on the blockchain platform in sequence according to the pre-set rules, extracting the enterprise market misconduct data on the blockchain. If there is misconduct information data in the enterprise subject market, the data is output and a PDF report is generated according to the report template configuration format, and the report hash code, applicant and generation time information are recorded;

[0056] The report verification and traceability module is used to record the generation and modification process of the report at each node through the decentralized characteristics of the blockchain to ensure the authenticity and credibility of the report.

[0057] An electronic device comprising: a memory and at least one processor;

[0058] Wherein, the memory stores a computer program;

[0059] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for generating a special credit report for a market entity as described above.

[0060] A computer-readable storage medium having a computer program stored therein, wherein the computer program can be executed by a processor to implement the method for generating a special credit report for a market entity as described above.

[0061] The method, system, device and medium for generating special credit reports for market entities of the present invention have the following advantages:

[0062] (1) The present invention realizes a method for generating special credit reports of market entities based on blockchain by mining and analyzing algorithms for enterprise market behavior information, smart contract technology based on blockchain, report verification and tracing, and data storage and access. This method not only improves the efficiency and credibility of report generation, reduces time and cost consumption, reduces cumbersome processes, improves the timeliness of information acquisition, eliminates human subjective factors, and achieves unified standards;

[0063] (ii) The present invention stores data on a data chain to ensure data transparency, symmetry, security, reliability, and durability;

[0064] (III) The present invention realizes a custom report template, and can customize the display content of the report according to business needs, realizing different display modes of reports in multiple business scenarios; at the same time, it can automatically generate reports, unify standards, ensure content standardization, and improve report generation efficiency;

[0065] (IV) The present invention uses blockchain and smart contract technology to ensure the security and transparency of data, achieve the immutability and traceability of reports, and greatly improve the efficiency and accuracy of generating certification reports;

[0066] (V) The present invention can ensure data security for the enterprise entity. The responsible department in the field can view and verify the source and historical records of the data, which increases the credibility of the report. Through the automatic execution of smart contracts, the efficiency and accuracy of the generation of proof reports are greatly improved. The cumbersome manual operation and review process are no longer required, which improves the accuracy and consistency of the data. At the same time, the traceability and credibility verification of the report are realized. The immutability and traceability of the blockchain enable the proof report to be traced back to the source, ensuring the authenticity and credibility of the proof.

[0067] (VI) The present invention is conducive to unifying the standards of special certificates for market entities, reducing the problem of non-standard conditions and procedures in the process of issuing certificates by individual departments, and is also conducive to reducing the burden of departments in issuing various certificates, improving administrative efficiency, and helping business entities to achieve "one-click application, one-paper replacement, and one-second" issuance in matters such as corporate listing, administrative management, application for preferential treatment, and business activities, and to achieve "online, anytime, real-time, and free" special credit reports for market entities, providing business entities with a more convenient, efficient, and reliable way of certification, and making positive contributions to promoting economic development and facilitating business activities.

[0068] It has the characteristics of reasonable design, simple structure, easy processing, small size, convenient use, and multiple uses. Therefore, it has good promotion and use value. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The present invention is further described below in conjunction with the accompanying drawings.

[0070] Attached Figure 1 A flowchart of a method for generating a special credit report for a market entity;

[0071] Attached Figure 2 Schematic diagram of the process of generating reports for executing smart contracts;

[0072] Attached Figure 3 A flowchart for customizing report templates. DETAILED DESCRIPTION

[0073] The method, system, device and medium for generating a special credit report for a market entity of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments of the specification.

[0074] Embodiment 1: As attached Figure 1 As shown, this embodiment provides a method for generating a special credit report for a market entity, and the method is specifically as follows:

[0075] S1. Data collection, verification and cleaning: Responsible departments in various fields obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain cleaned enterprise data information;

[0076] S2. Blockchain storage and sharing: Using blockchain technology to store enterprise data information on multiple nodes to form a distributed data storage system, which means that data will not be controlled by a single node, and data is recorded on multiple nodes, increasing the transparency and credibility of the data, recording and verifying data on each node, and enhancing the integrity and security of the data; and completing the field division of the mining and analysis of the market behavior information of the enterprise entity;

[0077] S3. Customized report template: Generate corresponding report template according to field division;

[0078] S4. Execute smart contracts to generate reports: Use the smart contract programming language (Solidity) to write code, set report generation rules through the code (for example, determine whether the subject exists), and the instructions and operations in the code are executed on the blockchain platform in sequence according to the pre-set rules. Extract the data of corporate market misconduct on the blockchain. If there is misconduct information data in the corporate subject market, the data is output and a PDF report is generated according to the report template configuration format, and the report hash code, applicant and generation time information are recorded;

[0079] S5. Report verification and traceability: Through the decentralized nature of blockchain, each node records the generation and modification process of the report to ensure the authenticity and credibility of the report.

[0080] When the blockchain in step S2 of this embodiment is stored and shared, an access control mechanism is adopted. The access control mechanism controls the authority through the unit to which the user belongs. Only users with corresponding authority can access and modify the data; and an access log record is set to record all access and modification behaviors of the data to facilitate subsequent verification and tracing.

[0081] The specific division of the areas of mining and analyzing the market behavior information of the enterprise subject in step S2 of this embodiment is as follows:

[0082] S201. K-means clustering algorithm is an unsupervised learning algorithm that groups data according to similarity. K-means clustering algorithm is used to process enterprise data, identify the fields in the data, and then divide the data into different clusters, each cluster represents a field, so as to facilitate the classification and organization of data in different fields. Among them, the fields are divided according to the data source unit by K-means clustering algorithm, and the formula is as follows:

[0083] ;

[0084] in, Indicates Item data; Indicates the unit of data origin; The label representing the cluster; Represents the weight of the data point, which is used to adjust the contribution of the corresponding data point to the distance of the cluster center point; Indicates the data source unit and cluster labels The distance between them; in the K-means clustering algorithm, the cluster center with the closest distance is assigned to , and then recalculate the cluster centers until convergence;

[0085] S202. Use classification algorithms to identify whether data contains improper behavior information: Classification algorithms are supervised learning algorithms that classify data based on known labels. Classification algorithms are used to identify improper behavior in corporate data information and classify corporate data information into different categories to ensure rapid and accurate identification of whether corporate entities contain records of market improper behavior, thereby improving the accuracy and efficiency of reports. Among them, support vector machine algorithms are used to classify whether corporate entities contain market improper behavior information in the following format:

[0086] ;

[0087] If the corporate entity contains information about market misconduct, ;

[0088] If the corporate entity does not contain information on market misconduct, then ;

[0089] Among them, w represents the weight vector; x represents the feature vector; b represents the bias term; y represents the label, indicating whether the corporate entity contains information about market misconduct. The optimal weight vector and bias term are learned through the training data set, and the optimal weight vector and bias term are used to classify new data.

[0090] The custom report template in step S3 of this embodiment is as follows:

[0091] S301, domain configuration: clarify the specific rules and requirements for report generation based on domain information. The specific rules for report generation include the content of the report, the format of the report and the standard of the report. The specific rules for report generation are used as part of the smart contract to guide the generation of the report.

[0092] S302, domain data binding: bind the domain and data according to the data item configuration to obtain domain configuration information;

[0093] S303, Report Configuration: Design the report’s typesetting and layout through report template configuration, use rich text editing to insert watermark images, headers and footers of various types of elements, and control the size of the body and title text; then configure the data in the API interface provided by the blockchain platform, and choose to display it in the report in a list or summary text.

[0094] The specific details of the smart contract execution report generation in step S4 of this embodiment are as follows:

[0095] (1) The enterprise entity submits a report application;

[0096] (2) Determine whether the enterprise entity exists:

[0097] ①If yes, proceed to step (3);

[0098] ②If not, jump to step (8);

[0099] (3) Obtain enterprise market information through blockchain API;

[0100] (4) Determine whether the enterprise's market information contains improper behavior:

[0101] ①If yes, go to step (5);

[0102] ②If not, jump to step (8);

[0103] (5) Output data according to the report template and generate a PDF report;

[0104] (6) Generate a report record and report information from the report and store them in the blockchain; the report record includes a hash value of the report;

[0105] (7) Output PDF report;

[0106] (8) End.

[0107] The code instructions and operations for executing the smart contract to generate a report in step S4 of this embodiment are as follows:

[0108] S401. In Java, the operation of calling the smart contract function using the web3j library is completed through the code instruction gasProvider.transfer(contractAddress, data,parameterMap);

[0109] S402. Complete the operation of installing the smart contract and introducing the required libraries and dependencies through the code instruction yarn add pdf-lib;

[0110] S403, completing the operation of defining the data structure through the code instruction struct BlockchainData, that is, defining a structure or variable for storing blockchain data in the smart contract;

[0111] S404. Complete the operation of calling the blockchain API to obtain data through the code instruction uint balance = web3.eth.getBalance(msg.sender);

[0112] S405. Complete the operation of writing data into the report template through the code instruction function generateReport() public, that is, write the acquired data into the PDF report template using the string operation and formatting method of Solidity according to the format and requirements of the PDF report template;

[0113] S406 , completing the operation of generating a PDF report through the code instruction pdfLib.generatePDF(), that is, using the function or method provided by the PDF library to merge the PDF report template and the data to generate a PDF report.

[0114] The report verification and traceability in step S5 of this embodiment are specifically as follows: the enterprise entity uploads the PDF report to the blockchain platform, and the blockchain platform verifies the authenticity or editing of the PDF report through the blockchain, so as to facilitate relevant departments or institutions to verify the authenticity and compliance of the report.

[0115] Embodiment 2: This embodiment provides a market subject special credit report generation system, which is used to implement the market subject special credit report generation method in Embodiment 1, and the system includes:

[0116] The data collection, verification and cleaning module is used by responsible departments in various fields to obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain the cleaned enterprise data information;

[0117] The blockchain storage and sharing module is used to store enterprise data information on multiple nodes using blockchain technology to form a distributed data storage system. This means that data will not be controlled by a single node, and data is recorded on multiple nodes, which increases the transparency and credibility of the data. Data is recorded and verified on each node to enhance the integrity and security of the data. It also mines and analyzes the market behavior information of enterprise entities to complete the field division.

[0118] Report template customization module, used to generate corresponding report templates according to field division;

[0119] Smart contract execution and report generation module, which is used to write code using the smart contract programming language (Solidity), set report generation rules through code (for example, determine whether the subject exists), and the instructions and operations in the code are executed on the blockchain platform in sequence according to the pre-set rules, extracting the enterprise market misconduct data on the blockchain. If there is misconduct information data in the enterprise subject market, the data is output and a PDF report is generated according to the report template configuration format, and the report hash code, applicant and generation time information are recorded;

[0120] The report verification and traceability module is used to record the generation and modification process of the report at each node through the decentralized characteristics of the blockchain to ensure the authenticity and credibility of the report.

[0121] Embodiment 3: This embodiment also provides an electronic device, including: a memory and a processor;

[0122] Wherein, the memory stores computer-executable instructions;

[0123] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for generating a special credit report for a market entity in any embodiment of the present invention.

[0124] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.

[0125] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.

[0126] Embodiment 4: This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the method for generating a special credit report for a market entity in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0127] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0128] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code may be downloaded from a server computer via a communication network.

[0129] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0130] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a special credit report for a market entity, characterized in that: The method is as follows: Data collection, verification and cleaning: Responsible departments in various fields obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain cleaned enterprise data information; Blockchain storage and sharing: Use blockchain technology to store enterprise data information on multiple nodes to form a distributed data storage system, record and verify data on each node, enhance data integrity and security; and complete field division by mining and analyzing the market behavior information of enterprise entities; Custom report templates: Generate corresponding report templates according to field divisions; Execute smart contracts to generate reports: Use smart contract programming languages ​​to write codes, set report generation rules through codes, and execute the instructions and operations in the codes on the blockchain platform in sequence according to the pre-set rules. Extract the data of corporate market misconduct on the blockchain. If there is misconduct information data in the corporate market, output the data and generate a PDF report according to the report template configuration format, and record the report hash code, applicant and generation time information; Report verification and traceability: Through the decentralized nature of blockchain, each node records the generation and modification process of the report to ensure the authenticity and credibility of the report; Among them, the areas of mining and analyzing the market behavior information of corporate entities are divided into the following specific areas: The K-means clustering algorithm is used to process enterprise data, identify the fields in the data, and then divide the data into different clusters. Each cluster represents a field, which facilitates the classification and organization of data in different fields. Among them, the K-means clustering algorithm is used to divide the fields according to the data source unit. The formula is as follows: ; in, Indicates Item data; Indicates the unit of data origin; The label representing the cluster; Represents the weight of the data point, which is used to adjust the contribution of the corresponding data point to the distance of the cluster center point; Indicates the data source unit and cluster labels The distance between them; in the K-means clustering algorithm, the cluster center with the closest distance is assigned to , and then recalculate the cluster centers until convergence; Use classification algorithms to identify whether the data contains improper behavior information: Use classification algorithms to identify improper behavior in corporate data information and classify corporate data information into different categories to ensure that whether the corporate entity contains records of market improper behavior can be quickly and accurately identified; Among them, the support vector machine algorithm is used to classify whether the corporate entity contains market improper behavior information, in the following form: ; If the corporate entity contains information about market misconduct, ; If the corporate entity does not contain information on market misconduct, then ; Among them, w represents the weight vector; x represents the feature vector; b represents the bias term; y represents the label, indicating whether the corporate entity contains information about market misconduct. The optimal weight vector and bias term are learned through the training data set, and the optimal weight vector and bias term are used to classify new data.

2. The method for generating a special credit report for a market entity according to claim 1, characterized in that: When blockchain is stored and shared, an access control mechanism is used. The access control mechanism controls permissions through the user's unit. Only users with corresponding permissions can access and modify data. Access log records are set to record all access and modification of data.

3. The method for generating a special credit report for a market entity according to claim 1, characterized in that: The custom report templates are as follows: Domain configuration: The specific rules and requirements for report generation are clarified based on the domain information. The specific rules for report generation include the content of the report, the format of the report, and the standards of the report. The specific rules for report generation are used as part of the smart contract to guide the generation of the report. Domain data binding: bind the domain and data according to the data item configuration to obtain the domain configuration information; Report configuration: Design the report's typesetting and layout through report template configuration, use rich text editing to insert watermark images, headers and footers, and control the size of the text and title text; then configure the data in the API interface provided by the blockchain platform, and choose to display it in the report in a list or summary text.

4. The method for generating a special credit report for a market entity according to claim 1, characterized in that: The report generated by executing the smart contract is as follows: (1) The enterprise entity submits a report application; (2) Determine whether the enterprise entity exists: ①If yes, go to step (3); ②If not, jump to step (8); (3) Obtain enterprise market information through blockchain API; (4) Determine whether the enterprise's market information contains improper behavior: ①If yes, go to step (5); ②If not, jump to step (8); (5) Output data according to the report template and generate a PDF report; (6) Generate a report record and report information from the report and store them in the blockchain; the report record includes a hash value of the report; (7) Output PDF report; (8) End.

5. The method for generating a special credit report for a market entity according to claim 1, characterized in that: The code instructions and operations for executing the smart contract to generate a report are as follows: In Java, the code instruction gasProvider.transfer(contractAddress, data,parameterMap) is used to complete the operation of calling the smart contract function using the web3j library; Use the code command yarn add pdf-lib to complete the smart contract installation and import the required libraries and dependencies; The operation of defining the data structure is completed through the code instruction struct BlockchainData, that is, the structure or variable used to store blockchain data is defined in the smart contract; Use the code instruction uint balance = web3.eth.getBalance(msg.sender) to complete the operation of calling the blockchain API to obtain data; The operation of writing data into the report template is completed through the code instruction function generateReport() public, that is, according to the format and requirements of the PDF report template, the obtained data is written into the PDF report template using the string operation and formatting methods of Solidity; The operation of generating a PDF report is completed through the code instruction pdfLib.generatePDF(), that is, the PDF report template and data are merged to generate a PDF report using the function or method provided by the PDF library.

6. The method for generating a special credit report for a market entity according to any one of claims 1 to 5, characterized in that: Report verification and traceability are as follows: the corporate entity uploads the PDF report to the blockchain platform, and the blockchain platform verifies the authenticity or editing of the PDF report through the blockchain, making it convenient for relevant departments or institutions to verify the authenticity and compliance of the report.

7. A market subject special credit report generation system, characterized in that: The system is used to implement the method for generating a special credit report for a market entity as described in any one of claims 1 to 6, and the system comprises: The data collection, verification and cleaning module is used by responsible departments in various fields to obtain enterprise data information through diversified information channels on the Internet, verify the accuracy and timeliness of enterprise data information, and then clean the verified enterprise data information to obtain the cleaned enterprise data information; The blockchain storage and sharing module is used to store enterprise data information on multiple nodes using blockchain technology to form a distributed data storage system, record and verify data on each node, and enhance data integrity and security; and complete the field division by mining and analyzing the market behavior information of enterprise entities; Report template customization module, used to generate corresponding report templates according to field division; Smart contract execution and report generation module, which is used to write codes using smart contract programming language, set report generation rules through codes, and execute the instructions and operations in the codes on the blockchain platform in sequence according to the pre-set rules, extract the data of improper market behavior of enterprises on the blockchain, and if there is improper behavior information data in the market of the enterprise subject, the data will be output and a PDF report will be generated according to the report template configuration format, and the report hash code, applicant and generation time information will be recorded; The report verification and traceability module is used to record the generation and modification process of the report at each node through the decentralized characteristics of the blockchain to ensure the authenticity and credibility of the report.

8. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for generating a special credit report for a market entity as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the method for generating a special credit report for a market entity as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Credit investigation report generation method based on block chain and related system

    CN111367903A

  • Report generation method and device based on block chain, electronic equipment and storage medium

    CN113158207A