Next Article in Journal
Gabor Filter-Based Segmentation of Railroad Radargrams for Improved Rail Track Condition Assessment: Preliminary Studies and Future Perspectives
Previous Article in Journal
Comparison of Low-Cost Commercial Unpiloted Digital Aerial Photogrammetry to Airborne Laser Scanning across Multiple Forest Types in California, USA
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Constraint Loss for Rotated Object Detection in Remote Sensing Images

1
College of Automation Engineering, Nanjing University of Aeronautics & Astronautics, Nanjing 210016, China
2
College of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029, China
3
National Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2021, 13(21), 4291; https://doi.org/10.3390/rs13214291
Submission received: 28 September 2021 / Revised: 15 October 2021 / Accepted: 21 October 2021 / Published: 25 October 2021

Abstract

:
Rotated object detection is an extension of object detection that uses an oriented bounding box instead of a general horizontal bounding box to define the object position. It is widely used in remote sensing images, scene text, and license plate recognition. The existing rotated object detection methods usually add an angle prediction channel in the bounding box prediction branch, and smooth L 1 loss is used as the regression loss function. However, we argue that smooth L 1 loss causes a sudden change in loss and slow convergence due to the angle solving mechanism of open CV (the angle between the horizontal line and the first side of the bounding box in the counter-clockwise direction is defined as the rotation angle), and this problem exists in most existing regression loss functions. To solve the above problems, we propose a decoupling modulation mechanism to overcome the problem of sudden changes in loss. On this basis, we also proposed a constraint mechanism, the purpose of which is to accelerate the convergence of the network and ensure optimization toward the ideal direction. In addition, the proposed decoupling modulation mechanism and constraint mechanism can be integrated into the popular regression loss function individually or together, which further improves the performance of the model and makes the model converge faster. The experimental results show that our method achieves 75.2% performance on the aerial image dataset DOTA (OBB task), and saves more than 30% of computing resources. The method also achieves a state-of-the-art performance in HRSC2016, and saved more than 40% of computing resources, which confirms the applicability of the approach.

Graphical Abstract

1. Introduction

Remote sensing images are an important manifestation of remote sensing information, which is vital to national defense security. Remote sensing-image object detection is a prerequisite and basis for tasks such as spatial object tracking and instance segmentation [1]. With the extensive application of convolutional neural networks (CNNs) in computer vision, object detection has undergone rapid development [2]. R-CNN [3] is predominantly used for object detection based on deep learning. After 2016, a series of two-stage detectors based on candidate regions have become the mainstream, such as Fast RCNN [4], Faster RCNN [5], and R-FCN [6]. The two-stage detector has good detection accuracy; however, the detection speed is poor owing to the complex network structure. YOLO [7], SSD [8], and RetinaNet [9] are representative one-stage detectors; they do not involve the region proposal network and greatly improved the detection speed; however, the detection accuracy is sacrificed. While the anchor-based method is developing rapidly, anchor-free methods have also received attention in recent years owing to the proposal of CornerNet [10]. The more popular ones are FCOS [11], CenterNet [12], and ExtremeNet [13]. They have replaced the previous generation of anchor methods by predicting key points, thereby opening up a new direction for the research of object detection technology [14]. In addition, there are some researches on high resolution [15,16], unbalanced samples [17], and other issues [18]. The above method has achieved good performance in natural images, such as the COCO [19] and Pascal VOC [20] datasets. Therefore, it is applied to remote sensing image object detection tasks. For example, Zhang et al. [21] combined with fast registration and YOLOv3, proposed an effective aerial infrared image sequence moving vehicle detection method. Liao et al. [22] proposed the Local Perception Region Convolutional Neural Network (LR-CNN) and constructed a new method for vehicle detection in aerial images. Lei et al. [23] proposed a tiny vehicle detection method based on spatio-temporal information, which realized the detection of tiny moving vehicle in satellite video. However, the horizontal bounding box cannot provide accurate orientation and scale information in remote-sensing-image object detection tasks [24,25,26] (see Figure 1). Therefore, the research of rotated object detection in remote sensing images is of great significance for engineering applications.
In recent years, rotated object detection has been derived from classic object detection [27,28,29], and most existing methods use five parameters (coordinates of the central point, width, height, and rotation angle) to describe the oriented bounding box. The initial exploration of rotated object detection involves rotating the RPN [30]; however, it involves more anchors, which implies that additional running time is required. Ding et al. [31] proposed an RoI transformer that converts the axis-aligned RoI into a rotatable RoI to solve the problem of misalignment between the RoI and the oriented object. Han et al. [32] proposed a S 2 ANet, which was used for depth feature alignment for rotating object detection. In addition, SCRDet [33] reported for the first time the problem of sudden changes in loss in rotated object detection tasks (see Figure 2) and proposed IoU-smooth L 1 loss to overcome this problem. Similarly, PIoU Loss [34] and R 3 Det [35] both add a very small weight to the loss function to overcome the problem of sudden change in loss. However, these methods all inhibit the sudden change in loss, and do not solve the problem fundamentally. Therefore, some novel ideas have been proposed. Zhu [26] and Xu [36], respectively, proposed a new method for expressing directed objects in aerial images, which avoids complicated calculation rules, but the performance is not ideal. In CSL [37], a circular label is designed to convert the angle-regression problem into a classification problem. In RSDet [38], a modulation rotation loss is proposed to eliminate the problem of discontinuity in loss. Although CSL and RSDet both effectively solve the problem of loss mutation, there are still some new problems that have not been considered. For example, the detection performance of CSL is not ideal; RSDet does not consider the problem of training resource consumption. Therefore, a new regression loss mechanism is essential for the development of rotating object detection.
To solve the above problems, we propose a new loss function with a decoupling modulation mechanism and constraint mechanism. The decoupling modulation mechanism divides the deviation of smooth L 1 loss into three parts (center point, size, and rotation angle) and modulates them, which effectively overcomes the sudden change in loss. On this basis, the constraint mechanism provides a constraint domain for the center point and size of the bounding box so that it has a tolerance for deviation in the regression process. This improves the performance and convergence speed of the model. In addition, the decoupling modulation mechanism and constraint mechanism we proposed are general and they perform well when applied to most popular regression loss functions.
In summary, the contributions of this paper are as follows:
  • We propose a decoupling modulation mechanism that decouples the loss deviation into three parts and modulates them, respectively. It overcomes the problem of sudden changes in loss for detecting rotating objects and makes the training process more stable.
  • We propose a constraint mechanism, which effectively solves the problem of slow network convergence and improves the performance of the model by adding the constraint domain as the center point and size of the bounding box. Experiments on the DOTA dataset reveal an improvement in mAP by 1.2% and in convergence speed by 40%, and the 0.5% mAP and 30% convergence speed are improved on the HRSC2016 dataset.
  • Our method is independent of the model; thus, it is generic and can be applied to most regression loss functions. The experimental results for nine popular loss functions (including deviation-based loss and IoU-based loss) verify its effectiveness.
