Electrical examination scoring method, system, medium and equipment based on edge computing

Through edge computing and artificial intelligence technology, the problems of unclear video shooting and high sensor cost in intelligent proctoring are solved, unattended intelligent electrical examination scoring is realized, and the accuracy and reliability of scoring are improved.

CN114186784BActive Publication Date: 2024-10-15GUANGDONG SHUNDE INDUSTRY DESIGN INSTITUTE (GUANGDONG SHUNDE INNOVATIVE DESIGN INSTITUTE) +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111304978.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2024-10-15
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

Existing smart proctoring technology has problems such as unclear, blurred, and blocked video recordings, and sensor-based IoT solutions are costly and have unstable circuit connections, resulting in missing exam information or inaccurate scoring.

Method used

Adopt an electrical examination scoring method based on edge computing, establish a unified calibration standard through artificial intelligence, use the NPU edge computing platform to obtain component information, and combine the contour connected domain extraction algorithm, CANNY edge extraction algorithm and edge collection algorithm to achieve unattended intelligence Score evaluation and analysis.

Benefits of technology

It realizes unattended intelligent proctoring and scoring, improves the accuracy and reliability of examination information, reduces costs, and meets practical application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186784B_ABST
    Figure CN114186784B_ABST
Patent Text Reader

Abstract

The present application relates to an electrical test scoring method based on edge computing, including obtaining the component information selected by the tester, inputting the information into the NPU edge computing platform, obtaining the location and type information of each component and the first scoring information; extracting the connection mode of each component through the contour-based connected domain extraction algorithm, and obtaining the second scoring information according to the connection mode of each component; obtaining the brightness of the first target component and the third scoring information through the CANNY edge extraction algorithm; obtaining the resistance value and the fourth scoring information of the second target component through the edge set algorithm; obtaining the comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information. Compared with the prior art, the present invention can establish a unified calibration standard through artificial intelligence, realize unattended proctoring, and perform intelligent score assessment and analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to an electrical examination scoring method, system, medium and device based on edge computing. Background Art

[0002] With the continuous development of electronic information technology, related technologies of intelligent invigilation have also been applied. For example, cameras are used to shoot videos of candidates' operations, and teachers subsequently score through videos, and relevant sensors are implanted in circuit components and scored through Internet of Things technology. However, these solutions have certain problems. For example, unclear, blurred, and blocked videos may lead to missing test information. Solutions based on sensor Internet of Things may have uncertainties such as high cost, unstable circuit connection, and damage to components. Summary of the invention

[0003] Based on this, it is necessary to provide an electrical examination scoring method, system, medium and equipment based on edge computing that can establish a unified calibration standard through artificial intelligence, realize unattended proctoring, and perform intelligent score assessment and analysis to address the above technical problems.

[0004] An embodiment of the present invention provides an electrical test scoring method based on edge computing, which is applied to a circuit test system. The method includes the following steps:

[0005] Obtain component information selected by the tester, input the component information into the NPU edge computing platform, obtain location and type information of each component, and obtain first scoring information according to the location and type information of each component;

[0006] Extracting the connection mode of each component by using a connected domain extraction algorithm based on contour, and obtaining second scoring information according to the connection mode of each component;

[0007] Obtaining the brightness of the first target component by using the CANNY edge extraction algorithm, and obtaining third scoring information according to the brightness of the first target component;

[0008] Obtaining a resistance value of a second target component by using an edge set algorithm, and obtaining fourth scoring information according to the resistance value of the second target component;

[0009] Comprehensive scoring information of the tester is obtained according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information.

[0010] Furthermore, the method of obtaining component information selected by the tester, inputting the component information into the NPU edge computing platform, obtaining the location and type information of each component, and obtaining the first scoring information according to the location and type information of each component includes:

[0011] Acquire sample information of each component in the experimental equipment data set, and perform multi-scale expansion on the experimental equipment data set according to the sample information to obtain an experimental equipment training set;

[0012] Inputting the experimental equipment training set into the SSD network architecture based on hierarchical feature fusion for model training to obtain an SSD network model;

[0013] The SSD network model is compressed and trimmed by a hybrid quantization compression method to obtain a hybrid quantization network model;

[0014] After the hybrid quantization model is format converted, it is deployed to the NPU edge computing platform.

