Improved YOLOv8n for UAV Tree Species Recognition and Counting

I focus on tree species recognition and counting from optical images acquired by UAV drones because forest inventory, carbon accounting, biodiversity assessment, and ecological supervision all depend on reliable information about species composition and individual tree numbers. In my research, I treat UAV drones as flexible, low-cost, high-resolution remote sensing platforms that can capture canopy-level imagery at centimeter-scale detail. Unlike ground surveys, UAV drones can cover difficult terrain quickly and repeatedly, but the images they produce are not simple. Dense canopies, overlapping crowns, variable illumination, shadow, background clutter, and small inter-species texture differences make automatic recognition difficult. I therefore design an improved YOLOv8n detector that combines a Convolutional Multi-Scale Enhancement Attention module, a Dynamic Pooling Synergy Attention module, and a multi-component discriminative loss. I also implement a tree species recognition and counting system so that the method can be used in a practical workflow.

My central argument is that UAV drones provide the right data source for individual tree-level analysis, while standard detectors still need structural and optimization improvements for complex forest scenes. YOLOv8n is lightweight and fast, which is attractive for UAV drones, but fixed receptive fields and uniform feature weighting limit its ability to handle large scale variation and crown occlusion. I improve the backbone with multi-scale depthwise separable convolution branches and channel-spatial attention. I improve the neck with dynamic pooling and multi-scale dilated convolution. I further reshape the feature space with a loss that includes classification supervision, intra-class compactness, inter-class separation, and attention stability regularization. The result is a detector that performs both species classification and counting through detected bounding boxes.

Problem formulation. I define the tree species detection task as a mapping from an input image \(x\) to a set of bounding boxes, class labels, and confidence scores. For an image containing \(N\) annotated trees, the target set is:

$$ \mathcal{T} = \{(b_i, c_i)\}_{i=1}^{N}, \quad b_i=(x_i,y_i,w_i,h_i), \quad c_i \in \{1,\dots,K\}. $$

I want a model \(f_\theta\) that predicts \(\hat{\mathcal{T}}\) while maximizing localization accuracy and classification accuracy. For counting, I use the number of predicted boxes above a confidence threshold as the estimated count:

$$ \hat{N}_c = \sum_{i=1}^{M} \mathbf{1}(\hat{c}_i = c \land s_i \ge \tau). $$

Here \(c\) is the species class, \(s_i\) is the confidence score, and \(\tau\) is a fixed threshold. This formulation lets the same detector support both species recognition and automatic counting. I use UAV drones as the acquisition platform because their low-altitude imagery preserves crown shape, texture, and spatial arrangement better than many satellite products.

Dataset acquisition with UAV drones. I collected high-resolution RGB optical imagery using UAV drones over a representative temperate forest farm. The flight campaign was performed in early summer when crowns were fully developed and leaf and needle colors were stable. I used a multi-rotor UAV drone equipped with a high-resolution camera and a differential positioning module. The flight altitude was approximately 80 m, and I set the forward overlap to about 80% and the side overlap to about 75%. I scheduled flights between 14:00 and 17:00 to reduce long shadows and soften illumination. I also conducted field checks to record species type, spatial distribution, and approximate individual counts. These records were used as reference information during annotation.

I selected five common and visually meaningful species: pine, fir, poplar, elm, and ash. Pine and fir are coniferous species with relatively regular crowns and fine texture, while poplar, elm, and ash are broadleaf species with more variable crown shapes and stronger leaf reflectance. This mixture is useful because it includes both inter-class similarity and intra-class variation. I extracted frames from aerial videos using a script and obtained several thousand static images. I then applied structural similarity to remove near-duplicate frames and low-information samples. I set the similarity threshold to 0.85 and retained images with sufficient crown detail and spatial diversity.

Preprocessing and augmentation. I normalized image size and format, adjusted brightness and contrast, and applied augmentation to improve generalization. I used horizontal flipping, brightness perturbation, scaling, random cropping, and Mosaic augmentation. For every transformed image, I updated the corresponding label file so that image-label consistency was maintained. The final dataset contained 6,200 images and 60,244 annotated tree crowns. The class distribution was approximately balanced, which reduced the risk of prediction bias toward a majority species.

Species Code Labels Proportion (%)
Pine Pin 12,651 21.0
Fir Pic 12,049 20.0
Poplar Pop 12,049 20.0
Elm UP 11,748 19.5
Ash FM 11,747 19.5
Total — 60,244 100.0

