An AI computing power driven electronic component detection report automatic generation method

The AI-driven method for automatically generating inspection reports for electronic components solves the problems of spatial misalignment and insufficient defect cause analysis in multimodal data fusion, achieving efficient and accurate inspection report generation with process causal reasoning capabilities and strong interpretability.

CN123140761APending Publication Date: 2026-11-20SHENZHEN AISHANSI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611402163.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the generation of electronic component inspection reports relies on manual writing, which is difficult to meet the real-time inspection needs of large-scale production lines. Multimodal data fusion suffers from spatial misalignment problems, and defect cause analysis lacks process causal reasoning, resulting in insufficient accuracy of report generation.

Method used

An AI-driven automatic inspection report generation method is adopted. Through resolution adaptive feature extraction and spatial perception cross-modal attention fusion, combined with causal reasoning analysis based on process knowledge graph, a hierarchical inspection report is generated and optimized through automatic quality inspection and manual review feedback.

Benefits of technology

It improves the accuracy of multimodal feature association and the reliability of defect detection and judgment, and the generated detection report has stronger interpretability and practical reference value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140761A_ABST
    Figure CN123140761A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent manufacturing and industrial detection, and discloses an AI computing power driven electronic component detection report automatic generation method, which comprises the following steps: collecting multi-source data of a detection device, pre-processing, standardizing and integrity checking to form a standardized multi-modal data package; grading a detection task based on a structure perception complexity evaluation model and dynamically distributing a calculation node to an AI computing power resource pool; in a corresponding calculation environment, obtaining a multi-task detection result through resolution adaptive feature extraction and spatial perception cross-modal attention fusion; locating a defect area by using a gradient weighted class activation mapping, and generating a hierarchical detection report by combining with process knowledge graph for causal reasoning analysis; and realizing incremental optimization of the model through automatic quality inspection and manual feedback. The application can solve the spatial dislocation problem in multi-modal data fusion, realize defect cause analysis based on process causal reasoning, and improve the accuracy and interpretability of the detection report.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent manufacturing and industrial inspection technology, and more specifically, to an AI computing power-driven method for automatically generating inspection reports for electronic components. Background Technology

[0002] Electronic component testing is a core aspect of quality control in the electronics manufacturing industry. With the increasing integration of components, the sources of testing data are becoming more diverse, encompassing various modalities such as visible light microscopic images, infrared thermal images, X-ray images, and electrical parameter test data. This results in a large workload and high professional requirements for writing testing reports.

[0003] Currently, the generation of electronic component inspection reports mainly relies on manual writing. Engineers need to check the inspection data item by item, determine the defect type, and write the cause analysis. Each report takes several minutes to more than ten minutes on average, which is difficult to meet the real-time inspection needs of high-volume production lines. Some companies have introduced rule-based template-based automated reporting systems, but these systems can only fill in fixed fields and cannot perform fusion analysis of multimodal data or provide reasoned explanations of defect causes.

[0004] In existing technologies, multimodal data fusion methods suffer from spatial misalignment when processing images of different resolutions, leading to inaccurate cross-modal feature correlations. Furthermore, defect cause analysis often relies on statistical frequency matching of historical cases, lacking systematic reasoning about process causal relationships, resulting in insufficient interpretability of the analytical conclusions. These issues limit the accuracy and practicality of automated inspection report generation systems. Summary of the Invention

[0005] This invention provides an AI-powered method for automatically generating inspection reports for electronic components, which solves the technical problems of insufficient accuracy in report generation caused by spatial misalignment in multimodal data fusion and lack of process causal reasoning in defect cause analysis.

[0006] This invention provides an AI-powered method for automatically generating inspection reports for electronic components, comprising the following steps: S1 collects raw data from multiple sources from the testing equipment, performs preprocessing, standardization, and integrity verification, and outputs standardized multimodal data packets; S2, acquire multimodal data packets, classify tasks through a structure-aware complexity assessment model, dynamically allocate work nodes to the AI ​​computing power resource pool based on the classification results, and obtain a ready work node computing environment that matches the task complexity. S3, based on the matching working node computing environment and multimodal data package, adopts a resolution adaptive feature extraction and spatially aware cross-modal attention fusion method to output multi-task detection judgment results including appearance classification, defect type, performance parameter compliance and quality level; S4 receives the multi-task detection and judgment results, locates the defect area through gradient weighted class activation mapping, and analyzes the cause by combining the process knowledge graph causal reasoning, and generates a layered detection report containing a primary report and a deep analysis report. S5, based on the generated test report, through automatic quality checks and manual review feedback, and through incremental training and continuous optimization mechanisms, outputs a verified final report.

[0007] In a preferred embodiment, in step S1, the multi-source raw data includes two main categories: image data and numerical data. The image data includes at least one of visible light microscopic images, infrared thermal images, and X-ray fluoroscopic images. The numerical data includes at least one of electrical parameter test results, dimensional measurement data, temperature distribution data, and spectrum analysis data. Each type of data carries a timestamp, device identifier, and component batch information as metadata. The preprocessing includes using a histogram equalization algorithm to enhance the contrast of visible light microscopic images, performing pseudo-color mapping on infrared thermal images according to the temperature range, applying medium-range filtering to remove noise from X-ray fluoroscopic images, and temporarily storing the preprocessed image data in memory in tensor format. The standardization includes identifying the physical dimensions of the numerical data and normalizing them, mapping the original values ​​to the range of 0 to 1, using the minimum-maximum scaling method for normalization, identifying outliers using the box plot method and replacing them with boundary values ​​of the normal range before participating in the normalization, and temporarily storing the standardized numerical data in memory.

[0008] In a preferred embodiment, in step S1, the standardized multimodal data packet is constructed by establishing an association index, assigning a unique identifier to each electronic component to be inspected, and associating all image data and numerical data corresponding to the component through the identifier, forming a multimodal data packet containing a component type field, an inspection time field, an inspection station field, an operator field, and an original data file path field. After the association index is established, the preprocessed image tensor and the standardized numerical array are uniformly written to the distributed file system. The integrity check includes checking whether each data packet contains the minimum required data elements. For data packets that fail the integrity check, a supplementary acquisition request is sent to the detection device or the data is marked as incomplete. Only complete data packets are passed to the next step.

[0009] In a preferred embodiment, in step S2, the input features of the structure-aware complexity evaluation model are divided into two categories: data size features and component structure features. The data size features include the total size of the image data, the number of images, the resolution of each modal image, and the number of dimensions of the numerical data. The component structure features include the component package type code, the number of pins, the solder joint density level, and the average inference time of similar historical tasks. The model is implemented using a lightweight multilayer perceptron and outputs a continuous complexity score. Tasks are divided into three levels—lightweight, medium-weight, and heavyweight—based on their complexity scores. Lightweight tasks have a complexity score less than a first preset threshold, medium-weight tasks have a complexity score between the first and second preset thresholds, and heavyweight tasks have a complexity score greater than the second preset threshold. The first and second preset thresholds are dynamically adjusted based on the current total available computing power in the AI ​​computing resource pool and the task queue backlog.