[0015] Furthermore, the method for performing multi-scale expansion on the experimental equipment data set according to the sample information includes:

[0016] The samples in the experimental equipment data set are cropped, translated, rotated, mirrored, the brightness and saturation are adjusted, and salt and pepper noise is added.

[0017] Furthermore, the method of extracting the connection mode of each component by using the contour-based connected domain extraction algorithm includes:

[0018] Perform mask processing on the overall image based on the location and size of each component;

[0019] The RGB image after mask processing is converted into an HSV image, and the color screening method based on the HSV color space is used to filter the wires of the experimental table to obtain the grayscale image information of each connecting line;

[0020] Extracting wire image information from the grayscale image information using a connected domain extraction algorithm based on contour;

[0021] Based on the image information of each component and the image information of the wire, a topological connection graph of the connections between each component is established, and a depth-first search topological sorting algorithm is used to establish a related graph topological connection relationship data set.

[0022] Furthermore, the method of obtaining the brightness of the first target component by using the CANNY edge extraction algorithm and obtaining the third scoring information according to the brightness of the first target component includes:

[0023] According to the position and size information of the first target component, intercepting the first area image information of the current area;

[0024] Obtaining the accurate position and circular pixel point set of the first target component in the first area image based on CANNY edge extraction and HOUGH circle transformation;

[0025] The brightness information of the circular pixel point set is counted to determine the brightness change of the first target component and obtain third scoring information.

[0026] Furthermore, the method of obtaining the resistance value of the second target component by using the edge set algorithm and obtaining fourth scoring information according to the resistance value of the second target component includes:

[0027] According to the position and size information of the second target component, intercepting the second area image information of the area;

[0028] Based on the image template matching algorithm, the shape information of the slider of the second target component is matched in the second area image to obtain the position information of the slider.

[0029] Get the slider target in the template that matches the slider;

[0030] The center point of the slider target is obtained according to an edge fitting algorithm, and the real-time variable resistance value of the second target component is obtained by performing proportional calculation with the position coordinate information of the center point and the width information and the maximum value of the second target component.

[0031] Furthermore, the method for obtaining the reading of the third target component includes:

[0032] An AD converter is built into the third target component, and the real-time value of the AD converter is read through an embedded chip, and transmitted to the NPU edge computing platform through a built-in Bluetooth module and BLE5.0 protocol.

[0033] Another embodiment of the present invention provides an electrical test scoring system based on edge computing, the system comprising:

[0034] The first scoring module obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information according to the location and type information of each component;

[0035] A second scoring module extracts the connection mode of each component by using a contour-based connected domain extraction algorithm, and obtains second scoring information according to the connection mode of each component;

[0036] A third scoring module obtains the brightness of the first target component by using a CANNY edge extraction algorithm, and obtains third scoring information according to the brightness of the first target component;

[0037] a fourth scoring module, which obtains the resistance value of the second target component by using an edge set algorithm, and obtains fourth scoring information according to the resistance value of the second target component;

[0038] The comprehensive scoring module obtains the comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information.

[0039] Another embodiment of the present invention further proposes a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the electrical examination scoring method based on edge computing as described above.

[0040] Another embodiment of the present invention further proposes a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the electrical examination grading method based on edge computing as described above when executing the computer program.

[0041] The electrical examination scoring method based on edge computing obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information based on the location and type information of each component; extracts the connection mode of each component through the contour-based connected domain extraction algorithm, and obtains the second scoring information based on the connection mode of each component; obtains the brightness of the first target component through the CANNY edge extraction algorithm, and obtains the third scoring information based on the brightness of the first target component; obtains the resistance value of the second target component through the edge set algorithm, and obtains the fourth scoring information based on the resistance value of the second target component; obtains the comprehensive scoring information of the tester based on the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information. Compared with the prior art, the present invention can establish a unified calibration standard through artificial intelligence, realize unattended proctoring, and perform intelligent score assessment and analysis, meeting the actual application needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of a flow chart of an electrical test scoring method based on edge computing provided in an embodiment of the present invention;

[0043] Figure 2 for Figure 1Specific flow diagram of step S11;

[0044] Figure 3 The network layer hybrid quantization structure diagram in step S11;

[0045] Figure 4 for Figure 1 Specific flow diagram of step S12;