I used an image annotation tool to draw bounding boxes around individual crowns and saved labels in a standard text format. The annotation process included repeated checking to reduce label noise. I divided the dataset into training, validation, and test subsets at a ratio of 8:1:1, giving 4,960 training images, 620 validation images, and 620 test images. I used the training set to learn parameters, the validation set to tune hyperparameters and monitor overfitting, and the test set to evaluate final performance.

Image enhancement theory. I view data augmentation as a way to reduce the gap between the empirical training distribution and the real deployment distribution. The empirical risk minimization objective is:

$$ \min_\theta \frac{1}{N}\sum_{i=1}^{N} L(f_\theta(x_i), y_i). $$

If the training samples do not cover the variation encountered by UAV drones, the empirical risk may not approximate the true risk well. I apply an augmentation transform \(T(\cdot)\):

$$ x’ = T(x). $$

Color-space enhancement changes pixel intensity. For brightness perturbation, I use:

$$ I’ = I \times (1+\alpha), \quad \alpha \in [-\delta,\delta]. $$

Geometric transforms such as rotation and flipping introduce orientation invariance:

$$ x’ = x\cos\theta – y\sin\theta, \quad y’ = x\sin\theta + y\cos\theta. $$

High-frequency sharpening increases edge and texture response:

$$ I_{\text{sharp}} = I + \beta I_{\text{high}}. $$

These operations make the detector more tolerant to illumination change, scale change, and viewpoint change in UAV drones imagery.

Convolutional foundations. I use convolutional neural networks because they exploit local connectivity and weight sharing. For an input tensor \(X \in \mathbb{R}^{H \times W \times C}\), a convolution with kernel \(W \in \mathbb{R}^{k \times k}\) gives:

$$ Y(i,j)=\sum_{m=0}^{k-1}\sum_{n=0}^{k-1} X(i+m,j+n) \cdot W(m,n). $$

The parameter count for a convolution layer is:

$$ \text{Params}_{\text{conv}} = k^2 C_{\text{in}} C_{\text{out}}. $$

By contrast, a fully connected layer with \(N\) outputs has:

$$ \text{Params}_{\text{fc}} = (H W C_{\text{in}})N. $$

Stacking \(L\) convolution layers increases the receptive field:

$$ R = 1 + (k-1)L. $$

This receptive field growth is important for tree crowns, but it is not sufficient when crown sizes vary greatly in UAV drones images. I therefore introduce parallel multi-scale branches rather than relying only on depth.

Activation and pooling. I use nonlinear activations to increase representation power. Common choices include:

$$ \text{Sigmoid}(x)=\frac{1}{1+e^{-x}}, $$

$$ \text{Tanh}(x)=\frac{1-e^{-2x}}{1+e^{-2x}}, $$

$$ \text{ReLU}(x)=\max(0,x). $$

Pooling reduces spatial resolution and introduces local invariance. Max pooling and average pooling are:

$$ Y(i,j)=\max_{(m,n)\in\Omega} X(m,n), $$

$$ Y(i,j)=\frac{1}{|\Omega|}\sum_{(m,n)\in\Omega} X(m,n). $$

For tree species recognition, average pooling preserves overall crown statistics, while max pooling preserves strong texture and edge responses. My DPSA module combines both and learns an adaptive mixture, which is more flexible than fixed pooling.

Baseline detector and its limitations. I choose YOLOv8n as the baseline because it is a single-stage anchor-free detector with a lightweight backbone, a feature pyramid neck, and a decoupled head. It offers fast inference, which is essential for UAV drones. However, I observe three limitations in complex forest scenes. First, fixed-scale convolution cannot simultaneously represent small understory crowns and large mature crowns. Second, uniform channel and spatial weighting allows background clutter such as grass, bare soil, and shadow to compete with tree features. Third, limited context modeling in crowded canopy regions causes missed detections and merged boxes. These limitations motivate my CMEA and DPSA modules.

CMEA: Convolutional Multi-Scale Enhancement Attention. I design CMEA to enrich multi-scale feature representation in the backbone. I use depthwise separable convolution branches with kernel sizes 3, 5, 7, and 9. For an input feature map \(X\), each branch produces:

$$ X_k = \text{DWC}(X,k), \quad k \in \{3,5,7,9\}. $$

The computational cost of a depthwise separable convolution is:

$$ \mathcal{O}(C \cdot k^2 \cdot H \cdot W), $$