[0010] In a preferred embodiment, in step S2, each computing node in the AI ​​computing power resource pool is preloaded with model weight files and feature database indexes in the field of electronic component detection. The nodes are interconnected through an RDMA network to support direct cross-node transmission of intermediate feature vectors. The resource pool adopts a master-slave architecture, with the master node responsible for task scheduling and status monitoring, and the worker nodes responsible for executing data processing and model inference tasks. The worker nodes are redundantly configured and hot backup nodes are reserved. The dynamic allocation of working nodes includes: assigning one working node to execute the entire detection process for lightweight tasks; assigning two working nodes to handle image modality feature extraction and numerical data feature encoding respectively for medium-level tasks; and assigning four working nodes to perform feature extraction in parallel according to image modality type for heavyweight tasks. For medium-level and heavyweight tasks, the same task is sent to a backup node simultaneously. The backup node starts with a delay, and if the master node fails or times out, the backup node outputs the results. The master node monitors the running status of the working nodes through heartbeat detection and performs task migration for failed nodes.

[0011] In a preferred embodiment, in step S3, the resolution-adaptive feature extraction includes: performing feature extraction on image data of different modalities using independent convolutional neural network branches with residual connections; for visible light microscopic images, the network branch focuses on extracting texture and edge detail features of the solder joint surface; for infrared thermal images, the network branch focuses on extracting gradient and thermal anomaly region features of temperature distribution; and for X-ray fluoroscopic images, the network branch focuses on extracting density difference features of pores and cracks inside the solder joint. Each of the three branches is connected to an adaptive average pooling layer after its respective convolutional block, so that the feature maps extracted by convolution after inputting different resolutions are uniformly adjusted to the same spatial size, so that each spatial position corresponds to the same physical area on the component, thereby achieving spatial alignment. The spatial feature maps of each branch after adaptive average pooling alignment are retained as outputs for subsequent cross-modal attention fusion. Based on this, global average pooling is performed on the spatial feature maps of each branch to obtain the global feature vector corresponding to each branch for historical data comparison and analysis. Both types of outputs are retained in parallel.

[0012] In a preferred embodiment, in step S3, the spatially aware cross-modal attention fusion method includes: concatenating the spatial feature maps of the three modalities after spatial alignment in the channel dimension to form a joint feature map; independently calculating the cross-modal attention weight for each spatial position in the joint feature map; specifically, linearly mapping the joint feature vector at the position through independent query transformation matrix, key transformation matrix, and value transformation matrix to obtain query vector, key vector, and value vector; calculating the dot product of the query vector and key vector, dividing by the square root of the vector dimension, and then normalizing by Softmax to obtain the attention weight; weighted summing of the attention weight and the value vector to obtain the fusion feature at the position; and compressing the fused spatial feature map into a global vector through global average pooling, concatenating it with the numerical feature vector, and mapping it through a fully connected layer to obtain the final fusion feature vector. Historical cases with the same component type and packaging form as the current component are retrieved from the historical inspection database. The top K historical cases are selected using cosine similarity measurement. The frequency of each defect type in the historical defect cases is counted and normalized into a probability distribution vector. The corresponding probability distribution vector is concatenated with the fused feature vector and then mapped back to the original dimension through a fully connected layer as the input of the fused feature vector of the multi-task learning output layer.

[0013] In a preferred embodiment, in step S4, the layered detection report includes a primary detection report and a deep analysis report. The primary detection report includes component information, detection time information, the results of each sub-task in the multi-task detection judgment result, and a brief conclusion. When the overall quality level assessment output in the multi-task detection judgment result is unqualified, or the difference between the measured value of any performance parameter and the specification boundary is less than the preset ratio of the specification range, or the user actively selects the option to generate a deep report, the deep analysis report generation process is triggered. The process of locating the defect region using gradient-weighted class activation mapping includes: using the spatial fusion feature map retained in the spatially perceptual cross-modal attention fusion method as the target feature map; calculating the gradient of the defect judgment result at each spatial location of the spatial fusion feature map; averaging the gradient values ​​over the channel dimension to obtain the importance weight; multiplying the importance weight by the feature value and then passing it through the ReLU activation function to retain the positive contribution region to obtain the activation map; upsampling the activation map to the original image resolution to generate a heatmap; and cropping the highlighted area of ​​the heatmap and its surrounding context area from the original image as the defect region image.

[0014] In a preferred embodiment, in step S4, the construction of the process knowledge graph includes: defining defect phenomena, abnormal process parameters, and root causes as three types of nodes, with directed edges between nodes representing causal relationships, and the initial weight of the edge being calculated by dividing the frequency of the causal relationship in historical cases by the total number of all historical cases corresponding to the starting node. The process of causal reasoning analysis includes: using the defect type identified in the multi-task detection and judgment results as the query node, traversing backwards along the directed edges in the process knowledge graph to find all abnormal paths of process parameters, taking the natural logarithm of the weights of each edge for each path, summing them, and then restoring them to a comprehensive confidence score through an exponential function, and selecting the path with the highest ranking as a possible cause after sorting by comprehensive confidence score. The spatial location information of defects is cross-validated with the reasoning results of knowledge graphs. The spatial concentration is calculated based on the information entropy of the defect location distribution as a correction coefficient. The confidence of the process cause path corresponding to the defect concentration area is multiplied and corrected before being reordered to determine the final cause.

[0015] In a preferred embodiment, in step S5, the automatic quality check includes an integrity check and a consistency check. The integrity check verifies whether the report contains all required fields, and the consistency check uses a rule engine to verify the logical rationality of the report content. The manual review feedback includes three types: confirmed approval, approved after modification, and rejected. For reports with feedback of approved after modification or rejected, the original multimodal data package, model output results, and correct annotations from the reviewers are extracted to construct training samples. The incremental training adopts a transfer learning strategy, which uses the parameters of the currently deployed model as the initial values ​​and fine-tunes them on a mixed dataset of newly labeled samples and historical training samples. After training, the performance of the new model is evaluated on an independent validation set. If it is better than the currently deployed model, it is deployed online to replace the old model.

[0016] The beneficial effects of this invention are as follows: By applying resolution-adaptive convolutional network branches to modal images of different resolutions and connecting them to adaptive average pooling layers, the feature maps of each modality are uniformly adjusted to the same spatial size, so that each spatial location corresponds to the same physical area on the component. This solves the spatial misalignment problem in multimodal fusion, improves the accuracy of cross-modal feature association, and thus improves the reliability of defect detection and judgment results. By constructing a knowledge graph of electronic component manufacturing processes, causal path searches are performed using defect types as query nodes. The confidence of the causal path is corrected by combining the concentration of defect spatial distribution. This replaces the traditional statistical frequency matching method, enabling defect cause analysis to have the ability to reason about process causes. The generated in-depth analysis report has stronger interpretability and practical reference value. Attached Figure Description

[0017] Figure 1 This is a flowchart of an AI computing power-driven method for automatically generating electronic component testing reports according to the present invention; Figure 2 This invention provides a flowchart of an AI computing power-driven method for automatically generating inspection reports for electronic components. Figure 1 ; Figure 3 This invention provides a flowchart of an AI computing power-driven method for automatically generating inspection reports for electronic components. Figure 2 ; Figure 4 This is a visualization result of the gradient-weighted activation mapping of the PCB solder joint defect region according to the present invention. Detailed Implementation

[0018] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and changes may be made to the function and arrangement of the elements discussed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the examples. Furthermore, some features described in the examples may be combined in other examples.

