Block-wise Scrambled Image Recognition Using Adaptation Network

Koki Madono · Masayuki Tanaka · Masaki Onishi · Tetsuji Ogawa — Waseda University · National Institute of Advanced Industrial Science and Technology (AIST)

AAAI-20 Workshop on Artificial Intelligence of Things (AIoT), 2020 · arXiv:2001.07761

Client scrambles images block by block and uploads them; the cloud trains an adaptation network and a classifier on the scrambled images
Setting (Fig. 1 of the paper). The client scrambles every image block by block before it leaves the device. The cloud side stores only scrambled images and trains an adaptation network followed by an ordinary classifier on them, so the classification result comes back while a third party never sees the perceptual content.

Abstract

In this study, a perceptually hidden object-recognition method is investigated to generate secure images recognizable by humans but not machines. Hence, both the perceptual information hiding and the corresponding object recognition methods should be developed. Block-wise image scrambling is introduced to hide perceptual information from a third party. In addition, an adaptation network is proposed to recognize those scrambled images. Experimental comparisons conducted using CIFAR datasets demonstrated that the proposed adaptation network performed well in incorporating simple perceptual information hiding into DNN-based image classification.

What the paper proposes

Block-wise image scrambling: segmentation into blocks, block shuffling, block-wise pixel operation, block integration
Block-wise scrambling (Fig. 2). Segment into blocks → shuffle block positions → operate on the pixels of every block with its own key → integrate the blocks.
Adaptation network: block-wise sub-networks, block integration, permutation matrix, reshape, classification network
Adaptation network (Fig. 3). Yellow boxes are trainable: one sub-network per block, the pseudo-permutation matrix f(·; U), and the classification network.

Main result

Top-1 accuracy on the CIFAR test sets. No AdaptNet feeds the scrambled image directly to the classifier; LE-AdaptNet is the adaptation network of Tanaka (2018), which shares one sub-network across blocks; ELE-AdaptNet is the proposed network. ELE-AdaptNet is the only system that recognises ELE-scrambled images reliably, and it is also the best on EtC.

DatasetAdaptation networkPlain imageLEEtCELE (proposed)
CIFAR-10No AdaptNet96.7094.9485.9467.10
LE-AdaptNet95.6494.4980.1648.39
ELE-AdaptNet (proposed)85.3287.2889.0983.06
CIFAR-100No AdaptNet83.5978.2561.9043.05
LE-AdaptNet79.1375.4844.837.19
ELE-AdaptNet (proposed)60.3671.3071.9162.97

Accuracy in %, values from Table 3 of the paper (ShakeDrop classifier; SGD with Nesterov momentum 0.9, batch 128, 300 epochs, learning rate 0.1 → 0.01 → 0.001 at epochs 150 and 225).

Use it

The scrambling schemes and the adaptation networks are a pip-installable package in the paper repository, which also reproduces Table 3 with one command per cell.

pip install git+https://github.com/MADONOKOUKI/Block-wise-Scrambled-Image-Recognition
import torch
import blockscramble as bs

ele = bs.ELE()                                  # the paper's block-wise scrambling with the paper's keys
x = torch.rand(8, 3, 32, 32)                    # images in [0, 1]; PIL images and numpy arrays work too
x_scr = ele(x)                                  # ele.inverse(x_scr) decrypts it (8-bit exact)

model = bs.build_model(adaptation="proposed", num_classes=10)   # ELE-AdaptNet + Shake-PyramidNet-110
logits, feature = model(x_scr, return_feature=True)
git clone --depth 1 https://github.com/MADONOKOUKI/Block-wise-Scrambled-Image-Recognition
cd Block-wise-Scrambled-Image-Recognition && pip install -e .
python train.py --dataset cifar10 --scramble ele --adaptation proposed   # one cell of Table 3

scripts/reproduce_table3.sh in the repository lists all 24 runs of Table 3.

Citation

@inproceedings{madono2020block,
  title         = {Block-wise Scrambled Image Recognition Using Adaptation Network},
  author        = {Madono, Koki and Tanaka, Masayuki and Onishi, Masaki and Ogawa, Tetsuji},
  booktitle     = {AAAI Workshop on Artificial Intelligence of Things (AIoT)},
  year          = {2020},
  eprint        = {2001.07761},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV}
}

Related work in this series

← Back to the publication list