AnoGAN
Schlegl, T., Seebรถck, P., Waldstein, S. M., Schmidt-Erfurth, U., & Langs, G. (2017, June). Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International conference on information processing in medical imaging (pp. 146-157). Springer, Cham.
In Short
Semi-supervised Anomaly Detection, ๊ทผ๋ฐ GAN์ ๊ณ๋ค์ธ. (์์งํ unsupervised๋ ์๋๋ค.)
1. Introduction
์ ์๋ฐ์ดํฐ๋ง์ผ๋ก DCGAN์ ํ์ต์ํจ ํ, image space์์ latent space๋ก์ mapping์ base๋ก ํ๋ ์๋ก์ด anoamly score๋ฅผ ์ ์ํ ๋ฐฉ๋ฒ๋ก
2. Related Work
2-1. DCGAN
DCGAN: Deep Convolutional Generative Adversarial Networks
- ํน์ง. Walking in the latent space
- latent vector์ ์กฐ๊ธ์ฉ ๋ณ๊ฒฝํ๋ฉด ์ด๋ฏธ์ง(๊ทธ๋ฆผ)๋ ๋ถ๋๋ฝ๊ฒ ๋ณ๊ฒฝ๋๋ค.
- Generator์์ Memorization์ด ์ผ์ด๋๋ ๊ฒ์ด ์๋๋ค. (์ด๋ฏธ์ง๋ฅผ ์ธ์์ ๋ณด์ฌ์ฃผ๋ ๊ฒ์ด ์๋๋ค.)
- ์ฆ, ์ด๋ฏธ์ง์ overfitting๋๋ ๊ฒ์ด ์๋๋ค.
2-2. t-SNE embedding
t-distributed stochastic neighbor embedding
3. Methods
3-1. DCGAN
$$\min_G\max_D V(D,G) = E_{x\sim p_{data}(x)}[\log D(x)] + E_{z\sim p_z(z)}[\log(1-D(G(z)))] \\ z : \text{latent vetor} \\ x: \text{data sample} \\ G(z): \text{generated sample using z} \\ D(x): \text{probability that x is a real sample}$$
์ ์๋ฐ์ดํฐ๋ก DCGAN์ ํ์ต์ํจ๋ค. ์ฆ, ์ ์๋ฐ์ดํฐ์ Manifold(ํน์ง๊ณต๊ฐ)๋ฅผ ํ์ตํ๋ค.
3-2. Anomaly Score
$$\begin{align} &\text{Loss Function } &L(z_\gamma) &= (1-\gamma) \cdot L_R(z_\gamma) + \gamma \cdot L_D(z_\gamma) \\ &\text{Residual Loss } &L_R(z_\gamma) &= \sum|x-G(z_\gamma)| \\ &\text{Discrimination Loss } &L_D(z_\gamma) &= \sum|D(x) - D(G(z_\gamma))| \end{align}$$
๊ฐ์ค์น \(\gamma\)๋ ์ฃผ๋ก 0.9์ผ๋ก ์ค๋ค๊ณ ํ๋ค.
Residual Loss๋ ๊ฐ๋จํ๊ฒ Generator Anomaly score๋ผ๊ณ ์๊ฐํ๋ฉด ๋๋ค. ์ฆ, ์ค์ ๋ฐ์ดํฐ์ ์ฌ๊ตฌ์ถ๋ ๋ฐ์ดํฐ์ ์ฐจ์ด๋ฅผ ๋น๊ตํ๋ ๊ฐ์ด๋ค.
Discrimination Loss๋ Discriminator Anomaly Score๋ผ๊ณ ์๊ฐํ๋ฉด ๋๋ค. ์ฆ, ์ค์ ๋ฐ์ดํฐ์ ๊ฐ๋ฅ๋์ ์ฌ๊ตฌ์ถ๋ ๋ฐ์ดํฐ์ ๊ฐ๋ฅ๋๋ฅผ ๋น๊ตํ๋ ๊ฐ์ด๋ค.
3-3. Invert Mapping
๋ฌธ์ ์ ๊ธฐ
GAN์ generator๋ฅผ ํตํด์ Latent Vector z์ ์์ํ๋ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ ์ ์์ง๋ง, ๋ฐ๋๋ก ์ด๋ฏธ์ง์ ๋ง๋ latent space๋ฅผ ์์ฑํ๋ ๊ฒ์ ๊ธฐ์กด์ ๋ฐฉ๋ฒ๋ก ์ ํตํด์๋ ๋ถ๊ฐ๋ฅํ๋ค.
๋ฐฉ๋ฒ ์ ์
- Latent Space ์์์ ์์์ latent vector
\(z_0\)๋ฅผ ์ก๋๋ค. \(z_0\)์ ์์ํ๋\(x'_0\)๋ฅผ ๊ตฌ์ฑํ๋ค.- test data x์ ์ข ๋ ๊ฐ๊น์ด latent vector
\(z_1\)๋ก ์ ๋ฐ์ดํธํ๋ค. - n๋ฒ์ ์ ๋ฐ์ดํธ๋ฅผ ์ํํ์ฌ test data x์ ๊ฐ์ฅ ์ ์์ํ๋ latent vector๋ฅผ ์ฐพ๋๋ค.
4. Performance Comparison
4-1. Dataset
clinical high resolution SD-OCT volumes of the retina with 49 B-scans
4-2. Baseline
aCAE: adversarial convolutional autoencoder, runtime ๋ฉด์์๋ ํจ์จ์ . Anomaly score๋ residual loss์ discrimination loss ๋ชจ๋ ์ฌ์ฉํ๋, ์ด๋ generator๋ encoder-decoder ๊ตฌ์กฐGAN_R: AnoGAN ํํ์ด๋, anomaly scoring ํ ๋๋, invert mapping ํ ๋ reference anomaly score๋ก discrimination score๋ง ์ฌ์ฉ๋จ.P_D: DCGAN
4-3. Main Results
5. Conclusion
- ์ ์๋ฐ์ดํฐ๋ง์ผ๋ก ํ์ต ๊ฐ๋ฅ
- ๋ฐ์ดํฐ ๋ถ๊ท ํ ๋ฌธ์ ํด๊ฒฐ
- F-AnoGAN, GANomaly ๋ฑ์ผ๋ก ๋ฐ์
—
Critical Point (MY OWN OPINION)
- ์์งํ๊ฒ ์ด ๋ฐฉ๋ฒ๋ก ์ DCGAN์์ ์ ์๋ฐ์ดํฐ๋ง์ผ๋ก ํ์ตํ๊ธฐ ๋๋ฌธ์, unsupervised๋ผ๊ณ ํ๊ธฐ์๋ ์ด๋ ต์ง ์๋ ์ถ๋ค. ๊ตณ์ด ๋ฐ์ง์๋ฉด semi-supervised๊ฐ ๋ง์ง ์๋ ์ถ๋ค.
—
Reference
[1] https://sensibilityit.tistory.com/506
[2] Youtube ์์