[0019] At least one embodiment of the present invention discloses an AI computing power-driven method for automatically generating electronic component inspection reports, such as... Figures 1 to 2 As shown, it includes the following steps: S1 collects raw data from multiple sources from the testing equipment, performs preprocessing, standardization, and integrity verification, and outputs standardized multimodal data packets; S1.1 Receive raw data from electronic component testing equipment. The raw data includes two main categories: image data and numerical data. The image data includes at least one of visible light microscopic images, infrared thermal images, and X-ray fluoroscopic images. The numerical data includes at least one of electrical parameter test results, size measurement data, temperature distribution data, and spectrum analysis data. Each type of data carries a timestamp, equipment identifier, and component batch information as metadata. S1.2, the image data is preprocessed to convert images of different imaging modalities into a standard resolution format. For visible light microscopic images, histogram equalization algorithm is used to enhance contrast. For infrared thermal images, pseudo-color mapping is performed according to the temperature range. For X-ray fluoroscopic images, medium-mean-law filtering is applied to remove noise. The preprocessed image data is temporarily stored in memory in tensor format, with the tensor dimension being the number of channels × height × width. After the associated index is established in step S1.4, it is written to the distributed file system. S1.3, the numerical data is standardized. First, the physical dimensions of the numerical data are identified, including voltage (volt), current (ampere), resistance (ohm), capacitance (farad), length (millimeters), temperature (degrees Celsius), and frequency (hertz). Then, the data is normalized according to the normal range of each physical quantity, mapping the original values ​​to the 0-1 interval. The normalization uses a minimum-maximum scaling method, using the minimum and maximum values ​​of the normal data after removing outliers as the scaling benchmark. For data with outliers, values ​​exceeding 1.5 times the interquartile range of the normal range are first identified and marked using a box plot method. These outliers are recorded separately in the outlier data log. Simultaneously, the boundary values ​​of the normal range of the physical quantity are used to replace the original outliers in subsequent normalization processing. That is, if the outlier exceeds the upper limit of the normal range, it is replaced by the upper limit value; if it is below the lower limit of the normal range, it is replaced by the lower limit value. The replaced values ​​participate in normalization and are temporarily stored in memory. After the association index is established in step S1.4, they are uniformly written to the distributed file system to ensure data integrity and avoid interference from outliers in feature extraction. S1.4, establish a multi-source data association index, assign a unique identifier to each electronic component to be inspected, and associate all image data and numerical data corresponding to the component through the identifier to form a multimodal data packet. The data packet includes a component type field, an inspection time field, an inspection station field, an operator field, and an original data file path field. After the association index is established, the preprocessed image tensors and normalized numerical arrays temporarily stored in memory in steps S1.2 and S1.3 are written to a distributed file system, and the structured description information of the data packet is stored in a relational database. This completes the construction of the multimodal data packet. S1.5, perform integrity verification on the standardized multi-source data, check whether each data packet contains the required minimum data elements. For resistive components, the minimum data elements include appearance image and resistance measurement results. For integrated circuit chips, the minimum data elements include appearance image, pin electrical connection test results and functional test waveform data. For data packets that fail the integrity verification, send a supplementary acquisition request to the testing equipment or mark them as incomplete data. Only complete data packets are passed to the next step. S2, acquire multimodal data packets, classify tasks through a structure-aware complexity assessment model, dynamically allocate work nodes to the AI ​​computing power resource pool based on the classification results, and obtain a ready work node computing environment that matches the task complexity. S2.1 Constructing a task complexity evaluation model for electronic component inspection scenarios. The complexity of electronic component inspection tasks depends not only on the data scale but also on the inspection difficulty of the component structure itself. For example, the defect identification difficulty of BGA packaged chips in X-ray images is much higher than that of ordinary surface mount resistors because the solder ball array is obscured by the package. Furthermore, the computational cost of feature extraction for interlayer short circuit detection in multilayer PCBs is orders of magnitude different from that of single-layer boards. Therefore, this invention constructs a complexity evaluation model that integrates structure perception. The input features of this model are divided into two categories: the first category is data scale features, including the total size of image data, the number of images, the resolution of each modality image, and the number of dimensions of numerical data; the second category is component structure features, including component package type encoding, number of pins, solder joint density level, and the average inference time of similar historical tasks. The model is implemented using a lightweight multilayer perceptron. The network contains two hidden layers: the first hidden layer has twice the number of neurons as the input feature dimension, and the second hidden layer has 32 neurons. The output layer outputs a continuous complexity score between 0 and 100. The model training data comes from historical detection task records. Each training sample contains the two types of features mentioned above and a label of the actual GPU computing resources consumed. The label is calculated by multiplying the GPU memory usage (in GB) and the runtime (in seconds) during task execution, with the unit being GB·s. The physical meaning is the integral value of memory usage per unit time, which can comprehensively reflect the actual consumption of GPU resources by the task. The mean squared error loss function is used during training, and the network parameters are optimized through the backpropagation algorithm. Considering that there is no historical data when the system is first deployed, an initialization scheme based on empirical rules is adopted as a cold start strategy: the component package type is directly mapped to a preset complexity score range. Specifically, the leadless package types such as surface mount resistors and capacitors are initially mapped to the 0 to 25 score range, the leaded package types such as QFP and SOP are initially mapped to the 35 to 65 score range, and the ball grid array package types such as BGA and CSP are initially mapped to the 75 to 100 score range. The system runs according to this empirical rule and continuously accumulates historical task records. When the number of accumulated training samples reaches 200, it automatically switches to the multilayer perceptron model for prediction and continuously updates the model incrementally with new samples in subsequent runs. S2.2, input the features of the current data packet to be processed into the complexity evaluation model constructed in step S2.1 to obtain a task complexity score. Based on this score, the task is divided into three levels: lightweight, medium, and heavyweight. Lightweight tasks have a complexity score less than a preset threshold T1, corresponding to the detection scenarios of simple components such as ordinary surface mount resistors and capacitors; medium-level tasks have a complexity score between T1 and T2, corresponding to the detection scenarios of medium complexity such as QFP packaged chips and connectors; heavyweight tasks have a complexity score greater than T2, corresponding to the detection scenarios of high difficulty such as BGA packaged chips and multilayer PCBs. The values ​​of T1 and T2 are dynamically adjusted based on the current total available computing power of the AI ​​computing resource pool and the backlog of the task queue. Initially, T1 is set to 30 and T2 to 70. When the resource pool load exceeds 80%, only T2 is increased to reduce the proportion of tasks judged as heavyweight, while T1 remains unchanged. Each increase in T2 is 5 units, with an upper limit of 85. When the resource pool load is below 40%, only T2 is decreased to allow more tasks to be processed as heavyweight, thereby improving detection accuracy. Each decrease in T2 is 5 units, with a lower limit of 55. S2.3 Initialize the AI ​​computing power resource pool. The AI ​​computing power resource pool is a heterogeneous computing cluster specifically optimized for electronic component detection and inference tasks. Unlike general-purpose computing clusters, each computing node in the AI ​​computing power resource pool pre-loads model weight files and feature database indexes for electronic component detection, avoiding latency caused by repeated loading at each task startup. Simultaneously, nodes are interconnected via a low-latency, high-bandwidth RDMA network, supporting direct cross-node transmission of intermediate feature vectors without requiring a master node. The resource pool adopts a master-slave architecture, with one master node and several worker nodes. The master node is responsible for task scheduling and status monitoring, while the worker nodes are responsible for executing specific data processing and model inference tasks. Worker nodes are redundantly configured, with M actually available worker nodes and R nodes reserved as hot backups. The sum of M and R equals the total number of worker nodes minus 1. Hot backup nodes continuously synchronize the latest model weights when idle, ensuring no additional model loading wait is required when taking over a task. S2.4 Computational power is allocated based on task complexity and current resource pool load. The master node maintains a task queue and a node status table. The task queue is sorted by arrival time and priority, and the node status table records the current status of each worker node, including idle, busy, or faulty. For lightweight tasks, one worker node is assigned to execute the entire detection process. For medium-level tasks, two worker nodes are assigned to execute in parallel, one node responsible for feature extraction of image modalities and the other for feature encoding of numerical data. After completing their respective calculations, the two nodes transmit the intermediate feature vectors directly to the master node via the RDMA network for fusion. For heavyweight tasks, four worker nodes are assigned to execute in parallel, allocated according to image modality. Each node is responsible for feature extraction of one modality, and the intermediate results from the four nodes are aggregated for cross-modal fusion. When a task is assigned to a worker node, the master node sends the access path and processing instructions for the task data packet to that node. The worker node reads the data from the distributed file system and begins execution. S2.5 Implements a redundancy backup mechanism. For medium- and heavy-duty tasks, after the primary execution node begins processing, the master control node simultaneously sends the same task to one backup node. The backup node's startup delay is dynamically set based on the task complexity and historical node failure rates, typically ranging from 60% to 80% of the expected completion time. If the primary node completes the task and returns results within the expected time, the master control node sends a cancellation command to the backup node to stop execution; if the primary node fails to return results due to failure or timeout, the backup node's calculation results are considered valid output. Since the backup nodes in the AI ​​computing resource pool have pre-loaded model weights, their actual startup delay after takeover is no more than 2 seconds, significantly shortening the fault recovery time compared to the cold start method of general clusters. S2.6 Real-time monitoring of the running status of each worker node. The master node sends heartbeat probe messages to the worker nodes at fixed time intervals. If a worker node fails to respond within three consecutive heartbeat cycles, it is determined to be in a faulty state. The master node immediately migrates the tasks being executed on that node to an idle backup node, marks the faulty node as unavailable, and triggers an alarm notification. When the faulty node recovers, the master node performs a health check on it, verifying the integrity of the model weight file and the availability of the feature database index. If it passes the check, it is added back to the pool of available nodes. S3, based on the matching working node computing environment and multimodal data package, adopts a resolution adaptive feature extraction and spatially aware cross-modal attention fusion method to output multi-task detection judgment results including appearance classification, defect type, performance parameter compliance and quality level; After the computing power scheduling is completed in steps S3.1 and S2, each working node reads the multimodal data packet output from step S1 from the distributed file system and executes the following feature extraction process in parallel in the AI ​​computing power resource pool. This step constructs an image feature extraction network and uses a convolutional neural network architecture with residual connections to extract features from the preprocessed image data output from step S1. In electronic component inspection, the resolution of images from different modalities varies greatly. Visible light microscopic images typically have a resolution of 4096×3072 pixels, while infrared thermal images typically have a resolution of only 320×240 pixels. X-ray fluoroscopic images have a resolution between the two. If features are directly extracted from images of different resolutions and then fused, the local detail features of the high-resolution modality and the global features of the low-resolution modality cannot correspond to the same physical location in space, thus introducing incorrect cross-modal associations. To address this issue, this invention employs a resolution-adaptive design for the feature extraction networks of different modalities: For visible light microscopic images, the network contains multiple convolutional blocks, each consisting of two convolutional layers and a downsampling convolutional layer with a stride of 2, focusing on extracting texture and edge detail features of the solder joint surface; for infrared thermal images, the network contains fewer convolutional blocks, focusing on extracting temperature distribution gradients and thermal anomaly region features; for X-ray fluoroscopic images, the network contains a moderate number of convolutional blocks, focusing on extracting density difference features such as pores and cracks inside the solder joint. Each of the three branches is followed by an adaptive average pooling layer after its respective convolutional block, uniformly adjusting the feature maps extracted from the inputs at different resolutions to the same spatial size, ensuring that each spatial location corresponds to the same physical region on the component, thereby achieving spatial alignment. The spatial feature maps of each branch, after being aligned by adaptive average pooling, are retained as outputs for use in the cross-modal attention fusion of the subsequent S3.3 step. Based on this, global average pooling is performed on the spatial feature maps of each branch to obtain a 512-dimensional global feature vector for each branch, which is used for historical data comparison and analysis in the S3.4 step. The two types of outputs are retained in parallel without interfering with each other. S3.2, Construct a numerical feature encoding network, using a fully connected neural network to encode the standardized numerical data output from step S1. The network consists of three fully connected layers. The first layer has the same number of neurons as the input numerical data dimension, the second layer has half the number of neurons as the first layer, and the third layer has 128 neurons. The ReLU activation function is used between each layer. A Dropout layer is inserted between the second and third layers to prevent overfitting, with the Dropout ratio set to 0.3. The network ultimately outputs a 128-dimensional numerical feature vector. S3.3, Design a spatially aware cross-modal attention fusion mechanism. After completing the spatial alignment in step S3.1, this step utilizes the characteristic that the feature maps of each modality correspond to the same physical location in space to design a position-aware cross-modal fusion method. The specific implementation process is as follows: First, retain the spatial feature maps of each branch after adaptive average pooling alignment in step S3.1, instead of only using the vectors after global average pooling. Concatenate the spatial feature maps of the three modalities along the channel dimension to form a joint feature map with the number of channels equal to the sum of the number of channels in the three branches. Then, independently calculate the cross-modal attention weights for each spatial location in the joint feature map. Specifically, the joint feature vector concatenated from the three modalities at that location is linearly mapped through independent query transformation matrices, key transformation matrices, and value transformation matrices to obtain the corresponding query vector, key vector, and value vector. Calculate the dot product of the query vector and the key vector, divide by the square root of the vector dimension, and then normalize using Softmax to obtain the attention weights. Sum the attention weights with the value vector to obtain the fused feature at that location. This process is performed independently at each spatial location, thus preserving the spatial location information of defects in the fusion result. Finally, compress the fused spatial feature map into a 512-dimensional vector using global average pooling. Concatenate it with the 128-dimensional numerical feature vector output from step S3.2 and then map it through a fully connected layer to obtain the final 512-dimensional fused feature vector. S3.4 Introducing Historical Data Comparison Analysis. Historical cases with the same component type and packaging as the current component are retrieved from the historical inspection database. The similarity metric uses the cosine similarity between fused feature vectors. The top K historical cases with the highest cosine similarity are selected, where K ranges from 5 to 20. The fused feature vectors and corresponding inspection conclusion labels of these historical cases are extracted. The current fused feature vector is compared with the feature vectors of the historical cases. The mean cosine distance between the current feature vector and the feature vectors of known qualified product cases, as well as the mean cosine distance between the current feature vector and the feature vectors of known defective product cases, are calculated. If the former is less than the latter, the current component is preliminarily judged to be likely qualified; otherwise, it is likely to be defective. Simultaneously, the frequency of each defect type in the historical defect cases most similar to the current case is counted, and the frequency of each defect type is normalized into a probability distribution vector. The dimension of this vector is equal to the total number of defect types supported by the system. This probability distribution vector is concatenated with a 512-dimensional fusion feature vector in the feature dimension to form an extended feature vector with a dimension of 512 plus the total number of defect types. This extended feature vector is then mapped back to 512 dimensions through a fully connected layer and used as the final input fusion feature vector in step S3.5. This allows historical prior information to be integrated into subsequent multi-task judgments in a learnable manner. S3.5, Construct a multi-task learning output layer. Based on the fused feature vectors, design multiple parallel output branches, each corresponding to a detection subtask. These subtasks include component appearance classification, defect type identification, performance parameter compliance judgment, and overall quality level assessment. The appearance classification task outputs a binary classification result indicating whether a component has appearance defects; the defect type identification task outputs specific defect categories, including poor soldering, pin deformation, surface scratches, cracks, contamination, and ablation; the performance parameter compliance judgment task outputs the judgment result indicating whether various electrical parameters are within specifications; and the overall quality level assessment task outputs four levels: excellent, good, qualified, and unqualified. Each output branch is implemented using a fully connected layer with a Softmax activation function. During training, a weighted multi-task loss function is used. The weight of each subtask loss is set according to the importance of each subtask in the actual application. The loss weight of the overall quality level assessment task is set to twice that of other subtasks to ensure the accuracy of the final quality judgment. S4 receives the multi-task detection and judgment results, locates the defect area through gradient weighted class activation mapping, and analyzes the cause by combining the process knowledge graph causal reasoning, and generates a layered detection report containing a primary report and a deep analysis report. S4.1 Generate a preliminary inspection report. The preliminary report includes basic component information, inspection time information, key inspection results, and a brief conclusion. The basic component information is extracted from the data packet metadata in step S1, including the component model, batch number, and serial number. The inspection time information records the start and end times of the inspection. The key inspection results include the results of each subtask output in step S3.5. For the appearance classification task, if the output indicates a defect, the report will indicate "Appearance Inspection: Unqualified"; if the output indicates no defect, the report will indicate "Appearance Inspection: Qualified". For the defect type identification task, if a specific defect type is identified, the defect name will be listed. For the performance parameter compliance judgment task, the measured values ​​and standard ranges of each parameter will be listed, and whether they are compliant will be indicated. The brief conclusion is generated based on the results of each subtask. If all subtasks show "Qualified", the conclusion is that the component is qualified; if any subtask shows "Unqualified", the conclusion is that the component is unqualified. The preliminary report uses a structured text format and fills in the fields according to a predefined report template. S4.2 Determine whether a deep analysis report needs to be generated. The determination criteria include the following conditions: Condition 1 is that the overall quality level assessment output in step S3.5 is unqualified; Condition 2 is that the measured value of any performance parameter is close to the specification boundary, which is defined as the difference between the measured value and the upper or lower limit of the specification being less than 10% of the specification range; Condition 3 is that the user actively selected the option to generate a deep report when submitting the testing task. If any of the above conditions are met, proceed to step S4.3 to generate a deep analysis report; otherwise, directly output a preliminary report and jump to step S5. In one embodiment of the present invention, the visualization process of the above-mentioned gradient-weighted class activation mapping is illustrated using the location of poor soldering defects on a PCB board as an example. Figure 4 As shown, Figure 4 (a) is the original visible light image, in which the red dashed box marks the defective weld area identified by step S3.5; Figure 4 (b) is the gradient-weighted class activation map heatmap calculated based on the spatial fusion feature map retained in step S3.3. In the heatmap, colors from blue to red represent importance weights from low to high. The highlighted red areas are... Figure 4 The defective weld points marked in (a) are highly consistent, indicating that the model accurately locates the defective area; Figure 4 (c) is the result of upsampling the activation image to the original image resolution and then overlaying it with the original image. The yellow solid box represents the defect area image range obtained by cropping the highlighted area by 20%. This cropped area image will be inserted into the defect analysis page of the depth analysis report.