[0046] Figure 5 Binarized images of component connection wires;

[0047] Figure 6 A topological connection diagram for connecting components;

[0048] Figure 7 A structural block diagram of an electrical test scoring system based on edge computing provided in an embodiment of the present invention;

[0049] Figure 8 A structural diagram of a device terminal provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this technical field without creative work are within the scope of protection of the present invention.

[0051] It should be noted that the step numbers in the text are only for the convenience of explaining the specific embodiment and do not limit the order of execution of the steps. The method provided in this embodiment can be executed by a related server, and the following description will be given by taking the server as the execution subject as an example.

[0052] like Figure 1 As shown, the electrical test scoring method based on edge computing provided by an embodiment of the present invention is applied to a circuit test system, which includes a camera and a voltage and current measuring device connected to an embedded platform, and a cloud platform connected to the embedded platform.

[0053] Specifically, the cloud platform is responsible for the login information management, examination distribution, and examination score statistics of relevant electrical experiment candidates. It also has relevant data analysis methods for wrong question statistics, difficulty summary, and other big data analysis methods, test report generation, and the function of saving candidate test videos. The test equipment uses an edge computing embedded platform with NPU, and uses a high-definition camera combined with image processing algorithms and artificial neural network models to perform circuit component selection detection, component connection correctness judgment, and variable sliding resistance value measurement. The built-in Bluetooth module reads the voltage meter and ammeter of the AD converter chip with Bluetooth chip to read and judge the voltage and current. This information is summarized and scored according to the rules by the edge computing embedded platform center with NPU, and then reported to the cloud platform through relevant network protocols. Finally, these modules form an unattended middle school circuit examination system. Among them, the camera is connected to the embedded platform via USB, the Bluetooth ammeter and voltmeter are connected to the embedded platform via BLE5.0, and the embedded platform is connected to the cloud platform via a network interface.

[0054] It can be understood that the present invention combines the convolutional neural network target detection technology with an embedded platform with NPU (neural network processing unit) based on edge computing to develop a high-performance circuit experiment equipment detection system that can run independently on the embedded platform. On the one hand, it replaces the inefficient device inspection scheme of manual inspection and accurately completes the equipment inspection link before the formal experiment. At the same time, considering the scale of test students and on-site network requirements, the use of edge computing technology can effectively reduce the hardware requirements of real-time convolutional neural network target detection technology through GPU (graphics processing unit) cloud server and the network bandwidth requirements for video transmission, effectively reducing costs and improving computing power.

[0055] like Figure 2 As shown, the method includes steps S11 to S15:

[0056] Step S11, obtain the component information selected by the tester, input the component information into the NPU edge computing platform, obtain the location and type information of each component, and obtain the first scoring information based on the location and type information of each component.

[0057] Since the selection and judgment of circuit component models is a key component of physics teaching experiments, the selection and judgment of circuit component models, as well as the acquisition of information such as the category, properties, and uses of electrical components by analyzing the images of electrical components, provide the necessary conditions for scoring the location and category of components.

[0058] See also Figure 2, obtain the component information selected by the tester, input the component information into the NPU edge computing platform, obtain the location and type information of each component, and obtain the first scoring information according to the location and type information of each component:

[0059] Step S111, obtaining sample information of each component in the experimental equipment data set, and performing multi-scale expansion on the experimental equipment data set according to the sample information to obtain an experimental equipment training set;

[0060] Step S122, inputting the experimental equipment training set into the SSD network architecture based on hierarchical feature fusion for model training to obtain an SSD network model;

[0061] Step S113, compressing and trimming the SSD network model by a hybrid quantization compression method to obtain a hybrid quantization network model;

[0062] Step S114: convert the format of the hybrid quantization model and deploy it to the NPU edge computing platform.

[0063] Specifically, the experimental equipment dataset is obtained by shooting with a camera in different examination environments. Network interfaces such as Google interfaces may report errors including network errors or text being too long; Google interfaces may not be available for certain networks, but I am not sure about the details. You can try VPN; and I cannot fix this problem. Please right-click the menu to change the Baidu and Tencent translation interfaces. The types of circuit components include various electrical components and equipment commonly used in junior high school physics teaching. After obtaining the preliminary dataset, namely the experimental equipment dataset, the data enhancement method is used to perform multi-scale amplification of samples in the circuit experimental equipment dataset. The number of training samples is increased by cropping, translating, rotating, mirroring, adjusting brightness and saturation, adding salt and pepper noise, etc., thereby improving the generalization ability of the model and reducing the overfitting of the model.