The remainder of this paper is organized as follows. Section 2 describes our motivation, the proposed method, and a detailed analysis of the characteristics of the method. Section 3 reports the details of the experiment, including the datasets, implementation details, ablation study, and experimental results. Finally, Section 4 presents the conclusions of this article.

2. Materials and Methods

In this section, we first describe the proposed constraint loss function and then analyze the constraint parameters (CPs). Finally, the adjustability and generalizability of the constraint loss are discussed.

2.1. Constrained Loss Function

In the initial stage of the development of rotating object detection, smooth L 1 loss still plays an important role and the regression is represented in (1).
t x = ( x x * ) / w , t y = ( y y * ) / h t w = l o g ( w * / w ) , t h = l o g ( h * / h ) t θ = θ θ *
where (x, y) is the coordinate of the center point of the rectangular box, (w, h) represents its width and height, and θ is defined as the acute angle to the X-axis. The range of values of θ is [ 0 , π 2 ] or [ π 2 , π 2 ] , as defined by openCV (see Figure 3). The * represents the ground truth labels, and the regression calculation is normalized to avoid overfitting.
The sudden change in loss of the oriented bounding box regression process is mainly caused by two reasons: (i) the exchange of width and height, and (ii) the periodicity of the angle. To solve the above two problems, we decoupled and modulated the regression calculation of the rotating bounding box.
Decoupling and Modulation: Inspired by [38], the regression calculation of the oriented bounding box is first decoupled into three parts: (i) center point regression, (ii) size regression, and (iii) angle regression. Then, the latter two parts are modulated as follows:
L 1 = | x x * | + | y y * |
L 2 = min | w w * | + | h h * | | w h * | + | h w * |
L 3 90 = min | θ θ * | π 2 | θ θ * |
In [38], the exchange of edges is always accompanied by modulation in the angle period, and the bounding box regression is expressed as:
L r e g = min L 1 + L 2 1 + L 3 1 L 1 + L 2 2 + L 3 2
where L 2 1 represents the first row of L 2 in (3) (the same definitions for L 2 2 , L 3 1 , and L 3 2 ).
The above design is useful for the regression of most bounding boxes; however, some special problems are ignored. For example, the L 2 and L 3 modulations are not synchronized, as shown in Figure 4. Therefore, the regression of the bounding box is divided into three parts, as shown in (2)–(4), and modulated, respectively. Finally, the output result is modulated twice, and the bounding box is mirrored and rotated. In addition, when the 180 representation method is used, L 2 modulation is suppressed, and the modulation term π / 2 of L 3 is replaced by π .
L 3 180 = min | θ θ * | π | θ θ * |
Constraint: To enable the network to converge faster and reduce resource consumption, the calculation of the deviation between the center point and the size of the bounding box must be constrained. The constraint is expressed as follows:
L 1 * = con ( ( x x * ) 2 + ( y y * ) 2 > α | L 1 , 0 ) L 2 * = con ( min ( w w * ) 2 + ( h h * ) 2 ( w h * ) 2 + ( h w * ) 2 > β | L 2 , 0 )
where, con ( . ) is the conditional function, which means L i * = L i when the condition is met; otherwise, L i = 0 . α and β represent the constraints on the center point and target frame scale, respectively, to ensure that the model always evolves in the correct direction during the training process.
The regression loss function is shown in Figure 5, where the constraint line comes from the Constraint Parameters (CPs) and coincides with the X-axis. In particular, it is abandoned below the constraint line. This means that the loss value is set to 0 when the deviation between the predicted box and the ground truth is within the constraint range.
In summary, the proposed constraint loss functions L C are expressed as follows:
L C 90 = con ( ( x x * ) 2 + ( y y * ) 2 > α | L 1 , 0 ) + con ( min ( w w * ) 2 + ( h h * ) 2 ( w h * ) 2 + ( h w * ) 2 > β | L 2 , 0 ) + min ( | θ θ * | , π 2 | θ θ * | )
L C 180 = con ( ( x x * ) 2 + ( y y * ) 2 > α | L 1 , 0 ) + con ( ( w w * ) 2 + ( h h * ) 2 > β | L 2 , 0 ) + min ( | θ θ * | , π | θ θ * | )

2.2. Constraint Analysis

Without loss of generality, some changes occurred in the fine-tuning of the network owing to the introduction of α and β . We explored its geometric meaning and analyzed it using mathematical reasoning.
Geometric meaning: The geometric meaning of the CPs, proposed in this study, is shown in Figure 6. In the figure, α represents the constraint radius of the center point, and the center point deviation is set to 0 when the distance between the center point of the prediction box and the ground truth is less than α . β represents the bounding box size constraint radius, and the size deviation is set to 0 when the difference between the predicted box size and the ground truth is less than β . In addition, the endpoints of the bounding box are limited to the same color area. It is worth noting that this is similar to the filter of the bounding box, but it is completely different. Our goal is to prevent the prediction box from developing in a bad direction when the center point or size of the prediction box is close to the ground truth.
Gradient Analysis: Figure 7 shows a simplified diagram of the network structure. In the process of loss back propagation, the convolutional layer, pooling layer, and fully connected layer occupy the dominant position. Therefore, we analyzed the gradients of the three key layers mentioned, and studied the influence of the constraint loss function on them.
The gradient of the loss function S ( L ) with respect to the output layer is expressed as:
δ Y = L σ ( z Y ) = L σ ( z Y )
where ▽ represents the gradient vector of the loss function S with respect to the predicted value Y, σ represents the partial derivative of the activation function z ( X ) , ⊙ is the H a d a m a r d product, which represents the point-to-point multiplication operation between matrices or vectors.
The gradient propagation of the fully connected layer is expressed as:
δ l = ( ( W l + 1 ) T δ l + 1 ) σ ( z l )
The input P l 1 of the pooling layer can be obtained from P l . This process is usually called an upsample.
P l 1 = u p s a m p l e ( P l σ ( z l 1 ) )
where the second term can be understood as the constant 1 in the pooling process, because no activation function is involved in the pooling layer.
The input C l 1 of the convolutional layer can be obtained from C l .
C l 1 = C l * r o t 180 ( W l ) σ ( z l 1 )
A more detailed gradient analysis is shown in Appendix A, and based on this, we know the influence of the constraint loss function on the key layer. When the center point constraint ( L 1 * ) or the size constraint ( L 2 * ) is activated, the components of the regression deviation L C are reduced, and this response is directly transferred to the calculation of the gradient value of the main layer ( δ Y , δ l , P l 1 , C l 1 ), and parameter adjustment without additional steps. This simplifies the backpropagation task. In particular, it is more pronounced when L 1 * and L 2 * are activated simultaneously. This means that only the angle parameter θ is adjusted ( L = L 3 ), and the task will be simple and easy to implement. It is worth noting that when L 1 * and L 2 * are activated, the center point and size of the candidate frame are adjusted to the constraint range (see Figure 6), and subsequent adjustments have also been suppressed. This avoids additional calculations and development in unfavorable directions.
Convergence Analysis: Through geometric and gradient analyses, we found that the introduction of CPs had a positive effect on the convergence speed of the network. This is reasonable because the introduction of CPs is equivalent to increasing the tolerance of the prediction box. In the process of returning the prediction box to the truth box, the existence of tolerance enables the network to stabilize faster. To verify this idea, we tested the number of iterations when the network reached stability under different CPs, and the experimental results verified our hypotheses.