[0020] S4.3, Extract the defect region image. For components identified as defective in step S3.5, locate the specific location of the defect in the original image data. A visualization method based on gradient-weighted class activation mapping is used. The specific implementation process is as follows: Using the spatial fusion feature map retained in step S3.3 as the target feature map, calculate the gradient of the defect judgment result in each output branch of step S3.5 to each spatial location of the spatial fusion feature map. Average the gradient value of each spatial location along the channel dimension to obtain the importance weight of that location. Then, multiply the importance weight by the feature value of the corresponding location in the spatial fusion feature map and pass it through the ReLU activation function to retain the positive contribution region, resulting in an activation map of the same size as the spatial fusion feature map. Upsample the activation map to the original image resolution through bilinear interpolation to generate a heatmap of the same size as the original image. The highlighted areas in the heatmap are the locations that contribute the most to the defect judgment, corresponding to the defect area on the component. Cropped areas and their surrounding context areas are extracted from the original image, with the cropping range being 20% ​​outside the highlighted areas. The cropped defect region image is then inserted into the depth analysis report. S4.4, Generate Defect Cause Analysis Text. This step uses a causal reasoning mechanism based on a process knowledge graph to replace the traditional statistical frequency matching method. The knowledge graph is constructed as follows: Process engineers and quality engineers in the electronic component manufacturing field participate jointly. Based on defect records accumulated in the historical inspection case database, defect phenomena, abnormal process parameters, and root causes are defined as three types of nodes. Directed edges between nodes represent causal relationships. The initial weight of each edge is calculated by dividing the frequency of the causal relationship in historical cases by the total number of historical cases corresponding to that starting node, with a value ranging from 0 to 1, representing the empirical confidence of the causal path in historical data. After the knowledge graph is constructed, it is stored in a graph database, supporting queries by node type and edge weight. The process parameter nodes covered in the knowledge graph include temperature values ​​at each stage of the reflow oven temperature curve, solder paste printing thickness, pad surface treatment status, component storage environment temperature and humidity, and chip mounting pressure, etc. Once the specific defect type is identified in step S3.5, a causal path search is performed in the knowledge graph using that defect type as the query node. The search method involves traversing backwards along the directed edges from the defect node to find all abnormal process parameter paths that can reach the defect node. For each path, the weights of each edge on the path are summed after taking the natural logarithm, and then restored to the comprehensive confidence score of the path using an exponential function. This method avoids the numerical underflow problem caused by multiplying multiple weights less than 1 when the path is long compared to direct multiplication. The top 3 paths are selected as possible causes after sorting them from high to low according to the comprehensive confidence score. Furthermore, the defect spatial location information retained in step S3.3 is combined with the knowledge graph reasoning results for cross-validation. Specifically, the distribution of all identified defect locations on the spatial fusion feature map is statistically analyzed, and the spatial concentration of this distribution is calculated. The spatial concentration is calculated by inverting the ratio of the information entropy of the defect location distribution to the maximum information entropy corresponding to the uniform distribution and adding 1, so that the spatial concentration is closer to 2 when the defects are more concentrated and closer to 1 when the defects are more dispersed. The spatial concentration is used as a correction coefficient to multiply the confidence of the process cause path corresponding to the defect concentration area. For example, if the defects are concentrated in the edge area of ​​the PCB board, the confidence of the cause path related to uneven temperature distribution is multiplied by the spatial concentration correction coefficient. If the defects are randomly distributed throughout the board, the correction coefficient approaches 1, and the confidence of each cause path remains basically unchanged. The confidence scores after spatial distribution correction are reordered to finally determine the possible causes of the output.For each identified possible cause, the technical description text of the cause is extracted from the attribute fields of the knowledge graph node. Combined with the specific values ​​in the current detection data, a cause analysis paragraph containing quantitative information is generated. For example, the detection data shows that the on-resistance of solder joint No. 3 is 8.2 ohms, which exceeds the upper limit of the standard range of 5.0 ohms. Combined with the fact that the area of ​​the pores inside the solder ball in the X-ray image accounts for 23% of the cross-sectional area of ​​the solder ball, the knowledge graph inference results indicate that the most likely cause is that the reflow soldering peak temperature is insufficient, resulting in the solder not melting completely. The overall confidence level of this path is 0.87. S4.5, Generate improvement suggestions. Based on the possible causes of defects identified in step S4.4, match the corresponding improvement suggestions from the improvement measures knowledge base. The knowledge base contains standard improvement measures for various causes of defects. For example, for raw material quality problems, the suggestion is to strengthen incoming material inspection and communicate with suppliers to improve raw material quality control standards. For deviations in production process parameters, the suggestion is to calibrate production equipment parameters and review key control points in the process flow. For equipment aging, the suggestion is to arrange equipment maintenance and replace aging parts if necessary. The matched improvement suggestions are sorted by priority and included in the improvement suggestions section of the in-depth analysis report. S4.6, Integrating the In-Depth Analysis Report: The content of the preliminary report generated in step S4.1 serves as the foundation of the in-depth analysis report. Following this, the defect area images extracted in step S4.3, the defect cause analysis text generated in step S4.4, and the improvement suggestions generated in step S4.5 are appended in sequence. The in-depth analysis report adopts a structured document format, including a cover page, table of contents, inspection information page, inspection result details page, defect analysis page, and improvement suggestion page. Each page is formatted according to a standard template to ensure that the report format is standardized and consistent. S5, based on the generated test report, through automatic quality checks and manual review feedback, and through incremental training and continuous optimization mechanisms, outputs a verified final report; S5.1, Perform automatic quality checks on the generated report. The quality checks include two aspects: integrity checks and consistency checks. The integrity check verifies whether the report contains all required fields, including component identification, detection time, each sub-item of the detection result, and conclusion. If any required field is missing, the report regeneration process is triggered. The consistency check verifies the logical rationality of the report content, including checking whether the detection conclusion is consistent with the results of each sub-task, checking whether the measured values ​​of numerical parameters are physically reasonable, and checking whether the defect type description matches the defect image. The consistency check is implemented using a rule engine, which predefines a series of logical rules. If an inconsistency is found, it is marked as an anomaly and the specific inconsistency item is recorded. S5.2, the report is submitted to quality auditors for manual review. The quality auditors are engineers with professional knowledge of electronic component testing. The auditors view the generated report content through the report review interface, compare it with the original test data and images, and the auditors can give three kinds of feedback on the report: Feedback 1 is confirmed to pass, indicating that the report content is accurate and error-free; Feedback 2 is passed after modification, indicating that the report is generally correct but there are some minor issues that need to be modified, and the auditors mark the specific content that needs to be modified; Feedback 3 is rejected, indicating that the report has major errors, and the auditors fill in a detailed error description. All audit feedback information, together with the report identifier, is stored in the feedback database. S5.3, Based on the feedback from manual review, training samples are constructed. For reports that are approved or rejected after modification, the original multimodal data package, model output results, and correct annotations from reviewers are extracted. This information is organized into labeled samples for model retraining. Specifically, the original data package is used as input, and the correct conclusions annotated by reviewers are used as labels. For reports that are approved after modification, the labeled samples contain both the model's erroneous output and correct annotations, which are used to train the model to identify and correct such errors. For rejected reports, the error is analyzed to determine whether it is a data quality problem or a model judgment problem. If it is a model judgment problem, the sample is added to the training set as a difficult sample and given a higher sampling weight. S5.4 Regularly perform incremental model training. After accumulating a certain number of new labeled samples, start the incremental model training process. The threshold for the number of accumulated samples is set according to the data accumulation speed in actual applications, usually between 100 and 500 samples. Incremental training adopts a transfer learning strategy, using the parameters of the currently deployed model as the initial values, and fine-tuning on a mixed dataset of new labeled samples and historical training samples. During training, new labeled samples are given higher loss weights to ensure that the model can focus on learning newly discovered error patterns. After training is completed, the performance of the new model is evaluated on an independent validation set. If the accuracy of the new model on the validation set is better than that of the currently deployed model, the new model is deployed online to replace the old model. If the performance does not improve or decreases, the current model is retained and training failure information is recorded for subsequent analysis. S5.5 Establish a report quality indicator monitoring system, defining multiple quantitative indicators to evaluate the overall quality of the report generation system. These indicators include report accuracy, average report generation time, manual review pass rate, and user satisfaction score. Report accuracy is defined as the proportion of reports that have passed manual review to the total number of reports. Average report generation time is defined as the average time from receiving data packets to outputting a report. Manual review pass rate is defined as the proportion of reports that receive confirmation feedback on the first submission. User satisfaction score is obtained through questionnaires to collect subjective evaluations from users. The above indicators are statistically analyzed in real time during system operation, and quality monitoring reports are generated daily, weekly, and monthly. When an indicator shows abnormal fluctuations, an alarm is triggered to notify the system administrator for investigation. S5.6 Implement a continuous optimization strategy. Based on the quality indicator monitoring results of step S5.5, identify the weak links in the system and take targeted optimization measures. If the accuracy of the report decreases, analyze the recently rejected and modified reports to find out if the error patterns are concentrated in a certain type of component or a certain type of defect. For this type, increase the training samples or adjust the model structure. If the report generation time increases, check the load of the computing resource pool and assess whether it is necessary to expand the computing nodes or optimize the task scheduling algorithm. If the user satisfaction score decreases, collect the specific opinions of users and make adjustments to the report format, content detail, etc. The implementation process and effect evaluation results of all optimization measures are recorded in the system operation and maintenance log to form a closed-loop management mechanism for continuous improvement. In one embodiment of the present invention, the generation of a PCB circuit board soldering quality inspection report is used as an example to illustrate the specific application of the present invention: An electronics manufacturing company needs to inspect the soldering quality of PCBs on its production line. Each PCB contains 200 to 500 solder joints. The method of this invention is used to automatically generate reports. The specific implementation process is as follows: AOI (Automated Optical Inspection) equipment acquires high-resolution color images of the PCB board (4096×3072 pixels). Simultaneously, X-ray inspection equipment captures images of the internal structure of solder joints, electrical testing equipment outputs the on-resistance values ​​of each solder joint, and an infrared thermal imager captures images of the PCB board surface temperature distribution during power-on testing. All data carries the PCB board number, inspection station number, and timestamp. After preprocessing and standardization, the image tensor and standardized numerical array are temporarily stored in memory. A unique identifier is then assigned to the PCB board, linking the three types of image data and one set of resistance value data through the identifier. This forms a multimodal data packet containing fields such as component type, inspection time, inspection station, and operator, which is then uniformly written to a distributed file system. Integrity verification confirms that the data packet contains necessary data elements such as the appearance image and on-resistance measurement results. After successful verification, the data packet is passed to the next step. The complexity assessment model, based on the PCB board's package type (standard surface mount solder joint array), 450 solder joints, a total image data size of approximately 75MB across three categories, and the average inference time of similar historical tasks, calculated a task complexity score of 62, classifying it as a medium-level task. The master node allocated two GPU worker nodes from the AI ​​computing resource pool to process the task in parallel. One node was responsible for feature extraction from visible light, X-ray, and thermal images, while the other node was responsible for feature encoding of the 450 solder joint resistance values. After completing their respective calculations, both nodes directly transmitted the intermediate feature vectors via an RDMA network for cross-modal fusion in the subsequent S3 step. Simultaneously, a hot backup node was designated to start with a delay at 70% of the expected completion time. The two master execution nodes completed their calculations and returned intermediate results within 12 seconds. The backup node received a cancellation command and stopped execution. The entire S2 phase took approximately 13 seconds. The image feature extraction network extracts features from visible light images, X-ray images, and thermal images using different numbers of convolutional blocks. All three branches use adaptive average pooling layers to uniformly adjust the feature maps to the same spatial size, achieving spatial alignment between different resolution modalities. Each spatial location corresponds to the same physical region on the PCB board. The spatially aware cross-modal attention fusion mechanism independently calculates the attention weights between the three modalities at each aligned spatial location. The fused spatial feature map is compressed into a 512-dimensional vector by global average pooling. This vector is then concatenated with a 128-dimensional numerical feature vector encoded from 450 solder joint resistance values ​​to obtain the final 512-dimensional fused feature vector. Historical data comparison and analysis retrieves 12 historical PCB board inspection cases of the same package type from the database. The average cosine distance between the current fused feature vector and known defect cases is less than the average distance to qualified cases, initially indicating a defect tendency. Among the historical defect cases, poor soldering accounts for the highest proportion. This defect type probability distribution vector is concatenated with the 512-dimensional fused feature vector and mapped back to 512 dimensions through a fully connected layer, serving as the final input to the multi-task output layer's fused feature vector. The final output of the multi-task learning output layer is as follows: Visual inspection found that three solder joints had insufficient solder defects, the defect type was poor soldering, and electrical parameter testing showed that the conduction resistance of these three solder joints exceeded the upper limit of the standard range. The overall quality level was rated as unqualified. The overall quality level of the output is unqualified, meeting the first trigger condition for the in-depth analysis report, and the system enters the in-depth analysis report generation process. The initial report lists the PCB board number, inspection time, and key inspection results. The in-depth analysis section utilizes the spatial fusion feature map retained in step S3.3, and uses gradient-weighted class activation mapping to accurately locate the positions of three defective solder joints in the original image. Defective areas are cropped from the visible light image and X-ray image respectively and inserted into the report. The defect cause analysis is based on causal reasoning of the process knowledge graph. Using poor soldering - insufficient solder as the query node, the knowledge graph is traversed in reverse. Combining the spatial characteristics of the three defective solder joints being concentrated in the board edge area, a spatial concentration correction coefficient is calculated. The comprehensive confidence of the cause path related to uneven temperature distribution is improved and corrected. Finally, the most likely cause is that the temperature in the edge area of ​​the reflow oven is too low, resulting in incomplete solder melting. The comprehensive confidence of this path is 0.89. The second most likely cause is insufficient solder paste printing thickness, with a comprehensive confidence of 0.72. The improvement suggestions section, based on the knowledge graph reasoning results, lists the reflow oven temperature profiles to be checked and adjusted. The focus is on increasing the peak temperature in the edge areas to within the required process range, checking the uniformity of solder paste printing thickness, adjusting the stencil opening size if necessary, and strengthening the control of the pad storage environment to prevent oxidation from affecting solder wettability. The final output is a complete in-depth analysis report containing 6 pages. The S4 stage took approximately 8 seconds, and the total report generation time was approximately 22 seconds. The quality inspection module verified that the report was complete and consistent. The report was submitted to the quality engineer for review. The engineer confirmed that the defect identification was accurate and the cause analysis was reasonable, and gave a confirmation feedback. This feedback information was stored in the feedback database. After a total of 120 new review samples were added, the system started incremental training. The defect identification accuracy of the new model on the validation set increased from 92.3% to 93.1%. The new model was deployed and went online. The quality monitoring report showed that the report accuracy rate for this month was 91.5%, the manual review pass rate was 87.2%, and the average report generation time was 22 seconds. As can be seen from the above embodiments, the method of the present invention can efficiently process multi-source heterogeneous detection data, automatically generate structured detection reports, improve detection efficiency and report quality. Compared with the traditional manual writing method, the report generation time is shortened from an average of 8 minutes to 22 seconds, and the efficiency is improved by about 21 times. Moreover, the system can be continuously optimized through the quality feedback closed-loop mechanism.