which is lower than standard convolution with a comparable kernel. I concatenate and fuse the branches:

$$ X_{\text{fused}} = \text{Conv}_{1\times1}\left(\sum_{k} X_k\right). $$

This gives the network local texture modeling from the 3\(\times\)3 branch, mid-scale structure from 5\(\times\)5 and 7\(\times\)7 branches, and broader semantic integration from the 9\(\times\)9 branch. I then apply channel attention:

$$ F_{\text{avg}}=\frac{1}{HW}\sum_{i,j} X_{\text{fused}}(i,j), $$

$$ F_{\text{max}}=\max_{i,j} X_{\text{fused}}(i,j), $$

$$ F_{\text{ca}}=\sigma\left(\text{MLP}(F_{\text{avg}})+\text{MLP}(F_{\text{max}})\right), $$

$$ X_{\text{ca}}=F_{\text{ca}}\odot X_{\text{fused}}. $$

I interpret channel attention as a diagonal reweighting matrix \(W_c\), so that:

$$ X_{\text{ca}}=W_c X. $$

During backpropagation, the gradient assigned to a channel is proportional to its attention weight:

$$ \frac{\partial L}{\partial x_i}\propto w_i. $$

This strengthens discriminative channels. I then add spatial attention:

$$ F_s=\sigma\left(\text{Conv}\left(\text{Concat}\left(\text{Mean}(X_{\text{ca}}),\text{Max}(X_{\text{ca}})\right)\right)\right), $$

$$ X_{\text{out}}=F_s\odot X_{\text{ca}}. $$

The final CMEA output is a joint channel-spatial modulation:

$$ X_{\text{out}}=W_s\odot(W_c\odot X). $$

In my experiments, CMEA is especially helpful for small crowns and dense canopy regions because it expands the effective receptive field set without a large parameter increase.

CMEA branch Kernel size Main role in UAV drones imagery
Branch 1 3\(\times\)3 Fine texture and crown edge details
Branch 2 5\(\times\)5 Small crown structure and leaf clusters
Branch 3 7\(\times\)7 Mid-scale crown shape and local context
Branch 4 9\(\times\)9 Large crown integration and broad semantic context

DPSA: Dynamic Pooling Synergy Attention. I design DPSA for the neck because feature fusion must decide which multi-scale information to trust. Average pooling and max pooling represent different statistics: average pooling estimates the first-order distribution, while max pooling captures extreme responses. I introduce a dynamic mixed pooling:

$$ \text{mix}(X)=\alpha \text{Avg}(X)+(1-\alpha)\text{Max}(X), $$

where:

$$ \alpha=\sigma(WX). $$

The adaptive coefficient \(\alpha\) allows the network to select a balance between smooth statistics and salient peaks. I then generate dynamic channel attention:

$$ F_{\text{ca}}=\sigma(F_{\text{avg}}+F_{\text{max}}+F_{\text{mix}}), $$

$$ X_{\text{ca}}=F_{\text{ca}}\odot X. $$

To increase context without losing resolution, I apply multi-scale dilated convolution with dilation rates 1, 3, 5, and 7:

$$ X_{d_i}=\text{Conv}_{d=i}(X_{\text{ca}}), \quad i\in\{1,3,5,7\}, $$

$$ X_{\text{msdc}}=\text{Conv}\left(\text{Concat}(X_{d_1},X_{d_3},X_{d_5},X_{d_7})\right). $$

I finish with spatial attention:

$$ F_{sa}=\sigma\left(\text{Conv}\left(\text{Concat}\left(\text{Mean}(X_{\text{msdc}}),\text{Max}(X_{\text{msdc}})\right)\right)\right), $$

$$ X_{\text{final}}=F_{sa}\odot X_{\text{msdc}}. $$

DPSA helps the detector separate dense crown regions from complex occlusion and background. In my interpretation, CMEA enriches representation, while DPSA performs adaptive feature selection. Together they form a two-stage optimization pattern: multi-scale expression enhancement followed by dynamic filtering.

Module Placement Core operation Expected effect
CMEA Backbone Multi-scale depthwise convolution, channel attention, spatial attention Better scale coverage and stronger crown texture representation
DPSA Neck Dynamic mixed pooling, multi-scale dilated convolution, spatial attention Better context modeling and background suppression

