This work presents a novel blockchain-based energy trading mechanism for electric vehicles consisting of day-ahead and real-time markets. In the day-ahead market, electric vehicle users submit their bidding price to participate in the double auction mechanism. Subsequently, the smart match mechanism will be conducted by the charging system operator, to meet both personal interests and social benefits. After clearing the trading result, the charging system operator uploads the trading contract made in the day-ahead market to the blockchain. In the real-time market, the charging system operator checks the trading status and submits the updated trading results to the blockchain. This mechanism encourages participants in the double auction to pursue higher interests, in addition to rationally utilize the energy unmatched in the auction and to achieve the improvement of social welfare. Case studies are used to demonstrate the effectiveness of the proposed model. For buyers and sellers who successfully participate in the day-ahead market, the total profit increase for buyer and seller are 22.79% and 53.54%, respectively, as compared to without energy trading. With consideration of social welfare in the smart match mechanism, the peak load reduces from 182 to 146.5 kW, which is a 19.5% improvement.
Flexible circuit boards are a cornerstone of the modern electronics industry. In automatic defect detection, FPC connectors present challenges such as minimal differences between oxidation defects and the background, easy degradation of Intersection over Union (IoU) scores, and significant variations in the shapes of black defect boundaries. Consequently, existing algorithms perform poorly in this task. We improve model YOLOv9 by introducing Multi-scale Dilated Attention (MSDA) on the output side to enhance the ability to capture features, and Deformable Large Kernel Attention (DLKA) on the other side of the output header to improve the ability to adapt to complex defect boundaries. Our use ofIoUloss completely eliminates the risk ofIoUdegradation or gradient vanishing. Furthermore, we reduce computational overhead with the implementation of Faster Block. Following these improvements, the mean Average Precision (mAP) at 75%IoU(mAP75) for oxidized defects increased by 7.5% relative to the base model. Similarly, the mAP at 50%IoU(mAP50) for black defects increased by 5.7%, validating the relevance and efficacy of our proposed improvements. Overall, the average mAP50, mAP75, and mAP50:95 for all defects improved by 3.8%, 2.0%, and 2.3%, respectively. The performance gain achieved by our enhanced model significantly exceeds the improvement of YOLOv9 relative to YOLOv8.