Open-access Analysis of Deep Learning Techniques for Vehicle Detection and Reidentification Using Data from Multiple Drones and Public Datasets

Abstract

The detection and re-identification of vehicles in dynamic environments, such as highways monitored by a swarm of drones, presents significant challenges, particularly due to the variability of images captured from different angles and under various conditions. This scenario necessitates the development of suitable methods that integrate appropriate computational techniques, such as convolutional neural networks (CNN) to address the diversity of drone captures and improve accuracy in detection and re-identification. In this paper, a solution for vehicle detection and Re-ID is proposed, combining CNN techniques VGG16, VGG19, ResNet50, InceptionV3 and EfficientNetV2L. YOLOv4 was selected for detection, while the DeepSORT algorithm was chosen for tracking. The proposed solution considers the generalization capabilities of these techniques with varied images from different drones in different positions. Two datasets were employed: the first is a public dataset from Mendeley used for method evaluation, while the second consists of images and data collected by a swarm of drones. In the first experiment, the best performing network was ResNet50, with an average accuracy of 55%. In the second experiment, the highest accuracy CNN was VGG19, with 91% accuracy. Overall, the techniques were able to distinguish vehicles of different models and adapted to the data captured by drones.

Key words
Convolutional Neural Network; Detection; Tracking; Re-ID of Vehicles; Multiples UAVs

INTRODUCTION

The search for tools to address terrestrial vehicle traffic problems is a common task in modern society. The objective is to improve the quality of life for citizens reducing congestion (Yaochen et al. 2014) and traffic violations, mitigating vehicle damage, and reducing pedestrian accidents. Presently, security cameras are capable of monitoring vehicles in designated locations and at specified times, recording their general speed, monitoring obstructions at crosswalks caused by vehicles, and detecting violations of traffic signals, among other functions (Patira 2019, Mandal et al. 2020, Tak et al. 2021). These measures remain constrained to regions equipped with sensors, such as speed radars or cameras, which necessitate the observation of vehicles from the front or back to ascertain their license plates. However, these traditional methods present certain challenges due to their static position and necessity for the installation of multiple monitoring equipment installations at the locations of interest. One of the most notable innovations is the utilization of unmanned aerial vehicles (UAVs), colloquially referred to as drones.

The use of drones as a solution for monitoring road traffic is an attractive proposition due to the mobility, low cost, and wide field of view (Elloumi et al. 2018, Wu et al. 2021). In particular, multiple drones can be used to provide more comprehensive coverage and capture more information than a single drone (Elloumi et al. 2018, Wu et al. 2021). This approach can be particularly useful for monitoring motorways, where traffic problems are prevalent, and traditional monitoring methods may not be sufficient (National Academies of Sciences, Engineering, and Medicine 2019). Among the possible approaches, the use of drones can offer significant advantages. These include the ability to collect data at specific times, providing real-time information (Nascimento 2021), the ability to operate in specific and hard-to-reach locations and collect from different perspectives (Alves 2023), and the ability to provide greater security through remote data collection (Marty 2022).

Vehicle re-identification has gained significant popularity due to its applications and importance in research. In Re-ID (Re identification), uses the latent space to learn vehicle representations, so that vehicles with the same identity (e.g., the same car seen in different cameras or at different times) are mapped to nearby points in their latent space, while vehicles with different identities are mapped to distant points. This is useful in applications such as vehicle tracking using multiple UAVs, where the goal is to track the same vehicle across different surveillance cameras, or in security applications, where it is necessary to identify suspicious vehicles based on their characteristics (Khan 2019).

With the significant diversification of image generation capabilities, a significant amount of visual content has been produced in vehicle traffic images, digital platforms, the medical field, and robotics. Advances in artificial intelligence, particularly in deep learning, have led to the emergence of various cutting-edge technical applications as intelligent and alternative solutions to these specific societal problems (Castro & New 2016). Consequently, several recent studies using deep learning techniques and deep network architectures have incorporated strategies to search for similar or even identical scenarios and objects (Chen et al. 2021, Sarker 2021). Therefore, it is imperative to introduce advanced technology to address these challenges (Ren et al. 2023, Deng et al. 2023, Wu et al. 2021), especially in the context of using multiple UAVs.

Convolutional neural networks have become a popular tool for object recognition (Zou et al. 2019). However, recognizing an object in an image can present many challenges, such as variations in perspective (angle of the object in the image), lighting conditions, and other specific object characteristics (Hakim & Fadhil 2019). The advent of the ImageNet database in 2009 precipitated a surge in performance, particularly 2010s, commencing with the AlexNet CNN (Convolutional Neural Network) (Krizhevsky et al. 2012). This was followed by the development of numerous CNN architectures and methodologies, collectively enhancing object classification and detection capabilities (Alom et al. 2019).

The processes of object re-identification have been employed in a number of different applications, as documented in reference (Alexander & Gunasekaran 2014, Nath & Wang 2021). It is a well-researched area within the field of computer vision. The fundamental principle underlying the re-identification of objects across disparate images is image retrieval. This can be achieved by leveraging the similarity of features between two or more images, with the objective of associating a suitable metric. One of the primary applications of image retrieval is its capacity to rapidly and accurately assemble disparate image types based on their intrinsic similarities (Sarker 2021).