Integrated architecture. I embed CMEA in the backbone to enrich features before multi-scale fusion. I embed DPSA in the neck to refine fused features before detection heads. The detector still follows a YOLOv8n-style pipeline: input normalization, backbone feature extraction, neck fusion, and decoupled prediction. The modified model is denoted as YOLOv8n-CMEA-DPSA. When I add my multi-component loss, I denote the full configuration as YOLOv8n-CMEA-DPSA-MDF.

Receptive field and expressive capacity. For a single convolution branch, the receptive field is:

$$ R=(k-1)l+1. $$

CMEA constructs a set of receptive fields:

$$ \mathcal{R}=\{R_3,R_5,R_7,R_9\}. $$

This set is equivalent to a multi-resolution basis expansion within one layer. The function represented by the improved network can be written as:

$$ f'(X)=g_{\text{DPSA}}(g_{\text{CMEA}}(X)). $$

I expect the approximation error to decrease:

$$ \|f’-y\| < \|f-y\|. $$

Attention also reduces the variance contributed by noisy background features:

$$ \text{Var}(X’) < \text{Var}(X). $$

These arguments support the use of CMEA and DPSA not as simple attention stacking, but as a coordinated representation and selection mechanism.

Loss function design. I design a composite loss because classification accuracy alone does not guarantee a well-structured feature space. My loss contains three parts: basic classification loss, discriminative feature constraints, and attention stability regularization. For training samples \((x_i,y_i)\) and predicted probabilities \(\hat{p}_i\), the classification loss is:

$$ \mathcal{L}_{cls}=-\frac{1}{N}\sum_{i=1}^{N}\log(\hat{p}_{i,y_i}). $$

To improve class separability, I constrain the feature representation \(h_i\). The intra-class compactness loss is:

$$ \mathcal{L}_{intra}=\frac{1}{N}\sum_{i=1}^{N}\|h_i-\mu_{y_i}\|^2. $$

The inter-class separation loss is:

$$ \mathcal{L}_{inter}=\sum_{a \neq b}\max(0,m-\|\mu_a-\mu_b\|)^2. $$

I combine them into a discriminative term:

$$ \mathcal{L}_{disc}=\mathcal{L}_{intra}+\beta\mathcal{L}_{inter}. $$

This geometric objective shrinks within-class variance and enlarges between-class margins. I also regularize attention weights to avoid extreme or noisy attention distributions:

$$ \mathcal{L}_{att}=\|W_c\|^2+\|W_s\|^2. $$

The total loss is:

$$ \mathcal{L}=\mathcal{L}_{cls}+\lambda_1\mathcal{L}_{disc}+\lambda_2\mathcal{L}_{att}. $$

I call this MDF-Loss. It provides prediction supervision, feature reshaping, and weight smoothing. From a statistical learning view, the regularization reduces model complexity and can lower the generalization error upper bound.

Loss component Purpose Effect on UAV drones tree recognition
\(\mathcal{L}_{cls}\) Class probability supervision Stable basic species classification
\(\mathcal{L}_{intra}\) Within-class compactness Reduces feature spread caused by illumination and scale
\(\mathcal{L}_{inter}\) Between-class separation Improves discrimination among similar species
\(\mathcal{L}_{att}\) Attention stability Prevents overfitting to local noise and shadow

Experimental setup. I trained and tested the models on a Windows environment with an NVIDIA RTX 4060 Laptop GPU. I used Python 3.10 and PyTorch. I trained for 200 epochs, used an initial learning rate of 0.01, stochastic gradient descent, a batch size of 4, and an input resolution of 640\(\times\)640. I kept all hyperparameters fixed across comparisons to ensure fairness. I used Precision, Recall, mAP@0.5, mAP@0.5:0.95, parameter count, and FPS as evaluation metrics.

$$ P=\frac{TP}{TP+FP}, \quad R=\frac{TP}{TP+FN}, $$

$$ AP=\int_{0}^{1}P(R)dR, \quad mAP=\frac{1}{n}\sum_{i=1}^{n}AP_i. $$

I first compared multiple detector families on my UAV drones dataset. I included Faster R-CNN, SSD, YOLOv5s, YOLOv7, RT-DETR-R18, and YOLOv8n. The results showed that two-stage detectors were accurate but slow, while lightweight one-stage detectors were fast but weaker under dense crowns. YOLOv8n offered the best balance before improvement, but it still missed small crowns and confused species under complex illumination.

