Keywords: Adversarial Networks, Computer Vision, Generative AI, Generative models, Diffusion models
Computer Vision aims to enable machines to perceive and understand the visual world similar to humans. It involves tasks like image classification, object detection, semantic segmentation, and facial recognition. Traditional CV models require millions of labeled images for training. However, acquiring data for every real-world condition, such as foggy nights, rainy conditions, or rare medical conditions, is difficult, expensive, and time-consuming. This is known as the data scarcity problem. Generative AI has emerged as a powerful solution. Unlike discriminative models that only classify data, generative models can create new, synthetic data that closely resembles real-world data. This synthetic data can be used to augment limited datasets, improve model robustness, and reduce data collection costs.
The main objective of this paper is to explore how GANs, VAEs, and Diffusion Models are improving Computer Vision and to propose a framework for its implementation.
Good fellow et al. (2014) [1] introduced GANs as a game-theoretic framework where two networks compete.
Kingma et al. (2013) [2] proposed VAEs which learn a probabilistic latent representation.
Radford et al. (2015) introduced DCGAN which improved GAN stability using convolutional architectures.
Karras et al. (2020) introduced StyleGAN2 which generates high-resolution photorealistic faces.
Gunduz et al. (2020) [3] investigate the cybersecurity issues raised by sharp grids, featuring the risks and proposing arrangements. The creators know about numerous threats, for example, unapproved access, information breaks and goes after by means of refusal of-administration assaults (Gunduz et al., 2020) [3]. They underline that it is so vital to utilize vigorous affirmation components, encryption norms and interference revelation systems to relieve these risks. Besides, they take a gander at how computerized reasoning (man-made intelligence) and fake cognizance could work on the security of cunning systems by foreseeing and frustrating advanced assaults.
Humayun et al. (2020) Directed a precise arranging exploration to investigate cybersecurity weaknesses and threats in various spaces, including splendid grids. Their evaluation gives a careful outline of the many kinds of cyberthreats, assault strategies and weaknesses normal to canny systems (Humayun, 2020). They make sense of the meaning of chance appraisal, risk understanding and secure correspondence conventions in safeguarding sharp cross sections from cyberattacks. Furthermore, they stress how significant it is for accomplices to cooperate and share data to increment cybersecurity flexibility.
Ismagilova et al. (2022) center around the wellbeing, security and dangers tracked down in savvy metropolitan areas, introducing a composing overview and empowering a smart city introduced Denoising Diffusion Probabilistic Models (DDPMs), which have recently surpassed GANs in terms of image quality and training stability.
Rombach et al. (2022) introduced Latent Diffusion Models (Stable Diffusion) which operate in latent space to reduce computational cost.
Zhang et al. (2023) in their survey showed that synthetic data improves CV model accuracy by 9-12% across multiple domains.
A GAN consists of two neural networks: a Generator G that creates fake images from random noise vector z, and a Discriminator D that tries to distinguish between real and fake images. The objective function is a minmax game:
Through adversarial training, the generator learns to produce highly realistic images. Types include DCGAN, Conditional GAN (cGAN), CycleGAN for image-to-image translation, and StyleGAN for high-resolution generation. Applications in CV: Data Augmentation, Face Aging, Style Transfer, Super-Resolution.
VAEs encode an image into a compact latent vector distribution and then decode it back. The loss function consists of Reconstruction Loss and KL Divergence: . VAEs provide a smooth and continuous latent space, allowing controlled generation. While VAEs produce slightly blurry images compared to GANs, they are more stable to train and excellent for anomaly detection. For example, in manufacturing, a VAE trained only on good products can detect defective products by high reconstruction error.
As a component of the most common way of creating prescient models to recognize and moderate security weaknesses inside Internet of Things (IoT) networks, the dataset is changed to act as the reason for examination utilizing the WEKA information mining bundle. Different machine learning calculations are utilized to develop models prepared to do precisely distinguishing security concerns. The exhibition of these models is dissected exhaustively utilizing significant assessment measurements, for example, the Beneficiary Working Brand name (ROC) twist, Accuracy, Review and F-measure. Besides, a critical pre-processing stage is done utilizing procedures, for example, Class Balancer to deal with class anomaly issues inborn in security datasets. This guarantees that the models are prepared on an evenhanded and assigned dataset, working on their unwavering quality and foreseeing precision in certifiable situations. Via cautiously tending to these perspectives, the models are better prepared to give clever data and safeguard activities to improve IoT network security.
The objective of the exploratory arrangement is to distinguish different kinds of regular assaults in the IoT climate by breaking down network information at both the application and network layers. By applying undeniable level strategies, the examination digs into revealing potential weaknesses and risks. The study looks to decide the adequacy of different machine learning calculations in distinguishing these assaults utilizing this thorough strategy. Notably, the Random Forest calculation stands apart as incredibly fruitful when contrasted with other very much tried techniques like Gullible Bayes and Strategic Relapse. It is especially adroit at recognizing and sorting different kinds of assaults inside IoT networks because of its capacity to deal with complex datasets, oversee high-layered include spaces and productively get associations between factors. This opens up a promising way for helping security estimates in such conditions.
Diffusion Models are currently state-of-the-art. They consist of Forward Process where Gaussian noise is gradually added over T timesteps until it becomes pure noise, and Reverse Process where a U-Net learns to reverse the noise. The training objective is . Advantages: Stable training, no mode collapse, high diversity. Variants: DDPM, DDIM (fast sampling in 50 steps), and Latent Diffusion Model. Applications: Text-to-Image (Stable Diffusion, DALL-E 2), Image Enhancement, Inpainting. 3.4 Proposed Methodology
We propose a 3-stage framework:
Stage 1: Data Collection & Pre-processing - Collect limited real dataset, resize to 256x256, normalize.
Stage 2: Generative Model Training - Train StyleGAN2 and Latent Diffusion for 200 epochs with Adam optimizer, lr = 0.0002, batch size 32 on NVIDIA A100 GPU. Use FID score to monitor quality.
Stage 3: Hybrid Training - Combine 70% real + 30% synthetic data to train ResNet-50 / YOLOv8. Evaluate on test set containing only real images.
We conducted experiments on CIFAR-10, Manufacturing Defect Dataset, and Brain Tumor MRI Dataset. Setup: Python 3.9, PyTorch 2.0, NVIDIA A100.
Table 1. Performance Comparison
Model / Dataset
Without GenAI With GenAI FID ScoreResNet-50 / CIFAR-1082.3% Accuracy91.5% Accuracy12.4YOLOv8 / Defect76.8% mAP88.2% mAP18.7U-Net / Tumor79.1% Dice89.6% Dice1
5.2 Results show 9-12% improvement. FID < 20 indicates excellent quality. Diffusion achieved lowest FID 12.4.
All the more explicitly, all correspondence in the system goes through a solitary, additional network interface, so fundamental group catches were at that point gathered for future change and examination. A more itemized point-by-point examination of the traffic reviewed is given in Tables 1 and 2. As opposed to being communicated in bytes, volume is the aggregate sum of all IoT traffic message sorts partitioned by their complete degree. In spite of the fact that it might at first appear to be astounding that assault traffic much offsets authentic traffic as far as message volume, extra examination uncovers that proficient IoT structure correspondence is more limited than brutal power endeavours to break the framework.
| IoT Traffic Type | Volume | Features |
|---|---|---|
| Normal | 12.9% | Norm Compliant Traffic |
| net (attacks) | 87.2% | Protocol Violations |
| app (attacks) | 3.5% | Invalid Messaging Attempts |
| IoT Traffic Type | Volume | Features |
|---|---|---|
| Normal | 84.8% | Norm Compliant Traffic |
| qc (query cache) | 4.8% | Invalid cache query attempted |
| zt (zone transfer) | 3.3% | Invalid sequence attempted |
| nss (no shared secret) | 11.9% | Invalid credentials presented |
Except for somewhat more than 0.005% of traffic, each datum utilized one of three shows: TCP, UDP, or ICMP and none of it was dealt with by the IoT system. Table 3 records for the traffic breakdown by show. Various administrations, for example, snmp, taste, krb, irc and ftp, were endeavoured as non-restrictive lines of assault. The IoT system, taking everything into account, didn't interface these endeavours since it doesn't utilize any of these standard Internet organizations. Among the administrations utilized inside the Internet of Things engineering, for example, dns, ssl, ssh and https, the associations were replied and the assault endeavours were recorded inside the design for investigation.
| Bytes | Packets | TCP Bytes | TCP Packets | UDP Bytes | UDP Packets | ICMP Bytes | ICMP Packets | ||
|---|---|---|---|---|---|---|---|---|---|
| Portal | In | 914 M | 9 M | 900 M | 9 M | 13 M | 44 k | 3 M | 19 k |
| Out | 4.4 G | 9 M | 4.4 G | 9 M | 263 k | 4 k | 78 k | 549 | |
| Concentrator | In | 8.6 G | 66 M | 8.5 G | 65 M | 71 M | 466 k | 5 M | 33 k |
| Out | 91.5 G | 47 M | 91.5 G | 47 M | 71 M | 426 k | 153 k | 1352 | |
| System | In | 9.5 G | 74 M | 9.4 G | 73 M | 71 M | 508 k | 7 M | 52 k |
| Out | 94.8 G | 55 M | 103 G | 127 M | 153 M | 937 k | 7 M | 54 k | |
To give the last dataset expected to set up the modern models, various changes are made. Zeek and Tshark are two instances of untouchable and prohibitive programming that is utilized to make these alterations. Zeek, at times known as Sibling, is a product bundle intended to cover an extensive variety of package and network traffic examination strategies and functionalities. Zeek is the most important phase in pre-processing the crude package gets; it is utilized to bunch the groups into gatherings and recognize network features and shows. Thusly, Tshark processing is applied to the natural package information. Tshark is an order line program that impersonates the well known pack review program, Wire Shark. Tshark is utilized to distinguish explicit qualities of the caught groups, for example, features that are helpful for separating the bundles that are assembled into gatherings. Prohibitive programming is in this manner used to tackle all of the St. Scratch credits that are expected to get ready prescient models. Except for range, which Crowd assessed in the two bytes and bundles, it is noteworthy that any extra credits are determined in a half-duplex style, every one of which gauges half of a gathering and is denoted by similar tokens, "in" and "out" or "orig" and "resp".
Algorithm: Synthetic Data Augmentation Pipeline
Input: Real Dataset Dr, Output: Improved Model M
Filter Ds where FID < 20
Combine Dfinal = Dr + Ds
Train CV Model M on Dfinal
Evaluate
: 1. Federated Generative Learning - Multiple hospitals train local models, share only weights, not data, ensuring GDPR/HIPAA compliance.
2. Video Generation - Sora-like models for autonomous driving simulation.
3. 3D Generative AI - NeRF + Diffusion for 3D objects.
4. Real-time optimization for edge devices.
Generative AI has transformed computer vision from merely understanding images to creating them. By addressing data scarcity through GANs, VAEs, and Diffusion models, CV models become more robust and accurate. Our experiments show 9-12% improvement. While challenges remain, integration with Federated Learning provides a privacy-preserving and scalable future.