The objective of this study is to develop a methodology based on multiple CNNs for the task of vehicle detection and Re-ID using drone images and images available in public datasets.

THEORETICAL REVIEW

CNNs in Image Applications: YOLO Approach

The primary objective of object detection is to identify information of interest in images. Another possibility is to extract crops from the detection bounding boxes, which can be transformed into sub-images. In one of the approaches presented in this work, the sub-images are utilized as input forthe re-identification system. Currently, traditional object detection methodologies have been surpassed by deep learning solutions, which have introduced groundbreaking innovations in precision capabilities (Zou et al. 2019). Among the various CNNs, the YOLOv4 (You Only Look Once) network has demonstrated high processing performance. As an illustration, when compared to EfficientDet, it achieves over 10% higher accuracy than its previous version, thereby establishing itself as a benchmark for real-time object detection applications (Ren et al. 2016).

Although there are several object detection techniques, such as Faster R-CNN (Ren et al. 2016) and SSD (Liu et al. 2016a), YOLO (Bochkovskiy et al. 2004) stands out for its real-time detection capabilities. However, other techniques are more appropriate for Re-ID tasks, as YOLO, like other detection methods, focuses on identifying objects within a single image rather than re-identifying the same object across multiple images. This is due to the fact that it was not designed for such a task, and its detection and classification capabilities are arbitrary. In this work, for the purpose of detection and tracking, the YOLO network integrated with DeepSORT is employed and applied to datasets collected by multiple drones. Subsequently, five CNNs are applied to the Re-ID task.

Re-ID Strategy

In the context of object Re-ID applications, the methodologies can be conceptualized in two stages: object detection and its re-identification (Ming et al. 2021). The initial stage is typified by the intensive use of algorithms that achieve a high rate of precision and accuracy, such as Fast-RCNN (Girshick 2015) and YOLO (Bochkovskiy et al. 2004). In the Re-ID stage, the strategy utilizes additional information with discriminatory techniques.

A number of datasets that may prove useful for the application and validation of detection or re-identification approaches have been made available, including Cars-196 (Krause et al. 2013), Veri-776 (Liu et al. 2016b), KittiDataset (Geiger et al. 2013), CityFlow (Tang et al. 2019), CIFAR-10, and CIFAR-100 (Prabhu & Birhane 2020). Approaches to vehicle re-identification have been developed which utilize such as VeRi-776 and VehicleID (Krause et al. 2013). The technique focuses on prospecting discriminative features of vehicles. The selection of small, discriminative image parts and their provision as a dataset for discrimination, contributes to the efficiency of vehicle re-identification. This technique is empoyed to identify vehicles that are nearly identical. The minor discrepancies that can be used to distinguish them are regularized, allowing for the identification of specific vehicles among many similar ones (He et al. 2019).

Another proposed approach for vehicle Re-ID incorporates vehicle orientation classification method. The VANet (Viewpoint-Aware Network) is employed, and the data obtained from the vehicles are represented as images, with the front and rear parts of the vehicles highlighted. If the image pairs are captured with the same orientation, they are classified as S-view; otherwise, they are classified as D-view. The considerable variation in viewpoint, reaching up to 180 degrees, presents significant challenges for existing approaches. A viewpoint-aware metric learning approach is proposed, which learns two distinct metrics for similar and different viewpoints, in two distinct feature spaces (VANet) (Chu et al. 2019). Similarly, using the Ai City Challenge 2020 (AICITY20) Track 2 dataset, both synthetic and real datasets were employed to examine the efficacy of vehicle re-identification from different viewpoints, incorporating both synthetic and real datasets (He et al. 2020). A model for the vehicle Re-ID task is also proposed and applied to the Track 2 dataset of the fifth Ai City Challenge competition (Huynh et al. 2021). The methodology is based on the ResNet architectural framework and employes multiple feature storage mechanisms. The algorithm captures frames of vehicles in different positions and discriminates them into a set of 2048 characteristic points for each position. This information is then fed into the network, presenting a cost metric based on the distance of the vectors. The algorithm also defines which vector is considered for vehicle discrimination in comparison (Huynh et al. 2021).

In this study, the utilization of five convolutional neural networks (CNNs) is proposed for image feature extraction. These networks include VGG16 (Simonyan & Zisserman 2014), VGG19 (Simonyan & Zisserman 2014), ResNet50 (He et al. 2015), InceptionV3 (Szegedy et al. 2015), and EfficientNetV2L (Tan & Le 2021). Their selection was based on their widespread use in similar research endeavors (Lin et al. 2020, Shen et al. 2022). The extraction is performed by generating an attribute vector. Subsequently, a metric based on normalized distance is applied to the aforementioned vector, and the five most favorable results from this comparison are then displayed

This work presents a differential analysis of a scenario that considers the use of multiple drones for the detection and re-identification of vehicles in an integrated manner. This approach offers enhanced flexibility and coverage in dynamic traffic monitoring scenarios. Similar challenges are encountered in other contexts, as evidenced by the Veri-776 dataset (Liu et al. 2016b), which was collected from multiple cameras to address Re-ID problems. However, these datasets are static.