[0064] Furthermore, the experimental equipment training set is input into the SSD network architecture based on hierarchical feature fusion for model training. Because the traditional SSD convolutional network uses the shallower layer of the network to detect small objects, the shallow network is not sensitive enough to small object detection. Therefore, the present invention adopts the SSD algorithm structure based on hierarchical feature fusion. Before performing target classification and network regression, a hierarchical feature fusion module layer is added to the shallow feature output layer. The deconvolution operation is used to fuse the deep network and the shallow network, so that the shallow network has higher semantic information and enhances the network's sensitivity to small target objects. After the above operation, the SSD shallow network adds the global information of the deep network to its shallow network, making up for the shortcoming that the shallow network cannot obtain global information due to its small perception field of view; this operation mode also further enriches the semantic information of the shallow network.

[0065] Furthermore, the SSD network model running on the GPU is obtained by training the experimental equipment training set. Due to the huge difference in performance between the GPU and the NPU, the model running on the relevant edge computing embedded platform with NPU needs to be aligned for further compression and quantization operations. The present invention adopts a compression method of the SSD network model based on hybrid quantization to compress and trim the model. First, the difference in the amount of calculation between floating-point operations and integer operations is used. If all models are converted into integer operations, the speed of related model reasoning can be increased by dozens of times. However, there is a difference in the accuracy of floating-point operations and integer operations. If global quantization is simply performed, the compressed model will have a great loss in accuracy. Therefore, the present invention adopts a compression method of the SSD network model based on hybrid quantization, and uses Euclidean distance and cosine distance as evaluation criteria to compare the quantization and non-quantization of each layer of the model. At the same time, through the reverse deduction of the model reasoning results, it is obtained which level can be quantized to effectively reduce the amount of calculation while maintaining the same accuracy. The calculation formula of the Euclidean distance is shown as follows:

[0066]

[0067]

[0068] Where ρ is the Euclidean distance between point (x2, y2) and point (x1, y1); |X| is the Euclidean distance from point (x2, y2) to the origin. Cosine distance: Assume that the vectors corresponding to feature X and feature Y are x1, x2, x3...x n and y1,y2,y3...y n , then the cosine similarity calculation formula between two vectors is as follows:

[0069]

[0070] Through calculation, the present invention selects 10 as the fixed-point quantization threshold, adjusts the network layer with a Euclidean distance greater than 10 to the non-quantized mode, retains the floating-point data of this layer, and adjusts other network layers to the fixed-point quantization mode. Figure 3 shown.

[0071] Furthermore, after obtaining the hybrid quantized network model, in order to deploy the model on an edge computing platform with an NPU and call the underlying NPU processor to accelerate the inference of the algorithm model, it is necessary to convert the format of the algorithm model trained on the GPU server into a model file in RKNN format that can be run on the NPU processor. The present invention converts the model into an rknn model processed by NPU through a model architecture conversion tool, and finally calls the camera for real-time image acquisition through related APP development, and performs real-time circuit component monitoring by calling the model inference API, with a speed of more than 25 frames per second.

[0072] Step S12, extracting the connection mode of each component by using a contour-based connected domain extraction algorithm, and obtaining second scoring information according to the connection mode of each component.

[0073] Since the target detection technology is based on convolutional neural networks, only relevant training target detection can be performed. To determine the correctness of the circuit connection, it is necessary to identify the wire connection position information between components, and to use the type and position information of existing components.

[0074] See also Figure 4 The method of extracting the connection mode of each component by using a contour-based connected domain extraction algorithm and obtaining the second scoring information according to the connection mode of each component comprises the following steps:

[0075] Step S121, performing mask processing on the entire image based on the position and size of each component;

[0076] Step S122, converting the masked RGB image into an HSV image, using a color screening method based on the HSV color space to filter the wires on the experimental table to obtain grayscale image information of each connecting wire;

[0077] Step S123, extracting wire image information from the grayscale image information using a contour-based connected domain extraction algorithm;