2.3. Adjustability and Generalizability

Adjustability: Inspired by self-placed learning [39], a cascaded sequence of CPs was proposed [40]. At the beginning of the training phase, a larger constraint parameter can filter out candidate frames with lower confidence, so that high-confidence bounding boxes can be focused on training. As the training progresses and the restriction parameters become smaller, the network begins to pay attention to the modification and optimization of the bounding box. In addition, the bounding box is restrained from expanding toward the constraint range, so that the network always develops in the ideal direction.
Generalizability: Based on the above analysis, we know that the introduction of α and β can improve the performance of the regression loss function and prompt the network to always train in the right direction. Therefore, we consider applying this constraint method to other regression loss functions and analyze its generality.
The existing rotating bounding box regression loss function can be divided into two categories: deviation-based and IoU-based categories. The deviation-based loss functions include MSE, MAE, Huber [41], Log-Cosh [42], and Quantile [43]. IoU-based loss functions include IoU [44], GIoU [45], DIoU [46], and CIoU. For the deviation-based loss functions, a cascade constraint parameter sequence is set (see Figure 8). For the IoU-based loss functions, we designed an overlapping sequence as its CP sequence. When the IoU of the prediction box and ground truth is greater than the threshold, the loss is considered to be zero (general IoU loss = 1-IoU). The initial threshold of overlap is 0.5, and gradually increases to 0.75 as the number of training increases. A more detailed parameter design is presented in Table 1.

3. Experiments and Results

Our experiment was carried out on a server with Ubuntu 14.04, Titan X Pascal and 12G memory. The experiment first provides the dataset and evaluation protocol, followed by a detailed ablation analysis and an overall evaluation of the proposed method.

3.1. Datasets and Evaluation Protocol

DOTA [47] is a large and challenging aerial image dataset in the field of object detection, including 2806 pictures and 15 categories, with a picture scale ranging from 800 × 800 to 4000 × 4000. It contains a training set, validation set, and test set, which account for 1/2, 1/6, and 1/3 of the total data set, respectively. Among them, the training and validation sets were marked with 188,282 instances, with an arbitrary direction quadrilateral box. In this study, we used the 1.0 version of rotating object detection, and the image was cropped into 600 × 600 slices. It was scaled to 800 × 800 during the training. Short naming is defined as plane (PL), baseball diamond (BD), bridge (BR), ground field track (GTF), small vehicle (SV), large vehicle (LV), ship (SH), tennis court (TC), basketball court (BC), storage tank (ST), soccer-ball field (SBF), roundabout (RA), harbor (HA), swimming pool (SP), and helicopter (HC). The official evaluation protocol of the DOTA in terms of the mAP is used.
HRSC2016 [48] is a dataset dedicated to ship detection is in the field of object detection. The dataset contains 1061 images from two scenarios, including ships on the sea and ships close to the shore. There are three levels of tasks (for single class, four types, and 19 types of ship detection and identification). The image sizes range from 300 × 300 to 1500 × 900, and most of them are larger than 1000 × 600. Among them, the training set was 436, the verification set was 181, and the test set was 444. The example is marked by a rotating rectangular box, and the standard evaluation protocol of HRSC2016 in terms of mAP is used.

3.2. Implementation Details

The proposed method is implemented based on the rotation detection benchmark proposed by Yang et al [49]. We used RetinaNet as the baseline method and ResNet50, ResNet101, and ResNet152 as the backbone network for the experiments. To reflect the fairness of the experiment, all comparative experiments used the same backbone network, and the batch size was set to 8, owing to the limitation of GPU memory. In all experiments, we use the momentum SGD optimizer to optimize the network, and the momentum and weight decay are 0.9 and 1 × 10 4 , respectively. The initial learning rate is 5 × 10 4 , and for each training epoch, the learning rate decays to 0.1 times the original, and the size of the epoch depends on the number of training samples. The hyperparameters α and β are set to a sequence (see Figure 8), which gradually decreased as the number of iterations increased.

3.3. Ablation Study

The ablation study includes the effect of the modulation mechanism and the constrained mechanism on the network, as well as the convergence and generality of the proposed constrained loss function. (For the convenience of comparison, the validation set in the DOTA is used for evaluation, because the test set label has not been released.)
Effects of the modulation mechanism: We experimented with the proposed decoupling modulation mechanism in the regression loss function, and compared it with popular loss functions, such as L 1 , smooth- L 1 , IoU-smooth- L 1 [33], and L m r [38]. In the experiment, we used the same backbone network (resnet50) and five-parameter regression method, and used RetinaNet as the baseline method. The experimental results show that in Table 2, our modulation mechanism has achieved better performance than L m r [38], which has increased by 0.4 and 0.6 in DOTA and HRSC2016, respectively. This further proves our idea that decoupling the regression parameters can improve the performance of the network model.
Effects of the constraint mechanism: To verify the effectiveness of the constraint loss function ( L C ), we experimented with the center point constraint and the size constraint, respectively and explored the influence of different constraint domains on the performance of the model. In the experiment, the CPs α and β are designed to be 5,4,3,2,1,0, and test them, respectively, where 0 indicates an unconstrained state. To ensure fairness of the experiment, each comparison experiment was trained for 30 epochs (training times per epoch was 20,673). In addition, the proposed decoupling modulation loss is used. The experimental results are shown in Figure 9. Obviously, there are some positive and negative effects due to the introduction of α and β . Compared with the unconstrained case, the effective CPs accelerate the network convergence speed. In particular, when CPs = 4 or 5, the network convergence speed is faster, but the model performance is sacrificed. The network convergence speed and model performance were improved when CPs = 1, 2, or 3. The performance of the model is the best when α = 2 and β = 3, which are improved by 3.5 and 3.2, respectively. Although this is not the final result (only 30 epochs are trained), and this improvement will become smaller as the training expands, this is sufficient to confirm our method. The introduction of CPs can not only improve the performance of the model, but more importantly, it greatly improves the convergence speed of the model and reduces resource consumption.
Based on the above experiments, we found that appropriate center point constraints and size constraints can have a positive effect on network training. Therefore, it is necessary to explore these combinations. In the experiment, we predefined an optimal combination ( α , β ) = (2,3) (from the ablation experiment of the center point constraint and size constraint), and designed some other combinations. The results are shown in Table 3. The predefined combination ( α , β ) = (2,3) and L d m led to the best performance compared to other combinations and loss functions, which confirmed our idea.
Convergence analysis: We experimented with the network under different CPs and recorded the number of training required for the model to stabilize. The results are shown in Table 4, where different CPs have significant differences in the consumption of training resources of the network. Larger CPs mean greater tolerance for predicting bounding boxes, less training resources are required, and faster convergence and stability, while smaller CPs have the opposite.
Adjustability: By combining the characteristics of different CPs, an experiment of cascade constraint sequence was designed. We designed 30 epochs and divided them into six equal parts, defined as A0, , A5 = [epoch1, epoch5], , [epoch 26, epoch30]. Subsequently, a series of sequence experiments were designed, and the results are listed in Table 5. As the sequence complexity increased, the performance of the model improved. In particular, in the G4 case, the model’s mAP was improved by 2.7 compared to the G0 case, which confirms the effectiveness of the cascade constraint sequence.
Generalizability: To verify the generality of the constraint loss function, we experimented with our method in the popular regression loss function. In the experiment, RitinaNet was used as the baseline method, and Resnet50 was used as the backbone network. The constraint parameter sequence adopts the G4 sequence in Table 5 owing to its excellent performance. In the experiment, the performance of different regression loss functions in the OBB and HBB tasks of DOTA were tested, and the results are shown in Table 6. Obviously, after the optimization of L d m or CPs proposed by us, the performance of the model has been improved to varying degrees. In particular, it has better performance in the deviation-based method, which increases the Huber loss by 2.4 mAP on the DOTA, and increases the MAE loss by 1.9 mAP on the HRSC2016. One possible explanation is that L d m plays an important role in the OBB task.
Effects of data augmentation: Many studies have proved that data enhancement can effectively improve detector performance. We extended the data by random horizontal, vertical flipping, random graying, random rotation, and random change channels. In addition, additional enhancements have been made to categories with a small number of samples (such as helicopters and bridges). The experimental results are shown in Table 7, and a 3.1% improvement was obtained on the DOTA (from 67.9% to 71.0%); a 1.7% improvement was obtained improvement on the HRSC2016 (from 86.2% to 87.9%). We also explored a larger backbone network, and the results showed that a larger backbone can result in better performance. The final performance of our improvement was 74.3% and 88.9% using ResNet152 as the backbone network. In addition, our training times is 8 × 10 5 , which is far less than that of the popular method, and the resource consumption due to training as greatly reduced.

