<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Four-Stream Network and Dynamic Images for Sports Video Classification: Classification of Strokes in Table Tennis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jordan Calandre</string-name>
          <email>jordan.calandre1@univ-lr.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Renaud Péteri</string-name>
          <email>renaud.peteri@univ-lr.fr</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Laurent Mascarilla</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>MIA Laboratory, La Rochelle University</institution>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>14</fpage>
      <lpage>15</lpage>
      <abstract>
        <p>In this working note, results for the MediaEval 2020 Sports Video Annotation "Detection of Strokes in Table Tennis" task are presented. Fine-grained action classification remains a complex task due to the low variance between two strokes, especially in natural conditions. Our proposal is therefore based on motion, which is the most obvious representation of what players are doing. Motion information is captured at the image level by optical flow streams and summarized at the sequence level by Dynamic Images that encode temporal information. A multiple stream architecture is presented, combining RGB-based Dynamic Images, Dynamic Images based on optical flow, and RGB frames to classify table tennis strokes.</p>
      </abstract>
      <kwd-group>
        <kwd>Figure 1</kwd>
        <kwd>Dynamic Image</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        Fine-grained action recognition in natural conditions remains
dififcult even after the success of CNN architectures for image and
video processing. Datasets like UCF-101 [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], or HMDB [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] are
useful for benchmarking methods classifying human action into a
given set of sport classes, however the fine-grained recognition of
gestures of a specific sport leads to new challenges.
      </p>
      <p>
        The dataset TTStroke-21 [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] is made up for this purpose and
is much more challenging than most previous datasets. Acquisition
is done using standard cameras, without depth maps or motion
capture information. The number of strokes are also heavily
unbalanced, which can lead to overfitting when training deep neural
networks.
      </p>
      <p>
        Deep learning methods for 2D images recognition tasks led to the
spread of CNN network for video analysis. Popular methods, like
3D-CNN, using 3D filters instead of 2D filters on video frames,
require huge datasets to be trained eficiently. An alternative method
is to use the optical flow. These approaches like two-stream
networks or Siamese Networks [
        <xref ref-type="bibr" rid="ref13 ref16 ref4 ref6">4, 6, 13, 16</xref>
        ] have been very successful.
