# Multicut Instances

This dataset contains instances of the min cost multicut problem [1].

## Multicut problem

Given a graph G=(V, E) with real valued edge costs c, the objective of the min cost multicut problem is to find a 
partition of the nodes of the graph such that the sum of the cost of the edges whose endpoints are in different
sets of the partition is minimal.
The multicut problem is closely related to the correlation clustering problem [2].

## Dataformat

Each instance is contained in a .csv file. 
The file consists of one row for each edge of the graph.
Each row of the file contains three values: the two indices of the nodes adjacent to that edge as well as the cost of 
that edge.

## Datasets

This dataset contains multicut instance from a variety of applications. 
The instances from one application are grouped together in a .zip file.
Several of the instances below were converted from more generic graphical models of the 
[opengm](http://hciweb2.iwr.uni-heidelberg.de/opengm/index.php) benchmark dataset [3].

### image-seg [4]

The instances are super pixel graphs of natural images from the Berkley segmentation dataset [5].
The super pixels are computed with a watershed algorith.
A random forest in trained to estimate edge costs, i.e. the costs of cutting the edge between two adjacent super pixels.  

### knott-3d [6, 7]

The instances are super pixel graphs of 3D volume images of rabbit retina.
Super pixels and edge costs are computed similar to `image-seg` above.
The three files with suffixes `-150`, `-300`, and `-450` correspond to instances derived from volume images of 
different sizes.

### modularity-clustering [8]

Modularity clustering is a special case of the min cost multicut problem. 
The modularity clustering problem for an arbitrary graph can be formulated as a multicut problem for a complete
graph with the same number of nodes. 
The edge costs for the multicut problem are determined by the connectivity of the original graph.

### bird-song-clustering [9]

A siamese network is trained to estimate for two recordings of bird sounds whether they belong to the same species.
These estimates are used to compute costs for a min cost multicut problem of a complete graph.
Different instances correspond to different variants:
- `2s`/`3s` indicates whether the data points are 2 or 3 second chunks of bird sound recordings.
- `small`/`big` indicates whether the dataset with 23 or 68 species is used.
- `augments`/`no-augments` indicates whether data augmentation is used for training.
- the rest of the file names indicates the data set as described in [9].


## References

[1] Sunil Chopra and Mendu R Rao. The partition problem. Mathematical Programming, 59(1-3):87–115, 1993.
doi: 10.1007/BF01581239.

[2] Erik D Demaine, Dotan Emanuel, Amos Fiat, and Nicole Immorlica. Correlation clustering in general weighted graphs. 
Theoretical Computer Science, 361(2-3):172–187, 2006. doi: 10.1016/j.tcs.2006.05.008.


[3] Jörg H. Kappes, Bjoern Andres, Fred A. Hamprecht, Christoph Schnörr, Sebastian Nowozin, Dhruv Batra, Sungwoong Kim, 
Thorben Kroeger, Bernhard X. Kausler, Jan Lellmann, Bogdan Savchynskyy, Nikos Komodakis, Carsten Rother. 
A Comparative Study of Modern Inference Techniques for Discrete Energy Minimization Problems. 
International Journal of Computer Vision 2015. doi: 10.1007/s11263-015-0809-x.

[4] B. Andres, J. H. Kappes, T. Beier, U. Köthe, and F. A. Hamprecht. Probabilistic image segmentation with closedness 
constraints. In ICCV, 2011. doi: 10.1109/ICCV.2011.6126550.

[5] D. Martin, C. Fowlkes, D. Tal and J. Malik. A database of human segmented natural images and its application to 
evaluating segmentation algorithms and measuring ecological statistics. In ICCV 2001. doi: 10.1109/ICCV.2001.937655.

[6] B. Andres, U. Köthe, T. Kroeger, M. Helmstaedter, K. L. Briggman, W. Denk, and F. A. Hamprecht.
3D segmentation of SBFSEM images of neuropil by a graphical model over supervoxel boundaries.
Medical Image Analysis, 16(4):796-805, 2012. doi: 10.1016/j.media.2011.11.004.

[7] B. Andres, T. Kröger, K. L. Briggman, W. Denk, N. Korogod, G. Knott, U. Köthe, and F. A. Hamprecht.
Globally optimal closed-surface segmentation for connectomics. In ECCV, 2012. doi: 10.1007/978-3-642-33712-3_56

[8] Brandes, U., Delling, D., Gaertler, M., Goerke, R., Hoefer, M., Nikoloski, Z., Wagner, D. On modularity clustering.
IEEE Transactions on Knowledge and Data Engineering 20(2), 172-188 (2008). doi: 10.1109/TKDE.2007.190689.

[9] Stein, David, and Bjoern Andres. Correlation Clustering of Bird Sounds. In GCPR (2023).