3.4. Overall Evaluation

We compare our proposed constraint loss function with the state-of-the-art rotating object detection method on two datasets DOTA [47] and HRSC2016 [48].
Results in DOTA: We first experimented with our method on the DOTA dataset and compared it with popular rotated object detection methods, as depicted in Table 8. The results of the overall evaluation experiment were obtained by submitting our model to the official DOTA evaluation server. In the experiment, the training and verification sets of the DOTA were used as training samples, and the test set was used to verify the performance of the model. The compared methods include scene file detection methods R 2 CNN [50], RRPN [30], popular rotated object detection method ICN [51], RoI Transformer [31], Gliding Vertex [36], and methods that consider sudden changes in loss, such as SCRDet [33], R 3 Det [35], and RSDet [38]. The performance of our method is 1.1 better than the best result in the comparison method (RSDet+ResNet152+Refine). Although our method did not achieve state-of-the-art performance in the DOTA rankings, it showed the best performance in the one-stage detector. In addition, our method saves more than 30% of the computing resources compared with most methods. The visualization results are shown in Figure 10.
Results in HRSC2016: We also experimented with our method in HRSC2016 and compared it with popular detectors, and the results are shown in Table 9. First, a comparative experiment was carried out using the methods proposed in scene text detection, RRPN, and R2CNN, and the detection accuracy was not ideal. RoI Transformer and Gliding Vertex have achieved good detection accuracy but require more training resources. RetinNet-H and RetinaNet-R were used as baseline methods, among which RetinaNet-R obtained 89.1% detection accuracy. R 3 Det [35] achieved a better detection accuracy than the above method. In the end, our method achieved an accuracy of 89.7%, achieved the state-of-the-art performance under the optimization of L d m and CPs, and nearly half of the training resources were saved. The visualization results are shown in Figure 11.

4. Conclusions

In this study, a constraint loss function is proposed, including the decoupling modulation loss and cascade constraint mechanism. The former overcomes the regression to the rotating frame during the loss mutation process, and the latter enables the direction of a parameter update to be supervised and improves the convergence speed of the network. As a result, our method enables the method based on RetinaNet-R to achieve a 75.2% performance on the DOTA benchmark dataset, and achieves a state-of-the-art performance on the HRSC2016 dataset. In addition, the cascade constraint mechanism is applied to the popular regression loss function to achieve a better performance.
In this study, we improved the performance of the regression loss function through the modulation mechanism and the constraint mechanism, which not only improved the performance of the model, but also saved training resources. However, there are also the following limitations:
  • The selection method of constraint parameters is supervised and artificially set, which limits its performance.
  • Although the cascade constraint sequence is variable, the range of each stage is fixed (as shown in Table 5 A0 = [epoch1∼epoch5]). Ideally, the range of each stage should be learnable.
  • This article adds the constraint domain as the center point and size of the bounding box, but the rotation angle is ignored. Better results can probably be obtained if a constraint domain similar to the Gaussian radius is added to the rotation angle.
However, it is worth noting that the selection method of constraint parameters in the proposed method is supervised and artificially set, which limits its performance.
Therefore, in future research, we intend to try a learnable constraint parameter selection mechanism to improve the generalization ability of the model. In addition, a future research direction is to explore a new way of defining a rotated bounding box. The existing methods are all rotating rectangular boxes or four vertices. The former has the problem of angular periodicity, and the latter is easily affected by the order of the vertices. Therefore, the study of a better and effective rotating bounding box definition method is of great significance to the development of rotated object detection.

Author Contributions

Conceptualization, L.Z. and L.W.; methodology, L.Z.; validation, H.W., L.W.; formal analysis, L.W.; investigation, L.Z.; resources, H.W. and C.P.; data curation, Q.L. and C.P.; writing—original draft preparation, L.Z.; writing—review and editing, L.Z. and X.W.; visualization, L.Z. and X.W.; supervision, H.W.; project administration, H.W.; funding acquisition, L.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China under Grants (61773377), the Nondestructive Detection and Monitoring Technology for High Speed Transportation Facilities, Key Laboratory of Ministry of Industry and Information Technology, and the Fundamental Research Funds for the Central Universities, (NO.NJ2020014).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the first author.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Details of Gradient Analysis