The objective of this approach is to evaluate the potential of the proposed convolutional neural networks (CNNs) to outperform the residual network (ResNet) architecture utilized in the referenced works (Chu et al. 2019) and (Huynh et al. 2021). Another analysis proposed in these architectures is the size of the input image, which varies from one architecture to another. For this work, simpler techniques were selected, but when combined, they can provide results for the proposed problem of detecting and re-identifying vehicles, as well as other more sophisticated techniques. While other more sophisticated techniques could be employed, it should be noted that each would only address a portion of the proposed problem.

MATERIALS AND METHODS

This work proposes a method for vehicle detection and re-identification using artificial neural networks, with a particular focus on convolutional neural networks (CNNs). Figure 1 presents the proposed methodology of an integrated system for vehicle detection, extraction, and re-identification.

Figure 1
Flowchart of the Proposed Methodology with Integrated Multiple CNNs.

The flowchart presented in Figure 1 outlines the proposed method for vehicle detection and re-identification (Re-ID), organized into three main phases: data acquisition, vehicle detection and extraction, and re-identification using convolutional neural networks (CNNs). These phases are detailed below.

Data acquisition

The process begins with the acquisition of the images to be analyzed. These images may come from different sources, such as surveillance cameras or drones. The first step of the method consists of determining whether the provided images already contain the detected vehicles. If the objects are already identified, the method allows the user to proceed directly to the Re-Identification task by defining the path of the vehicle sub-images.

Detection and extraction task

In the event that vehicle detection has not yet been carried out, the system uses a combination of object detection and tracking algorithms. In such instances, the YOLOv4 algorithm, which is a CNN, is used for object detection in images, in conjunction with the algorithm for tracking these objects throughout video sequences; in this work, DeepSORT was utilized (Wojke et al. 2017).

The selection of DeepSORT in this study was made based on its effectiveness in complex scenarios (Zhang et al. 2023), such as those captured by multiple drones operating in demanding operational conditions. There are recent comparisons where DeepSORT was evaluated alongside other multiple objects tracking methods, and the results showed that it maintains robust and competitive performance compared to other algorithms (Wang et al. 2020).

During the training of YOLOv4, a dataset with a variety of vehicles models was used to enhance the generalization capability in recognizing different types of vehicles. Additionally, during data collection, there were variations in the scenarios in which the images were obtained. A variety of techniques can be employed to assess whether the data has undergone any form of specialization. A holdout training strategy was adopted, where 80% was used for the training set and 20% for the validation set. The loss is monitored to prevent the network from over-specializing in the data and to maintain its generalization ability.

When an object is detected, the coordinates of the vehicles are used to extract and store the corresponding sub images in a user-defined directory. This is achieved through the use of rectangles and bounding boxes. These sub-images are labeled according to the detection performed and prepared for the re-identification phase. These coordinates are defined based on the example presented in Figure 2.

Figure 2
Process of object detection with YOLOv4 (Fritz 2023).

The objective of the DeepSORT algorithm (Wojke et al. 2017). is to ensure the consistency of the labels assigned to objects across the iterations of each frame. In the absence of this approach, the YOLOv4 network would identify each object in a new frame as a new instance, resulting in different labels for the same vehicle. In Figure 3, a vehicle detection is exemplified, which begins with the input of data, object detection, and extraction of the object in the form of a sub image.

Figure 3
Process to extraction sub images from the object detection.

Re-ID task