[0078] Step S124, based on the image information of each component and the image information of the wire, a topological connection graph of the connections of each component is established, and a depth-first search topological sorting algorithm is used to establish a related graph topological connection relationship data set.

[0079] Specifically, the image position and image frame of the circuit components obtained by step S11 are calibrated, and the mask processing algorithm in image processing is used to mark the area as the non-processing area of ​​the post-image algorithm, so as to avoid useless component images affecting subsequent algorithm processing. The RGB image after mask processing is converted into an HSV image, and then the color brushing method based on the HSV color space is used to filter the wires of the experimental bench to obtain the grayscale image information of various connecting wires, red wires (hue: 0-10, 156-180), green wires (hue: 35-77) and blue wires (hue: 100-124). The conversion formula is as follows:

[0080]

[0081] Because each group of grayscale images of the wires connected in the circuit are not straight lines or standard curve images, the edge fitting detection algorithm based on CANNY and HOUGH cannot be used. For this kind of irregular wire connection, the present invention adopts a connected domain extraction algorithm based on contour extraction to obtain the point set information of each group of lines. First, the grayscale image is expanded to prevent the problem of disconnection caused by the wire image being too small during the image acquisition and filtering process. Then, it is binarized based on an adaptive threshold and the image feature point data set of each wire is obtained through the connected domain extraction algorithm. Finally, the edge extraction and image feature point position information traversal of each data set are performed to obtain the endpoint coordinate information of the wire. The binary image of the component connection wire is as follows: Figure 5 shown.

[0082] According to the wire endpoint information and component location box size information in the previous step, the connection relationship between the wire and the component can be determined. For example, Ci represents the component and Eij represents the connection relationship of the point, and then the topological connection diagram of the connection of each component is established. The topological connection of the component connection is as follows: Figure 6 As shown, finally, a depth-first search topological sorting algorithm is used to establish a relevant graph topology connection relationship data set. When making connection score judgments, the topology data set is traversed according to the rules to obtain whether there is relevant connection information or redundant connection information, and finally the score of the experimental connection is obtained.

[0083] Step S13, obtaining the brightness of the first target component by using the CANNY edge extraction algorithm, and obtaining third scoring information according to the brightness of the first target component.

[0084] Specifically, according to the position and size information of the first target component, the first area image information of the current area is intercepted; the accurate position and circular pixel point set of the first target component in the first area image are obtained based on the CANNY edge extraction and the HOUGH circle transformation; the brightness information of the circular pixel point set is counted, and then the brightness change of the first target component is determined, and the third scoring information is obtained. Among them, the first target component is a small light bulb.

[0085] Step S14, obtaining the resistance value of the second target component by using an edge set algorithm, and obtaining fourth scoring information according to the resistance value of the second target component.

[0086] Specifically, according to the position and size information of the second target component, the second area image information of the area is intercepted; based on the image template matching algorithm, the slider shape information (slider sub-image) of the second target component is matched in the second area image to obtain the position information of the slider, and the slider target matching the slider in the template is obtained; according to the edge fitting algorithm, the center point of the slider target is obtained, and the position coordinate information X of the center point, as well as the width information L and the maximum value R of the second target component are obtained. MAX Perform proportional calculation to obtain the real-time variable resistance value R of the second target component, that is, Wherein, the second target component is a sliding resistor.

[0087] Furthermore, the formula for calculating the correlation coefficient of template matching is as follows:

[0088]

[0089] Among them, R(i,j) is the calculated correlation coefficient between the slider sub-image and the template, S ij (m,n) is the H hue value of the slider sub-image at the (m,n) coordinate in the HSV space, and T(m,n) is the H hue value of the matching template at the (m,n) coordinate in the HSV space.

[0090] It can be understood that when the slider subgraphs in the template and the rheostat are similar, after completing all searches in the searched graph S, the maximum value of R is found, and its corresponding subgraph is the matching slider target.

[0091] Step S15, obtaining comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information.

[0092] Specifically, an AD converter is built into the third target component, and the real-time value of the AD converter is read through an embedded chip, and the built-in Bluetooth module transmits it to the NPU edge computing platform through the low-power BLE5.0 protocol. So that the NPU edge computing platform can obtain the comprehensive scoring information of the tester based on the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information. Among them, the comprehensive scoring information can be obtained by accumulating various scoring information, or by multiplying by corresponding proportional coefficients and then superimposing them.