For the input image X ∈ [W × H × 3], after network processing, output Y i ∈ [x, y, w, h, θ ], where i = 1, 2, 3… n, represents the corresponding proposal. Assuming that the ground truth of the prediction box Y * = [ x * , y * , w * , h * , θ * ], we obtain the deviation of the center point, size, and angle of the target frame ( L 1 , L 2 , L 3 ) according to our design (2)–(4). We assume that W represents the set of all weight parameters, b is the deviation, and n is the number of samples. Forward propagation process z = W X + b , activation function y = σ ( z ) .
(1) The first is the calculation of the partial derivative of the loss function S ( L ) with respect to the output layer.
S ( L ) = 0.5 L 2 i f | L | < 1 | L | 0.5 o t h e r w i s e
S L = L i f | L | < 1 ± 1 o t h e r w i s e
From the chain rule:
δ j Y = S z j Y = S L j Y L j Y z j Y = L σ ( z Y )
δ Y = L σ ( z Y )
where ▽ represents the gradient vector of the loss function S with respect to the predicted value Y, σ represents the partial derivative of the activation function z ( X ) , and ⊙ is the H a d a m a r d product, which represents the point-to-point multiplication operation between matrices or vectors.
(2) To calculate the partial derivative of the FC, according to the above analysis, the partial derivative of the j-th element of the l-th layer can be expressed as follows:
δ j l = S j l = k S z k l + 1 z k l + 1 j l = k z k l + 1 j l δ k l + 1 = k W k j l + 1 δ k l + 1 σ ( z j l )
The vector form is expressed as:
δ l = ( ( W l + 1 ) T δ l + 1 ) σ ( z l )
During the parameter update process, the partial derivative of parameters W and b can be expressed as
S W j k l = Y k l 1 δ j l
S b j l = δ j l
(3) The pooling layer compresses the input during the forward propagation process. The input P l 1 of the pooling layer can be obtained from P l . This process is usually called an upsample.
P l 1 = u p s a m p l e ( P l σ ( z l 1 ) )
where the first term represents upsampling, and the second term is the derivative of the activation function. The second term can be understood as the constant 1 in the pooling process, because no activation function is involved in the pooling layer. In addition, there is no parameter update in the pooling layer because the W and b parameters are not involved.
(4) Similar to the back propagation process of the pooling layer, the input C l 1 of the convolutional layer can be obtained from C l .
C l 1 = C l z l z l 1 = C l * r o t 180 ( W l ) σ ( z l 1 ) )
During the parameter update process, the gradient of W and b can be expressed as:
J ( W , b ) W l = J ( W , b ) z l z l W l = a l 1 * C l
J ( W , b ) b l = u , v ( C l ) u , v
Based on the above analysis, we found that the partial derivative of the loss function S with respect to L is always equal to the prediction deviation L (see (A2)) and is linearly positively correlated with the gradient of the output layer elements (see (A4)). This means that the introduction of the constraint loss function will have a direct impact on the back propagation process.
When the center point constraint ( L 1 * ) or the size constraint ( L 2 * ) is activated, the components of the regression deviation L C are reduced, and this response is directly transferred to the calculation of the gradient value of the main layer ( δ Y , δ l , P l 1 , and C l 1 ), and parameter adjustment without additional steps. This simplifies the backpropagation task. In particular, it is more pronounced when L 1 * and L 2 * are activated simultaneously. This means that only the angle parameter θ is adjusted ( L = L 3 ), and the task will be simple and easy to implement. It is worth noting that when L 1 * and L 2 * are activated, the center point and size of the candidate frame are adjusted to the constraint range (see Figure 6), and subsequent adjustments have also been suppressed. This avoids additional calculations and development in unfavorable directions.