[0021] The embodiments of the present invention have been described above. However, the embodiments are not limited to the specific implementation methods described above. The specific implementation methods described above are merely illustrative and not restrictive. Those skilled in the art can make more equivalent embodiments under the guidance of the present embodiments, and all of them are within the protection scope of the present embodiments.

Claims

1. A method for automatically generating inspection reports for electronic components driven by AI computing power, characterized in that, Includes the following steps: S1 collects raw data from multiple sources from the testing equipment, performs preprocessing, standardization, and integrity verification, and outputs standardized multimodal data packets; S2, acquire multimodal data packets, classify tasks through a structure-aware complexity assessment model, dynamically allocate work nodes to the AI ​​computing power resource pool based on the classification results, and obtain a ready work node computing environment that matches the task complexity. S3, based on the matching working node computing environment and multimodal data package, adopts a resolution adaptive feature extraction and spatially aware cross-modal attention fusion method to output multi-task detection judgment results including appearance classification, defect type, performance parameter compliance and quality level; S4 receives the multi-task detection and judgment results, locates the defect area through gradient weighted class activation mapping, and analyzes the cause by combining the process knowledge graph causal reasoning, and generates a layered detection report containing a primary report and a deep analysis report. S5, based on the generated test report, through automatic quality checks and manual review feedback, and through incremental training and continuous optimization mechanisms, outputs a verified final report.

2. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S1, the multi-source raw data includes two main categories: image data and numerical data. The image data includes at least one of visible light microscopic images, infrared thermal images, and X-ray fluoroscopic images. The numerical data includes at least one of electrical parameter test results, size measurement data, temperature distribution data, and spectrum analysis data. Each type of data carries a timestamp, device identifier, and component batch information as metadata. The preprocessing includes using a histogram equalization algorithm to enhance the contrast of visible light microscopic images, performing pseudo-color mapping on infrared thermal images according to the temperature range, applying medium-range filtering to remove noise from X-ray fluoroscopic images, and temporarily storing the preprocessed image data in memory in tensor format. The standardization includes identifying the physical dimensions of the numerical data and normalizing them, mapping the original values ​​to the range of 0 to 1, using the minimum-maximum scaling method for normalization, identifying outliers using the box plot method and replacing them with boundary values ​​of the normal range before participating in the normalization, and temporarily storing the standardized numerical data in memory.

3. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In step S1, the standardized multimodal data packet is constructed by establishing an association index. A unique identifier is assigned to each electronic component to be detected. All image data and numerical data corresponding to the component are associated through the identifier, forming a multimodal data packet containing a component type field, a detection time field, a detection station field, an operator field, and an original data file path field. After the association index is established, the preprocessed image tensor and the standardized numerical array are written to the distributed file system. The integrity check includes checking whether each data packet contains the minimum required data elements. For data packets that fail the integrity check, a supplementary acquisition request is sent to the detection device or the data is marked as incomplete. Only complete data packets are passed to the next step.

4. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S2, the input features of the structure-aware complexity evaluation model are divided into two categories: data scale features and component structure features. Data scale features include the total size of image data, the number of images, the resolution of each modal image, and the number of dimensions of numerical data. Component structure features include component package type encoding, number of pins, solder joint density level, and average inference time of similar historical tasks. The model is implemented using a lightweight multilayer perceptron and outputs a continuous complexity score. Tasks are divided into three levels—lightweight, medium-weight, and heavyweight—based on their complexity scores. Lightweight tasks have a complexity score less than a first preset threshold, medium-weight tasks have a complexity score between the first and second preset thresholds, and heavyweight tasks have a complexity score greater than the second preset threshold. The first and second preset thresholds are dynamically adjusted based on the current total available computing power in the AI ​​computing resource pool and the task queue backlog.

5. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S2, each computing node in the AI ​​computing power resource pool is preloaded with model weight files and feature database indexes in the field of electronic component detection. The nodes are interconnected through an RDMA network to support direct cross-node transmission of intermediate feature vectors. The resource pool adopts a master-slave architecture, with the master node responsible for task scheduling and status monitoring, and the worker nodes responsible for executing data processing and model inference tasks. The worker nodes are redundantly configured and hot backup nodes are reserved. The dynamic allocation of working nodes includes: assigning one working node to execute the entire detection process for lightweight tasks; assigning two working nodes to handle image modality feature extraction and numerical data feature encoding respectively for medium-level tasks; and assigning four working nodes to perform feature extraction in parallel according to image modality type for heavyweight tasks. For medium-level and heavyweight tasks, the same task is sent to a backup node simultaneously. The backup node starts with a delay, and if the master node fails or times out, the backup node outputs the results. The master node monitors the running status of the working nodes through heartbeat detection and performs task migration for failed nodes.

6. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In step S3, the resolution-adaptive feature extraction includes: using independent convolutional neural network branches with residual connections to extract features from image data of different modalities. For visible light microscopic images, the network branch focuses on extracting texture and edge detail features of the solder joint surface; for infrared thermal images, the network branch focuses on extracting gradient and thermal anomaly region features of temperature distribution; and for X-ray fluoroscopic images, the network branch focuses on extracting density difference features of pores and cracks inside the solder joint. Each of the three branches is connected to an adaptive average pooling layer after its respective convolution block. The feature maps extracted by convolution after inputting different resolutions are uniformly adjusted to the same spatial size, so that each spatial position corresponds to the same physical area on the component, thereby achieving spatial alignment. The spatial feature maps of each branch after adaptive average pooling alignment are retained as outputs for subsequent cross-modal attention fusion. Based on this, global average pooling is performed on the spatial feature maps of each branch to obtain the global feature vector corresponding to each branch for historical data comparison and analysis. Both types of outputs are retained in parallel.

7. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S3, the spatially-aware cross-modal attention fusion method includes: concatenating the spatial feature maps of the three modalities after spatial alignment in the channel dimension to form a joint feature map; independently calculating the cross-modal attention weights for each spatial position in the joint feature map; specifically, linearly mapping the joint feature vector at the position through independent query transformation matrix, key transformation matrix, and value transformation matrix to obtain query vector, key vector, and value vector; calculating the dot product of the query vector and key vector, dividing by the square root of the vector dimension, and then normalizing by Softmax to obtain the attention weights; weighted summing of the attention weights and the value vector to obtain the fusion feature at the position; compressing the fused spatial feature map into a global vector through global average pooling, concatenating it with the numerical feature vector, and mapping it through a fully connected layer to obtain the final fusion feature vector; Historical cases with the same component type and packaging form as the current component are retrieved from the historical inspection database. The top K historical cases are selected using cosine similarity measurement. The frequency of each defect type in the historical defect cases is counted and normalized into a probability distribution vector. The corresponding probability distribution vector is concatenated with the fused feature vector and then mapped back to the original dimension through a fully connected layer as the input of the fused feature vector of the multi-task learning output layer.

8. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In step S4, the layered detection report includes a primary detection report and a deep analysis report. The primary detection report includes component information, detection time information, the results of each sub-task in the multi-task detection judgment result, and a brief conclusion. When the overall quality level assessment output in the multi-task detection judgment result is unqualified, or the difference between the measured value of any performance parameter and the specification boundary is less than the preset ratio of the specification range, or the user actively selects the option to generate a deep report, the deep analysis report generation process is triggered. The process of locating the defect region using gradient-weighted class activation mapping includes: using the spatial fusion feature map retained in the spatially perceptual cross-modal attention fusion method as the target feature map; calculating the gradient of the defect judgment result at each spatial location of the spatial fusion feature map; averaging the gradient values ​​over the channel dimension to obtain the importance weight; multiplying the importance weight by the feature value and then passing it through the ReLU activation function to retain the positive contribution region to obtain the activation map; upsampling the activation map to the original image resolution to generate a heatmap; and cropping the highlighted area of ​​the heatmap and its surrounding context area from the original image as the defect region image.

9. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S4, the construction of the process knowledge graph includes: defining defect phenomena, abnormal process parameters and root causes as three types of nodes respectively, and the directed edges between nodes represent causal relationships. The initial weight of the edge is calculated by dividing the frequency of the causal relationship in historical cases by the total number of all historical cases corresponding to the corresponding starting node. The process of causal reasoning analysis includes: using the defect type identified in the multi-task detection and judgment results as the query node, traversing backwards along the directed edges in the process knowledge graph to find all abnormal paths of process parameters, taking the natural logarithm of the weights of each edge for each path, summing them, and then restoring them to a comprehensive confidence score through an exponential function, and selecting the path with the highest ranking as a possible cause after sorting by comprehensive confidence score. The spatial location information of defects is cross-validated with the reasoning results of knowledge graphs. The spatial concentration is calculated based on the information entropy of the defect location distribution as a correction coefficient. The confidence of the process cause path corresponding to the defect concentration area is multiplied and corrected before being reordered to determine the final cause.

10. The method for automatically generating electronic component inspection reports driven by AI computing power according to claim 1, characterized in that, In S5, the automatic quality check includes an integrity check and a consistency check. The integrity check verifies whether the report contains all the required fields, and the consistency check uses a rule engine to verify the logical rationality of the report content. The manual review feedback includes three types: confirmed approval, approved after modification, and rejected. For reports with feedback of approved after modification or rejected, the original multimodal data package, model output results, and correct annotations from the reviewers are extracted to construct training samples. The incremental training adopts a transfer learning strategy, which uses the parameters of the currently deployed model as the initial values ​​and fine-tunes them on a mixed dataset of newly labeled samples and historical training samples. After training, the performance of the new model is evaluated on an independent validation set. If it is better than the currently deployed model, it is deployed online to replace the old model.