[0093] The electrical examination scoring method based on edge computing obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information based on the location and type information of each component; extracts the connection mode of each component through the contour-based connected domain extraction algorithm, and obtains the second scoring information based on the connection mode of each component; obtains the brightness of the first target component through the CANNY edge extraction algorithm, and obtains the third scoring information based on the brightness of the first target component; obtains the resistance value of the second target component through the edge set algorithm, and obtains the fourth scoring information based on the resistance value of the second target component; obtains the comprehensive scoring information of the tester based on the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information. Compared with the prior art, the present invention can establish a unified calibration standard through artificial intelligence, realize unattended proctoring, and perform intelligent score assessment and analysis, meeting the actual application needs.

[0094] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0095] See also Figure 7 The present invention also provides an electrical examination scoring system based on edge computing, the system comprising:

[0096] The first scoring module 21 obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information according to the location and type information of each component.

[0097] Specifically, sample information of each component in an experimental equipment data set is obtained, and the experimental equipment data set is expanded at multiple scales according to the sample information to obtain an experimental equipment training set; the experimental equipment training set is input into an SSD network architecture based on hierarchical feature fusion for model training to obtain an SSD network model; the SSD network model is compressed and cropped by a hybrid quantization compression method to obtain a hybrid quantization network model; the hybrid quantization model is format converted and deployed to the NPU edge computing platform.

[0098] Among them, multi-scale expansion of samples in the experimental equipment data set according to the sample information includes: cropping, translating, rotating, mirroring, adjusting brightness and saturation, and adding salt and pepper noise to the experimental equipment data set.

[0099] The second scoring module 22 extracts the connection mode of each component by using a contour-based connected domain extraction algorithm, and obtains second scoring information according to the connection mode of each component.

[0100] Specifically, mask processing is performed on the overall image based on the position and size of each component; the RGB image after mask processing is converted into an HSV image, and the wires of the experimental table are filtered using a color screening method based on the HSV color space to obtain grayscale image information of each connecting line; a contour-based connected domain extraction algorithm is used to extract wire image information from the grayscale image information; based on the image information of each component and the wire image information, a topological connection graph of the connections of each component is established, and a depth-first search topological sorting algorithm is used to establish a related graph topological connection relationship data set.

[0101] The third scoring module 23 obtains the brightness of the first target component by using the CANNY edge extraction algorithm, and obtains third scoring information according to the brightness of the first target component.

[0102] Specifically, according to the position and size information of the first target component, the first area image information of the current area is intercepted; the accurate position and circular pixel point set of the first target component in the first area image are obtained based on CANNY edge extraction and HOUGH circle transformation; the brightness information of the circular pixel point set is counted to determine the brightness change of the first target component, and obtain third scoring information.

[0103] The fourth scoring module 24 obtains the resistance value of the second target component by using an edge set algorithm, and obtains fourth scoring information according to the resistance value of the second target component.

[0104] Specifically, according to the position and size information of the second target component, the second area image information of the area is intercepted; based on the image template matching algorithm, the slider shape information of the second target component is matched in the second area image to obtain the position information of the slider, and the slider target matching the slider in the template is obtained; the center point of the slider target is obtained according to the edge fitting algorithm, and the position coordinate information of the center point, as well as the width information and the maximum value of the second target component are proportionally calculated to obtain the real-time variable resistance value of the second target component.

[0105] The comprehensive scoring module 25 obtains the comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information.

[0106] An AD converter is built into the third target component, and the real-time value of the AD converter is read through an embedded chip and transmitted to the NPU edge computing platform through a built-in Bluetooth module and BLE5.0 protocol.

[0107] Another embodiment of the present invention further proposes a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the electrical examination scoring method based on edge computing as described above.

[0108] The electrical examination scoring system based on edge computing provided by the embodiment of the present invention obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information according to the location and type information of each component; extracts the connection mode of each component through the contour-based connected domain extraction algorithm, and obtains the second scoring information according to the connection mode of each component; obtains the brightness of the first target component through the CANNY edge extraction algorithm, and obtains the third scoring information according to the brightness of the first target component; obtains the resistance value of the second target component through the edge set algorithm, and obtains the fourth scoring information according to the resistance value of the second target component; obtains the comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information. Compared with the prior art, the present invention can establish a unified calibration standard through artificial intelligence, realize unattended proctoring, and perform intelligent score assessment and analysis, meeting the actual application needs.