The optical flow represents the movement between two consecutive
frames, but without estimating long term dependencies. The
movement being the obvious representation of a stroke, we focus on
this feature to enhance our previous proposal [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Optical flow and
Dynamic Images [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] are used to capture image motion information.
      </p>
    </sec>
    <sec id="sec-2">
      <title>OUR APPROACH</title>
      <p>
        We have participated to MediaEval 2019 [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] with a method using
optical flow singularities [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], and have noticed that temporal data
were not fully exploited with this approach. Our new proposal for
MediaEval 2020 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is to use Dynamic Images [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] to summarize
each sequence based on RGB, along with optical flow obtained by
2.1
      </p>
    </sec>
    <sec id="sec-3">
      <title>Dynamic Images (DI)</title>
      <p>
        A Dynamic Image [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] (DI) is a representation of an image sequence
in a single frame. This frame is obtained by representing the video
using a ranking function on its frames [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. A pixel pooling operation
is applied with the ranking function to average the pixel values
over time.
2.2
      </p>
    </sec>
    <sec id="sec-4">
      <title>Dynamic Optical Flow (DOF)</title>
      <p>The optical flow being a two dimensional vector field that represents
the apparent motion between two consecutive frames, it does not
capture long-term motion. When combining the flow of each frame
of a video sequence using the same approach as for DI, the motion
of an entire stroke into a single image is aggregated, and thus
long-term interactions can be captured.</p>
      <p>
        To obtain a dense flow with clean boundaries, the
PWCNetwork [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] has been selected as it achieves suitable results at
decent speed. It has been trained using the Sintel dataset [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Since the videos at hand contain compression artifacts, a
Gaussian filter is applied before estimating the optical flow.
2.3</p>
    </sec>
    <sec id="sec-5">
      <title>CNN Architecture</title>
      <p>
        The proposed CNN architecture is composed of up to four branches.
Each branch corresponds to a ResNet[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] with 152 layers, pretrained
on ImageNet [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] but the input type varies according to the branch.
The five possible inputs for the branches are: A Dynamic Image (DI)
computed on the whole sequence; the RGB frame from the middle
of the sequence; two Dynamic Images computed on each half of the
sequence (DIHalf); a Dynamic Image computed on the optical flow
(DOF). The input type, of the branches, for each run is presented in
Table. 1. Every input is a 224x224 pixel image, cropped around the
player using Detectron2 [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. We modified the last fully connected
layer to have 20 neurons, which is the number of considered classes.
To combine the branches outputs, a late fusion is applied followed by
a fully connected layer that results in the final stroke classification
score.
      </p>
      <p>The network was trained over 100 epochs, with a learning rate of
0.05 and a momentum of 0.9 using 10-folds cross validation. All the
video sequences of the dataset with at least two diferent strokes
are used in the validation set.
3</p>
    </sec>
    <sec id="sec-6">
      <title>RESULTS AND ANALYSIS</title>
      <p>The accuracy, for each of the five allowed runs of the task, is
presented in Table. 1 for training validation and and testing sets.</p>
      <p>To our surprise, the scores are quite similar for runs using one
DI or two DIHalf. By averaging the features only on half the
sequence, the use of two DIHalf (runs 3,4 and 5) was expected to
better represent the movement. This seems to have no real impact
on the overall result, nor the adding of the RGB frame located at the
middle of the sequence. The only run with a better score is the one
with DOF (Dynamic Optical Flow). The DOF encodes the movement
but unlike the dynamic RGB images, it provides an insight of the
direction of the players hands/grip when in action.</p>
      <p>
        In last year task challenge, using optical flow singularities [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], our
best score was 50/354 by adding a weight on the predicted strokes to
compensate the unbalanced dataset. We obtained 46/354 correctly
classified moves for the two best runs without class-weighted SVM.
      </p>
      <p>Compared to last year, our network has a better estimate
of the drive’s type (Forehand vs Backhand) presented in
Table. 2. We also considerably increased player’s stroke estimate
(Serve/Ofensive/Defensive). This metric increased from 48.87%
to 65.25%. The confusion matrix for the drive and stroke estimation,
for run 5, is presented in Fig.3.</p>
    </sec>
    <sec id="sec-7">
      <title>DISCUSSION AND OUTLOOK</title>
      <p>This paper presents the approach of the MIA laboratory for the
Sports Video Annotation on single-sport dataset task. Due to the
dificulty of the task, such as rare classes samples and diferent
camera viewpoints, the overfit obtained during the training
sessions leads to a low score, but it gives an insight of what kind
of information is missing in the proposed Dynamic Images. RGB
frames and Dynamic Images are arbitrarily split in the middle of
each sequence, but an impact detection of the ball could be used to
make a more meaningful splitting. Lastly, unbalanced data must be
better handled as prediction is clearly biased toward some stroke
classes.
5</p>
    </sec>
    <sec id="sec-8">
      <title>ACKNOWLEDGMENTS</title>
      <p>The research is supported by the Region of Nouvelle Aquitaine
through the CRISP project and by the CNRS MIRES federation.
Sports Video Classification: Classification of Strokes in Table Tennis</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Hakan</given-names>
            <surname>Bilen</surname>
          </string-name>
          , Basura Fernando, Efstratios Gavves, Andrea Vedaldi, and
          <string-name>
            <given-names>Stephen</given-names>
            <surname>Gould</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Dynamic Image Networks for Action Recognition</article-title>
          .
          <source>In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition</source>
          , Vol.
          <fpage>2016</fpage>
          -December.
          <fpage>3034</fpage>
          -
          <lpage>3042</lpage>
          . https://doi.org/10.1109/CVPR.
          <year>2016</year>
          .331
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Daniel</surname>
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Butler</surname>
          </string-name>
          , Jonas Wulf, Garrett B.
          <string-name>
            <surname>Stanley</surname>
            , and
            <given-names>Michael J.</given-names>
          </string-name>
          <string-name>
            <surname>Black</surname>
          </string-name>
          .
          <year>2012</year>
          .
          <article-title>A naturalistic open source movie for optical flow evaluation</article-title>
          .
          <source>In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)</source>
          . https: //doi.org/10.1007/978-3-
          <fpage>642</fpage>
          -33783-3_
          <fpage>44</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Jordan</given-names>
            <surname>Calandre</surname>
          </string-name>
          , Renaud Péteri, and
          <string-name>
            <given-names>Laurent</given-names>
            <surname>Mascarilla</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Optical lfow singularities for sports video annotation: Detection of strokes in table tennis</article-title>
          .
          <source>In CEUR Workshop Proceedings</source>
          , Vol.
          <volume>2670</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>João</given-names>
            <surname>Carreira</surname>
          </string-name>
          and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset</article-title>
          .
          <source>In 2017 IEEE Conference on Computer Vision</source>
          and Pattern Recognition,
          <string-name>
            <surname>CVPR</surname>
          </string-name>
          <year>2017</year>
          ,
          <article-title>Honolulu</article-title>
          ,
          <string-name>
            <surname>HI</surname>
          </string-name>
          , USA, July
          <volume>21</volume>
          -
          <issue>26</issue>
          ,
          <year>2017</year>
          .
          <fpage>4724</fpage>
          -
          <lpage>4733</lpage>
          . https://doi.org/10.1109/CVPR.
          <year>2017</year>
          . 502
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Jia</given-names>
            <surname>Deng</surname>
          </string-name>
          , Wei Dong, Richard Socher,
          <string-name>
            <surname>Li-Jia</surname>
            <given-names>Li</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kai</given-names>
            <surname>Li</surname>
          </string-name>
          , and
          <string-name>
            <surname>Li</surname>
          </string-name>
          Fei-Fei.
          <year>2009</year>
          .
          <article-title>Imagenet: A large-scale hierarchical image database</article-title>
          .
          <source>In 2009 IEEE conference on computer vision and pattern recognition. Ieee</source>
          ,
          <volume>248</volume>
          -
          <fpage>255</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Christoph</given-names>
            <surname>Feichtenhofer</surname>
          </string-name>
          , Axel Pinz, and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Convolutional Two-Stream Network Fusion for Video Action Recognition</article-title>
          .
          <source>In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition</source>
          , Vol.
          <fpage>2016</fpage>
          -
          <lpage>Decem</lpage>
          .
          <year>1933</year>
          -
          <fpage>1941</fpage>
          . https://doi.org/10.1109/CVPR.
          <year>2016</year>
          .
          <volume>213</volume>
          arXiv:
          <fpage>1604</fpage>
          .
          <fpage>06573</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Basura</given-names>
            <surname>Fernando</surname>
          </string-name>
          and
          <string-name>
            <given-names>Stephen</given-names>
            <surname>Gould</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Discriminatively Learned Hierarchical Rank Pooling Networks</article-title>
          .
          <source>International Journal of Computer Vision</source>
          (
          <year>2017</year>
          ). https://doi.org/10.1007/s11263-017-1030-x arXiv:
          <volume>1705</volume>
          .
          <fpage>10420</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Kaiming</given-names>
            <surname>He</surname>
          </string-name>
          , Xiangyu Zhang, Shaoqing Ren, and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>In Proceedings of the IEEE Computer Society Conference on Computer Vision</source>
          and Pattern Recognition. https://doi.org/10.1109/CVPR.
          <year>2016</year>
          .
          <volume>90</volume>
          arXiv:
          <fpage>1512</fpage>
          .
          <fpage>03385</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Hilde</given-names>
            <surname>Kuehne</surname>
          </string-name>
          , Hueihan Jhuang, Rainer Stiefelhagen, and Thomas Serre Thomas.
          <year>2013</year>
          .
          <article-title>Hmdb51: A large video database for human motion recognition</article-title>
          .
          <source>In High Performance Computing in Science and Engineering</source>
          <volume>12</volume>
          :
          <article-title>Transactions of the High Performance Computing Center, Stuttgart (HLRS) 2012</article-title>
          . IEEE Computer Society,
          <fpage>571</fpage>
          -
          <lpage>582</lpage>
          . https://doi. org/10.1007/978-3-
          <fpage>642</fpage>
          -33374-3
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Pierre-Etienne</surname>
            <given-names>Martin</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jenny</surname>
          </string-name>
          Benois-Pineau, Boris Mansencal, Renaud Péteri, Laurent Mascarilla,
          <string-name>
            <surname>Jordan Calandre</surname>
            , and
            <given-names>Julien</given-names>
          </string-name>
          <string-name>
            <surname>Morlier</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Sports Video Classification: Classification of Strokes in Table Tennis for MediaEval 2020</article-title>
          .
          <source>In Proc. of the MediaEval 2020 Workshop</source>
          , Online,
          <fpage>14</fpage>
          -
          <lpage>15</lpage>
          December
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Pierre</given-names>
            <surname>Etienne</surname>
          </string-name>
          <string-name>
            <given-names>Martin</given-names>
            ,
            <surname>Jenny</surname>
          </string-name>
          Benois-Pineau, Boris Mansencal, Renaud Péteri, Laurent Mascarilla,
          <string-name>
            <surname>Jordan Calandre</surname>
            , and
            <given-names>Julien</given-names>
          </string-name>
          <string-name>
            <surname>Morlier</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Sports video annotation: Detection of strokes in table tennis task for mediaeval 2019</article-title>
          .
          <source>In CEUR Workshop Proceedings.</source>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Pierre</given-names>
            <surname>Etienne</surname>
          </string-name>
          <string-name>
            <given-names>Martin</given-names>
            ,
            <surname>Jenny</surname>
          </string-name>
          Benois-Pineau,
          <string-name>
            <given-names>Renaud</given-names>
            <surname>Péteri</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Julien</given-names>
            <surname>Morlier</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Fine grained sport action recognition with Twin spatiotemporal convolutional neural networks: Application to table tennis</article-title>
          .
          <source>Multimedia Tools and Applications</source>
          (
          <year>2020</year>
          ). https://doi.org/10.1007/ s11042-020-08917-3
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Karen</given-names>
            <surname>Simonyan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Two-Stream Convolutional Networks for Action Recognition in Videos</article-title>
          .
          <source>In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems</source>
          <year>2014</year>
          , December 8-
          <issue>13</issue>
          <year>2014</year>
          , Montreal, Quebec, Canada.
          <fpage>568</fpage>
          -
          <lpage>576</lpage>
          . http://papers.nips.cc/paper/ 5353-two
          <article-title>-stream-convolutional-networks-for-action-recognition-in-videos</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Khurram</surname>
            <given-names>Soomro</given-names>
          </string-name>
          , Amir Roshan Zamir, and
          <string-name>
            <given-names>Mubarak</given-names>
            <surname>Shah</surname>
          </string-name>
          .
          <year>2012</year>
          .
          <article-title>UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild</article-title>
          .
          <source>CoRR abs/1212</source>
          .0402 (
          <year>2012</year>
          ). arXiv:
          <volume>1212</volume>
          .0402 http: //arxiv.org/abs/1212.0402
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Deqing</surname>
            <given-names>Sun</given-names>
          </string-name>
          , Xiaodong Yang, Ming Yu Liu, and
          <string-name>
            <given-names>Jan</given-names>
            <surname>Kautz</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>PWCNet: CNNs for Optical Flow Using Pyramid, Warping,</article-title>
          and Cost Volume.
          <source>Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition abs/1709</source>
          .0 (
          <issue>2018</issue>
          ),
          <fpage>8934</fpage>
          -
          <lpage>8943</lpage>
          . https: //doi.org/10.1109/CVPR.
          <year>2018</year>
          .
          <volume>00931</volume>
          arXiv:
          <fpage>1709</fpage>
          .
          <fpage>02371</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Gül</surname>
            <given-names>Varol</given-names>
          </string-name>
          , Ivan Laptev, and
          <string-name>
            <given-names>Cordelia</given-names>
            <surname>Schmid</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Long-Term Temporal Convolutions for Action Recognition</article-title>
          .
          <source>IEEE Trans. Pattern Anal. Mach. Intell</source>
          .
          <volume>40</volume>
          ,
          <issue>6</issue>
          (
          <year>2018</year>
          ),
          <fpage>1510</fpage>
          -
          <lpage>1517</lpage>
          . https://doi.org/10.1109/TPAMI.
          <year>2017</year>
          .2712608
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Uxin</surname>
            <given-names>Wu</given-names>
          </string-name>
          , Alexander Kirillov, Francisco Massa, Wan-YenLo, and
          <string-name>
            <given-names>Ross</given-names>
            <surname>Girshick</surname>
          </string-name>
          .
          <year>2019</year>
          . Detectron2. https://github.com/facebookresearch/detectron2 (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>