Examination data processing method and device, storage medium and program product
By introducing a blockchain system to the art professional examination platform to check the integrity of the examination audio and video data and put the score data on the chain to store evidence, the problems of data loss and separation of examination and evaluation are solved, and the security and integrity of the data are achieved.
Patent Information
- Application Number
- CN202410174298.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-08-08
AI Technical Summary
The existing art professional examination platform has a risk of data loss during data transmission, and does not meet the guidance requirements for the separation of examinations and evaluations, and cannot guarantee the security and integrity of examination data.
The blockchain system is used to verify the integrity of the examination audio and video data, and store metadata and hash values through smart contracts to ensure the consistency and immutability of the data, and the scoring process is put on the chain to store evidence to achieve data transparency and fairness.
It improves the security and integrity of the examination platform data, meets the standardized management requirements of art professional examinations, and ensures the immutability and traceability of the data.
Smart Images

Figure CN120449196A_ABST
Abstract
Description
Technical Field
[0001] This application relates to vertical industry fields, and in particular to an examination data processing method, device, storage medium and program product. Background Art
[0002] Art professional examinations are an important component of deepening the reform of the examination and enrollment system, and are also a key means for the country to select and cultivate professional art talents. Provincial examination authorities are the administrative bodies for art professional examinations, and schools are the implementing bodies for art examinations. In the actual construction of art professional examination platforms, there are generally two options: Option 1, the platform is centrally built by the provincial examination authority, and the school serves as the examination site, deploying only the hardware equipment. Option 2, the platform is deployed locally at the school, and the examination results and scoring results are transmitted to the provincial examination authority through compliant channels for unified archiving. However, the current examination platform still lacks the level of protection for examination data, and data security is low. Summary of the Invention
[0003] The embodiments of the present application provide a test data processing method, device, storage medium and program product, which can effectively improve the security and integrity of test platform data.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for processing examination data, which is applied to a blockchain system. The method includes:
[0006] receiving first metadata of a first work sent by a test center, and sending a first identifier generated based on the first metadata to the test center;
[0007] Receiving second metadata and the first identifier generated based on the first work and sent by the cloud;
[0008] Verify whether the second metadata is consistent with the first metadata based on the first identifier, and send a first verification result to the cloud.
[0009] In a second aspect, an embodiment of the present application provides a method for processing test data, which is applied to a test center end of a test system, and the method includes:
[0010] Uploading first metadata generated based on the first work to the blockchain system;
[0011] Receive a first identifier of the first work generated by the blockchain system, and upload the first identifier and the first work to the cloud.
[0012] In a third aspect, an embodiment of the present application provides a method for processing test data, which is applied to a cloud-based test system. The method includes:
[0013] Receiving a first work and a first identifier corresponding to the first work sent by the test center;
[0014] The first identifier and second metadata generated based on the first work are sent to a blockchain system, and a first verification result sent by the blockchain system is received; wherein the first verification result is a result of the blockchain system verifying whether the first metadata is consistent with the second metadata based on the first identifier.
[0015] In a fourth aspect, an embodiment of the present application provides a test data processing method, which is applied to a scoring system, and the method includes:
[0016] If the first verification result of the blockchain system is that the first metadata sent by the test site is consistent with the second metadata sent by the cloud, obtaining a video stream address generated by the cloud based on the first work;
[0017] Obtain first rating data of the first work uploaded to the video stream address, and upload the determined third metadata corresponding to the first rating data to the blockchain system.
[0018] In a fifth aspect, an embodiment of the present application provides a method for processing examination data, which is applied to an examination platform, wherein the examination platform includes an examination system, a blockchain system, and a scoring system, and the examination system includes an examination site and a cloud. The method includes:
[0019] The blockchain system receives first metadata of the first work generated at the test center, and returns a first identifier corresponding to the first metadata to the test center;
[0020] The blockchain system receives the second metadata of the first work generated in the cloud, and the first identifier sent by the test center to the cloud;
[0021] The blockchain system verifies, based on the first identifier, that the second metadata is consistent with the first metadata, and then uses the rating system to rate the first work.
[0022] In a sixth aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor; when the processor executes the program, the above-mentioned test data processing method is implemented.
[0023] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for implementing the above-mentioned examination data processing method when executed by a processor.
[0024] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising a computer program or instructions, characterized in that when the computer program or instructions are executed by a processor, the steps of the above-mentioned examination data processing method are implemented.
[0025] The present application provides a method, device, storage medium, and program product for processing test data. The method includes: receiving first metadata of a first work sent by a test center, and sending a first identifier generated based on the first metadata to the test center; receiving second metadata and the first identifier generated based on the first work sent by the cloud; verifying whether the second metadata is consistent with the first metadata based on the first identifier, and sending the first verification result to the cloud. By verifying the first metadata and the second metadata of the first work based on the first identifier through a blockchain system, the consistency of the second metadata in the cloud and the first metadata at the test center can be ensured, effectively improving the security and integrity of the test platform data. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings herein are incorporated into and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, serve to illustrate the technical solutions of the present application. Obviously, the drawings described below are merely some embodiments of the present application. Those skilled in the art can, without inventive effort, derive other drawings from these drawings.
[0027] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0028] Figure 1 An optional test data processing method provided in this embodiment of the present application is provided as a test platform process diagram Figure 1 ;
[0029] Figure 2 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 2 ;
[0030] Figure 3 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 3 ;
[0031] Figure 4 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 4 ;
[0032] Figure 5A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 5 ;
[0033] Figure 6 An optional test data processing method provided in this embodiment of the present application is provided as an example of a test process diagram Figure 6 ;
[0034] Figure 7 A schematic diagram of a scoring process of an optional test data processing method provided in an embodiment of the present application Figure 7 ;
[0035] Figure 8 A schematic diagram of the score checking process of an optional test data processing method provided in the embodiment of the present application Figure 8 ;
[0036] Figure 9 A schematic diagram of the review process of an optional test data processing method provided in the embodiment of the present application Figure 9 ;
[0037] Figure 10 A schematic diagram of the structure of an examination data processing device provided in an embodiment of the present application Figure 1 ;
[0038] Figure 11 A schematic diagram of the structure of an examination data processing device provided in an embodiment of the present application Figure 2 ;
[0039] Figure 12 A schematic diagram of the structure of an examination data processing device provided in an embodiment of the present application Figure 3 ;
[0040] Figure 13 A schematic diagram of the structure of an examination data processing device provided in an embodiment of the present application Figure 4 ;
[0041] Figure 14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be described in further detail below in conjunction with the accompanying drawings in the embodiments of the present application. The following examples are used to illustrate the present application, but are not intended to limit the scope of the present application. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the technical field of the present application. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0043] It should be understood that in the following description, references to "one embodiment," "an embodiment," or "some embodiments" throughout the specification mean that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. Therefore, the appearance of "in one embodiment," "in an embodiment," or "some embodiments" throughout the specification does not necessarily refer to the same embodiment. Furthermore, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments without conflict.
[0044] It should be understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similar aspects can refer to each other. For the sake of brevity, this article will not go into details.
[0045] If similar descriptions of "first / second" appear in the application documents, the following explanation is added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0046] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the embodiments of the present application belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0047] To facilitate understanding of this solution, before describing the embodiments of the present application, the application background of the embodiments of the present application will be described.
[0048] Art exams are an important component of the deepening reform of the examination and enrollment system and a crucial way for the country to select and cultivate professional art talent. Provincial examination authorities are the administrative bodies for art exams, while schools are the implementing bodies.
[0049] There are generally two options for the actual construction of art professional examination platforms: Option 1, the platform is uniformly built by the provincial examination authority, including the examination system and the scoring system, and deployed in the examination authority or the examination management agency authorized by the examination authority. The school serves as the examination site and only deploys hardware equipment such as cameras and microphones. Examination staff access the platform system address through a terminal (such as a PC browser) to manage the examination process. Relational data (such as examination room information, candidate information, examination records, etc.) are directly generated on the platform and stored in the relational database, and the examination audio and video data collected by the equipment are directly streamed to the provincial examination authority examination platform through the public network or private network. In this way, a standardized platform can be used to provide unified services for the examination process for multiple art enrollment schools in the province, as well as unified management of examination data, thereby ensuring the authority and openness of the examination.
[0050] In option two, the platform is deployed locally at the school, with cameras, microphones and other hardware connected to the local examination system. Examination staff and examiners access the school's local system to arrange examination rooms and manage examination affairs. The system collects and processes raw audio and video data locally and stores it in the school's computer room. Professional judges also provide real-time scoring on-site at the school. Finally, the examination results and scoring results are transmitted to the provincial examination authority through other compliant channels for unified archiving.
[0051] The above-mentioned existing technical solutions are all first-level architectures, and have the following shortcomings: For the above-mentioned solution one, the platform is uniformly built by the provincial examination institutes and provides SAAS services. Schools in each province only need to configure hardware such as cameras or microphones. The hardware and the platform are not in the same intranet. Audio and video data are streamed to the cloud (i.e., the examination institute's examination platform) through the public or private network. If there is a network anomaly or cloud system problem, the test data may be lost, and the integrity of the test results cannot be guaranteed. For example, if the video recording service fails, it may cause the recording of dance videos, reading audio, etc. to fail, resulting in the loss of test data. This is also a major concern of the provincial examination institutes for the unified construction of the art examination platform.
[0052] In the second solution, the platform is built by the school, and the exam scoring process is conducted entirely on the school's local system. The resulting exam-related data, audio and video data, is also stored locally. This makes it impossible to standardize the process and data management as required by the Examination Authority, resulting in a lack of fairness. Furthermore, this architecture is deployed on the school intranet, often requiring judges to be present at the school for real-time scoring, which does not comply with the current Examination Authority's guidance on "separation of examination and assessment" for art exams. Therefore, the current exam platform carries the risk of data loss and does not meet the current Examination Authority's guidance on "separation of examination and assessment" for art exams.
[0053] To address the above issues, the present application proposes a method for processing test data. This method is applied to a test platform, which includes three systems: a test system, a scoring system, and a blockchain system. The test system is divided into a cloud side and a test site side. The details are as follows:
[0054] Cloud: Deployed in the provincial examination authority, it realizes unified examination room management, candidate management, examiner management, audio and video channel management, and audio and video data storage streaming and other functions. It opens tenants for schools across the province that need to use the service, serves schools across the province, and provides a user-friendly web interface for school examination staff to perform examination room and examination-related operations; remotely configures the examination center end; uniformly manages the examination audio and video data uploaded by the examination center end, adopts cluster storage to ensure high data availability, and uses nginx-rtmp, ffmpeg and other programs to stream audio and video, converting mp4, flv, wav, mp3 and other files into hls streaming media for the scoring system to obtain the streaming media address; after the audio and video data is uploaded, the blockchain system is called to verify the integrity of the audio and video data reported by the examination center.
[0055] The test site is deployed at the school and managed by the cloud. It connects to local cameras, microphones, and other devices through the school intranet to implement edge computing. This includes local recording, storage, and processing of videos and audio recorded at the school test site. The system uses the blockchain system to store metadata on the blockchain. Internal communication mechanisms maintain a connection with the cloud to ensure timely response to commands and synchronized data upload. School examination staff do not directly access the test site end of the examination system; instead, they manage the site remotely through a cloud address. The test site and the cloud ensure the integrity of the exam audio and video data by calling the blockchain system. Through the collaborative interaction of these three systems, standardized process management services and unified management of exam data are provided for art exams, meeting the requirements of professional art exams.
[0056] Blockchain system: Deployed at the provincial examination authority, it implements block packaging and on-chain data management. It uses smart contracts to store the metadata and hash values of exam audio and video files, allowing the cloud to verify the integrity of audio and video data uploaded by the test center. In addition, the scoring metadata of the scoring system is also stored on-chain.
[0057] Scoring system: Deployed at the provincial examination authority, it provides professional judges or experts with access to examination works, supports scoring of works, records the scoring process and results, and calls the blockchain system to upload scoring metadata to the chain to ensure transparency and fairness of scoring.
[0058] Figure 1 An optional test data processing method provided in this embodiment of the present application is provided as a test platform process diagram Figure 1 ,like Figure 1As shown, the exam system-cloud, deployed at the provincial examination authority, allows school-based exam site staff to access the system through a client to perform exam-related operations. The exam system-cloud allows for remote configuration of the exam system-site and allows for querying scoring records from the scoring system. The exam system-site, deployed at the school, stores and processes audio and video streams transmitted by cameras or microphones, registers the exam site, synchronizes audio and video with the exam system-cloud, and uploads exam metadata to the blockchain system. The blockchain system, deployed at the provincial examination authority, implements block packaging and on-chain data management, and is also used to verify the integrity of exam system-cloud requests. The scoring system, deployed at the provincial examination authority, allows expert judges to access and score exam works through a client, record the scoring process and results, generate scoring metadata, and then upload this metadata to the blockchain system.
[0059] This application embodiment provides a test data processing method, which is applied to a blockchain system. Figure 2 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 2 ,like Figure 2 As shown, the test data processing method of the present application can be implemented through S210, S220 and S230, specifically:
[0060] Step S210: Receive first metadata of a first work sent by a test center, and send a first identifier generated based on the first metadata to the test center.
[0061] Here, the first work is an audio file or video file recorded by the test site using a camera or microphone, wherein the audio file can be a file in a format such as wav or mp3, and the video file can be a file in a format such as mp4 or flv.
[0062] The first metadata is data that can describe the first work, and can be composed of an exam ID, a subject ID, an exam start time, an exam end time, a candidate's admission ticket number, a candidate's name, and a hash value of an encrypted audio or video file. It is generated by sequentially concatenating strings or using json (JavaScript Object Notation).
[0063] The blockchain system executes the smart contract to store the first metadata on the blockchain system, and packages the transaction to generate a block. The blockchain system generates a first identifier based on the first metadata and returns it to the test site, where the first identifier can be a block ID and a transaction number tx.
[0064] Step S220: Receive the second metadata and the first identifier generated based on the first work and sent by the cloud.
[0065] Here, the second metadata is data generated in the cloud that can describe the first work, and its field composition corresponds to the fields of the first metadata.
[0066] Step S230: Verify whether the second metadata is consistent with the first metadata based on the first identifier, and send the first verification result to the cloud.
[0067] Here, the blockchain system runs a smart contract, obtains transaction information (including the first metadata) through a query using the first identifier, verifies the consistency of the second metadata with the first metadata, and returns the verification result to the cloud. If the verification results are consistent, the first work is complete, and the cloud notifies the test center that the file upload was successful and the test is valid. If they are inconsistent, an error is reported, and the cloud prompts the school examination staff at the test center to check the equipment or network, and if necessary, require a retake.
[0068] For example, verification of whether the second metadata and the first metadata are consistent can be performed through the following conditions. Complete consistency can be achieved only if and only if all of the following conditions are met: the exam identifier of the first metadata is the same as the exam identifier of the second metadata, the subject identifier of the first metadata is the same as the subject identifier of the second metadata, the exam start time of the first metadata is the same as the exam start time of the second metadata, the exam end time of the first metadata is the same as the exam end time of the second metadata, the candidate admission ticket number of the first metadata is the same as the candidate admission ticket number of the second metadata, the candidate name of the first metadata is the same as the candidate name of the second metadata, and the hash value of the audio and video file of the first metadata is the same as the hash value of the audio and video file of the second metadata.
[0069] The test data processing method of the embodiment of the present application, applied to a blockchain system, further includes the following steps:
[0070] Step 231: Receive first scoring data and third metadata corresponding to the first scoring data sent by the scoring system.
[0071] Step 232: Return the second identifier generated based on the third metadata to the scoring system.
[0072] Here, the first rating data is the rating record data and rating result data of the first work after the rating expert checks the video stream address of the first work through the rating system. The third metadata is metadata generated based on the first rating data.
[0073] For example, the third metadata can be composed of the exam ID, subject ID, candidate admission ticket number, judge ID, scoring process record, final scoring result, and scoring time, and can be generated by sequentially concatenating strings or using JSON format. An example of metadata in the concatenated string format is as follows: examId=123&subjectId=456&studentID=u468957&expertId=e876432&historyScor e=81,86&finalScore=85.5&createTime=1692581005, where examId represents the exam ID, subjectId represents the subject ID, studentID represents the candidate's admission ticket number, expertId represents the judge ID, historyScore represents the scoring process record, finalScore represents the final scoring result, and createTime represents the scoring time. An example of metadata in JSON format is as follows: {"examId":"123","subjectId":"456","studentID":"u468957","expertId":"e876432","historyScore":"81,86","finalScore":85.5,"createTime":"1692581005"}.
[0074] In the embodiment of the present application, by obtaining the third metadata of the first scoring data generated by the scoring system and storing it on the chain, the blockchain system can be used to ensure that the third metadata cannot be tampered with and is traceable, thereby ensuring the security of the third metadata.
[0075] The test data processing method of the embodiment of the present application, when applied to a blockchain system, further includes the following steps:
[0076] Step 233: Receive the first rating data and the second identifier sent by the cloud.
[0077] Step 234: When the first scoring data and the third metadata are verified to correspond based on the second identifier, a successful verification scoring result is sent to the cloud.
[0078] For example, verification of whether the first scoring data and the third metadata correspond can be carried out through the following conditions. They are completely consistent if and only if all of the following conditions are met: the exam identifier of the first scoring data is the same as the exam identifier of the third metadata, the subject identifier of the first scoring data is the same as the subject identifier of the third metadata, the candidate admission ticket number of the first scoring data is the same as the candidate admission ticket number of the third metadata, and the judge identifier of the first scoring data is the same as the judge identifier of the third metadata.
[0079] In the embodiment of the present application, the first scoring data and the third metadata are verified through the blockchain system to prevent the first scoring data of the scoring system from being maliciously tampered with during the data transmission process, thereby ensuring the security and integrity of the scoring data.
[0080] The test data processing method of the embodiment of the present application, when applied to a blockchain system, further includes the following steps:
[0081] Step 235: In response to a work verification instruction sent by the identity authentication management system, receive a first identifier and a first work sent by the identity authentication management system, and query the first metadata based on the first identifier; wherein the first identifier and the first work are forwarded to the identity authentication management system by the cloud through the scoring system.
[0082] Here, the identity authentication management system is used to verify the identity of the reviewer. Once the verification is passed, the reviewer can obtain instructions through the works sent by the identity authentication management system. When the exam is over, the reviewer can obtain the exam works and exam scores through the scoring system.
[0083] Step 236: When the first work and the first metadata are verified to correspond based on the first identifier, the identity authentication management system sends a rating acquisition instruction to the rating system.
[0084] In the embodiment of the present application, integrity verification of the first work and the first metadata is performed through the blockchain system, which can prevent the first work from being maliciously tampered with during the data storage process, thereby ensuring the integrity, security and uniqueness of the first work.
[0085] The test data processing method of the embodiment of the present application, when applied to a blockchain system, further includes the following steps:
[0086] Step 237: In response to the verification scoring instruction sent by the identity authentication management system, receive the first scoring data and the second identifier sent by the identity authentication management system, and query the third metadata based on the second identifier; wherein the first scoring data and the second identifier are obtained by the scoring system sent to the identity authentication management system.
[0087] Step 238: When the first rating data and the third metadata are verified to correspond based on the second identifier, the identity authentication management system aggregates the first work and the first rating data to obtain access information.
[0088] In the embodiment of the present application, the integrity of the first scoring data and the third metadata is verified through the blockchain system, which can prevent the first scoring data from being maliciously tampered with during the data storage process, thereby ensuring the integrity, security and uniqueness of the first scoring data.
[0089] The present application provides a method for processing test data, which is applied to a test center end of a test system. Figure 3 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 3 ,like Figure 3 As shown, the test data processing method of the present application can be implemented through S310 and S320, specifically:
[0090] Step S310: Upload first metadata generated based on the first work to the blockchain system.
[0091] In the embodiment of the present application, by storing the first metadata of the first work generated by the test center on the chain, the blockchain system can be used to ensure that the first metadata cannot be tampered with and is traceable, thereby ensuring the security of the first metadata.
[0092] Step S320: Receive a first identifier of the first work generated by the blockchain system, and upload the first identifier and the first work to the cloud.
[0093] Here, the test center sends the first work and the first identifier to the cloud for temporary storage via HTTP (HyperText Transfer Protocol).
[0094] In an embodiment of the present application, the first metadata and the second metadata of the first work are verified based on the first identifier through the blockchain system to prevent the first work and the first metadata from being maliciously tampered with, thereby ensuring the data security and integrity of the first work.
[0095] Before the above step S310 of "generating first metadata based on the first work and uploading it to the blockchain system", the following steps are also included:
[0096] Step 311: Record audio and video files based on the device parameters sent from the cloud, and pre-process the audio and video files to obtain a first work.
[0097] Here, the device parameters are the audio and video sources and recording parameters of the test site equipment configured by the school examination staff through the cloud web interface. For example, the device parameters include storage path, audio and video bit rate, resolution, frame rate, etc. The cloud sends the device parameters to the test site to achieve audio and video data connection between the test site equipment and the test site system. Since the test site system and the recording equipment are on the same school intranet, an available audio and video data channel is established after the configuration is completed.
[0098] In the embodiment of the present application, remote configuration and management of test site equipment through a cloud interface can reduce the cost of test site maintenance and management, while also providing a convenient management method, making the entire examination process more transparent and user-friendly.
[0099] Here, the preprocessing may include adding watermarks and encryption. The watermark is mainly for video data and can be achieved by using the ffmpeg program to overlay the watermark image and mix the video stream during transcoding and recording. Encryption can be implemented using a high-strength encryption algorithm. First, the video file is read as bytes, then encrypted through the exclusive-or algorithm, and finally the encrypted file is saved to obtain the first work.
[0100] Step 312: Based on the first work, use a preset splicing method to obtain the first metadata.
[0101] Here, the preset splicing method can be a method of splicing strings. For example, the first metadata can be composed of an exam identifier, a subject identifier, an exam start time, an exam end time, a candidate's admission ticket number, a candidate's name, and the hash value of the encrypted audio-visual file, and is generated by splicing strings in order or in json format. The hash value can be generated by algorithms such as MD5, SHA1, SHA256, SHA512, and national secret SM3.
[0102] For example, an example of metadata in the form of spliced strings is as follows: examId = 123&subjectId = 234&startTime = 1692579600&endTime = 1692590400&studentID = u468957&chnam e = Zhang San&hashValue = 3afa779bd8d84aa88be1d57eb7105065. Here, examId represents the exam identifier, subjectId represents the subject identifier, startTime represents the exam start time, endTime represents the exam end time, studentID represents the candidate's admission ticket number, chname represents the candidate's name, and hashValue represents the hash value of the audio-visual file. An example of metadata in json format is as follows: {"examId":"123","subjectId":"234","startTime":1692579600,"endTime":1692590400,"studentID":"u468957","chname":"Zhang San","hashValue":"3afa779bd8d84aa88be1d57eb7105065"}.
[0103] In the embodiments of the present application, the encryption processing performed on the audio-visual file can prevent unauthorized access, and the watermark processing helps to identify the source of the audio-visual file, thus ensuring the security and integrity of the first work.
[0104] The embodiments of the present application provide a method for processing examination data, which is applied to the cloud of an examination system. Figure 4 A flow chart of an optional test data processing method provided in an embodiment of the present application Figure 4 ,like Figure 4 As shown, the test data processing method of the present application can be implemented through S410 and S420, specifically:
[0105] Step S410: Receive a first work and a first identifier corresponding to the first work sent by the test center.
[0106] Step S420: Send the first identifier and the second metadata generated based on the first work to the blockchain system, and receive a first verification result sent by the blockchain system; wherein the first verification result is the result of the blockchain system verifying whether the first metadata and the second metadata are consistent based on the first identifier.
[0107] Here, after the exam is over, the test center sends the first work and the first metadata to the cloud. The cloud generates the corresponding second metadata based on the first work, and then sends the second metadata and the first identifier to the blockchain system, and uses the blockchain system to verify the integrity of the second metadata.
[0108] In the embodiments of the present application, by distributing different functions between the cloud and the test site, this helps to improve the stability and scalability of the examination system. The collaboration and communication between the cloud and the test site make the examination system highly flexible and reliable. The lightweight system at the test site adopts an edge computing design, which completes the recording, encryption and other processing of audio and video locally, reducing the pressure on the cloud, reducing data transmission delays, and improving the response speed of the examination system.
[0109] The test data processing method of the embodiment of the present application is applied in the cloud of the test system and further includes the following steps:
[0110] Step 421: Send a score query instruction to the scoring system, and receive the first scoring data and the second identifier sent by the scoring system.
[0111] Here, the school examination staff accesses the cloud of the examination system through a client such as a browser. After the cloud performs identity authentication, the scoring system is called to check the scores. The scoring system sends the first scoring data and the second identifier to the cloud.
[0112] Step 422: Send the first scoring data and the second identifier to the blockchain system, and receive the second verification result sent by the blockchain system; wherein the second verification result is the result of the blockchain system verifying whether the first scoring data and the third metadata sent by the scoring system correspond based on the second identifier.
[0113] Step 423: When the second verification result shows that the first scoring data corresponds to the third metadata, the first scoring data is returned.
[0114] Here, the cloud sends the first rating data and the second identifier to the blockchain system. The blockchain system verifies the first rating data and the third metadata. If the verification result shows that the first rating data and the third metadata correspond, the rating system returns the first rating data to the cloud. At the same time, the rating system stores the first rating data and the second identifier in a relational database.
[0115] The present invention provides a method for processing test data, which is applied to a scoring system. Figure 5 Schematic diagram of an optional test data processing method provided in the embodiment of the present application Figure 5 ,like Figure 5 As shown, the test data processing method of the present application can be implemented through S510 and S520, specifically:
[0116] Step S510: When the first verification result of the blockchain system is that the first metadata sent by the test site is consistent with the second metadata sent by the cloud, obtain the video stream address generated by the cloud based on the first work.
[0117] Step S520: Obtain first rating data of the first work uploaded to the video stream address, and upload the third metadata corresponding to the first rating data to the blockchain system.
[0118] Here, if the first verification result of the blockchain system is that the first metadata sent by the test center is consistent with the second metadata sent by the cloud, the scoring expert accesses the scoring system through the client and scores the first work uploaded to the video stream address, obtaining first scoring data, where the first scoring data includes the scoring record and the scoring result. Based on the first scoring data, the scoring system generates corresponding third metadata and uploads the third metadata to the blockchain system.
[0119] In the embodiment of the present application, by uploading the first scoring data to the blockchain system, the tamper-proof characteristics of the blockchain can be utilized to ensure the integrity and correctness of the first scoring data.
[0120] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0121] like Figure 6 As shown in the examination process, after the test center is started, it automatically registers to the cloud. The registration process is completed by calling the pre-configured cloud interface URL address through an HTTP request; the test center information is reported during registration, including school information, test center hardware and software information, initial configuration of functional modules, etc.; after successful registration, the school examination staff can access the web interface provided by the cloud through the client (such as a browser) to view the test center node information and create an exam.
[0122] School examination staff log in to the cloud web interface through the client to configure the audio and video sources of the terminal equipment. The cloud sends the configuration to the test site to establish an audio and video channel between the test site and the terminal equipment.
[0123] The school examination staff starts the exam through the cloud interface. The cloud sends instructions to notify the test site to start recording audio and video. The audio and video streams are transmitted to the test site through transmission protocols such as RTSP or RTMP for local audio and video stream recording.
[0124] After the exam is over, the cloud sends an end-of-exam instruction to notify the test center to stop recording. At the same time, the test center stores the recorded audio and video locally as files, generates file data, and performs watermarking (optional) and encryption. The test center combines the examination room, candidates, and audio and video files to generate test center metadata (i.e., first metadata), and reports the metadata to the blockchain system through an HTTP request. The blockchain system calls the smart contract to store the metadata, package the blocks, and return the block id and transaction number tx (i.e., the first identifier) to the test center.
[0125] The test center uploads the audio and video files via HTTP request, carrying the block ID and transaction number tx to the cloud for temporary storage.
[0126] The cloud combines the exam center, examinee, and audio and video files to generate cloud-based metadata (i.e., secondary metadata). The blockchain system then calls the smart contract to verify the data integrity. The blockchain system then calls the smart contract to query transaction information and verify the metadata. Upon successful verification, the cloud is notified, which in turn notifies the exam site that the exam data has been successfully saved. The cloud then stores and transcodes the audio and video data, generating a video stream address for subsequent retrieval by the scoring system.
[0127] like Figure 7 In the scoring process shown, the scoring expert accesses the scoring system through the client and sends a request to view the work. The scoring system calls the cloud to obtain the work information, including the work ID, candidate ID, exam time, etc. The cloud returns the audio and video URL access address to the scoring system, and the scoring system returns the work information to the client. The scoring expert can play the audio and video through the client.
[0128] Scoring experts score the works through the client, and use the scoring system to store the scoring process and scoring results in a relational database to complete the scoring.
[0129] The scoring system generates scoring metadata (i.e., third metadata) based on the full set of scoring process records and scoring results (i.e., first scoring data) and calls the blockchain system to store the evidence on the chain, completing the scoring process and uploading the results on the chain.
[0130] The blockchain system calls the smart contract to store data, packages the blocks, and returns the block ID and transaction number tx (i.e., the second identifier) to the scoring system upon successful upload. The scoring system records the block ID and transaction number tx in a relational database.
[0131] like Figure 8 In the score-checking process shown, school examination staff access the cloud through a client, such as a browser, and authenticate themselves. Once authenticated, they initiate a score-checking request through the client. The cloud then calls the scoring system to retrieve the score record, which is then returned along with its on-chain identifier (block ID and transaction number tx) to the cloud.
[0132] The cloud calls the blockchain system to verify data integrity, sending the score data, block ID, and transaction number tx. These three components together constitute the first scoring metadata and the second identifier. The blockchain system then calls the smart contract to query the transaction information and verify the metadata. Upon successful verification, the score is returned to the client.
[0133] like Figure 9 In the review process shown, when reviewing an exam, the reviewer first accesses the identity verification management system through a client, such as a browser, to authenticate. After verification, the client sends a review request to the identity verification management system. The identity verification management system calls the provincial examination authority's system interface to send a request to the scoring system to obtain the work. The scoring system then calls the cloud to send a request to obtain the work information. The cloud queries the relational database and returns the work information and on-chain identifier to the scoring system. Here, the work information and on-chain identifier are the first work and the first identifier. The scoring system then returns the work information and on-chain identifier to the identity verification management system.
[0134] The identity authentication management system sends a request to the blockchain system to verify the work information through the on-chain identifier, inputs the work information and the on-chain identifier, and the blockchain system calls the smart contract to query the transaction information and verify the integrity. When the verification is successful, the identity authentication management system sends a request to obtain the score to the scoring system. The scoring system queries the relational database and returns the work score and the on-chain identifier to the identity authentication management system. Here, the work score and the on-chain identifier are the first scoring metadata and the second identifier. The identity authentication management system sends a request to the blockchain system to verify the scoring information through the on-chain identifier. The blockchain system calls the smart contract, queries the transaction information, and verifies the integrity. When the verification is successful, the identity authentication management system aggregates the work information and the scoring information and returns it to the client, completing the retrieval process.
[0135] Based on the test data processing method of the above embodiment, the present application embodiment also provides a test data processing device, which is applied to the blockchain system, such as Figure 10 As shown, the test data processing device 10 includes:
[0136] The first sending module 1010 is configured to receive first metadata of a first work sent by a test center, and send a first identifier generated based on the first metadata to the test center.
[0137] The first receiving module 1020 is configured to receive the second metadata and the first identifier generated based on the first work and sent from the cloud.
[0138] The second sending module 1030 is configured to verify whether the second metadata is consistent with the first metadata based on the first identifier, and send a first verification result to the cloud.
[0139] In some embodiments, the device also includes a second receiving module and a third sending module, wherein the second receiving module is used to receive the first scoring data and third metadata corresponding to the first scoring data sent by the scoring system; and the third sending module is used to return the second identifier generated based on the third metadata to the scoring system.
[0140] In some embodiments, the device also includes a third receiving module and a fourth sending module, wherein the third receiving module is used to receive the first scoring data and the second identifier sent by the cloud; the fourth sending module is used to verify the correspondence between the first scoring data and the third metadata based on the second identifier, and send the second verification result to the cloud.
[0141] In some embodiments, the device further includes a first query module and a fifth sending module, wherein the first query module is configured to receive the first identifier and the first work sent by the identity authentication management system in response to a work verification instruction sent based on the identity authentication management system, and query the first metadata based on the first identifier; wherein the first identifier and the first work are obtained by the cloud by forwarding them to the identity authentication management system through the scoring system; and the fifth sending module is configured to send a scoring acquisition instruction to the scoring system when the identity authentication management system verifies that the first work and the first metadata correspond based on the first identifier.
[0142] In some embodiments, the device also includes a second query module and a first aggregation module, wherein the second query module is used to receive the first scoring data and the second identifier sent by the identity authentication management system in response to a verification scoring instruction sent by the identity authentication management system, and query the third metadata based on the second identifier; wherein the first scoring data and the second identifier are obtained by the scoring system sent to the identity authentication management system; the first aggregation module is used to verify that the first scoring data and the third metadata correspond based on the second identifier, and the identity authentication management system aggregates the first work and the first scoring data to obtain the review information.
[0143] Based on the test data processing method of the above embodiment, the present application embodiment also provides a test data processing device, which is applied to the test center end of the test system, such as Figure 11 As shown, the test data processing device 11 includes:
[0144] The first uploading module 1110 is configured to upload first metadata generated based on the first work to the blockchain system.
[0145] The second uploading module 1120 is configured to receive the first identifier of the first work generated by the blockchain system, and upload the first identifier and the first work to the cloud.
[0146] In some embodiments, the device also includes a first determination module and a second determination module, wherein the first determination module is used to record audio and video files based on the device parameters sent from the cloud, and pre-process the audio and video files to obtain the first work; the second determination module is used to obtain the first metadata based on the first work using a preset splicing method.
[0147] Based on the test data processing method of the above embodiment, the present application embodiment also provides a test data processing device, which is applied to the cloud of the test system, such as Figure 12 As shown, the test data processing device 12 includes:
[0148] The fourth receiving module 1210 is configured to receive a first work and a first identifier corresponding to the first work sent by the test center.
[0149] The fifth receiving module 1220 is used to send the first identifier and the second metadata generated based on the first work to the blockchain system, and receive the first verification result sent by the blockchain system; wherein the first verification result is the result of the blockchain system verifying whether the first metadata is consistent with the second metadata based on the first identifier.
[0150] In some embodiments, the device further includes a sixth receiving module, a sixth sending module and a seventh sending module, wherein the sixth receiving module is used to send a score query instruction to the scoring system and receive the first scoring data and the second identifier sent by the scoring system; the sixth sending module is used to send the first scoring data and the second identifier to the blockchain system and receive the second verification result sent by the blockchain system; wherein the second verification result is the result of the blockchain system verifying whether the first scoring data and the third metadata sent by the scoring system correspond based on the second identifier; the seventh sending module is used to return the first scoring data if the second verification result is that the first scoring data and the third metadata correspond.
[0151] Based on the test data processing method of the above embodiment, the present application embodiment also provides a test data processing device, which is applied to a scoring system, such as Figure 13 As shown, the test data processing device 13 includes:
[0152] The second acquisition module 1310 is used to obtain the video stream address generated by the cloud based on the first work when the first verification result of the blockchain system is that the first metadata sent by the test center is consistent with the second metadata sent by the cloud.
[0153] The third uploading module 1320 is configured to obtain the first rating data of the first work uploaded to the video stream address, and upload the third metadata corresponding to the first rating data to the blockchain system.
[0154] Based on the test data processing method of the above embodiment, the embodiment of the present application also provides an electronic device, such as Figure 14 As shown, the electronic device 14 includes: a processor 1401 and a memory 1402, wherein the memory 1402 is used to store computer programs; the processor 1401 is used to call and run the computer program from the memory 1402 to execute the test data processing method as described in the above embodiment.
[0155] In the embodiments of the present application, the processor 1401 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that for different devices, the electronic device used to implement the above-mentioned processor functions may also be other, and the embodiments of the present application do not specifically limit this.
[0156] Based on the test data processing method of the above embodiment, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above test data processing method is implemented.
[0157] In the embodiments of the present application, the above-mentioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and can also be other media, which are not specifically limited in the embodiments of the present application.
[0158] Illustratively, the program instructions corresponding to an examination data processing method in this embodiment can be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instructions corresponding to an examination data processing method in the storage medium are read or executed by an electronic device, the examination data processing method described in any of the above embodiments can be implemented.
[0159] Based on the test data processing method of the above embodiment, an embodiment of the present application provides a computer program product, including a computer program or instructions, characterized in that when the computer program or instructions are executed by a processor, the steps of the above test data processing method are implemented.
[0160] When performing the test data processing method of the above embodiment, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the test platform provided in the above embodiment and the test data processing method embodiment belong to the same concept. The specific implementation process and beneficial effects are detailed in the method embodiment and will not be repeated here. For technical details not disclosed in the embodiment of this device, please refer to the description of the method embodiment of this application for understanding.
[0161] Those skilled in the art will understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments.
[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0166] The above is merely an implementation of the embodiments of the present application, but the scope of protection of the embodiments of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.
Claims
1. A test data processing method, applied to a blockchain system, characterized in that: The method comprises: receiving first metadata of a first work sent by a test center, and sending a first identifier generated based on the first metadata to the test center; Receiving second metadata and the first identifier generated based on the first work and sent by the cloud; Verify whether the second metadata is consistent with the first metadata based on the first identifier, and send a first verification result to the cloud.
2. The method according to claim 1, characterized in that The method further comprises: Receiving first scoring data and third metadata corresponding to the first scoring data sent by the scoring system; The second identifier generated based on the third metadata is returned to the scoring system.
3. The method according to claim 1, characterized in that The method further comprises: receiving the first rating data and the second identifier sent by the cloud; When the first scoring data and the third metadata are verified to correspond to each other based on the second identifier, a second verification result is sent to the cloud.
4. The method according to claim 1, wherein The method further comprises: In response to a work verification instruction sent by an identity verification management system, receiving the first identifier and the first work sent by the identity verification management system, and querying the first metadata based on the first identifier; wherein the first identifier and the first work are forwarded by the cloud to the identity verification management system via the scoring system; When the correspondence between the first work and the first metadata is verified based on the first identifier, the identity authentication management system sends a rating acquisition instruction to the rating system.
5. The method according to claim 4, characterized in that The method further comprises: In response to a verification scoring instruction sent by an identity authentication management system, receiving the first scoring data and the second identifier sent by the identity authentication management system, and querying the third metadata based on the second identifier; wherein the first scoring data and the second identifier are obtained by the scoring system and sent to the identity authentication management system; When the first rating data and the third metadata are verified to correspond based on the second identifier, the identity authentication management system aggregates the first work and the first rating data to obtain access information.
6. A test data processing method, applied to a test center end of a test system, characterized in that: The method comprises: Uploading first metadata generated based on the first work to the blockchain system; Receive a first identifier of the first work generated by the blockchain system, and upload the first identifier and the first work to the cloud.
7. The method according to claim 6, characterized in that Before uploading the first metadata generated based on the first work to the blockchain system, the method further includes: Recording an audio and video file based on the device parameters sent from the cloud, and preprocessing the audio and video file to obtain the first work; Based on the first work, the first metadata is obtained using a preset splicing method.
8. A method for processing examination data, applied to the cloud of an examination system, characterized in that: The method comprises: Receiving a first work and a first identifier corresponding to the first work sent by the test center; The first identifier and second metadata generated based on the first work are sent to a blockchain system, and a first verification result sent by the blockchain system is received; wherein the first verification result is a result of the blockchain system verifying whether the first metadata is consistent with the second metadata based on the first identifier.
9. The method according to claim 8, characterized in that The method further comprises: Sending a score query instruction to the scoring system, and receiving the first scoring data and the second identifier sent by the scoring system; Sending the first scoring data and the second identifier to the blockchain system, and receiving a second verification result sent by the blockchain system; wherein the second verification result is a result of the blockchain system verifying, based on the second identifier, whether the first scoring data and the third metadata sent by the scoring system correspond; If the second verification result indicates that the first scoring data corresponds to the third metadata, the first scoring data is returned.
10. A test data processing method, applied to a scoring system, characterized in that: The method comprises: If the first verification result of the blockchain system is that the first metadata sent by the test site is consistent with the second metadata sent by the cloud, obtaining a video stream address generated by the cloud based on the first work; Obtain first rating data of the first work uploaded to the video stream address, and upload the determined third metadata corresponding to the first rating data to the blockchain system.
11. A method for processing examination data, applied to an examination platform, wherein the examination platform includes an examination system, a blockchain system, and a scoring system, wherein the examination system includes an examination site and a cloud, and wherein: The method comprises: The blockchain system receives first metadata of the first work generated at the test center, and returns a first identifier corresponding to the first metadata to the test center; The blockchain system receives the second metadata of the first work generated in the cloud, and the first identifier sent by the test center to the cloud; The blockchain system verifies, based on the first identifier, that the second metadata is consistent with the first metadata, and then uses the rating system to rate the first work.
12. An electronic device comprising: memory and processor, The memory stores a computer program executable on the processor. When the processor executes the program, the steps of the method according to any one of claims 1 to 5 are implemented; Alternatively, when the processor executes the program, the steps of the method according to any one of claims 6 to 7 are implemented; Alternatively, when the processor executes the program, the steps of the method according to any one of claims 8 to 9 are implemented; Alternatively, when the processor executes the program, the steps in the method of claim 10 are implemented; Alternatively, the processor implements the steps in the method according to claim 11 when executing the program.
13. A computer storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the steps of the method according to any one of claims 1 to 5; Alternatively, the one or more programs may be executed by one or more processors to implement the steps of the method according to any one of claims 6 to 7; Alternatively, the one or more programs may be executed by one or more processors to implement the steps of the method according to any one of claims 8 to 9; Alternatively, the one or more programs may be executed by one or more processors to implement the steps of the method according to claim 10; Alternatively, the one or more programs may be executed by one or more processors to implement the steps in the method of claim 11.
14. A computer program product comprising a computer program or instructions, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5; Alternatively, when the processor executes the program, the steps of the method according to any one of claims 6 to 7 are implemented; Alternatively, when the processor executes the program, the steps of the method according to any one of claims 8 to 9 are implemented; Alternatively, when the processor executes the program, the steps in the method of claim 10 are implemented; Alternatively, the processor implements the steps in the method according to claim 11 when executing the program.