[0109] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the electrical examination scoring method based on edge computing as described above.

[0110] The embodiment of the present invention also provides a terminal device, see Figure 8 As shown, it is a structural block diagram of a preferred embodiment of a terminal device provided by the present invention, wherein the terminal device includes a processor 10, a memory 20, and a computer program stored in the memory 20 and configured to be executed by the processor 10, and the processor 10 implements the electrical examination scoring method based on edge computing as described above when executing the computer program.

[0111] Preferably, the computer program can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 20 and executed by the processor 10 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

[0112] The processor 10 may be a central processing unit (CPU), or 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. A general-purpose processor may be a microprocessor, or the processor 10 may be any conventional processor. The processor 10 is the control center of the terminal device, and various parts of the terminal device are connected using various interfaces and lines.

[0113] The memory 20 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory 20 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory 20 can also be other volatile solid-state storage devices.

[0114] It should be noted that the above terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 8 The structural block diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0115] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An electrical test scoring method based on edge computing, applied to a circuit test system, characterized in that: The method comprises the following steps: Obtain component information selected by the tester, input the component information into the NPU edge computing platform, obtain location and type information of each component, and obtain first scoring information according to the location and type information of each component; Extracting the connection mode of each component by using a connected domain extraction algorithm based on contour, and obtaining second scoring information according to the connection mode of each component; Obtaining the brightness of the first target component by using the CANNY edge extraction algorithm, and obtaining third scoring information according to the brightness of the first target component; Obtaining a resistance value of a second target component by using an edge set algorithm, and obtaining fourth scoring information according to the resistance value of the second target component; Obtaining comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information; The obtaining of component information selected by the tester, inputting the component information into the NPU edge computing platform, obtaining location and type information of each component, and obtaining first scoring information according to the location and type information of each component include: Acquire sample information of each component in the experimental equipment data set, and perform multi-scale expansion on the experimental equipment data set according to the sample information to obtain an experimental equipment training set; Inputting the experimental equipment training set into the SSD network architecture based on hierarchical feature fusion for model training to obtain an SSD network model; The SSD network model is compressed and trimmed by a hybrid quantization compression method to obtain a hybrid quantization network model; After converting the format of the hybrid quantization model, the model is deployed to the NPU edge computing platform; The method of extracting the connection mode of each component by using a contour-based connected domain extraction algorithm includes: Perform mask processing on the overall image based on the location and size of each component; The RGB image after mask processing is converted into an HSV image, and the color screening method based on the HSV color space is used to filter the wires of the experimental table to obtain the grayscale image information of each connecting line; Extracting wire image information from the grayscale image information using a connected domain extraction algorithm based on contour; Based on the image information of each component and the image information of the wire, a topological connection diagram of the connection of each component is established, and a depth-first search topological sorting algorithm is used to establish a related graph topological connection relationship data set; The step of obtaining the brightness of the first target component by using the CANNY edge extraction algorithm and obtaining the third scoring information according to the brightness of the first target component includes: According to the position and size information of the first target component, intercepting the first area image information of the current area; Obtaining the accurate position and circular pixel point set of the first target component in the first area image based on CANNY edge extraction and HOUGH circle transformation; Counting the brightness information of the circular pixel point set, thereby determining the brightness change of the first target component, and obtaining third scoring information; The step of obtaining the resistance value of the second target component by using the edge set algorithm and obtaining fourth scoring information according to the resistance value of the second target component includes: According to the position and size information of the second target component, intercepting the second area image information of the area; Based on the image template matching algorithm, the shape information of the slider of the second target component is matched in the second area image to obtain the position information of the slider. Get the slider target in the template that matches the slider; The center point of the slider target is obtained according to an edge fitting algorithm, and a real-time variable resistance value of the second target component is obtained by performing proportional calculation based on the position coordinate information of the center point, the width information of the second target component, and the maximum value; Wherein, the method for obtaining the reading of the third target component includes: An AD converter is built into the third target component, and the real-time value of the AD converter is read through an embedded chip and transmitted to the NPU edge computing platform through a built-in Bluetooth module and BLE5.0 protocol.

