Git Product home page Git Product logo

ats's Introduction

ATS Steganalysis

Implementation of the method proposed in the paper [Unsupervised steganalysis based on Artificial Training Sets] (http://www.sciencedirect.com/science/article/pii/S0952197616000026).

Example:

The testing set:

First, we need to prepare a testing set.

$ ./gen_testing_set.py
./gen_testing_set.py <cover dir> <stego perc> <output dir> <algo> <bitrate> 

We need cover images, the algorithm and bitrate that we want to use and the percentage of stego images that we want in the testing set. In this example we use 500 images from the BossBase 1.01.

http://dde.binghamton.edu/download/ImageDB/BOSSbase_1.01.zip

And we use as a steganographic algorithm HUGO with a 0.4 bitrate and s 50% of stego images:

http://dde.binghamton.edu/download/stego_algorithms/

Remember to download and compile the steganographic tools that you need. You can change the path of the tools in the config section inside the scripts.

This is the command to generate the testing set:

./gen_testing_set.py pgm_cover_images 50 out HUGO 0.4

A, B anc C sets:

The second step is to generate A, B and C sets and extract features using Rich Models:

http://dde.binghamton.edu/download/feature_extractors/

Again, we need to download and compile the tools.

This is the command to prepare the A, B and C sets:

./prepare_ABC_sets.py out/HUGO_0.4_boss500_50/ out/ HUGO 0.4

Classification:

The last step is to classify into cover and stego.

$ ./ATS_SVM_FS.py
./ATS_SVM_FS.py <A> <B> <C> <labels>

If we do not give the labels to the script it performs a prediction. But in our case, as far as we know the labels of the testing set, the script can calculate the accuracy of the prediction:

$ ./ATS_SVM_FS.py
./ATS_SVM_FS.py out/ATS_RM_HUGO_0.4_boss500_50/A_COMMON/ out/ATS_RM_HUGO_0.4_boss500_50/B_HUGO_040 out/ATS_RM_HUGO_0.4_boss500_50/C_HUGO_040 out/HUGO_0.4_boss500_50/labels.txt
Accuracy:  0.828

ats's People

Contributors

macroexpansion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.