Increasingly serious traffic jams and traffic accidents pose threats to the social economy and human life. The lamp semantics of driving is a major way to transmit the driving behavior information between vehicles. The detection and recognition of the vehicle taillights can acquire and understand the taillight semantics, which is of great significance for realizing multi-vehicle behavior interaction and assists driving. It is a challenge to detect taillights and identify the taillight semantics on real traffic road during the day. The main research content of this paper is mainly to establish a neural network to detect vehicles and to complete recognition of the taillights of the preceding vehicle based on image processing. First, the outlines of the preceding vehicles are detected and extracted by using convolutional neural networks. Then, the taillight area in the Hue-Saturation-Value (HSV) color space are extracted and the taillight pairs are detected by correlations of histograms, color and positions. Then the taillight states are identified based on the histogram feature parameters of the taillight image. The detected taillight state of the preceding vehicle is prompted to the driver to reduce traffic accidents caused by the untimely judgement of the driving intention of the preceding vehicle. The experimental results show that this method can accurately identify taillight status during the daytime and can effectively reduce the occurrence of confused judgement caused by light interference.
As an essential metal, copper has the advantages of electrical conductivity and ductility, which is widely used in power transmission, electronics manufacturing and machining. The fluctuation of copper’s price significantly impacts the industry and particularly affects national economic development. Therefore, predicting copper price has great significance for economic development. However, traditional time series prediction models’ prediction accuracy is low. Therefore, this paper proposes a Shanghai copper price forecasting model based on Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (CEEMDAN), Conventional Neural Network (CNN), Self Attention Gated Unit (SAGU), named CEEMDAN-CNN-SAGU. CEEMDAN decomposes and reconstructs the Shanghai copper price data. In this paper, the zero-cross rate of the Intrinsic Mode Function (IMF) components is calculated, the IMF component with large noise is removed, and the remaining IMFs and residual term are reorganized to obtain the high-frequency and low-frequency components. CNN performs convolution operations on the reconstructed components to extract time series features from different components. SAGU is a new time series data prediction model proposed in this paper. SAGU includes two gated units, a forgetting gate and an input gate, and two data processing modules, Self Attention (SA) and Tra (Transition). The SA module is responsible for processing the input data, redistributing the weight coefficients of different data, and improving the model’s attention to important information. The Tra module improves the low limit of the forgetting gate’s output so that the gated unit can keep the cell state from the previous moment to the current moment as much as possible. This paper uses Shanghai copper trading data from Shanghai Futures Exchange as experimental data. The comparison experiment with the other eleven prediction models shows that the CEEMDAN-CNN-SAGU model outperforms other models in all evaluation indexes.
To address the inherent limitations of Future in asynchronous programming frameworks, JDK 1.8 introduced the CompletableFuture class, which features approximately 50 different methods for composing and executing asynchronous computations and handling exceptions. This paper proposes an automatic refactoring method that integrates multiple static analysis techniques, including visitor pattern analysis, alias analysis, and executor inheritance structure analysis, to conduct precondition checks. Distinct from existing Future refactoring methods, this approach considers custom executor types, thereby extending its applicability. Using this method, the ReFuture automatic refactoring plugin was implemented within the Eclipse JDT framework. The method was evaluated in terms of the number of refactorings, refactoring time, and error introduction, alongside a side-by-side comparison with the existing method. The refactoring outcomes for nine large applications, including ActiveMQ, Hadoop, and Elasticsearch, show that ReFuture successfully refactored 639 out of 813 potential code structures, achieving a refactoring success rate of 64.70% without introducing errors. This tool effectively facilitates the refactoring to CompletableFuture and enhances refactoring efficiency compared to manual methods.
1 July 2015 in Journal of Computational and Theoretical Nanoscience