2. The electrical test scoring method based on edge computing according to claim 1 is characterized in that: The method for performing multi-scale expansion on the experimental equipment data set according to the sample information includes: The samples in the experimental equipment data set are cropped, translated, rotated, mirrored, the brightness and saturation are adjusted, and salt and pepper noise is added.

3. An electrical examination scoring system based on edge computing, characterized in that: The system comprises: The first scoring module obtains the component information selected by the tester, inputs the component information into the NPU edge computing platform, obtains the location and type information of each component, and obtains the first scoring information according to the location and type information of each component; A second scoring module extracts the connection mode of each component by using a contour-based connected domain extraction algorithm, and obtains second scoring information according to the connection mode of each component; A third scoring module obtains the brightness of the first target component by using a CANNY edge extraction algorithm, and obtains third scoring information according to the brightness of the first target component; a fourth scoring module, which obtains the resistance value of the second target component by using an edge set algorithm, and obtains fourth scoring information according to the resistance value of the second target component; A comprehensive scoring module, which obtains comprehensive scoring information of the tester according to the reading of the third target component, the first scoring information, the second scoring information, the third scoring information and the fourth scoring information; The obtaining of component information selected by the tester, inputting the component information into the NPU edge computing platform, obtaining location and type information of each component, and obtaining first scoring information according to the location and type information of each component include: Acquire sample information of each component in the experimental equipment data set, and perform multi-scale expansion on the experimental equipment data set according to the sample information to obtain an experimental equipment training set; Inputting the experimental equipment training set into the SSD network architecture based on hierarchical feature fusion for model training to obtain an SSD network model; The SSD network model is compressed and trimmed by a hybrid quantization compression method to obtain a hybrid quantization network model; After converting the format of the hybrid quantization model, the model is deployed to the NPU edge computing platform; The method of extracting the connection mode of each component by using a contour-based connected domain extraction algorithm includes: Perform mask processing on the overall image based on the location and size of each component; The RGB image after mask processing is converted into an HSV image, and the color screening method based on the HSV color space is used to filter the wires of the experimental table to obtain the grayscale image information of each connecting line; Extracting wire image information from the grayscale image information using a connected domain extraction algorithm based on contour; Based on the image information of each component and the image information of the wire, a topological connection diagram of the connection of each component is established, and a depth-first search topological sorting algorithm is used to establish a related graph topological connection relationship data set; The step of obtaining the brightness of the first target component by using the CANNY edge extraction algorithm and obtaining the third scoring information according to the brightness of the first target component includes: According to the position and size information of the first target component, intercepting the first area image information of the current area; Obtaining the accurate position and circular pixel point set of the first target component in the first area image based on CANNY edge extraction and HOUGH circle transformation; Counting the brightness information of the circular pixel point set, thereby determining the brightness change of the first target component, and obtaining third scoring information; The step of obtaining the resistance value of the second target component by using the edge set algorithm and obtaining fourth scoring information according to the resistance value of the second target component includes: According to the position and size information of the second target component, intercepting the second area image information of the area; Based on the image template matching algorithm, the shape information of the slider of the second target component is matched in the second area image to obtain the position information of the slider. Get the slider target in the template that matches the slider; The center point of the slider target is obtained according to an edge fitting algorithm, and a real-time variable resistance value of the second target component is obtained by performing proportional calculation based on the position coordinate information of the center point, the width information of the second target component, and the maximum value; Wherein, the method for obtaining the reading of the third target component includes: An AD converter is built into the third target component, and the real-time value of the AD converter is read through an embedded chip and transmitted to the NPU edge computing platform through a built-in Bluetooth module and BLE5.0 protocol.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the electrical test grading method based on edge computing as described in any one of claims 1 to 2.

5. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the electrical examination grading method based on edge computing as described in any one of claims 1 to 2 when executing the computer program.

Citation Information

Patent Citations

  • Computer application examination system

    CN108122181A

  • Education blackboard-writing assessment system based on intelligent hardware and cloud platform

    CN110322086A

  • Scoring method and system for CPR examination training and examination of doctors

    CN112233516A

  • Image fuzzy detection method and device based on contour deep learning

    CN113326720A