In order to generalize, the Re-ID process is carried out using five CNNs, which are responsible for extracting the attribute vector captured from the layer prior to classification. The CNN employed in this study included VGG16 (Simonyan & Zisserman 2014), VGG19 (Simonyan & Zisserman 2014), ResNet50 (He et al. 2015, InceptionV3 (Szegedy et al. 2015), EfficientNetV2L (Tan & Le 2021). Prior to this study, an attention mechanism was employed in previous analyses. However, the basic attention mechanism, which employed ResNet50 as a feature extractor with positional encoding to preserve the sequential structure of the features, Multi-Head Attention layers based on transformers, and a sigmoid activation function for classification, did not yield superior results compared to the selected CNNs.

The input image size for the Re-ID task is determined by the architectural specifications of the CNNs and must conform to their standards, which include length, width, and number of color channels (image resolution). These parameters are delineated in the “Input image size” column of Table I. The third and fourth columns of Table IV present the name of the layer containing the feature vector and the size of the generated vector (number of points in the attribute vector).

Table I
Details of the Architectures Used in the Re-ID Task.

Next, a similarity metric is applied between two vectors using the Euclidean norm distance or L2-norm distance for a one-dimensional vector (Frobenius norm distance).

The Frobenius norm in 1D is a generalization of the Euclidean distance for one-dimensional vectors, that is, an ordered sequence of values along a single dimension. Considering a one-dimensional vector υ = ​​​[​​ ​υ​ 1​​, ​υ​ 2​​, ​υ​ 3​​…., ​υ​ n​​​​​​]​​​​ , the Frobenius norm is defined by the following equation (Golub & Van 1996, 1985):

Norma Frobenius (1D) = U 1 2 + U 2 2 + U 3 2 + ⋯ + U n 2 (1)

or

∥ A ∥ F = [ ∑ i j abs ( a i j ) 2 ] (2)

Where the Frobenius norm distance (||A||) can be defined as the square root of the sum of the squares of the elements of a matrix a. (i x j).

A diagram of the Re-ID process in the proposed methodology is presented in Figure 4.

Figure 4
Attribute Vector Extraction Process for Vehicles Using Multiple CNNs.

The system executes queries on the database, which contains vehicle images (Figure 4a), using images captured by drones as an example. Subsequently, these images are submitted to the CNNs for resizing (Figure 4b). Prior to the extraction of attributes, the input images are resized according to the requirements of each CNN. After this step, the images are processed, and the attribute vectors of these vehicles (Figure 4c) are generated and stored (Figure 4d) for each proposed network architecture.

Finally, formula (2) is applied to two attribute vectors, thereby generating the distance between these vectors on a scale from 0 to 1 (Figure 4e). The closer to 0, the higher the similarity between the images. Once all comparisons in the database have been completed, each network generates a ranking of the best results and displays the top five responses in image form. Figure 4, detail f, presents an example of the rank formed with the top five results of a CNN, while detail g presents the rank of the five networks.

Proposal for experiments

In order to evaluate the methodology, two experiments are proposed for the analysis of the method’s performance: the first experiment uses images of vehicles from a public dataset, which the second experiment utilizes images acquired by multiple drones. The first experiment uses images from the publicly accessible Mendeley Dataset (Ali 2022), which have been classified by a specialist, containing similar vehicles (near duplicates) with little variation in image perspectives (minor variation in the angle of vehicle image pairs).

In this experiment, it is proposed to analyze how the networks used in the Re-ID task behave with data containing vehicles of the same model, and with some type of perspective variation including data that encompasses scenarios with different types of highways and urban traffic.

The second experiment, which employed the use of unmanned aerial vehicles (UAVs), was designed with the objective of capturing images of vehicles on a highway. In this experiment, a CNN (Detection System) is applied to detect and extract vehicles to construct the dataset. Subsequently, a vehicle present in the images captured by the initial drone is identified and matched the other two drones through the Re-ID process. The purpose of this Identification is to track the vehicle from different viewpoints captured by the UAVs.

This experiment examines, the automated methodology for data extraction using CNNs is analyzed, and the use of low-resolution images captured by different optical sensors.

Figure 5
Diagram of the Two Experiment Models for Performance Analysis.

Experiment with the Mendeley dataset

In the initial experiment, the dataset used contains 3,847 different vehicles with 48 annotated vehicle models. From this dataset, 170 vehicles of six distinct different models were separated into two directories. Each vehicle is paired with a corresponding vehicle in the second directory. It was decided to utilize the dataset without data augmentation, as initial tests involving mirroring did not yield substantial improvements. In Figure 6, a diagram of the steps performed in Experiment A is presented.

Figure 6
Diagram of the Mendeley Dataset experiment for Performance Analysis.

The data in the directories with vehicles of the same model exhibit similar characteristics with prospective variations not exceeding 30°. Figure 7 presents an example of two vehicles of the same model with differences in perspective. The comparison is made between Car2 from Folder 1 with Car2 from Folder 2, and Car4 from Folder 1 with Car4 from Folder 2.

Figure 7
Categorization of Data from the Mendeley Dataset.

The vehicle data were organized by constructing a template as presented in Figure 8 and Table II.

Table II
Template Constructed for the Mendeley Data.
Figure 8
Example of the Template for Mendeley Data.

After the data separation, the images are processed in the Re-ID Task stage, wherein multiple CNNs are used to transform the information into vectors corresponding to each CNN. Next, these vectors are normalized, and equation (2) is applied to calculate the cost-to-distance ratio. The best result is used to analyze the performance of the five CNNs employed in Re-ID.

Experiment with multiples drones

The diagram of the multiple drone experiment is presented in Figure 9, showing the steps carried out up to the final analysis of the results.

Figure 9
Diagram of the Multiple Drones experiment for Performance Analysis.

The initial stage of the process flight planning, during which the altitude, destination, and technical specifications are determined. This information is then passed on to the authorities that authorize the flight.

In order to conduct drone flights in Brazil, it is necessary to undertake a normative flight step, which involves submitting a request to the Department of Airspace Control (DECEA). This is the agency responsible for flight authorizations within the Brazilian territory.

To conduct this experiment, videos obtained by three drones flying in parallel with the camera in a horizontal view were used, capturing moving vehicles on the highway (Figure 10). The data from these videos require pre-processing through the application of detection (YOLOv4) and tracking (DeepSORT) algorithms.

Figure 10
Drone Flight Configuration for Experiment 2.

After the data collection was completed, it was observed that there was a lack of synchronization between the videos captured by each drone. To address this issue, the videos were edited in order to synchronize the start of data capture, aiming to preserve its integrity for the Re-ID process. This was done to guarantee that no data pertaining to vehicles captured in a single video would be omitted from the others. Once synchronization was achieved, a video sequence was used for processing the vehicles in YOLOv4 and DeepSORT, with 1 minute deemed sufficient for the tests. Table III presents the number of vehicles detected by each drone in two moments of the experiments.

Table III
Number of Objects Detected by YOLOv4 with Synchronized Videos in One Minute.

Subsequently, a template was manually created for each experiment to identify the name assigned to the vehicle by the detection system and relate this name to the same vehicle recorded as a sub-image in the other two drones. Table IV shows an example of the rows of the table represent instances of the same vehicle, each identified by a different name assigned by the CNN of each drone.

Table IV
Example of the Template Used for Captured Data.

Following the extraction of features, the vectors are normalized and subsequently applied to equation (2) of cost by distance.

The results of the performance analysis of the Re-ID system for the dataset in Table V, VI and VII are presented in the “Results and Discussions” section.

Table V
Results of the CNN for the Mendeley Dataset.

RESULTS AND DISCUSSION

Mendeley dataset experiment

In Experiment 1, the Re-ID system was applied to the dataset comprising 170 vehicles in Experiment 1. Table II was used as a template for calculating the main accuracy of the five networks, and the result of the Re-ID task on the Mendeley dataset is presented in Table V.

Table V shows the results of each network used, with the ResNet50 network exhibiting the most favorable performance, with an average accuracy of 55.29%. This is followed by the VGG16 and VGG19 networks, which demonstrate average accuracy of 54.12% and 52.94%, respectively. The network with the lowest performance was EfficientNetV2L, with an accuracy of 41.18%.

Drones imagery experiment

Table VI and Table VII present the accuracy percentage of the Re-ID method based on the distance cost of the five networks used in the proposed method. The columns represent the drones whose images were used as targets for the Re-ID task. The rows with the CNNs represent the average accuracy of the vehicles identified in the other two directories (images from the other two drones). For example, when the data source is the images acquired from drone 1, these vehicles serve as targets to be re-identified, and comparisons are made with the data from drone 2 and drone 3.

Table VI
Results of the CNN for Drone Imagery 1 experiment.
Table VII
Results of the CNN for Drone Imagery 2 experiment.

The results shown in Table VI considered the optimal response from the networks rather than the top five ranked vehicles. The last column of Table VI presents the average accuracy of the three CNN datasets. The CNN with the highest accuracy in this experiment was VGG19 with 91.09%, followed by ResNet50 and VGG16 with mean accuracies of 82.66%. The network with the worst performance was EfficientNetV2L with 63.74%.

In Table VII the CNN with the highest accuracy in this experiment was VGG19 with 80.04%, followed by VGG16 with mean accuracies of 78.04%. The network with the worst performance was InceptionV3 with 62.87%.

Although the images from Experiment 1 had superior quality and size to those from Experiment 2, the vehicle identification performed with these data yielded inferior results to those obtained with the data from Experiment 2. This result indicates that neither the size nor the quality of the images constituted barriers to the network’s effectiveness in the Re-ID task.

The results of Experiment 1, presented in Table V, demonstrate a decline in Re-ID accuracy when compared to the results of Experiment 2 (Table VI, VII). A possible explanation for decline in performance is the challenge of differentiating between vehicles of the same model that exhibit highly similar characteristics, creating a situation akin to that of nearly-duplicate vehicles. Additionally, the discrepancy in perspective between each vehicle, though slight, may contribute to the outcomes observed in Experiment 2.

In general, the responses incorporating drone data yielded superior outcomes compared to those utilizing public dataset, and the Re-ID techniques demonstrated enhanced capacity to differentiate vehicles of different models yet exhibited greater difficulty in differentiating vehicles of the same model.

A final analysis is presented in Figure 11, which depicts the standard deviation of the results is calculated for both experiments. It can be observed that the VGG16 network presented the lowest standard deviation in both datasets, with a value of 1.6%.

Figure 11
Summary of the Bar Chart of the Average Confidence Levels of the CNN Results.

In the case of drone dataset, in the Drone Imagery 1 experiment, the network with the highest standard deviation was EfficientNetV2L, with a value of 19.5%, followed by ResNet50, with a value of 10.4%. For the Drone Imagery 2 experiment, the highest standard deviation was ResNet50 with 5.5%, followed by InceptionV3 with 4.1%. For the Mendeley Experiment data, the network with the highest standard deviation was VGG19, with 6.6%, followed by EfficientNetV2L, with 5.0%.

Comparing the five applied CNNs, EfficientNetV2L, which has the most complex architecture (120 million parameters), exhibited the lowest efficiency in both experiments. The InceptionV3 network, with the second most complex architecture, showed the second lowest performance in both experiments. This outcome is attributed to the generation of more complex networks, which in turn produce generating more abstract and challenging-to-interpret features, resulting in a less discriminative descriptor vector, which is unsuitable for similarity metric applications.

It was observed that the networks, which achieved the best results had input images with smaller dimensions (224x224) for both experiments. The dimensions of the image are a requirement of the network architecture. VGG19 presented the best performance with the drone imagery dataset, consistently outperforming the other networks in both experiments. Specifically, it achieved an average accuracy of 91.09% in Experiment 1. To choose the technique without data leakage, a second experiment was conducted, yielding an accuracy of 80.04%. This experiment underscored its robustness and adaptability to this type of data, making it more suitable for the re-identification task compared to deeper or more complex architectures like InceptionV3 and EfficientNetV2L.

Better results were obtained with the dataset collected from drones, with a greater diversity of vehicles, even when using low-resolution images. Experiment 1 demonstrated a notable decline in performance when using vehicles of the same model in the second dataset. This suggests that it is challenging to differentiate between vehicles based on their specific details.

CONCLUSIONS

This work presents a methodology based on multiple CNNs for the task of detection and Re-ID, which indicated promising results in identifying vehicles. A comprehensive analysis of different CNN architectures for the Re-ID task, offering insights into their performance under diverse datasets, including controlled public datasets and dynamic drone-acquired data.

The evaluation of object re-identification in the first experiment indicated that the best-performing network between the 5 CNNs has been ResNet50, while the worst-performing network has been EfficientNetV2L.

The vehicle re-identification analysis in the second experiment presented promising results for the CNNs, with VGG19 having the best performance and EfficientNetV2L showing the lowest performance, indicating that the analysis of different neural networks was relevant, as the majority of studies in the literature suggested that ResNet50 was superior (Chu et al. 2019, Huynh et al. 2021). Contrary to some previous studies that highlighted the superiority of ResNet50, this work demonstrates the competitiveness of VGG19, particularly in scenarios involving UAV-acquired images, suggesting that network selection should be context-specific.

In both experiments, the Re-ID process utilized five CNNs, with Experiment 2 achieving better results than Experiment 1. Possible explanations for this outcome include:

I. The challenge of distinguishing between vehicles of the same model with very similar characteristics, and

II. The presence of slight angular variation (difference in perspective) between vehicles, which was exclusive to Experiment 1.

The more complex network architecture used in the experiments (InceptionV3 and EfficientNetV2L) exhibited the worst performance, indicating that this relationship may be linked to the resizing of sub-images and the volume of descriptor points used.

The experiments demonstrated that YOLOv4 is an effective method for detecting and classifying vehicle images. The proposed methodology has been promising with the data used, and it is expected that future work will implement an approach for applications with real-time transmitted images.

For future work, include an analysis in complex scenarios of DeepSORT with other tracking algorithms, such as FatirMOT (Zhang et al. 2020), ByteTrack (Zhang et al. 2021), among others. Such an investigation will permit an evaluation of the relative merits and drawbacks of the algorithms in diverse operational scenarios, identifying specific instances where one may gain or lose advantage. Additionally, a more comprehensive investigation is recommended to examine the efficacy of data augmentation techniques, varying perspectives, rotation, brightness, contrast, and noise. Further scenarios could be explored, considering potential variations in climate conditions, road types, and urban traffic. Furthermore, an investigation into the attention mechanism in re-identification models is recommended, as it may enhance the ability to focus on the distinctive features of vehicles.

Although in this work the data synchronization has been done manually, in practice this synchronization should be carried out automatically by leveraging real-time data fusion techniques. This would entail taking into account the position and capture time of the drone and the vehicles.

References

  • ALEXANDER M & GUNASEKARAN S. 2014. A survey on image retrieval methods. Available at: https://www.researchgate.net/publication/265298224_A_Survey_on_Image_Retrieval_MethodsDOI:10.13140/2.1.2779.0723 Accessed: 10 set. 2023.
    » https://www.researchgate.net/publication/265298224_A_Survey_on_Image_Retrieval_MethodsDOI:10.13140/2.1.2779.0723
  • ALI M. 2022. Vehicle images dataset for make and model recognition. Data in Brif 42: 108107.
  • ALOM MZ, TAHA TM, YAKOPCIC C, WESTBERG S, SIDIKE P, NASRIN MS, HASAN M, VAN ESSEN BC, AWWAL AAS & ASARI VK. 2019. A state-of-the-art survey on deep learning theory and architectures. Electronics 8(3): 292.
  • ALVES JDG. 2023. Possibilidades e desafios no uso de drone para mapeamento de comunidades tradicionais na Amazônia. Rev Bras Geogr Fís 16(5): 2594-2608.
  • BOCHKOVSKIY A, WANG CY & LIAO HYM. 2004. YOLOv4: optimal speed and accuracy of object detection. Arxiv. Available at: https://arxiv.org/abs/2004.10934 Accessed: Accessed: 11 set. 2020.
    » https://arxiv.org/abs/2004.10934
  • CASTRO D & NEW J. 2016. The promise of artificial intelligence. Center for Data Innovation, p. 48.
  • CHEN W, LIU Y, WANG W, BAKKER EM, GEORGIOU TK, FIEGUTH P, LIU L & LEW MSK. 2021. Deep image retrieval: a survey. Arxiv. Available at: https://arxiv.org/abs/2101.11282 Accessed: 10 set 2024.
    » https://arxiv.org/abs/2101.11282 Accessed: 10 set
  • CHU R, SUN Y, LI Y, LIU Z, ZHANG C & WEI Y. 2019. Vehicle re-identification with viewpoint-aware metric learning. In: IEEE/ICCV, Seoul. Proceedings…, Piscataway: IEEE, p. 8281-8290.
  • DENG H, ZHAO Y, WANG Q & NGUYEN A-T. 2023. Deep reinforcement learning based decision-making strategy of autonomous vehicles in highway uncertain driving environments. Automot Innov 6: 438-452.
  • ELLOUMI M, DHAOU R, ESCRIG B, IDOUDI H & SAIDANE LA. 2018. Monitoring road traffic with a UAV-based system. In: IEEE Wireless Communications and Networking Conference, Barcelona. Proceedings…, Piscataway: IEEE, p. 1-6.
  • FRITZ. 2023. How YOLO object localization works with keras. Fritz. Available at: https://fritz.ai/how-yolo-object-localization-works-with-keras/ Accessed: 26 ago. 2024.
    » https://fritz.ai/how-yolo-object-localization-works-with-keras/
  • GEIGER A, LENZ P, STILLER C & URTASUN, R. 2013. Vision meets robotics: the KITTI dataset. IJRR 32(11): 1231-1237.
  • GIRSHICK R. 2015. Fast R-CNN. In: IEEE International Conference on Computer Vision, Santiago. Proceedings…, Piscataway: IEEE, p. 1440-1448.
  • GOLUB GH & VAN LOAN CF. 1985. Matrix computations. Baltimore: Johns Hopkins University Press.
  • GOLUB GH & VAN LOAN CF. 1996. Matrix computations. Baltimore: Johns Hopkins University Press.
  • HAKIM H & FADHIL A. 2021. Survey: convolution neural networks in object detection. J Phys 1804(1): 012095.
  • HE B, LI J, ZHAO Y & TIAN Y. 2019. Part-regularized near-duplicate vehicle re-identification. In: IEEE/CVPR, Long Beach. Proceedings…, Piscataway: IEEE, p. 3992-4000.
  • HE K, ZHANG X, REN S & SUN J. 2015. Deep residual learning for image recognition. IJIRCCE 11(09): 10742-10747.
  • HE S, LUO H, CHEN W, ZHANG M, ZHANG Y, WANG F, LI H & JIANG W. 2020. Multi-domain learning and identity mining for vehicle re-identification. In: IEEE/CVPR, Seattle. Proceedings…, Piscataway: IEEE, p. 2485-2493.
  • HUYNH SV, NGUYEN NH, NGUYEN NT, NGUYEN VTQ, HUYNH C & NGUYEN C. 2021. A strong baseline for vehicle re-identification. In: IEEE/CVF/CVPRW, Nashiville. Proceedings…, Piscataway: IEEE, p. 4142-4149.
  • KHAN SD. 2019. A Survey of advances in vision-based vehicle re-identification. Arxiv. Available at: https://arxiv.org/abs/1905.13258 Accessed: 10 set. 2023.
    » https://arxiv.org/abs/1905.13258
  • KRAUSE J, STARK M, DENG J & FEI-FEI L. 2013. 3D object representations for fine-grained categorization. In: International IEEE Workshop on 3D Representation and Recognition, 4., Sydnei. Proceedings…, Piscataway: IEEE, p. 554-561.
  • KRIZHEVSKY A, SUTSKEVER I & HINTON GE. 2012. ImageNet classification with deep convolutional neural networks. Adv Neural Inf Process Syst 25: 1097-1105.
  • LIN X, ZENG H, HOU J, CAO J, ZHU J & CHEN J. 2020. Joint pyramid feature representation network for vehicle re-identification. Mobile Netw Appl 25: 1781-1792.
  • LIU W, ANGUELOV D, ERHAN D, SZEGEDY C, REED S, FU CY & BERG AC. 2016a. SSD: single shot multibox detector. In: Lecture Notes in Computer Science. Cham: Springer 9905: 21-37.
  • LIU X, LIU W, MEI T & MA H. 2016b. A deep learning-based approach to progressive vehicle re-identification for urban surveillance. In: Leibe B, Matas J, Sebe N & Welling M (Eds), Computer Vision. Berlin: Springer, p. 869-884.
  • MANDAL V, MUSSAH AR, JIN P & ADU-GYAMFI Y. 2020. Artificial intelligence enabled traffic monitoring system. Preprints.
  • MARTY OL. 2022. Uso de aeronaves remotamente pilotadas pela inteligência policial militar no combate aos crimes violentos contra o patrimônio. Rev Ciênc Polic 4: 8.
  • MING Z, ZHU M, WANG X, ZHU J, CHENG J, GAO C, YANG Y & WEI X. 2021. Deep learning-based person re-identification methods: a survey and outlook of recent works. Arxiv. Available at: https://arxiv.org/abs/2110.04764 Accessed: 15 set. 2023.
    » https://arxiv.org/abs/2110.04764
  • NASCIMENTO FIC. 2021. Aspectos conceituais sobre o uso e aplicação de drones no georreferenciamento. RCM Núcleo do Conhecimento 4(4): 65-82.
  • NATH K & WANG A. 2021. A Survey on personal image retrieval systems. Research Gate. Available at: https://www.researchgate.net/ Accessed: 10 set. 2023.
    » https://www.researchgate.net/
  • NATIONAL ACADEMIES OF SCIENCES, ENGINEERING, AND MEDICINE. 2023. Critical issues in transportation 2019, 2023. Available at: https://nap.nationalacademies.org/resource/25314/criticalissues/ Accessed: 10 set. 2023.
    » https://nap.nationalacademies.org/resource/25314/criticalissues/
  • PATIRA S. 2019. Over speed detection using artificial intelligence. Master Thesis. San Jose State University Library. Unpublished.
  • PRABHU VU & BIRHANE A. 2020. Large image datasets: a pyrrhic win for computer vision? In: IEEE/WACV, Waikoloa. Proceedings…, Piscataway: IEEE, p. 1536-1546.
  • REN L, JIA Z, LAILI Y & HUANG D. 2023. Deep learning for time-series prediction in IIoT: progress, challenges, and prospects. IEEE Trans. Neural Netw Learn Syst 35(11): 15072-15091.
  • REN S, HE K, GIRSHICK R & SUN J. 2016. Faster R-CNN: towards real-time object detection with region proposal networks. IEEE TPAMI 39(6): 1137-1149.
  • SARKER IH. 2021. Deep learning: a comprehensive overview on techniques, taxonomy, applications and research directions. SN Comp Sci 2(6): 420.
  • SHEN J, SUN J, WANG X & MAO Z. 2022. Joint metric learning of local and global features for vehicle re-identification. Complex Intell Syst 8: 4005-4020.
  • SIMONYAN K & ZISSERMAN A. 2014. Very deep convolutional networks for large-scale image recognition. arXiv, Available at: http://arxiv.org/abs/1409.1556 Accessed: 10 set. 2024.
    » http://arxiv.org/abs/1409.1556
  • SZEGEDY C, VANHOUCKE V, IOFFE S, SHLENS J & WOJNA Z. 2015. Rethinking the inception architecture for computer vision. In: IEEE/CVPR, Las Vegas. Proceedings…, Piscataway: IEEE, p. 2818-2826.
  • TAK S, LEE J-D, SONG J & KIM S. 2021. Development of AI-Based vehicle detection and tracking system for C-ITS application. J Adv Transp Aug: 1-15.
  • TAN M & LE QV. 2021. EfficientNetV2: smaller models and faster training. ArXiv. Available at: https://arxiv.org/abs/2104.00298 Accessed: 20 set. 2023.
    » https://arxiv.org/abs/2104.00298
  • TANG Z, NAPHADE M, LIU M-Y, YANG X, BIRCHFIELD S, WANG S, KUMAR R, ANASTASIU D & HWANG JN. 2019. CityFlow: a city-scale benchmark for multi-target multi-camera vehicle tracking and re-identification. In: IEEE/CVPR, Long Beach. Proceedings…, Piscataway: IEEE, p. 8789-8798.
  • YAOCHEN L, YUEHU L, CHI Z, DANCHEN Z & NANNING ZL. 2014. The floor-wall traffic scenes construction for unmanned vehicle simulation evaluation. In: International IEEE Conference on Intelligent Transportation Systems 17, Qingdao. Proceedings…, Piscataway: IEEE, p. 1726-1731.
  • WANG J, ZHENG L, LI Y, LIU Y & WANG S. 2020. Towards real-time multi-object tracking. In: ECCV, Glasgow. Proceedings..., Glasgow: Springer, p. 107-122.
  • WOJKE N, BEWLEY A & PAULUS D. 2017. Simple online and realtime tracking with a deep association metric. In: IEEE/ICIP, Beijing. Proceedings…, Piscataway: IEEE, p. 3645-3649.
  • WU X, LI W, HONG D, TAO R & DU Q. 2021. Deep learning for UAV-based object detection and tracking: a survey. IEEE GRSM 10(1): 91-124.
  • ZHANG G, KANG W, MA R & ZHANG L. 2023. Multi-object tracking based on YOLOX and DeepSORT algorithm. In: Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering. Cham: Springer. v504.
  • ZHANG Y, SUN P, JIANG Y, YU D, WENG F, YUAN Z, LUO P, LIU W & WANG X. 2021. ByteTrack: multi-object tracking by associating every detection box. In: Avidan S, Brostow G, Cissé M, Farinella GM & Hassner T (Eds), Lecture Notes in Computer Science. Cham: Springer, v13682.
  • ZHANG Y, WANG C, WANG X, ZENG W & LIU W. 2020. FairMOT: On the fairness of detection and re-identification in multiple, object tracking. Int J Comput Vis 129: 3069-3087.
  • ZOU Z, SHI Z, GUO Y & YE J. 2019. Object detection in 20 years: a survey. Proceedings IEEE 99: 1-20.

Correspondence

Correspondence to: Felipe Pacheco de Almeida Euphrásiofelipephelp1234@gmail.com

Publication Dates

  • Publication in this collection
    31 Mar 2025
  • Date of issue
    2025

History

  • Received
    16 June 2024
  • Accepted
    7 Jan 2025
location_on
Academia Brasileira de Ciências Rua Anfilófio de Carvalho, 29, 3º andar, 20030-060 Rio de Janeiro RJ Brasil, Tel: +55 (21) 2391-7901 - Rio de Janeiro - RJ - Brazil
E-mail: aabc@abc.org.br
rss_feed Stay informed of issues for this journal through your RSS reader
Go to top