References

  1. Rabbi, J.; Ray, N.; Schubert, M.; Chowdhury, S.; Chao, D. Small-Object Detection in Remote Sensing Images with End-to-End Edge-Enhanced GAN and Object Detector Network. Remote Sens. 2020, 12, 1432. [Google Scholar] [CrossRef]
  2. He, K.; Zhang, X.; Ren, S.; Sun, J. Spatial pyramid pooling in deep convolutional networks for visual recognition. In Proceedings of the European Conference on Computer Vision (ECCV), Zurich, Switzerland, 6–12 September 2014; pp. 346–361. [Google Scholar]
  3. Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Columbus, OH, USA, 20–23 June 2014; pp. 580–587. [Google Scholar]
  4. Girshick, R. Fast rcnn. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 11–18 December 2015; pp. 1440–1448. [Google Scholar]
  5. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster rcnn: Towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Dai, J.; Li, Y.; He, K.; Sun, J. R-FCN: Object Detection via Region-based Fully Convolutional Networks. In Proceedings of the Advances in Neural Information Processing Systems (NIPS), Barcelona, Spain, 5–8 December 2016. [Google Scholar]
  7. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 779–788. [Google Scholar]
  8. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. SSD: Single shot multibox detector. In Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 8–16 October 2016; pp. 21–37. [Google Scholar]
  9. Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Doll’ar, P. Focal loss for dense object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar]
  10. Law, H.; Deng, J. Cornernet: Detecting objects as paired keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 734–750. [Google Scholar]
  11. Tian, Z.; Shen, C.; Chen, H.; He, T. FCOS: Fully convolutional one-stage object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Seoul, Korea, 27 October–2 November 2019; pp. 9627–9636. [Google Scholar]
  12. Duan, K.; Bai, S.; Xie, L.; Qi, H.; Huang, Q.; Tian, Q. Centernet: Keypoint triplets for object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Seoul, Korea, 27 October–2 November 2019; pp. 6569–6578. [Google Scholar]
  13. Zhou, X.; Zhuo, J.; Krahenbuhl, P. Bottom-up object detection by grouping extreme and center points. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 850–859. [Google Scholar]
  14. Kong, T.; Sun, F.; Liu, H.; Jiang, Y.; Li, L.; Shi, J. FoveaBox: Beyound Anchor-Based Object Detection. IEEE Trans. Image Process. 2020, 29, 7389–7398. [Google Scholar] [CrossRef]
  15. Pan, X.; Tang, F.; Dong, W.; Gu, Y.; Song, Z.; Meng, Y.; Xu, P.; Deussen, O.; Xu, C. Self-Supervised Feature Augmentation for Large Image Object Detection. IEEE Trans. Image Process. 2020, 99, 1. [Google Scholar] [CrossRef]
  16. Dong, Z.; Wang, M.; Wang, Y.; Zhu, Y.; Zhang, Z. Object Detection in High Resolution Remote Sensing Imagery Based on Convolutional Neural Networks with Suitable Object Scale Features. IEEE Trans. Geosci. Remote Sens. 2020, 58, 2104–2114. [Google Scholar] [CrossRef]
  17. Oksuz, K.; Cam, B.C.; Kalkan, S.; Akbas, E. Imbalance Problems in Object Detection: A Review. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 43, 3388–3415. [Google Scholar] [CrossRef] [Green Version]
  18. Lei, J.; Luo, X.; Fang, L.; Wang, M.; Gu, Y. Region-Enhanced Convolutional Neural Network for Object Detection in Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2020, 58, 5693–5702. [Google Scholar] [CrossRef]
  19. Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Doll’ar, P.; Zitnic, C.L. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision (ECCV), Zurich, Switzerland, 6–12 September 2014; pp. 740–755. [Google Scholar]
  20. Everingham, M.; Van Gool, L.; Williams, C.K.I.; Winn, J.; Zisserman, A. The pascal visual object classes (voc) challenge. Int. J. Comput. Vis. 2010, 88, 303–338. [Google Scholar] [CrossRef] [Green Version]
  21. Zhang, X.X.; Zhu, X. Moving vehicle detection in aerial infrared image sequences via fast image registration and improved YOLOv3 network. Int. J. Remote Sens. 2020, 41, 4312–4335. [Google Scholar] [CrossRef]
  22. Liao, W.-T.; Chen, X.; Yang, J.-F.; Roth, S.; Goesele, M.; Yang, M.Y.; Rosenhahn, B. LR-CNN: Local aware region CNN for vehicle detection in aerial imagery. ISPRS Annals. Photogram. Remote Sens. Spat. Inf. 2020, 2, 381–388. [Google Scholar] [CrossRef]
  23. Lei, J.; Dong, Y.; Sui, H. Tiny moving vehicle detection in satellite video with constraints of multiple prior information. Int. J. Remote Sens. 2020, 42, 4110–4125. [Google Scholar] [CrossRef]
  24. Everingham, M.; Van Gool, L.; Williams, C.K.I.; Winn, J.; Zisserman, A. Multi-Sector Oriented Object Detector for Accurate Localization in Optical Remote Sensing Images. Remote Sens. 2021, 13, 1921. [Google Scholar]
  25. Zhang, Y.; Sheng, W.; Jiang, J.; Jing, N.; Wang, Q.; Mao, Z. Priority Branches for Ship Detection in Optical Remote Sensing Images. Remote Sens. 2020, 12, 1960. [Google Scholar]
  26. Zhu, Y.; Du, J.; Wu, X. Adaptive Period Embedding for Representing Oriented Objects in Aerial Images. IEEE Trans. Geosci. Remote Sens. 2020, 58, 7247–7257. [Google Scholar] [CrossRef] [Green Version]
  27. Zhou, K.; Zhang, Z.; Gao, C.; Liu, J. Rotated Feature Network for Multiorientation Object Detection of Remote-Sensing Images. IEEE Geosci. Remote Sens. Lett. 2020, 18, 33–37. [Google Scholar] [CrossRef]
  28. Zhu, Y.; Ma, C.; Du, J. Rotated cascade R-CNN: A shape robust detector with coordinate regression. Pattern Recognit. 2019, 96, 106964. [Google Scholar] [CrossRef]
  29. Ming, Q.; Miao, L.; Zhou, Z.; Song, J.; Yang, X. Sparse Label Assignment for Oriented Object Detection in Aerial Images. Remote Sens. 2021, 13, 2664. [Google Scholar] [CrossRef]
  30. Ma, J.; Shao, W.; Ye, H.; Wang, L.; Wang, H.; Zheng, Y.; Xue, X. Arbitrary-Oriented Scene Text Detection via Rotation Proposals. IEEE Trans. Multimed. 2018, 20, 3111–3122. [Google Scholar] [CrossRef] [Green Version]
  31. Ding, J.; Xue, N.; Long, Y.; Xia, G.S.; Lu, Q. Learning roi transformer for oriented object detection in aerial images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019. [Google Scholar]
  32. Han, J.; Ding, J.; Li, J.; Xia, G.S. Align Deep Features for Oriented Object Detection. IEEE Trans. Geosci. Remote Sens. 2021, 1–11. [Google Scholar] [CrossRef]
  33. Yang, X.; Yang, J.; Yan, J.; Zhang, Y.; Zhang, T.; Guo, Z.; Sun, X.; Fu, K. SCRDet: Towards more robust detection for small, cluttered and rotated objects. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Seoul, Korea, 27 October–2 November 2019; pp. 8232–8241. [Google Scholar]
  34. Chen, Z.; Chen, K.; Lin, W.; See, J.; Yu, H.; Ke, Y.; Yang, C. PIoU Loss: Towards Accurate Oriented Object Detection in Complex Environments. In Proceedings of the European Conference on Computer Vision (ECCV), Virtual, 23 August 2020; pp. 1–17. [Google Scholar]
  35. Yang, X.; Yan, J.; Feng, Z.; He, T. R3Det: Refined Single-Stage Detector with Feature Refinement for Rotating Object. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), Virtual, 2–9 February 2021. [Google Scholar]
  36. Xu, Y.; Fu, M.; Wang, Q.; Wang, Y.; Bai, X. Gliding vertex on the horizontal bounding box for multi-oriented object detection. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 43, 1452–1459. [Google Scholar] [CrossRef] [Green Version]
  37. Yang, X.; Yan, J. Arbitrary-oriented object detection with circular smooth label. In Proceedings of the European Conference on Computer Vision (ECCV), Virtual, 23 August 2020; pp. 677–694. [Google Scholar]
  38. Qian, W.; Yang, X.; Peng, S.; Yan, J.; Guo, Y. Learning modulated loss for rotated object detection. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), Virtual, 2–9 February 2021. [Google Scholar]
  39. Jiang, L.; Meng, D.; Yu, S.I.; Lan, Z.; Shan, S.; Hauptmann, A. Self-paced learning with diversity. In Proceedings of the Advances in Neural Information Processing Systems (NIPS), Montreal, QC, Canada, 13 December 2014; pp. 2078–2086. [Google Scholar]
  40. Cai, Z.; Vasconcelos, N. Cascade R-CNN: High Quality Object Detection and Instance Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 43, 1483–1498. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  41. Huber, P.J. Robust Estimation of a Location Parameter. Ann. Math. Stat. 1964, 35, 73–101. [Google Scholar] [CrossRef]
  42. Porta, H.; Stolarsky, K.B. Means that minimize relative error, and an associated integral equation. J. Math. Anal. Appl. 1987, 122, 95–113. [Google Scholar] [CrossRef] [Green Version]
  43. Roger, K.; Kevin, F.H. Quantile regression. J. Econ. Perspect. 2001, 15, 143–156. [Google Scholar]
  44. Yu, J.; Jiang, Y.; Wang, Z.; Cao, Z.; Huang, T. UnitBox: An Advanced Object Detection Network. In Proceedings of the 24th ACM international conference on Multimedia, Suzhou, China, 15–19 October 2016; pp. 516–520. [Google Scholar]
  45. Rezatofighi, H.; Tsoi, N.; Gwak, J.Y.; Sadeghian, A.; Savarese, S. Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019. [Google Scholar]
  46. Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ren, D. Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), New York, NY, USA, 7–12 February 2020. [Google Scholar]
  47. Xia, G.S.; Bai, X.; Ding, J. Dota: A large-scale dataset for object detection in aerial images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake, UT, USA, 18–23 June 2018; pp. 3974–3983. [Google Scholar]
  48. Liu, Z.; Wang, H.; Weng, L.; Yang, Y. Ship rotated bounding box space for ship extraction from high resolution optical satellite images with complex backgrounds. IEEE Geosci. Remote Sens. Lett. 2016, 13, 1074–1078. [Google Scholar] [CrossRef]
  49. Yang, X. Rotation Detection Benchmark. Available online: https://github.com/yangxue0827/RotationDetection (accessed on 10 October 2020).
  50. Jiang, Y.; Zhu, X.; Wang, X.; Yang, S.; Li, W.; Wang, H.; Fu, P.; Luo, Z. R2CNN: Rotational Region CNN for Orientation Robust Scene Text Detection. arXiv 2017, arXiv:1706.09579. [Google Scholar]
  51. Azimi, S.M.; Vig, E.; Bahmanyar, R.; Körner, M.; Reinartz, P. Towards multi-class object detection in unconstrained remote sensing imagery. In Proceedings of the Asian Conference on Computer Vision (ACCV), Perth, Australia, 2–6 December 2018; pp. 150–165. [Google Scholar]
  52. Zhang, Z.; Guo, W.; Zhu, S.; Yu, W. Toward arbitrary-oriented ship detection with rotated region proposal and discrimination networks. IEEE Geosci. Remote Sens. Lett. 2018, 15, 1745–1749. [Google Scholar] [CrossRef]
  53. Liao, M.; Zhu, Z.; Shi, B.; Xia, G.S.; Bai, X. Rotation-Sensitive Regression for Oriented Scene Text Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake, UT, USA, 18–23 June 2018. [Google Scholar]
