1
1.5
2
2.5
3
3.5
4
1 2 3 4 5 6 7 8 9
Speed up factor
Executing threads
Speed-up factor chart
Speed-up
Figure 5: Speed up.
We also did a work of optimization on all of the data
structures used during the execution. However, there
is no guarantee that all of the real world machines on
which the algorithm will run have at their disposal
the same number of physical cores. Accordingly, it
should be noted as the performance evolve in relation
to varying the number of threads that are running si-
multaneously on the machine in question: this aspect
is summarized in the speed-up plot of Figure 5. The
results are related to an experiment conducted with 10
training classes.
In this speed-up factor chart we can see how the
increase of number of threads, running simultane-
ously on the machine, have a good effect on the exe-
cution time. Clearly, beyond a certain number, i.e.,
that of the physical processors, there are no further
considerable improvements. The machine where the
experiments were performed is equipped with 8 cores
and by using a pool of 8 threads we reached a factor
speed-up of nearly 4.
5 CONCLUDING REMARKS AND
DISCUSSION
This paper presented an image classification techni-
que based on bidimensional motifs. The analysis of
the experimental results, suggests that this technique
is effective and obtains good performances both in
terms of accuracy and of scalability. We must not
however lose sight of the enormous complexity that
the classification problem presents inherently, especi-
ally as it regards the search space that we can explore
in order to improve the accuracy of classification. In
fact, at present, it is possible to customize the classi-
fier in a considerable number of parameters, each of
which can assume a range of values potentially very
high. In some cases, the wrong choice of these pa-
rameters can also degenerate performance at an ex-
tent as to make the execution times unacceptable. In
this sense, research is responsible for identifying si-
tuations where the instrument maximizes percentage
of correctly classified images with reasonable perfor-
mances. As regards the implementation, the actual
classifier version runs in a maximally efficient on a
single machine with multi-core architecture: one of
the steps for the future might be to offer an implemen-
tation that can deliver computing in cluster machines
or distributed environments, for example in cloud sce-
narios. In this way, we may improve timing perfor-
mance and be able to experience the behavior of the
classifier in further complex scenarios. To be taken
into account is also the positive influence that has had
the introduction of distance normalization: this aspect
has led a substantial improvement in the accuracy of
the algorithm, and is indeed a solid starting point for
future research. It might also be interesting to try to
replace the final classification technique, currently k-
NN, with other types of classifiers coming for exam-
ple from the pool of statistical ones. Another open
question is to see how non-exact chromatic matching
is influential on the technique. Moreover, suitable in-
variants, such as rotations and/or translations, can be
considered in the 2D basis generation, by extending
the proposed approach to this aim. Finally, a compari-
son with more recent techniques for image classifica-
tion (Chan et al., 2015; Kumar et al., 2017; Maggiori
et al., 2017) will be object of our investigation.
ACKNOWLEDGEMENTS
The authors are grateful to Michele Bombardieri for
his help in the implementation of a preliminary ver-
sion of the software presented here. Moreover, their
research has been partially supported by a project fi-
nanced by INDAM titled “Elaborazione ed analisi di
Big Data modellati come grafi in vari contesti appli-
cativi”, under the program GNCS 2018.
REFERENCES
Amelio, A., Apostolico, A., and Rombo, S. E. (2011).
Image compression by 2D motif basis. In Data Com-
pression Conference (DCC 2011), pages 153–162.
Apostolico, A., Parida, L., and Rombo, S. E. (2008).
Motif patterns in 2D. Theoretical Computer Science,
390(1):40–55.
Berg, A., Berg, T., and Malik, J. (2005). Shape matching
and object recognition using low distortion correspon-
dences. In Proc. of IEEE Computer Society Confe-
rence on Computer Vision and Pattern Recognition
(CVPR 2005), volume 1, pages 26–33.
Bosch, A., Mu
˜
noz, X., and Mart
´
ı, R. (2007). Review:
Which is the best way to organize/classify images by
content? Image Vision Comput., 25(6):778–791.
PhyCS 2018 - 5th International Conference on Physiological Computing Systems
98