Model Precision (%) Recall (%) mAP@0.5 (%) mAP@0.5:0.95 (%) Params (M) FPS
Faster R-CNN 79.34 76.82 82.15 55.73 41.2 42
SSD 81.27 78.94 84.63 57.48 23.5 91
YOLOv5s 84.11 82.37 86.75 59.64 7.2 154
YOLOv7 85.43 83.28 87.42 60.91 6.1 168
RT-DETR-R18 87.15 84.92 88.63 62.87 20.5 72
YOLOv8n 86.52 84.37 89.31 62.13 3.2 187

I then compared feature enhancement strategies under the same YOLOv8n backbone. Standard channel attention modules such as SE and ECA gave limited gains. CBAM and coordinate attention improved spatial selectivity but still produced redundant responses in complex background regions. Multi-scale fusion such as ASFF improved small-object detection but did not fully solve feature selection. My CMEA+DPSA combination achieved the best result in this group because it enhanced expression and then adaptively filtered features.

Model configuration Precision (%) Recall (%) mAP@0.5 (%) mAP@0.5:0.95 (%)
YOLOv8n 86.52 84.37 88.00 62.13
YOLOv8n + SE 87.01 85.21 89.05 63.12
YOLOv8n + CBAM 87.38 85.67 89.43 63.75
YOLOv8n + ECA 87.89 86.04 89.83 64.01
YOLOv8n + CA 88.16 86.22 90.12 64.38
YOLOv8n + ASFF 88.74 86.91 90.67 64.95
YOLOv8n + CMEA + DPSA 91.42 89.26 91.73 66.84

I also evaluated different loss functions. CIoU, DIoU, EIoU, Focal Loss, and Varifocal Loss each improved some aspect of training, but my MDF-Loss provided the strongest overall balance because it simultaneously considered classification, feature geometry, and attention stability.

Loss function Precision (%) Recall (%) mAP@0.5 (%)
CIoU 86.52 84.37 88.00
DIoU 87.31 85.42 89.16
EIoU 88.04 86.21 90.03
Focal Loss 88.67 86.74 90.42
Varifocal Loss 89.12 87.08 90.96
MDF-Loss 91.42 89.26 91.24

Ablation study. I conducted an ablation study to isolate the contribution of each component. Adding CMEA alone improved mAP@0.5 from 88.00% to 89.96%. Adding DPSA alone improved it to 90.58%. Adding MDF-Loss alone, without changing the architecture, improved it to 91.24%. Combining CMEA and DPSA reached 91.73%. The full combination of CMEA, DPSA, and MDF-Loss reached 92.10%. The parameter count increased from 3.2 M to 3.8 M, and FPS decreased from 187 to 160, which is still fast enough for many UAV drones workflows.

Configuration Params (M) FPS mAP@0.5 (%)
YOLOv8n 3.2 187 88.00
+ CMEA 3.5 176 89.96
+ DPSA 3.6 170 90.58
+ MDF-Loss 3.2 185 91.24
+ CMEA + DPSA 3.8 162 91.73
CMEA + DPSA + MDF-Loss 3.8 160 92.10

I interpret the ablation results as evidence that the modules are complementary. CMEA increases the diversity of receptive fields and crown representations. DPSA selects and fuses the most relevant contextual information. MDF-Loss regularizes the learned feature space and attention maps. The combination is not a simple stack; it is a coordinated pipeline from representation to selection to optimization.

Counting analysis. I converted detection outputs into species counts by counting boxes per class. I compared true counts obtained from annotation and field checking with raw YOLOv8n counts and improved model counts. In sparse areas, both models were often exact. In dense areas, the baseline missed more crowns because of occlusion and overlapping boxes. My improved model reduced absolute error and was more stable.

Test ID Density type Species True count Original detection Improved detection Absolute error
T1 Sparse Pine 2 2 2 0
T1 Sparse Elm 2 2 2 0
T2 Sparse Pine 4 4 4 0
T3 Sparse Poplar 2 2 2 0
T3 Sparse Ash 3 2 3 1
T4 Sparse Elm 11 9 11 2
T5 Sparse Fir 6 5 6 0
T5 Sparse Ash 7 6 6 1
T6 Sparse Poplar 7 5 6 1
T6 Sparse Elm 7 6 7 0

I also evaluated larger sample regions with mixed species. The improved model consistently reduced undercounting. For example, under dense canopy, the original model often undercounted because adjacent crowns were merged into a single detection. The improved model used multi-scale enhancement and dynamic pooling to separate crown boundaries better.