Figure 1. Comparison results of horizontal object detection and rotating object detection. Rotated object detection plays an important role in remote-sensing-image object detection.
Figure 1. Comparison results of horizontal object detection and rotating object detection. Rotated object detection plays an important role in remote-sensing-image object detection.
Remotesensing 13 04291 g001
Figure 2. Reasons for sudden changes in loss. Only the angle θ regression is considered, assuming that the center point and size of the prediction frame and ground truth are the same, and size of the long side and the short side are 30 and 15, respectively. Consequently, the above bounding box can be described by five parameters: the prediction box (x, y, 30, 15, 85 ) and the ground truth box (x, y, 15, 30, 5 ). The prediction offset is: (0, 0, 15, 15, 80 ) and the ideal offset is (0, 0, 0, 0, 10 ). It can be seen that L 1 loss is far greater than ideal owing to the exchange of width and height and the periodicity of the angle.
Figure 2. Reasons for sudden changes in loss. Only the angle θ regression is considered, assuming that the center point and size of the prediction frame and ground truth are the same, and size of the long side and the short side are 30 and 15, respectively. Consequently, the above bounding box can be described by five parameters: the prediction box (x, y, 30, 15, 85 ) and the ground truth box (x, y, 15, 30, 5 ). The prediction offset is: (0, 0, 15, 15, 80 ) and the ideal offset is (0, 0, 0, 0, 10 ). It can be seen that L 1 loss is far greater than ideal owing to the exchange of width and height and the periodicity of the angle.
Remotesensing 13 04291 g002
Figure 3. Bounding box five-parameter regression method: (a) 90 regression method; (b) 180 regression method.
Figure 3. Bounding box five-parameter regression method: (a) 90 regression method; (b) 180 regression method.
Remotesensing 13 04291 g003
Figure 4. L 2 and L 3 modulations were not synchronized. (a) L 2 modulation and L 3 non-modulation. (b) L 2 non-modulation and L 3 modulation. Obviously, when 2 and 3 are modulated or not modulated at the same time, it is difficult for the prediction box to approximate the true value box. However, when the two are not synchronized, they can be quickly approached.
Figure 4. L 2 and L 3 modulations were not synchronized. (a) L 2 modulation and L 3 non-modulation. (b) L 2 non-modulation and L 3 modulation. Obviously, when 2 and 3 are modulated or not modulated at the same time, it is difficult for the prediction box to approximate the true value box. However, when the two are not synchronized, they can be quickly approached.
Remotesensing 13 04291 g004
Figure 5. Schematic diagram of the loss function. The position of the restraint line is adjustable and determined by the CP.
Figure 5. Schematic diagram of the loss function. The position of the restraint line is adjustable and determined by the CP.
Remotesensing 13 04291 g005
Figure 6. The geometric meaning of CPs. α is the constraint radius of center point; β is the constraint radius of size. The endpoints of the bounding box are limited to the same color area.
Figure 6. The geometric meaning of CPs. α is the constraint radius of center point; β is the constraint radius of size. The endpoints of the bounding box are limited to the same color area.
Remotesensing 13 04291 g006
Figure 7. Image information transmission diagram. It mainly includes backbone network, RoI module, and head module.
Figure 7. Image information transmission diagram. It mainly includes backbone network, RoI module, and head module.
Remotesensing 13 04291 g007
Figure 8. CPs. As the training progresses, the CPs α and β decrease stepwise.
Figure 8. CPs. As the training progresses, the CPs α and β decrease stepwise.
Remotesensing 13 04291 g008
Figure 9. Ablation experiments of bounding box center point constraint and size constraint in DOTA. The RetinaNet and ResNet50 as the baseline and backbone, respectively.
Figure 9. Ablation experiments of bounding box center point constraint and size constraint in DOTA. The RetinaNet and ResNet50 as the baseline and backbone, respectively.
Remotesensing 13 04291 g009
Figure 10. Some detection results of the our method on DOTA. The arbitrary-oriented objects are correctly detected. The category short naming is defined as: Plane (PL), Baseball diamond (BD), Bridge (BR), Ground field track (GTF), Small vehicle (SV), Large vehicle (LV), Ship (SH), Tennis court (TC), Basketball court (BC), Storage tank (ST), Soccer-ball field (SBF), Roundabout (RA), Harbor (HA), Swimming pool (SP) and Helicopter (HC).
Figure 10. Some detection results of the our method on DOTA. The arbitrary-oriented objects are correctly detected. The category short naming is defined as: Plane (PL), Baseball diamond (BD), Bridge (BR), Ground field track (GTF), Small vehicle (SV), Large vehicle (LV), Ship (SH), Tennis court (TC), Basketball court (BC), Storage tank (ST), Soccer-ball field (SBF), Roundabout (RA), Harbor (HA), Swimming pool (SP) and Helicopter (HC).
Remotesensing 13 04291 g010
Figure 11. Ship detection results on the HRSC2016 benchmarks. The green bounding box indicate the prediction box.
Figure 11. Ship detection results on the HRSC2016 benchmarks. The green bounding box indicate the prediction box.
Remotesensing 13 04291 g011
Table 1. The overlap threshold parameter sequence setting of the IoU-based loss functions.
Table 1. The overlap threshold parameter sequence setting of the IoU-based loss functions.
Stage ( × 10 5 )S0S1S2S3S4S5
IoU threshold0.50.550.60.650.70.75
Table 2. Ablation experiments of improved modulation mechanism on DOTA and HRSC2016. (Bold indicates the best result in the comparison method).
Table 2. Ablation experiments of improved modulation mechanism on DOTA and HRSC2016. (Bold indicates the best result in the comparison method).
BackboneLossmAP (DOTA)mAP (HRSC2016)
ResNet-50 L 1 61.980.7
ResNet-50smooth- L 1 62.181.6
ResNet-50IoU-smooth- L 1 [33]62.782.7
ResNet-50 L m r [38]64.583.1
ResNet-50 L d m (ours)64.983.7
Table 3. Combination experiment of center point constraint and size constraint. (Bold indicates the best result in the comparison method).
Table 3. Combination experiment of center point constraint and size constraint. (Bold indicates the best result in the comparison method).
BackboneLoss α β mAP (DOTA)mAP (HRSC2016)
ResNet50 L d m (ours)2366.985.2
ResNet50 L d m (ours)2266.485.0
ResNet50 L d m (ours)3365.985.0
ResNet50 L d m (ours)1465.283.7
ResNet50 L d m (ours)4163.684.4
ResNet101smooth- L 1 2366.984.6
ResNet101IoU-smooth- L 1 2367.685.2
ResNet101 L m r 2368.485.6
ResNet101 L d m (ours)2368.786.1
Table 4. The number of iterations required for the network to reach stability under different parameters.
Table 4. The number of iterations required for the network to reach stability under different parameters.
Datasets543210
DOTA3.2 × 10 5 4.2 × 10 5 6 × 10 5 6.8 × 10 5 8.4 × 10 5 12 × 10 5
HRSC20160.4 × 10 5 0.42 × 10 5 0.48 × 10 5 0.64 × 10 5 0.8 × 10 5 1.3 × 10 5
Table 5. Ablation experiment of cascade constraint parameter sequence. The center point constraint α and the size constraint β are set to the same value. RetinaNet is the base model, and ResNet50 is the backbone. (Bold indicates the best result in the comparison method).
Table 5. Ablation experiment of cascade constraint parameter sequence. The center point constraint α and the size constraint β are set to the same value. RetinaNet is the base model, and ResNet50 is the backbone. (Bold indicates the best result in the comparison method).
GroupA0A1A2A3A4A5mAP (DOTA)mAP (HRSC2016)
G011111166.184.2
G122211166.384.9
G233221167.485.5
G344332167.685.7
G454321067.986.2
Table 6. The performance of the constrained loss function on the popular regression loss function. (Bold indicates the best result in the comparison method).
Table 6. The performance of the constrained loss function on the popular regression loss function. (Bold indicates the best result in the comparison method).
TaskLoss L dm CPsmAP (DOTA)mAP (HRSC2016)
OBBMSE66.2(+1.6)82.2(+1.0)
OBBMAE66.3(+1.3)82.6(+1.9)
OBBHuber [41]67.1(+2.4)85.2(+1.6)
OBBLog-Cosh [42]65.4(+0.7)84.8(+1.2)
OBBQuantile [43]64.7(+0.2)84.3(+0.9)
HBBIoU [44]-66.5(+1.2)-
HBBGIoU [45]-66.8(+0.6)-
HBBDIoU [46]-67.0(+1.0)-
HBBCIoU [46]-67.4(+1.8)-
Table 7. Ablation experiments of data augmentation on DOTA and HRSC2016. RetinaNet is the base model with the proposed L d m and CPs. (Bold indicates the best result in the comparison method).
Table 7. Ablation experiments of data augmentation on DOTA and HRSC2016. RetinaNet is the base model with the proposed L d m and CPs. (Bold indicates the best result in the comparison method).
Backbone L dm + CPsData AugmentationmAP (DOTA)mAP (HRSC2016)
ResNet-50 67.986.2
ResNet-5071.087.9
ResNet-10172.688.3
ResNet-15274.388.9
Table 8. Detection accuracy (AP for each category and overall mAP) on different objects and overall performances with the state-of-the-art methods on DOTA. (Bold indicates the best result in the comparison method).
Table 8. Detection accuracy (AP for each category and overall mAP) on different objects and overall performances with the state-of-the-art methods on DOTA. (Bold indicates the best result in the comparison method).
MethodBackbonePLBDBRGTFSVLVSHTCBCSTSBFRAHASPHCmAPTimes
FR-O [47]ResNet10179.169.117.263.534.237.236.289.269.659.049.452.546.744.846.352.9-
R 2 CNN [50]ResNet10180.965.735.367.459.950.955.890.766.972.455.152.255.153.448.260.7-
RRPN [30]ResNet10188.571.231.759.351.956.257.390.872.867.456.752.853.151.953.661.0-
ICN [51]ResNet10181.474.347.770.364.967.870.090.879.178.253.662.967.064.250.268.2-
RoI-Trans [31]ResNet10188.678.543.475.968.873.783.690.777.381.558.453.562.858.947.769.6-
SCRDet [33]ResNet10190.080.752.168.468.460.372.490.988.086.965.066.766.368.265.272.61.35 × 10 6
Gliding Ver [36]ResNet10189.985.946.178.570.369.476.990.779.383.857.868.372.971.059.873.41.27 × 10 6
R 3 Det [35]ResNet15289.280.851.165.670.676.078.390.884.984.465.157.268.168.960.972.81.35 × 10 6
RSDet [38]ResNet15290.182.053.868.570.278.773.691.287.184.764.368.266.169.363.774.11.08 × 10 6
OursResNet5089.586.649.664.857.165.168.590.182.986.662.865.062.568.858.471.07.2 × 10 5
OursResNet10190.187.755.672.663.572.872.290.187.788.063.565.364.167.865.873.78.1 × 10 5
OursResNet15290.287.553.873.170.679.477.391.088.787.565.067.768.869.768.975.28.1 × 10 5
Table 9. Detection accuracy and the number of iterations on HRSC2016. Times represents the number of trainings required for the model to achieve the best performance. (Bold indicates the best result in the comparison method).
Table 9. Detection accuracy and the number of iterations on HRSC2016. Times represents the number of trainings required for the model to achieve the best performance. (Bold indicates the best result in the comparison method).
MethodBackboneLossSizemAPTimes
R2CNN [50]ResNet101-800 × 80073.1-
RRPN [30]ResNet101-800 × 80079.1-
R 2 PN [52]VGG16--79.6-
RetinaNet-H [9]ResNet101smooth- L 1 800 × 80082.92.4 × 10 5
RRD [53]VGG16-384 × 38484.3-
RoI-Transformer [31]ResNet101 L 1 512 × 80086.23.0 × 10 5
Gliding Vertex [36]ResNet101smooth- L 1 -88.23.6 × 10 5
RetinaNet-RResNet101smooth- L 1 800 × 80089.13.6 × 10 5
R 3 Det [35]ResNet101SkewIoU800 × 80089.22.6 × 10 5
RSDet [38]ResNet101 L m r -86.52.6 × 10 5
OursResNet101 L d m 600 × 60088.72.4 × 10 5
OursResNet101 L d m 800 × 80089.12.4 × 10 5
OursResNet101 L d m + CPs800 × 80089.51.4 × 10 5
OursResNet152 L d m + CPs800 × 80089.71.4 × 10 5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, L.; Wang, H.; Wang, L.; Pan, C.; Liu, Q.; Wang, X. Constraint Loss for Rotated Object Detection in Remote Sensing Images. Remote Sens. 2021, 13, 4291. https://doi.org/10.3390/rs13214291

AMA Style

Zhang L, Wang H, Wang L, Pan C, Liu Q, Wang X. Constraint Loss for Rotated Object Detection in Remote Sensing Images. Remote Sensing. 2021; 13(21):4291. https://doi.org/10.3390/rs13214291

Chicago/Turabian Style

Zhang, Luyang, Haitao Wang, Lingfeng Wang, Chunhong Pan, Qiang Liu, and Xinyao Wang. 2021. "Constraint Loss for Rotated Object Detection in Remote Sensing Images" Remote Sensing 13, no. 21: 4291. https://doi.org/10.3390/rs13214291

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop