Leaf-shaped shadow attack method for traffic sign recognition

The leaf-shaped shadow mask generated by the Cartesian leaf function and particle swarm optimization algorithm solves the adversarial attack problem of existing traffic sign recognition models, and achieves high concealment and attack success rate under multi-view and multi-light conditions. It is suitable for security assessment of traffic sign recognition models and robustness research of autonomous driving systems.

CN120808304APending Publication Date: 2025-10-17ANHUI NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510826094.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Existing traffic sign recognition models are vulnerable to adversarial attacks, and existing non-intrusive lighting attack methods are ineffective under multi-view and multi-light conditions, making it difficult to generate attack images with natural shapes and strong concealment.

Method used

A Cartesian leaf function is used to generate natural-shaped shadow patterns, and the parameters are optimized by combining particle swarm optimization algorithm to generate leaf-shaped shadow masks, which are used to add natural-shaped perturbations to images and construct adversarial images.

Benefits of technology

The generated attack images exhibit high concealment and attack success rate under multi-view and multi-light conditions, significantly improving the attack effectiveness of traffic sign recognition models and making them suitable for security testing and practical deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120808304A_ABST
    Figure CN120808304A_ABST
Patent Text Reader

Abstract

The invention discloses a leaf-shaped shadow attack method for traffic sign recognition. The method comprises the following steps: S1, acquiring a clean traffic sign image and a corresponding image mask; s2, converting the image from an RGB color space to a Lab color space; s3, generating a leaf-shaped shadow pattern based on a Cartesian coordinate function, and projecting the leaf-shaped shadow pattern into the L-channel image to obtain a disturbed L'channel image; s4, generating a confrontation image based on the disturbed L'channel image; s5, inputting the confrontation image into a preset traffic sign classification model, and obtaining the output confidence of the confrontation image as a fitness value; s6, on the basis of the fitness value, optimizing parameters of the Cartesian leaf-shaped pattern by adopting a particle swarm optimization algorithm; and S7, decoding a Cartesian leaf-shaped pattern according to the optimized particle position, and generating a final leaf-shaped shadow mask for generating an attack image. According to the scheme, the attack image for attack resistance of the traffic sign recognition model can be generated.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of artificial intelligence security, image processing and intelligent transportation, and particularly relates to a non-contact adversarial attack method for deceiving a traffic sign recognition model, in particular to a physical world shadow disturbance generation method based on Cartesian leaf-shaped curve and particle swarm optimization algorithm. BACKGROUND

[0002] Currently, traffic sign recognition is one of the core technologies in autonomous driving systems, and is widely used in modules such as assisted driving, path planning and vehicle safety. With the wide application of deep neural networks (DNN) in the field of image recognition, traffic sign recognition models based on convolutional neural networks have made significant progress.

[0003] However, studies have shown that such models have adversarial vulnerability and are vulnerable to "adversarial attacks", that is, by adding a small but carefully designed and purposeful disturbance to the input image, the model can be induced to output an incorrect judgment result. This "adversarial attack" may cause the autonomous driving system to incorrectly recognize traffic signs in actual application scenarios, thus making incorrect decisions and posing potential traffic safety risks.

[0004] In this context, researchers have begun to focus on adversarial attack methods in the physical world, including invasive attacks (such as sticker attacks) and non-invasive light attacks (such as natural light, reflected light). Among them, natural light attacks disturb visual perception by projecting strong light, and reflected light attacks generate misleading patterns with the help of mirrors, which have certain attack effects. However, there are still problems such as lack of naturalness, high attack perceptibility, poor view robustness, etc., which are difficult to apply to complex real scenarios. For example, natural light attacks rely on light source intensity and are greatly limited by the environment; some shadow attacks use regular geometric shapes (such as triangles, circles) to simulate natural shadows, which lack sufficient realism and concealment. The attack image generated when attacking cannot meet the anti-attack needs of the traffic sign recognition model.

[0005] Therefore, there is an urgent need for an attack method that can stably generate natural disturbance under multiple viewing angles and multiple lighting conditions without touching the target object. Based on this need, the present application proposes a mask for generating natural leaf-shaped shadow patterns, which can be used to add natural disturbance to images, thus constructing adversarial images with high concealment and naturalness, effectively deceiving traffic sign recognition models, and realizing non-contact physical attacks. By generating such attack images, potential attack threats in real physical environments can be simulated, and support can be provided for the robustness evaluation and improvement of traffic sign recognition systems. SUMMARY

[0006] The purpose of the present application is to overcome the shortcomings of the prior art, provide a leaf-shaped shadow attack method for traffic sign recognition, to design a more natural, imperceptible, physically feasible and multi-angle robust non-contact physical counterattack attack method, thereby generating an attack image.

[0007] In order to achieve the above-mentioned purpose, the technical scheme adopted by the present application is as follows: a leaf-shaped shadow attack method for traffic sign recognition, comprising the following steps:

[0008] S1: obtaining a clean traffic sign image and its corresponding image mask, the image mask being used to define a shadow adding area;

[0009] S2: converting the image from RGB color space to Lab color space;

[0010] S3: generating a leaf-shaped shadow pattern based on a Cartesian coordinate function, and projecting the leaf-shaped shadow pattern into the L channel image of the traffic sign image Lab color space in the image mask defined area, to obtain a disturbed L' channel image;

[0011] S4: generating an adversarial image based on the disturbed L' channel image and the traffic sign image Lab color space image;

[0012] S5: inputting the adversarial image into a preset traffic sign classification model, and obtaining its output confidence as a fitness value;

[0013] S6: based on the fitness value, using a particle swarm optimization algorithm to optimize the parameters of the Cartesian leaf-shaped pattern;

[0014] S7: decoding the Cartesian leaf-shaped pattern according to the optimized particle position, and generating a final leaf-shaped shadow mask for generating an attack image.

[0015] In step S1, the image mask is used to define the shadow adding area, and in step S3, the leaf-shaped shadow pattern is projected onto the L channel image according to the projection area in the L channel image defined by the image mask.

[0016] In step S2, the RGB color space of the traffic sign image is decomposed into L channel, A channel and B channel, and the corresponding decomposition into L channel image, A channel image and B channel image is obtained; the A and B channel images remain unchanged, and the leaf-shaped shadow disturbance is applied to the L channel image in step S3.

[0017] In step S3, the Cartesian function defines the boundary profile shape of the leaf blade, and generates a leaf-shaped shadow pattern based on the boundary profile shape of the leaf blade.

[0018] In step S4, the perturbed L' channel image is fused with the original A and B channel images to generate the adversarial image.

[0019] In step S5, the fitness value is used to guide the particle swarm optimization algorithm to update the parameters of the leaf-shaped shadow pattern.

[0020] In step S6, the particle swarm optimization algorithm is used to optimize the parameters of the Cartesian leaf-shaped pattern, including:

[0021] S6.1: initializing the velocity and position of a plurality of particles;

[0022] S6.2: updating the individual optimal position, subgroup optimal position and global optimal position according to the current fitness of the particles;

[0023] S6.3: updating the position and velocity of each particle according to the individual optimal position, subgroup optimal position and global optimal position.

[0024] The iterative updating of the particle position includes updating the position of the particle according to the velocity of the particle, the individual optimal position, the subgroup optimal position and the global optimal position;

[0025] If the fitness value of the particle is greater than the currently recorded optimal value, the fitness value and the optimal position of the particle are updated;

[0026] If the subgroup fitness value is greater than the particle fitness value, the subgroup fitness and the optimal position are updated; if the global fitness value is greater than the subgroup fitness value, the global fitness and the optimal position are updated.

[0027] The current position of the particle and the global optimal position are used to encode the parameters of the Cartesian leaf-shaped pattern, and the encoding result is input into a pattern decoding module to generate a leaf-shaped shadow mask,

[0028] The leaf-shaped shadow mask is used to perform a perturbation operation on the L channel image to generate an adversarial image.

[0029] The present application has the following technical advantages and effects:

[0030] 1. Natural and strong concealment: compared with traditional triangular, circular and other geometric shadows, the present application generates a natural leaf-shaped pattern using a Cartesian leaf-shaped function, which is closer to the natural shadow in the real environment, greatly improves the naturalness and concealment of the adversarial image, and reduces the risk of being detected by the human eye or system.

[0031] 2. Non-contact, physically realizable: the leaf-shaped shadow pattern generated by the present application can be realized in a real scene through light projection and other methods, without the need for physical contact with the target, and has good physical realizability, and is suitable for security testing and actual deployment verification.

[0032] 3. Multi-angle robustness is superior: by introducing a particle swarm optimization algorithm (PSOSS) to optimize the pattern parameters, the generated disturbance can still maintain the attack effect under different observation angles and lighting conditions, overcoming the shortcomings of previous methods which are limited to fixed angles or scenes.

[0033] The attack effect is significant: experiments show that the method achieves an attack success rate of up to 96.45% and 98.77% on the GTSRB and LISA traffic sign recognition datasets, far exceeding many existing natural light or reflected light attack methods, verifying its efficiency and practicality.

[0034] The experimental results show that the present application not only has innovation in theoretical design, but also has significant advantages in actual attack ability and engineering feasibility. BRIEF DESCRIPTION OF DRAWINGS

[0035] The content expressed by each figure in the specification of the present application and the marks in the figures are briefly described as follows:

[0036] Figure 1 A leaf-shaped shadow attack method total framework diagram provided for the embodiment of the present application

[0037] Figure 2 A particle swarm optimization algorithm with a swarm provided for the embodiment of the present application

[0038] Figure 3 A decoding module diagram provided for the embodiment of the present application. DETAILED DESCRIPTION

[0039] The specific embodiments of the present application are further described in detail below by comparing the figures and describing the optimal embodiments.

[0040] The present embodiment provides a leaf-shaped shadow attack method for traffic sign recognition, which comprises the following steps:

[0041] S1: Obtain a clean traffic sign image and its corresponding image mask, the image mask being used to define a shadow addition area;

[0042] S2: Convert the image from an RGB color space to a Lab color space, and extract L, A, and B three channel images respectively;

[0043] S3: Generate a leaf-shaped shadow pattern based on a Cartesian coordinate function, and project the leaf-shaped shadow pattern into the L channel image in the image mask defined area to obtain a disturbed L' channel image;

[0044] S4: Fuse the disturbed L' channel image with the original A and B channel images to generate an adversarial image;

[0045] S5: input the adversarial image into a preset traffic sign classification model, and obtain an output confidence thereof as a fitness value;

[0046] S6: based on the fitness value, a particle swarm optimization algorithm (PSOSS) is used to optimize parameters of the Cartesian leaf pattern, and the optimization process includes:

[0047] S6.1: initializing velocities and positions of a plurality of particles;

[0048] S6.2: updating individual optimal positions, subgroup optimal positions and global optimal positions according to current fitness of the particles;

[0049] S6.3: updating positions and velocities of the particles according to the individual optimal, subgroup optimal and global optimal positions;

[0050] S7: decoding the Cartesian leaf pattern according to the optimized particle positions, and generating a final leaf shadow mask for generating an attack image.

[0051] As Figure 1 shown is a total framework diagram of the leaf shadow attack method, and based on the framework diagram, specific steps of the present scheme include:

[0052] S1: obtaining a clean traffic sign image and an image mask Mt corresponding thereto, the image mask being used to define a shadow adding area;

[0053] for each traffic sign image x e R N×N×3 , an adversarial generator (part (b) of the Figure 1 ) decomposes it into L, A, B three channels in LAB space.

[0054] S2: converting the image from RGB color space to Lab color space, and extracting L, A, B three channel images respectively;

[0055] x r , x g , x b e [0,1] represent pixel values R, G, B in the input image x respectively. First, x r , x g , x b in RGB space are converted into X, Y, Z in CIELab space using formula (1).

[0056]

[0057] where M is the conversion matrix. Then, [X, Y, Z] T is converted to [L, a, b] T using equation (2).

[0058]

[0059] where (X0, Y0, Z0) = (0.9505, 1.0, 1.0888), and if z > 8.856 x 10 -3 1 / 3 then h(z) = z LAB Otherwise, h(z) = 7.787z.

[0060] S3: Generate a lobed shadow pattern based on the Cartesian coordinate function and project the lobed shadow pattern into the L channel image within the image mask limited area to obtain a perturbed L' channel image;

[0061] A Cartesian lobed line in UV space is shown using a parametric equation, as shown in equation (3).

[0062]

[0063] where a1, a2, …, a8 are parameters, and t ∈ [0, 2π] is a control variable.

[0064] S4: Fuse the perturbed L' channel image with the original A, B channel images to generate an adversarial image;

[0065] After traversing all the pixels in the image x, the image x LAB = [x L , x A , x B ] in the LAB space is obtained. Then, the obtained lobed shadow mask M l , traffic sign shape mask M t , and L channel image x L are used to generate a perturbation in the L channel according to equation (4).

[0066]

[0067] There is no syntax error here, but the logical expression is indeed a bit ambiguous.

[0068] M l (i, j) is the position of the (i, j)th pixel in the lobed shadow mask, with a value of 0 or 1

[0069] M t (i, j) is the traffic sign area mask, also with a value of 0 or 1

[0070] So the product M l (i, j)Mt (i,j) is 1 only if both are 1, otherwise 0

[0071] This formula means:

[0072] If M l (i,j) = 1 and M t (i,j) = 1, then weight (multiply by λ) the L channel;

[0073] Otherwise, keep the original pixel.

[0074] Where M l (i,j) and M t (i,j) are the values of M l and M t in the i-th row, j-th column; λ is the shadow coefficient. After traversing all the pixels on M l , the adversarial sample on the L channel is obtained Finally, the adversarial sample x adv is obtained using the inverse transformation of formula (2) and (1).

[0075] is the image after perturbation of the L channel.

[0076] x adv is the adversarial image, i.e., the adversarial sample.

[0077] M t is the traffic sign mask input together with the original traffic sign image in step S1, which is a mask used to mark the "traffic sign area" and is used to limit that the perturbation cannot exceed the sign area.

[0078] M l is the leaf-shaped shadow pattern generated based on the Cartesian coordinate function in step S3, which is then converted into a leaf-shaped shadow mask.

[0079] Algorithm 1 Adversarial generator

[0080]

[0081] S5: input the adversarial image into a preset traffic sign classification model and obtain the output confidence thereof as a fitness value; for example, Figure 2 (a) shows a classifier that generates the PSOSS confidence.

[0082] S6: based on the fitness value, use a particle swarm optimization algorithm to optimize the parameters of the Cartesian leaf-shaped pattern, and the optimization process includes:

[0083] S6.1: initialize the speed and position of multiple particles;

[0084] S6.2: Update individual best position, swarm best position and global best position according to the current fitness of the particle;

[0085] S6.3: Update the position and velocity of each particle according to the individual best, swarm best and global best positions;

[0086] Figure 2 (a) Part shows the classifier to generate PSOSS confidence. Figure 2 (b) shows the structure of PSOSS. The three pink squares show the subswarms. Each subswarm contains three particles q 01 02 03 As shown in (b), each particle is encoded by a velocity and position vector and evaluated by a particle fit. Figure 3 (b). Each particle is encoded by a velocity and position vector and evaluated by a particle fit. Figure 3 (c) Part shows the update details of PSOSS. After the classifier forwards the confidence to the update module, the iteration module implements from the coarse-grained level to the fine-grained level (part (c)) in four steps. Figure 2 (c) Part shows the update details of PSOSS. After the classifier forwards the confidence to the update module, the iteration module implements from the coarse-grained level to the fine-grained level (part (c)) in four steps.

[0087] (1) If the particle fit does not exceed the confidence, update the particle position according to the velocity of the particle swarm, the individual best position and the global best position, as shown in Figure 2 .

[0088] (2) If the resulting particle fitness is greater than the confidence, update the particle fitness and the best position, as shown in Figure 2 (2) of (c).

[0089] (3) If the swarm fitness is greater than the particle fitness, update the swarm fitness and the best position, as shown in Figure 2 (c).

[0090] (4) If the global fitness is greater than the swarm fitness, update the global fitness and the best position. The parameters of the Cartesian blade are transmitted to the decoding module (part (d) of Figure 2 .

[0091] Let the jth particle of the particle swarm be q j , j = 1, 2, 33m. The position of q j is usually represented by a D-dimensional vector, where p j = (p j1 , p j2 , p j3 , 3p jD ), j = 1, 2, 33m. Similarly, the velocity of q j can be represented as a vector V j = (v j1 , v j2 ​​,v j3 ,3v jD ),q j The best previously visited position of is recorded as its individual best position, h j =(h j1 ,h j2 ,h j3 ,3h jD ), and h j The fitness is denoted as F j , which can be evaluated using the objective function of the optimization problem. The best individual position of the entire group is called the global optimal position g = (g1, g2, g3, 3, g D ). The fitness value of g is recorded as the global optimal fitness value F g

[0092] PSOSS will transform all particles {q j} is divided into three subgroups Q 1 ∪Q 2 ∪Q 3 , each subgroup drives a subgroup fitness to explore the global solution. Let subgroup Q k The best position is k=1,2,3. For PSOSS, the jth particle q j ∈Q k Position in the dth dimension and speed Updated by equations (5) and (6) respectively.

[0093]

[0094] where c1, c2, and c3 are learning parameters; r1, r2, and r3 are uniformly sampled random values ​​from [0, 1]; It's S k The dth component of is particle q j The initial position on the dth component.

[0095] like Figure 2 As shown in part (c), q j ∈Q k The velocity and position of are always updated by formula (5) and formula (6) respectively. The update modules (2)-(4) are dependent modules. Figure 2 In the update module (2) in part (c), the particle’s current fitness Updated by formula (7).

[0096]

[0097] where c0 is given by Figure 2the confidence level generated by the classifier module in the part (a); is the initial fitness.

[0098] Accordingly, the individual best position of the particle is updated by equation (8).

[0099]

[0100] where is the initial position of the particle q j . is the initial best position of the particle q j .

[0101] In the update module (3), each particle q k in Q j drives its particle fitness to update the subgroup fitness as shown in equation (9).

[0102]

[0103] where is the initial subgroup fitness, and accordingly, the subgroup best position is updated by equation (10).

[0104]

[0105] where is the initial best position of Q k .

[0106] In the update module (4), the subgroup Q k drives its fitness to update the global fitness as shown in equation (11).

[0107]

[0108] where is the initial global fitness. Accordingly, the global best position g 1 is updated by equation (12).

[0109]

[0110] where g 0 is the initial global best position.

[0111] As mentioned before, in the proposed particle swarm optimization support strategy (PSOSS) framework, each particle individual participates in the iterative updating process by strictly following the dynamic adjustment mechanism defined by equations (5) to (12). This updating mechanism comprehensively considers the current speed of the particle, the individual historical optimal solution, the subgroup historical optimal solution, and the global optimal solution of the group to conduct global exploration. The particle position vector encodes the complete parameter set of the Cartesian leaf equation. After fine calibration, these parameters can generate adversarial perturbation patterns with specific geometric characteristics.

[0112] During the optimization process, the system implements a dual termination decision mechanism: on the one hand, it continuously monitors the candidate samples generated by each particle. When any particle successfully constructs an adversarial sample that can mislead the target classifier, the current optimization process is immediately terminated and the sample is output. On the other hand, a maximum iteration threshold is set to prevent waste of computing resources due to long-term non-convergence in extreme cases.

[0113] Algorithm 2 describes the specific implementation process of PSOSS, including particle swarm initialization and speed and position updating rules.

[0114]

[0115]

[0116] S7: Decode the Cartesian leaf pattern according to the optimized particle position solution and generate the final leaf shadow mask for generating attack images. For simplicity, let p = (a1, a2, 3, a8), 0 = t0 < t1 < t2 < 3 < t n-1 < t n = 2π. First, use equation (3) to obtain the coordinates of the pixels on the Cartesian leaf line, i.e. d0, d1, 3, d n i = (u i , v i ). Then use the polygon scan conversion algorithm to derive the leaf-shaped mask. Assuming the size of the input image is N x N x 3, the decoding module is as shown in Figure 3 Algorithm 3 details the leaf shadow mask generation process.

[0117]

[0118]

[0119] After the generation of the leaf shadow mask, the attack image is generated through the leaf shadow mask, and the attack image is used for subsequent attacks and research.

[0120] ​In summary, the application proposes a leaf-shaped shadow attack method for a traffic sign recognition system, adopts a Cartesian leaf-shaped function to construct a natural form of shadow disturbance pattern, and combines a particle swarm optimization algorithm (PSOSS) with a strip group structure to iteratively optimize the disturbance parameters, and finally generates a countermeasure image applicable to a physical environment. The method realizes effective disturbance of the traffic sign image by projecting the optimized leaf-shaped shadow mask into the brightness channel of the traffic sign region, and has the advantages of strong naturalness, physical realization, high concealment, good view angle robustness and the like.

[0121] The application can not only be used for safety evaluation and adversarial testing of a traffic sign recognition model, but also provide an important reference for robustness research and model improvement of an automatic driving system, and has high theoretical value and engineering practicability.

[0122] Obviously, the specific implementation of the application is not limited by the above-mentioned manner, and various non-essential improvements using the method concept and technical solution of the application are within the protection scope of the application.

Claims

1. A leaf-shaped shadow attack method for traffic sign recognition, characterized by: The steps include: S1: Obtain a clean traffic sign image and its corresponding image mask, wherein the image mask is used to define a shadow addition area; S2: Convert the image from RGB color space to Lab color space; S3: generating a leaf-shaped shadow pattern based on a Cartesian coordinate function, and projecting the leaf-shaped shadow pattern onto an L channel image of the traffic sign image in a Lab color space within an area defined by the image mask to obtain a disturbed L' channel image; S4: Generate an adversarial image based on the perturbed L' channel image and the traffic sign image Lab color space image; S5: Inputting the adversarial image into a preset traffic sign classification model, and obtaining its output confidence as a fitness value; S6: Based on the fitness value, optimizing the parameters of the Cartesian leaf pattern using a particle swarm optimization algorithm; S7: Decode the Cartesian leaf pattern based on the optimized particle positions and generate the final leaf shadow mask for generating the attack image.

2. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: In step S1, the shadow adding area is defined, and in step S3, the leaf-shaped shadow pattern is projected onto the L channel image according to the projection area in the L channel image defined by the image mask.

3. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: In step S2, the RGB color space of the traffic sign image is decomposed into L channel, A channel and B channel and the corresponding decomposition is obtained into L channel image, A channel image and B channel image; the A and B channel images are kept unchanged, and in step S3, the leaf shadow perturbation is applied to the L channel image.

4. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: The Cartesian function in step S3 defines the boundary contour shape of the blade, and generates a leaf-shaped shadow pattern based on the boundary contour shape of the blade.

5. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: In step S4, an adversarial image is generated by fusing the perturbed L' channel image with the original A channel and B channel images.

6. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: In step S5, the fitness value is used to guide the particle swarm optimization algorithm to update the parameters of the leaf shadow pattern.

7. The leaf shadow attack method for traffic sign recognition according to claim 1, characterized in that: In step S6, optimizing the parameters of the Cartesian leaf pattern using a particle swarm optimization algorithm includes: S6.1: Initialize the velocities and positions of multiple particles; S6.2: Update the individual optimal position, subgroup optimal position and global optimal position according to the current fitness of the particle; S6.3: Update the position and velocity of each particle based on the individual optimal, subgroup optimal, and global optimal positions.

8. The leaf shadow attack method for traffic sign recognition according to claim 7, characterized in that: Iteratively updating the particle position includes: updating the particle position according to the particle's velocity, individual optimal position, subgroup optimal position and global optimal position; If the fitness value of the particle is greater than the currently recorded optimal value, the fitness value and optimal position of the particle are updated; If the subgroup fitness value is greater than the particle fitness value, the subgroup fitness and optimal position are updated; if the global fitness value is greater than the subgroup fitness value, the global fitness and optimal position are updated.

9. The leaf shadow attack method for traffic sign recognition according to any one of claims 1 to 8, characterized in that: The current position and the global optimal position of the particle are used to encode the parameters of the Cartesian leaf pattern, and the encoding result is input into the pattern decoding module to generate the leaf shadow mask. The leaf-shaped shadow mask is used to perform a perturbation operation on the L channel image to generate an attack image.