Sample Species True count YOLOv8n count Improved count Improved absolute error
T1 Elm 65 58 63 2
T1 Pine 29 23 26 3
T1 Ash 13 10 11 2
T2 Poplar 32 28 30 2
T2 Ash 51 46 47 4
T2 Pine 26 20 24 2
T3 Pine 10 7 8 2
T3 Ash 58 50 54 4
T3 Fir 40 33 38 2
T4 Fir 48 40 43 5
T4 Poplar 34 29 31 3
T4 Ash 24 20 21 3
T5 Elm 35 30 32 3
T5 Poplar 35 28 31 4
T5 Ash 45 37 40 5

The counting results show that my improved detector is not only more accurate for classification but also more reliable for number estimation. This matters because forest resource surveys often require both composition and abundance. UAV drones can provide repeated observations, and an accurate counting model can reduce manual workload. I therefore treat counting as a first-class output rather than a post-processing afterthought.

System design and implementation. I designed a tree species recognition and counting system based on a browser/server architecture. I used Django for the backend and MySQL for data storage. The system supports user authentication, model management, image detection, result visualization, and log management. Administrators can configure training parameters, monitor model status, and manage model versions. General users can upload images and view detection results. The system uses my improved YOLOv8n-CMEA-DPSA-MDF model as the detection engine.

Module Main function User role
Authentication Login, permission control, access security All users
Model management Parameter setting, training monitoring, version switching Administrator
Image detection Upload image, run inference, display species and boxes All users
Result visualization Show counts, confidence, and export results All users
Log management Record operations, training events, and detection history Administrator

From a non-functional perspective, I required fast response for normal interactions, acceptable inference time for detection, and stable performance under concurrent requests. During testing, the system ran stably, exchanged data correctly, and returned detection results within the expected time. The interface was simple enough for repeated field use, and the model management module supported practical iteration.

Discussion. My experiments support several conclusions. First, UAV drones provide high-resolution canopy imagery that is suitable for individual tree recognition and counting. Second, baseline YOLOv8n is a strong lightweight detector, but it is not sufficient for dense, multi-scale forest scenes without modification. Third, multi-scale convolution enhancement and dynamic attention are complementary. CMEA improves representation, DPSA improves selection, and MDF-Loss improves optimization. Fourth, counting accuracy improves alongside detection accuracy, which shows that the model can support practical forest inventory tasks.

I also note limitations. My dataset comes from one broad climatic and ecological context, so cross-region generalization remains uncertain. RGB imagery lacks the spectral information available from hyperspectral sensors and the vertical structure available from LiDAR. Dense occlusion still causes some missed counts. Future work can combine UAV drones RGB imagery with hyperspectral or LiDAR data in a multimodal framework. I can also apply model pruning, quantization, and knowledge distillation for edge deployment on UAV drones. Transformer-based global modeling may further improve long-range context in crowded canopies. Multi-temporal UAV drones imagery could support growth monitoring, pest detection, and change analysis.

Conclusion. I proposed an improved YOLOv8n method for tree species recognition and counting in UAV drones optical images. I built a balanced five-species dataset, designed CMEA and DPSA modules, introduced MDF-Loss, and evaluated the model with extensive comparisons and ablations. The full model achieved 92.1% mAP@0.5, which is 4.1 percentage points higher than the baseline. It also improved Precision by 4.9 percentage points and reduced counting error, especially in dense canopy regions. I further implemented a working recognition and counting system. In my view, the combination of UAV drones, improved lightweight detection, and practical system design offers a useful path toward intelligent forest resource monitoring.

Contribution Method Main result
Dataset construction UAV drones RGB imagery, SSIM filtering, annotation, augmentation 6,200 images; 60,244 tree crown labels; five balanced species
Multi-scale enhancement CMEA with 3,5,7,9 depthwise separable branches and attention Better small-crown and large-crown representation
Dynamic context modeling DPSA with mixed pooling and dilated convolution Better occlusion handling and background suppression
Loss optimization MDF-Loss with classification, discriminative, and attention terms Higher mAP and more stable feature space
Counting and system Box-counting and browser/server platform Accurate counts and practical deployment workflow

Overall, I conclude that improved YOLOv8n models can serve as effective tools for UAV drones based tree species recognition and counting when they are designed around the specific challenges of multi-scale crowns, dense occlusion, and complex forest backgrounds.

Scroll to Top