Law enforcement quality supervision system based on computer vision and semantic analysis
Through computer vision and semantic analysis technology, the problems of high misjudgment rate of handprints, seals and signature recognition and insufficient semantic analysis in law enforcement documents are solved, and efficient law enforcement compliance assessment is achieved, which improves law enforcement transparency and fairness.
Patent Information
- Application Number
- CN202410811270.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing law enforcement quality supervision system has a high misjudgment rate when processing handprints, seals and signature recognition in law enforcement documents, and is slow in processing in big data environments, so it cannot effectively respond to the needs of real-time data analysis, and semantic analysis is not enough to handle complex legal terms. and conditions that lead to impairment of law enforcement efficiency and transparency.
Using a system based on computer vision and semantic analysis, the image brightness and contrast are adjusted through the image capture module, edge detection and pixel-level optimization are applied, image features are extracted using convolutional neural networks, and key features of handprints, seals and signatures are analyzed in combination with deep learning. And evaluate the compliance of text content through semantic association technology and perform logical verification to ensure the legality of legal steps.
It significantly improves the accuracy of document verification and system response speed, reduces misjudgments, can comprehensively review the compliance of law enforcement texts, strengthens law enforcement transparency and fairness, and reduces the possibility of human resource investment and human error.
Smart Images

Figure CN118898841A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of law enforcement supervision, and in particular to a law enforcement quality supervision system based on computer vision and semantic analysis. Background Art
[0002] The field of law enforcement supervision technology involves the use of technical tools and methods to ensure the compliance, transparency and efficiency of law enforcement. Key technologies include data analysis, video surveillance, real-time behavior monitoring and post-event analysis. The purpose is to automate the supervision of law enforcement processes through technical means such as artificial intelligence, machine learning, computer vision, etc., reduce human errors and biases, and improve the fairness of law enforcement. Law enforcement supervision technology is also used in public security, prison management, border control and other government regulatory departments to improve response speed and decision-making quality.
[0003] The main purpose of the law enforcement quality supervision system is to automatically monitor and evaluate the behavior in the law enforcement process to ensure that the behavior of law enforcement personnel complies with legal and ethical standards. The system analyzes the behavior patterns of law enforcement personnel and detects possible violations or abnormal behaviors, thereby providing real-time feedback and follow-up training suggestions. It usually integrates video analysis, voice recognition and other sensor data, and uses deep learning models to perform semantic analysis of law enforcement behavior to enhance law enforcement transparency and public trust.
[0004] Existing technologies usually rely on basic data analysis and video surveillance in law enforcement quality monitoring, and lack advanced recognition capabilities for handprints, seals, and signatures in legal documents, which may lead to high misjudgment rates when processing these elements, especially in the case of poor image quality. In addition, existing methods are not fast enough in big data environments to effectively meet the analysis needs of large amounts of real-time data, which may delay critical law enforcement decisions in emergency situations. The semantic analysis of existing technologies is usually insufficient to handle the matching of complex legal terms and conditions, resulting in the inability to fully and automatically assess the compliance of text content. These limitations have led to reduced efficiency and transparency in the law enforcement process, especially in areas such as public security and border control that require a rapid response. Inefficiency and processing delays may lead to major security risks and management errors. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings existing in the prior art and to propose a law enforcement quality supervision system based on computer vision and semantic analysis.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: the law enforcement quality supervision system based on computer vision and semantic analysis includes:
[0007] The image capture module captures images based on fingerprints, seals and signatures in law enforcement documents, adjusts image brightness and contrast to enhance image quality, applies edge detection to determine image boundaries, and performs pixel-level optimization to ensure maximum image details and generate image output data;
[0008] The feature extraction module uses a convolutional neural network to extract image texture and structural information based on the image output data, performs deep learning analysis on key features in handprints, seals and signatures, encodes shapes, sizes and pressure points respectively, forms a unified feature descriptor based on the encoding, and generates a feature data set;
[0009] The semantic analysis module performs vocabulary analysis based on the text content in the law enforcement documents, identifies key legal terms, uses semantic association technology to link the legal terms in the text with the actual application scenarios, evaluates the consistency by comparing the terms in the text with the feature data set, and marks the inconsistent parts to generate semantic consistency analysis results;
[0010] The logic verification module performs condition matching based on the semantic consistency analysis results, verifies the legal procedures and regulations in the law enforcement text one by one, uses logic matching to check the legality of each legal step, summarizes all legal steps that have passed the verification, marks abnormal points for legal steps that have not passed the verification, and generates logic compliance confirmation results.
[0011] As a further solution of the present invention, the step of acquiring the image output data is:
[0012] Capture digital images of fingerprints, seals and signatures in law enforcement documents to obtain an initial image dataset;
[0013] The brightness and contrast of the initial image data set are adjusted using the formula,
[0014]
[0015] Where I′ is the adjusted image, α is the brightness adjustment coefficient used to enhance the overall brightness, β is the contrast offset used to adjust the contrast, γ is the normalization factor, δ is the exponential adjustment parameter used to control the nonlinear degree of image brightness enhancement, ∈ is the logarithmic gain coefficient used to enhance the details of low-brightness areas, and generate the adjusted image dataset;
[0016] Based on the adjusted image data set, an edge detection algorithm is applied, using the formula,
[0017]
[0018] Among them, G x and G yis the gradient of the image in the x and y directions, κ is the gradient normalization coefficient, μ is the edge contrast enhancement coefficient, and the image data set after edge detection is obtained;
[0019] The image data set after edge detection is optimized at pixel level using the formula
[0020]
[0021] Wherein, I′ is the adjusted image, E(I′) is the edge enhanced image of I′, λ is the edge enhancement coefficient, ν is the adjustment factor, and ξ is the power of the enhancement operation, which is used to adjust the detail level of image processing to obtain image output data.
[0022] As a further solution of the present invention, the step of extracting the image texture and structure information is:
[0023] The image output data is normalized so that the pixel value ranges from 0 to 1, using the formula,
[0024]
[0025] Where, I is the image output data, I min and I max are the minimum and maximum values of the image output data, respectively, to generate a standardized image data set;
[0026] The standardized image data is input into the convolutional neural network, and the texture and structural information of the image is extracted through multi-layer convolution operations. The feature extraction formula is used.
[0027]
[0028] Among them, x and y represent the position coordinates of the pixel, F(x, y) represents the eigenvalue of the position (x, y), k is the radius of the convolution kernel, and W ij is the weight in the convolution kernel, I norm (x+i, y+j) is the normalized pixel value involved in the convolution operation to generate a feature map set;
[0029] The feature map set is pooled to reduce the dimension and highlight the key features. The pooling formula is used.
[0030] P(m,n)=max a,b∈S (F(m·s+a,n·s+b))
[0031] Among them, m and n represent the output position of the pooling operation, a and b are the offsets within the pooling window, P(m,n) is the feature value after pooling, S is the pooling window, and s is the step size of the window movement to generate a pooled feature map set.
[0032] As a further solution of the present invention, the step of acquiring the feature data set is:
[0033] Using the pooled feature map set, deep learning analysis is performed to identify and distinguish key features in fingerprints, seals and signatures. Through the deep learning analysis formula,
[0034]
[0035] Where A is the characteristic activity, W h is the learning weight, adjusting the sensitivity to the target feature, H is the total number of feature maps after pooling, and P h is the pooled feature value in the feature map set, and b is the bias term, which is used to adjust the activation threshold and generate the active feature set;
[0036] Encode the active feature set, describing the shape, size and pressure point, and apply the encoding formula,
[0037]
[0038] Among them, C is the encoding result, ω m is the encoding weight of the target active feature, M represents the total number of active features, and A m is a single feature in the active feature set, generating the coded feature set;
[0039] Using the encoding feature set, a unified processing formula is applied,
[0040]
[0041] Where D is the unified feature descriptor, σ n is the normalization coefficient of each feature descriptor, ensuring that the feature descriptors are comparable between difference images, C n is the encoding feature, N is the number of features, and a feature dataset is generated.
[0042] As a further solution of the present invention, the step of identifying the key legal terms is:
[0043] Preprocess the text in the law enforcement documents, remove irrelevant symbols and numbers, and use formulas to
[0044]
[0045] Among them, T raw is the original text data, k is the coefficient for adjusting the steepness of the curve, e is a constant, and τ is the parameter that determines the threshold. The cleaned text data set T is generated clean ;
[0046] According to the cleaned text data set, vocabulary parsing is performed,
[0047]
[0048] Among them, w i is the weight coefficient, which adjusts the importance of the difference text, θ i is the offset angle, used to adjust the resolution angle. is the i-th part of the preprocessed text, n is the total number of text parts, and the parsed vocabulary set V is generated;
[0049] According to the parsed vocabulary set V, key legal terms are analyzed and identified, using the formula:
[0050]
[0051] Among them, L is the recognition strength of the vocabulary, V j is the jth word parsed from the text, m is the total number of words, is the weight of the jth entry in the legal term dictionary, generating a set of key legal terms.
[0052] As a further solution of the present invention, the step of obtaining the semantic consistency analysis result is:
[0053] Based on the set of key legal terms, a semantic association is established with the legal terms in the text, using the formula,
[0054]
[0055] Among them, R is the semantic association result, α k is the adjustment factor, L k is the kth term in the set of key legal terms, C k is the context feature associated with the kth term, p is the total number of terms, and a semantic association result set is generated;
[0056] The semantic association result and the feature data set are used to perform consistency assessment, using the formula:
[0057]
[0058] Among them, R is the semantic association result, F is the feature data set, max(F) is the maximum feature value in the feature data set, and the consistency evaluation result set is generated;
[0059] The inconsistent parts of the consistency evaluation result set are marked using the formula,
[0060] M=sign(U-∈)
[0061] Among them, U is the result of consistency assessment, sign represents the function, ∈ is the threshold of consistency judgment, and the semantic consistency analysis result M is obtained.
[0062] As a further solution of the present invention, the steps of verifying the legitimacy are:
[0063] Extract key information from the semantic consistency analysis results, perform condition matching, and use the formula:
[0064]
[0065] Among them, α i Each term T i The importance weight, λ i is the attenuation coefficient of the term, used to adjust the matching sensitivity, T i is the legal clause obtained from semantic analysis, B is the presupposed legal condition, N is the total number of clauses, d(T i ,B) is T i The distance between A and B, C is the normalized result, and the condition matching result set is obtained;
[0066] Verify the condition matching result set one by one, using the formula for verification.
[0067]
[0068] Among them, validate(C i ) is the target condition matching result, β i It is C i The verification weight of , μ is the expected legality standard deviation, which is used to adjust the expected legality level, n represents the total number of matching results, and D is the root mean square deviation of the verification results, which measures the legality level of each clause and obtains the verification results;
[0069] Perform a logical matching test on the verification results and use a formula to perform a comprehensive score.
[0070]
[0071] Among them, ∈ i is the weight of the logic match, η is a small positive number used to ensure that the domain of the logarithmic function is positive, E represents the average legitimacy score of the logic check, n represents the total number of verification results, logic_check(D i ∈ is the logic verification result, and the output is the legality verification result.
[0072] As a further solution of the present invention, the steps of obtaining the logic compliance confirmation result are:
[0073] The legality test results are summarized using the formula:
[0074]
[0075] Among them, E k A single result of the legality check is used to determine whether it passes. K represents the total number of legality check results that pass, h represents the weight, and F represents the weighted total number of legal steps that pass the verification, which measures the total number of passes. k ) represents the check function, which returns 1 (pass) or 0 (fail), and sets θ k is each result E k The passing threshold is obtained to obtain the summary results of the legal steps;
[0076] Mark the results that fail the legality check using the formula,
[0077]
[0078] Among them, θ k is each result E k The passing threshold is used to calculate the weight of the failed ones, 1-θ k Indicates the weight of failure, adjusts the degree of attention paid to the failed verification results, fail(E k ) represents the check function, which returns 1 (passed) or 0 (failed), G is the weighted total number of legal steps that failed, K represents the total number of legality check results that failed, and the summary results of legal steps that failed are obtained;
[0079] The following formula is used to integrate the results of the above mentioned legal steps and the results of the above mentioned legal steps:
[0080]
[0081] Among them, H is the confirmation result, which means the passing ratio and outputs the logical compliance confirmation result.
[0082] Compared with the prior art, the advantages and positive effects of the present invention are:
[0083] In the present invention, by integrating computer vision and semantic analysis technology, accurate recognition and analysis of fingerprints, seals and signatures in law enforcement documents are achieved, and the accuracy of document verification is significantly improved. Boundary detection and pixel-level optimization ensure the fine capture of image details, enabling the system to identify subtle image changes with higher resolution, and improving the system's response speed and sensitivity to complex details. Deep learning technology reduces misjudgment and improves the reliability of authenticity determination during the recognition and encoding of image features. Through automated semantic analysis and logical verification, the system can comprehensively review the compliance of law enforcement texts, enhance the transparency and fairness of law enforcement, and at the same time reduce the investment in human resources and the possibility of human errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1 is a system flow chart of the present invention;
[0085] Figure 2 This is a flowchart for obtaining the image output data of the present invention;
[0086] Figure 3 The flowchart of extracting image texture and structure information of the present invention;
[0087] Figure 4 A flowchart for obtaining a feature data set of the present invention;
[0088] Figure 5 A flow chart for identifying key legal terms of the present invention;
[0089] Figure 6 A flowchart for obtaining the semantic consistency analysis result of the present invention;
[0090] Figure 7 A flowchart for verifying the legality of the present invention;
[0091] Figure 8 The figure is a flow chart for obtaining the logical compliance confirmation result of the present invention. DETAILED DESCRIPTION
[0092] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0093] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a target position, be constructed and operated in the target position, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0094] Embodiment 1
[0095] See also Figure 1 , the law enforcement quality supervision system based on computer vision and semantic analysis includes:
[0096] The image capture module captures images based on fingerprints, seals and signatures in law enforcement documents, adjusts image brightness and contrast to enhance image quality, applies edge detection to determine image boundaries, and performs pixel-level optimization to ensure maximum image details and generate image output data;
[0097] The feature extraction module uses a convolutional neural network to extract image texture and structural information based on image output data, performs deep learning analysis on key features in handprints, seals, and signatures, encodes the shape, size, and pressure point, forms a unified feature descriptor based on the encoding, and generates a feature data set;
[0098] The semantic analysis module performs vocabulary analysis based on the text content in law enforcement documents, identifies key legal terms, uses semantic association technology to link legal clauses in the text with actual application scenarios, evaluates consistency by comparing the terms in the text with feature data sets, and marks inconsistent parts to generate semantic consistency analysis results;
[0099] The logic verification module performs conditional matching based on the results of semantic consistency analysis, verifies the legal procedures and regulations in the law enforcement text one by one, uses logic matching to check the legality of each legal step, summarizes all legal steps that have passed the verification, marks abnormal points for legal steps that have not passed the verification, and generates logic compliance confirmation results.
[0100] The image output data includes detail enhancement results, color correction results and image boundary clarity optimization results; the feature data set includes handprint shape identification, seal size measurement results and signature pressure point analysis results; the semantic consistency analysis results include term matching, scene relevance and consistency marking; the logical compliance confirmation results include legal step verification results, anomaly point marking records and compliance assessment results.
[0101] See also Figure 2 , the steps to obtain image output data are:
[0102] Capture digital images of fingerprints, seals and signatures in law enforcement documents to obtain an initial image dataset;
[0103] The brightness and contrast of the initial image dataset are adjusted using the formula,
[0104]
[0105] Where I′ is the adjusted image, α is the brightness adjustment coefficient used to enhance the overall brightness, β is the contrast offset used to adjust the contrast, γ is the normalization factor, δ is the exponential adjustment parameter used to control the nonlinear degree of image brightness enhancement, ∈ is the logarithmic gain coefficient used to enhance the details of low-brightness areas, and generate the adjusted image dataset;
[0106] Based on the adjusted image dataset, an edge detection algorithm is applied using the formula,
[0107]
[0108] Among them, G x and G y is the gradient of the image in the x and y directions, κ is the gradient normalization coefficient, μ is the edge contrast enhancement coefficient, and the image data set after edge detection is obtained;
[0109] The image dataset after edge detection is optimized at the pixel level using the formula
[0110]
[0111] Wherein, I′ is the adjusted image, E(I′) is the edge enhanced image of I′, λ is the edge enhancement coefficient, ν is the adjustment factor, and ξ is the power of the enhancement operation, which is used to adjust the detail level of image processing to obtain image output data.
[0112] Assume that in the process of identifying a law enforcement document,
[0113] α: Brightness adjustment coefficient, assumed to be 1.2, used to enhance the overall brightness;
[0114] β: contrast offset, assumed to be 0.05, used to fine-tune the contrast;
[0115] γ: normalization factor, assumed to be 255 (commonly used in processing 8-bit images, maximum brightness value);
[0116] δ: exponential adjustment parameter, assumed to be 0.8, used to adjust the nonlinear degree of brightness enhancement;
[0117] ∈: logarithmic gain coefficient, assumed to be 0.01, to enhance the details of low-brightness areas;
[0118] Assuming the original pixel value I = 100, then,
[0119] Normalized brightness value:
[0120]
[0121] Brightness adjustment:
[0122]
[0123] Pixel value after brightness enhancement:
[0124] α·0.473≈1.2×0.473≈0.568
[0125] Contrast adjustment section:
[0126] β·log(1+∈·I)=0.05·log(1+0.01×100)≈0.05·log(2)=0.05
[0127] Final pixel value:
[0128] I′=0.568+0.05=0.618
[0129] The final calculation result I′=0.618 represents the result after the brightness and contrast of the original pixel value are adjusted.
[0130] Assumptions:
[0131] G x : Gradient in the x direction, assumed to be 20;
[0132] G y : Gradient in the y direction, assumed to be 15;
[0133] κ: gradient normalization coefficient, assumed to be 10;
[0134] μ: edge contrast enhancement coefficient, assumed to be 0.5;
[0135] Compute the normalized x gradient:
[0136]
[0137] Compute the normalized y gradient:
[0138]
[0139] Edge strength calculation:
[0140]
[0141] The final edge strength G≈2.96 represents the strength of the edge detection result of a certain point in the image. The larger this value is, the more obvious the edge feature of the point is, which is helpful for subsequent image analysis and processing.
[0142] If the following data exists,
[0143] I′: pixel value obtained by the above calculation, which is 0.618;
[0144] E(I′): edge-enhanced image of I′, assumed to be 0.58;
[0145] λ: edge enhancement coefficient, assumed to be 1.5;
[0146] ν: adjustment factor, assumed to be 0.1;
[0147] ξ: the power of the enhancement operation, assumed to be 2;
[0148] Edge enhancement difference calculation:
[0149] I′-E(I′)=0.618-0.58=0.038
[0150] Difference normalization:
[0151]
[0152] Apply enhancement factors and powers:
[0153]
[0154] Final pixel enhancement calculation:
[0155] I″=I′+λ·0.1444=0.618+1.5·0.1444=0.618+0.2166=0.8346
[0156] The final pixel value I″=0.8346 represents the result of edge enhancement processing on a certain pixel in the original image, showing a significant enhancement of the edge part, which helps to make the details of the image more prominent. In subsequent image analysis tasks, such as feature recognition or image classification, the enhanced edges can help the algorithm better understand the image content.
[0157] See also Figure 3 , the steps for extracting image texture and structure information are:
[0158] Normalize the image output data so that the pixel value range is between 0 and 1, using the formula,
[0159]
[0160] Where, I is the image output data, I min and I max are the minimum and maximum values of the image output data, respectively, to generate a standardized image data set;
[0161] The standardized image data is input into the convolutional neural network, and the texture and structural information of the image is extracted through multi-layer convolution operations. The feature extraction formula is used.
[0162]
[0163] Among them, x and y represent the position coordinates of the pixel, F(x, y) represents the eigenvalue of the position (x, y), k is the radius of the convolution kernel, and W ij is the weight in the convolution kernel, I norm (x+i, y+j) is the normalized pixel value involved in the convolution operation to generate a feature map set;
[0164] Perform pooling operations on the feature map set to reduce the dimension and highlight the key features. Use the pooling formula.
[0165] P(m,n)=max a,b∈S (F(m·s+a,n·s+b))
[0166] Among them, m and n represent the output position of the pooling operation, a and b are the offsets within the pooling window, P(m,n) is the feature value after pooling, S is the pooling window, and s is the step size of the window movement to generate a pooled feature map set.
[0167] Assume that the following data exists:
[0168] I: A pixel value in the image output data, assuming that the pixel value range is 0 to 255;
[0169] I min : The minimum pixel value in the image output data, assuming the minimum value is 0;
[0170] I max : The maximum pixel value in the image output data, assuming the maximum value is 255;
[0171] Assume there is a pixel value I=128:
[0172] Calculate the normalization process:
[0173]
[0174] The normalized value I norm ≈0.502 indicates the relative position of the original grayscale value 128 in the range of 0 to , which can be used for network input so that the input data is at the same order of magnitude for easy processing.
[0175] Feature extraction:
[0176] x, y: pixel position of the target, assuming position (x, y) = (1, 1);
[0177] k: The radius of the convolution kernel. Assuming a 3×3 convolution kernel is used, k=1;
[0178] W ij : The weight in the convolution kernel, the weight is learned through network training, and is simplified to a uniform weight of 1 here;
[0179] I norm (x+i,y+j): the values of the surrounding pixels in the normalized image;
[0180] If the I around the position (x, y) norm The values are as follows:
[0181] Inorm (0,0)=0.5,I norm (0,1)=0.6,I norm (0,2)=0.55
[0182] I norm (1,0)=0.65,I norm (1,1)=0.7,I norm (1,2)=0.6
[0183] I norm (2,0)=0.55, I norm (2,1)=0.5,I norm (2,2)=0.45
[0184] Computational feature extraction:
[0185] F(1,1)=(0.5+0.6+0.55+0.65+0.7+0.6+0.55+0.5+0.45)=5.1
[0186] F(1,1)=5.1 indicates the sum of the features calculated by the 3×3 convolution kernel at this position, which can be used for the next layer of network or activation function processing.
[0187] Feature Map Pooling:
[0188] S: pooling window size, assuming the window is 2×2, that is, each window contains 4 pixels;
[0189] s: step size, assuming it is 2, which means the window moves two pixels each time;
[0190] a, b: the value is 0 or 1;
[0191] Assume that the feature map F is in a 4×4 region as follows:
[0192] F(0,0)=5, F(0,1)=6, F(0,2)=7, F(0,3)=8
[0193] F(1,0)=9, F(1,1)=10, F(1,2)=11, F(1,3)=12
[0194] F(2,0)=13, F(2,1)=14, F(2,2)=15, F(2,3)=16
[0195] F(3,0)=17, F(3,1)=18, F(3,2)=19, F(3,3)=20
[0196] Compute pooling:
[0197] Calculate P(0,0):
[0198] For the pooled output position m=0, n=0, the window coverage area is F(0·2+a, 0·2+b),
[0199] Therefore, the window includes: F(0,0), F(0,1), F(1,0), F(1,1).
[0200] Find the maximum value: P(0,0)=max(5,6,9,10)=10
[0201] Calculate P(0,1):
[0202] For the pooled output position m=0, n=1, the window coverage area is F(0·2+a, 1·2+b).
[0203] Therefore, the window includes: F(0,2), F(0,3), F(1,2), F(1,3).
[0204] Find the maximum value: P(0,1)=max(7,8,11,12)=12
[0205] Calculate P(1,0):
[0206] For the pooled output position m=1, n=0, the window coverage area is F(1·2+a, 0·2+b).
[0207] Therefore, the window includes: F(2,0), F(2,1), F(3,0), F(3,1).
[0208] Find the maximum value: P(1,0)=max(13,14,17,18)=18
[0209] Calculate P(1,1):
[0210] For the pooled output position m=1, n=1, the window coverage area is F(1·2+a, 1·2+b).
[0211] Therefore, the window includes: F(2,2), F(2,3), F(3,2), F(3,3).
[0212] Find the maximum value: P(1,1)=max(15,16,19,20)=20
[0213] P(0,0)=10: indicates that the most significant feature value in the upper left corner of the image is 10, which indicates that this area has a higher feature activity. P(0,1)=12, P(1,0)=18, and P(1,1)=20 are similar, indicating the most significant feature values in other areas.
[0214] See also Figure 4, the steps to obtain the feature data set are:
[0215] Using the pooled feature map set, deep learning analysis is performed to identify and distinguish the key features in fingerprints, seals and signatures. Through the deep learning analysis formula,
[0216]
[0217] Where A is the characteristic activity, W h is the learning weight, adjusting the sensitivity to the target feature, H is the total number of feature maps after pooling, and P h is the pooled feature value in the feature map set, and b is the bias term, which is used to adjust the activation threshold and generate the active feature set;
[0218] Encode the active feature set, describing the shape, size and pressure point, and apply the encoding formula,
[0219]
[0220] Among them, C is the encoding result, ω m is the encoding weight of the target active feature, M represents the total number of active features, and A m is a single feature in the active feature set, generating the coded feature set;
[0221] Using the coded feature set and applying the unified processing formula,
[0222]
[0223] Where D is the unified feature descriptor, σ n is the normalization coefficient of each feature descriptor, ensuring that the feature descriptors are comparable between difference images, C n is the encoding feature, N is the number of features, and a feature dataset is generated.
[0224] Assume that the total number of feature maps H is 4,
[0225] The pooled feature value P is as follows, and each weight W h is 0.5, and the bias b is 1:
[0226] P = [10, 15, 20, 25]
[0227] Computational feature analysis:
[0228] A=ReLU(0.5·10+0.5·15+0.5·20+0.5·25+1)
[0229] A=ReLU(5+7.5+10+12.5+1)=ReLU(36)=36
[0230] A=36 represents the output after ReLU activation, indicating the characteristic response strength after activation, which is used for the next step of encoding and analysis.
[0231] Assumptions:
[0232] ω m : Coding weight, adjust the contribution of each feature in the final coding, assuming that they are all 1;
[0233] A m : Features from the active feature set of the step, assuming there are four features: 36, 40, 45, 50;
[0234] M: the total number of active features, assumed to be 4;
[0235] Calculate feature encoding:
[0236] C=1·36+1·40+1·45+1·50=171
[0237] C=171 represents the encoding result obtained by integrating various features such as shape, size and pressure point. This encoding value will be used to form a unified feature descriptor.
[0238] Assumptions:
[0239] σ n : Unification coefficient, used to balance the contribution of features, assumed to be 1;
[0240] C n : The encoded feature set from step 2, assumed to be 171, 180, 190, 200;
[0241] N: number of features, assumed to be 4;
[0242] Compute unified feature descriptors:
[0243]
[0244] D = 185.25 represents the summarized and standardized feature description value, providing a comprehensive quantitative indicator that represents the unified feature description of handprints, seals and signatures for further identification or classification.
[0245] See also Figure 5 , the steps for identifying key legal terms are:
[0246] Preprocess the text in the law enforcement documents, remove irrelevant symbols and numbers, and use formulas to
[0247]
[0248] Among them, T rawis the original text data, k is the coefficient for adjusting the steepness of the curve, e is a constant, and τ is the parameter that determines the threshold. The cleaned text data set T is generated clean ;
[0249] According to the cleaned text data set, vocabulary parsing is performed.
[0250]
[0251] Among them, w i is the weight coefficient, which adjusts the importance of the difference text, θ i is the offset angle, used to adjust the resolution angle. is the i-th part of the preprocessed text, n is the total number of text parts, and the parsed vocabulary set V is generated;
[0252] According to the parsed vocabulary set V, analyze and identify key legal terms, using the formula,
[0253]
[0254] Among them, L is the recognition strength of the vocabulary, V j is the jth word parsed from the text, m is the total number of words, is the weight of the jth entry in the legal term dictionary, generating a set of key legal terms.
[0255] Suppose when processing a law enforcement text,
[0256] T raw : Original text data, assuming the text contains 1000 characters;
[0257] k: coefficient for adjusting the steepness of the curve, set to 0.01;
[0258] τ: Parameter that determines the threshold, set to 500, which means that text with more than this number of characters requires stronger cleaning efforts;
[0259] Assume T raw The number of valid characters is 1000, and e is a constant (taken as 2.71828), then,
[0260]
[0261] Calculation result T clean ≈0.993 indicates that the original text is almost completely preserved after processing (close to 1 indicates a low degree of cleaning) and is suitable for further analysis.
[0262] Assumptions:
[0263] w i : Weight coefficient, set to 1;
[0264] θ i : Offset angle, set to
[0265] The i-th part of the preprocessed text, assuming there are 5 parts, each part is 0.993 after preprocessing;
[0266] n: Set to 5, indicating that the text is divided into 5 parts, then,
[0267]
[0268] The calculation result V≈3.51 represents the weighted sum after lexical parsing, which can be used for the next step of legal term identification.
[0269] like:
[0270] V j : The jth word parsed from the text, assuming that the value of each word is 3.51;
[0271] The weight of the jth entry in the legal term dictionary, assuming that each weight is 1;
[0272] m: Assumed to be 5, indicating that there are 5 key words;
[0273] but,
[0274]
[0275] The calculated result L≈7.849 shows that the recognition results of key legal terms have high strength and can be used to evaluate the significance of legal terms in the text.
[0276] See also Figure 6 , the steps to obtain the semantic consistency analysis results are:
[0277] Based on the key legal term set, semantic associations are established with legal clauses in the text, using formulas,
[0278]
[0279] Among them, R is the semantic association result, α k is the adjustment factor, L k is the kth term in the set of key legal terms, C k is the context feature associated with the kth term, p is the total number of terms, and a semantic association result set is generated;
[0280] The semantic association results and feature data sets are used for consistency assessment, using the formula,
[0281]
[0282] Among them, R is the semantic association result, F is the feature data set, max(F) is the maximum feature value in the feature data set, and the consistency evaluation result set is generated;
[0283] Mark the inconsistent parts of the consistency assessment result set using the formula,
[0284] M=sign(U-∈)
[0285] Among them, U is the result of consistency assessment, sign represents the function, ∈ is the threshold of consistency judgment, and the semantic consistency analysis result M is obtained.
[0286] Assume the following data exists:
[0287] α k : Adjustment factor, assuming that each factor is set to 1;
[0288] L k : The kth term in the set of key legal terms, assuming that the weight of each term is evaluated as 0.8;
[0289] C k : The context features associated with the k-th term, assuming that the matching degree of the scene is 0.9;
[0290] p: Assume that 5 terms are processed;
[0291] but,
[0292]
[0293] The calculation result R≈1.791 shows that the strength of the established semantic association is high, indicating that the legal terminology matches the actual application scenarios well.
[0294] Conduct a consistency assessment:
[0295] R: The semantic association result obtained from the above calculation is 1.791;
[0296] F: the value of the feature data set, assumed to be 2.0;
[0297] max(F): Assume the maximum eigenvalue is 2.0;
[0298] but,
[0299]
[0300] The calculated result U≈0.8955 (close to 1) shows a high degree of consistency, indicating a good match between the terminology and the feature dataset.
[0301] Inconsistent parts mark:
[0302] U: The result of consistency assessment, which is 0.8955.
[0303] ε: The consistency judgment threshold, assumed to be 0.5.
[0304] but,
[0305] M=sign(0.8955-0.5)=sign(0.3955)
[0306] Use the sign function to process the difference. The definition of the sign function is:
[0307] If x>0, then sign(x)=1
[0308] If x=0, then sign(x)=0
[0309] If x<0, then sign(x)=-1
[0310] Because 0.3955 is greater than 0, so:
[0311] sign(0.3955)=1
[0312] Right now,
[0313] M=1
[0314] The calculation result M=1 means that no significant inconsistency is found, so nothing needs to be marked, showing good consistency between the text and the feature dataset.
[0315] See also Figure 7 , the steps for checking the legality are:
[0316] Extract key information from the semantic consistency analysis results, perform conditional matching, and use formulas to
[0317]
[0318] Among them, α i Each term T i The importance weight, λ i is the attenuation coefficient of the term, used to adjust the matching sensitivity, T i is the legal clause obtained from semantic analysis, B is the presupposed legal condition, N is the total number of clauses, d(T i ,B) is T i The distance between A and B, C is the normalized result, and the condition matching result set is obtained;
[0319] Verify the condition matching result set one by one, using formulas for verification.
[0320]
[0321] Among them, validate(C i ) is the target condition matching result, β i It is C i The verification weight of , μ is the expected legality standard deviation, which is used to adjust the expected legality level, n represents the total number of matching results, and D is the root mean square deviation of the verification results, which measures the legality level of each clause and obtains the verification results;
[0322] Perform a logical matching test on the verification results and use the formula for comprehensive scoring.
[0323]
[0324] Among them, ε i is the weight of the logic match, η is a small positive number used to ensure that the domain of the logarithmic function is positive, E represents the average legitimacy score of the logic check, n represents the total number of verification results, logic_check(D i ) is the logic verification result, and outputs the legality check result.
[0325] Assume there are three legal clauses, and the distance between the clauses is d(T i ,B) are 0.1, 0.2, 0.3 respectively, and the importance weight α i are 1, 2, 3 respectively, and the attenuation coefficient λ i are all set to 1, then,
[0326]
[0327] The result 1.589 indicates the average degree of match between the terms and the pre-conditions, with higher values indicating better match.
[0328] Assume there are three clauses, validation result validate(C i ) are 0.8, 0.6, 0.9 respectively, and the weight β i is 1, 2, 1, and the preset deviation μ is 0.7, then,
[0329]
[0330] The result 0.548 represents the average deviation, and the lower the deviation, the higher the legitimacy.
[0331] Assume there are three logic check results logic_check(D i ) are 1.1, 0.8, 1.0 respectively, and the weight ∈ i is 1, 1, 1, assuming η = 1e-10 (i.e. e to the negative 10th power, approximately equal to 0.00001), then,
[0332]
[0333] The result -0.0615 represents the average legitimacy score of the logic check, where close to zero indicates average legitimacy and negative values indicate some problems or risks.
[0334] See also Figure 8 , the steps to obtain the logical compliance confirmation results are:
[0335] Summarize the results of the legality check and use the formula:
[0336]
[0337] Among them, E k A single result of the legality check is used to determine whether it passes. K represents the total number of legality check results that pass, h represents the weight, and F represents the weighted total number of legal steps that pass the verification, which measures the total number of passes. k ) represents the check function, which returns 1 (pass) or 0 (fail), and sets θ k is each result E k The passing threshold is obtained to obtain the summary results of the legal steps;
[0338] Mark the results that fail the legality check using the formula,
[0339]
[0340] Among them, θ k is each result E k The passing threshold is used to calculate the weight of the failed ones, 1-θ k Indicates the weight of failure, adjusts the degree of attention paid to the failed verification results, fail(E k ) represents the check function, which returns 1 (passed) or 0 (failed), G is the weighted total number of legal steps that failed, K represents the total number of legality check results that failed, and the summary results of legal steps that failed are obtained;
[0341] To integrate the results of the legal steps and the results of the legal steps, use the following formula:
[0342]
[0343] Among them, H is the confirmation result, which means the passing ratio and outputs the logical compliance confirmation result.
[0344] Assume there are three validity test results E k are 1.1, 0.6, and 1.3 respectively. Assume that the threshold θ kSet to 0.9, and set the weight h to 1, then,
[0345] pass(1.1) = 1 (because 1.1>1)
[0346] pass(0.6) = 0 (because 0.6 < 1)
[0347] pass(1.3) = 1 (because 1.3>1)
[0348] It follows that
[0349] F=1·1+0·1+1·1=2
[0350] The result F=2 means that two legal steps have passed the legality test.
[0351] Use the same E k and θ k ,but,
[0352] fail(1.1)=0 (because 1.1>1)
[0353] fail(0.6)=1 (because 0.6<1)
[0354] fail(1.3) = 0 (because 1.3 > 1)
[0355] 1-θ k )=0.1 (for the items that pass, the factor is 0, so it does not affect the result), and then we can conclude that
[0356] G=0·(1-0.9)+1·(1-0)+0·(1-0.9)=1
[0357] The result indicated that one legal step failed the test and was flagged.
[0358] Based on the above calculation results, F = 2 and G = 1, we can get:
[0359]
[0360] The result H≈0.667 indicates that about 67% of the legal steps meet the compliance criteria.
[0361] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. Law enforcement quality supervision system based on computer vision and semantic analysis, characterized by: The system comprises: The image capture module captures images based on fingerprints, seals and signatures in law enforcement documents, adjusts image brightness and contrast to enhance image quality, applies edge detection to determine image boundaries, and performs pixel-level optimization to ensure maximum image details and generate image output data; The feature extraction module uses a convolutional neural network to extract image texture and structural information based on the image output data, performs deep learning analysis on key features in handprints, seals and signatures, encodes shapes, sizes and pressure points respectively, forms a unified feature descriptor based on the encoding, and generates a feature data set; The semantic analysis module performs vocabulary analysis based on the text content in the law enforcement documents, identifies key legal terms, uses semantic association technology to link the legal terms in the text with the actual application scenarios, evaluates the consistency by comparing the terms in the text with the feature data set, and marks the inconsistent parts to generate semantic consistency analysis results; The logic verification module performs condition matching based on the semantic consistency analysis results, verifies the legal procedures and regulations in the law enforcement text one by one, uses logic matching to check the legality of each legal step, summarizes all legal steps that have passed the verification, marks abnormal points for legal steps that have not passed the verification, and generates logic compliance confirmation results.
2. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 1 is characterized in that: The steps for obtaining the image output data are as follows: Capture digital images of fingerprints, seals and signatures in law enforcement documents to obtain an initial image dataset; The brightness and contrast of the initial image data set are adjusted using the formula, Where I′ is the adjusted image, α is the brightness adjustment coefficient used to enhance the overall brightness, β is the contrast offset used to adjust the contrast, γ is the normalization factor, δ is the exponential adjustment parameter used to control the nonlinear degree of image brightness enhancement, ∈ is the logarithmic gain coefficient used to enhance the details of low-brightness areas, and generate the adjusted image dataset; Based on the adjusted image data set, an edge detection algorithm is applied, using the formula, Among them, G x and G y is the gradient of the image in the x and y directions, κ is the gradient normalization coefficient, μ is the edge contrast enhancement coefficient, and the image data set after edge detection is obtained; The image data set after edge detection is optimized at pixel level using the formula Wherein, I′ is the adjusted image, E(I′) is the edge enhanced image of I′, λ is the edge enhancement coefficient, ν is the adjustment factor, and ξ is the power of the enhancement operation, which is used to adjust the detail level of image processing to obtain image output data.
3. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 1 is characterized in that: The steps for extracting the image texture and structure information are as follows: The image output data is normalized so that the pixel value ranges from 0 to 1, using the formula, Where, I is the image output data, I min and I max are the minimum and maximum values of the image output data, respectively, to generate a standardized image data set; The standardized image data is input into the convolutional neural network, and the texture and structural information of the image is extracted through multi-layer convolution operations. The feature extraction formula is used. Among them, x and y represent the position coordinates of the pixel, F(x, y) represents the eigenvalue of the position (x, y), k is the radius of the convolution kernel, and W ij is the weight in the convolution kernel, I norm (x+i, y+j) is the normalized pixel value involved in the convolution operation to generate a feature map set; The feature map set is pooled to reduce the dimension and highlight the key features. The pooling formula is used. P(m,n)=max a,b∈S (F(m·s+a,n·s+b)) Among them, m and n represent the output position of the pooling operation, a and b are the offsets within the pooling window, P(m,n) is the feature value after pooling, S is the pooling window, and s is the step size of the window movement to generate a pooled feature map set.
4. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 3 is characterized in that: The steps for obtaining the feature data set are: Using the pooled feature map set, deep learning analysis is performed to identify and distinguish key features in fingerprints, seals and signatures. Through the deep learning analysis formula, Where A is the characteristic activity, W h is the learning weight, adjusting the sensitivity to the target feature, H is the total number of feature maps after pooling, and P h is the pooled feature value in the feature map set, and b is the bias term, which is used to adjust the activation threshold and generate the active feature set; Encode the active feature set, describing the shape, size and pressure point, and apply the encoding formula, Among them, C is the encoding result, ω m is the encoding weight of the target active feature, M represents the total number of active features, and A m is a single feature in the active feature set, generating the coded feature set; Using the encoding feature set, a unified processing formula is applied, Where D is the unified feature descriptor, σ n is the normalization coefficient of each feature descriptor, ensuring that the feature descriptors are comparable between difference images, C n is the encoding feature, N is the number of features, and a feature dataset is generated.
5. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 1 is characterized in that: The steps for identifying the key legal terms are: Preprocess the text in the law enforcement documents, remove irrelevant symbols and numbers, and use formulas to Among them, T raw is the original text data, k is the coefficient for adjusting the steepness of the curve, e is a constant, and τ is the parameter that determines the threshold. The cleaned text data set T is generated clean ; According to the cleaned text data set, vocabulary parsing is performed, Among them, w i is the weight coefficient, which adjusts the importance of the difference text, θ i is the offset angle, used to adjust the resolution angle. is the i-th part of the preprocessed text, n is the total number of text parts, and the parsed vocabulary set V is generated; According to the parsed vocabulary set V, key legal terms are analyzed and identified, using the formula: Among them, L is the recognition strength of the vocabulary, V j is the jth word parsed from the text, m is the total number of words, is the weight of the jth entry in the legal terminology dictionary, generating a set of key legal terms.
6. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 5 is characterized by: The steps for obtaining the semantic consistency analysis result are: Based on the set of key legal terms, a semantic association is established with the legal terms in the text, using the formula, Among them, R is the semantic association result, α k is the adjustment factor, L k is the kth term in the set of key legal terms, C k is the context feature associated with the kth term, p is the total number of terms, and a semantic association result set is generated; The semantic association result and the feature data set are used to perform consistency assessment, using the formula: Among them, R is the semantic association result, F is the feature data set, max(F) is the maximum feature value in the feature data set, and the consistency evaluation result set is generated; The inconsistent parts of the consistency evaluation result set are marked using the formula, M=sign(U-∈) Among them, U is the result of consistency assessment, sign represents the function, ∈ is the threshold of consistency judgment, and the semantic consistency analysis result M is obtained.
7. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 1 is characterized in that: The steps for verifying the legality are: Extract key information from the semantic consistency analysis results, perform condition matching, and use the formula: Among them, α i Each term T i The importance weight, λ i is the attenuation coefficient of the term, used to adjust the matching sensitivity, T i is the legal clause obtained from semantic analysis, B is the presupposed legal condition, N is the total number of clauses, d(T i ,B) is T i The distance between A and B, C is the normalized result, and the condition matching result set is obtained; Verify the condition matching result set one by one, using the formula for verification. Among them, validate(C i ) is the target condition matching result, β i It is C i The verification weight of , μ is the expected legality standard deviation, which is used to adjust the expected legality level, n represents the total number of matching results, and D is the root mean square deviation of the verification results, which measures the legality level of each clause and obtains the verification results; Perform a logical matching test on the verification results and use a formula to perform a comprehensive score. Among them, ∈ i is the weight of the logic match, η is a small positive number used to ensure that the domain of the logarithmic function is positive, E represents the average legitimacy score of the logic check, n represents the total number of verification results, logic_check(D i ) is the logic verification result, and outputs the legality check result.
8. The law enforcement quality supervision system based on computer vision and semantic analysis according to claim 7 is characterized in that: The steps for obtaining the logic compliance confirmation result are: The legality test results are summarized using the formula: Among them, E k A single result of the legality check is used to determine whether it passes. K represents the total number of legality check results that pass, h represents the weight, and F represents the weighted total number of legal steps that pass the verification, which measures the total number of passes. k ) represents the check function, which returns 1 (pass) or 0 (fail), and sets θ k is each result E k The passing threshold is obtained to obtain the summary results of the legal steps; Mark the results that fail the legality check using the formula, Among them, θ k is each result E k The passing threshold is used to calculate the weight of the failed ones, 1-θ k Indicates the weight of failure, adjusts the degree of attention paid to the failed verification results, fail(E k ) represents the check function, which returns 1 (passed) or 0 (failed), G is the weighted total number of legal steps that failed, K represents the total number of legality check results that failed, and the summary results of legal steps that failed are obtained; The following formula is used to integrate the results of the above mentioned legal steps and the results of the above mentioned legal steps: Among them, H is the confirmation result, which means the passing ratio and outputs the logical compliance confirmation result.
Citation Information
Patent Citations
Class case recommendation method for administrative penalty documents based on graph convolutional neural network
CN114048305A
Intelligent administrative law enforcement case information extraction and cause affirmation method
CN114547230A
Automatic legal instrument generation system
CN116822477A
Content identification method, device and system for rich-format long document
CN117373044A
Marine public benefit litigation research and judgment method based on machine learning
CN117668499A
Cited By
Port equipment monitoring method and system based on image processing
CN119540879A
Method and system for intelligently generating alarm processing process report based on law enforcement recorder video
CN119578393A
Picture sensitive information detection method and system
CN120012056A
Image-text printing quality analysis system and method based on machine vision
CN120823176A
A machine vision-based graphics printing quality analysis system and method
CN120823176B
