<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Comput. Neurosci.</journal-id>
<journal-title>Frontiers in Computational Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Comput. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5188</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fncom.2021.637144</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Transfer of Learning in the Convolutional Neural Networks on Classifying Geometric Shapes Based on Local or Global Invariants</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Zheng</surname> <given-names>Yufeng</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/183414/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Huang</surname> <given-names>Jun</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/417494/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Chen</surname> <given-names>Tianwen</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1227410/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Ou</surname> <given-names>Yang</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1227446/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Zhou</surname> <given-names>Wu</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="corresp" rid="c002"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/167059/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Department of Data Science, University of Mississippi Medical Centre</institution>, <addr-line>Jackson, MS</addr-line>, <country>United States</country></aff>
<aff id="aff2"><sup>2</sup><institution>Department of Otolaryngology-Head and Neck Surgery, University of Mississippi Medical Centre</institution>, <addr-line>Jackson, MS</addr-line>, <country>United States</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Ke Zhou, Beijing Normal University, China</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Adel Said Elmaghraby, University of Louisville, United States; Erik Blasch, Air Force Research Laboratory, United States</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Yufeng Zheng <email>yzheng&#x00040;umc.edu</email></corresp>
<corresp id="c002">Wu Zhou <email>wzhou&#x00040;umc.edu</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>19</day>
<month>02</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>15</volume>
<elocation-id>637144</elocation-id>
<history>
<date date-type="received">
<day>02</day>
<month>12</month>
<year>2020</year>
</date>
<date date-type="accepted">
<day>01</day>
<month>02</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2021 Zheng, Huang, Chen, Ou and Zhou.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Zheng, Huang, Chen, Ou and Zhou</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license> </permissions>
<abstract><p>The convolutional neural networks (CNNs) are a powerful tool of image classification that has been widely adopted in applications of automated scene segmentation and identification. However, the mechanisms underlying CNN image classification remain to be elucidated. In this study, we developed a new approach to address this issue by investigating transfer of learning in representative CNNs (AlexNet, VGG, ResNet-101, and Inception-ResNet-v2) on classifying geometric shapes based on local/global features or invariants. While the local features are based on simple components, such as orientation of line segment or whether two lines are parallel, the global features are based on the whole object such as whether an object has a hole or whether an object is inside of another object. Six experiments were conducted to test two hypotheses on CNN shape classification. The first hypothesis is that transfer of learning based on local features is higher than transfer of learning based on global features. The second hypothesis is that the CNNs with more layers and advanced architectures have higher transfer of learning based global features. The first two experiments examined how the CNNs transferred learning of discriminating local features (square, rectangle, trapezoid, and parallelogram). The other four experiments examined how the CNNs transferred learning of discriminating global features (presence of a hole, connectivity, and inside/outside relationship). While the CNNs exhibited robust learning on classifying shapes, transfer of learning varied from task to task, and model to model. The results rejected both hypotheses. First, some CNNs exhibited lower transfer of learning based on local features than that based on global features. Second the advanced CNNs exhibited lower transfer of learning on global features than that of the earlier models. Among the tested geometric features, we found that learning of discriminating inside/outside relationship was the most difficult to be transferred, indicating an effective benchmark to develop future CNNs. In contrast to the &#x0201C;ImageNet&#x0201D; approach that employs natural images to train and analyze the CNNs, the results show proof of concept for the &#x0201C;ShapeNet&#x0201D; approach that employs well-defined geometric shapes to elucidate the strengths and limitations of the computation in CNN image classification. This &#x0201C;ShapeNet&#x0201D; approach will also provide insights into understanding visual information processing the primate visual systems.</p></abstract>
<kwd-group>
<kwd>ShapeNet</kwd>
<kwd>topological perception</kwd>
<kwd>convolutional neural network (CNN)</kwd>
<kwd>global feature</kwd>
<kwd>shape classification</kwd>
</kwd-group>
<counts>
<fig-count count="7"/>
<table-count count="8"/>
<equation-count count="1"/>
<ref-count count="15"/>
<page-count count="13"/>
<word-count count="5265"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>Over the past six decades, investigations of visual system anatomy, physiology, psychophysics and computation have resulted in a general model of vision, which begins from extracting the local features of the retinal images in the lower visual areas [e.g., Lateral Geniculate Nucleus (LGN), V1], then integrates the local features to extract the <italic>global features</italic> in the higher visual areas (e.g., V4 and IT) (Hubel and Wiesel, <xref ref-type="bibr" rid="B5">1977</xref>; Marr, <xref ref-type="bibr" rid="B9">1982</xref>). The convolutional neural networks (CNNs) are primarily inspired by this local-to-global hierarchical architecture of the visual pathways. Similar visual neurons that encode visual properties of a special region of the visual field (i.e., receptive fields), the CNN units perform computations using inputs from special regions of the image and the receptive fields of units at different CNN layers exhibit different properties. With roots in biology, math and computer science, the CNNs have been the most influential innovation in the field of computer vision and artificial intelligence (AI). The CNNs can be trained to classify natural images with accuracies comparable to or better than humans. It has become the core of top companies&#x00027; services, such as Facebook&#x00027;s automatic tagging algorithms, Google&#x00027;s photo search, and Amazon&#x00027;s product recommendations.</p>
<p>Despite the commercial success of the CNNs, however, little is known about how the CNNs achieve image classification and whether there are inherent limitations. This knowledge is important for avoiding catastrophic errors of the CNN applications in critical areas. To provide insight into the CNNs limitations vs. advantages, we developed a new approach of training and testing the CNNs, which is an alternative to the popular ImageNet approach. The body of literatures (Liu et al., <xref ref-type="bibr" rid="B8">2018</xref>; Hussain et al., <xref ref-type="bibr" rid="B6">2018</xref>) reported the performance of CNNs transfer learning based on image classification. Instead of using natural images to train and test the CNNs, we employed geometric shapes as the training and testing datasets (Zheng et al., <xref ref-type="bibr" rid="B15">2019</xref>). In addition to training the CNNs to perform shape classification tasks, we focused on assessing how the CNN learning in the training datasets is transferred to new datasets (i.e., transfer datasets), which have new shapes that share local/global features with the training datasets. By varying the train and transfer datasets, we will be able to determine whether a local/global feature is extracted by the CNNs during the learning process. The goal was to directly test two hypotheses on CNN image classification. The first hypothesis is that transfer of learning based on local features is higher than transfer of learning based on global features. The second hypothesis is that the CNNs with advanced architectures have higher transfer of learning based on global features. In this study, we analyzed transfer of learning in four representative CNN models, i.e., AlexNet, VGG-19, ResNet-101, and InceptionResNet-v2, which have been trained on the ImageNet and achieved high accuracies in classifying natural images. We found that the results rejected the two hypotheses. Although preliminary, the present study provided proof of concept for this new &#x0201C;ShapeNet&#x0201D; approach.</p>
</sec>
<sec id="s2">
<title>Convolutional Neural Networks</title>
<sec>
<title>Overview of Convolutional Neural Networks</title>
<p>In this study, four representative CNN models were tested, including the first deep-CNN (AlexNet), a significantly improved CNN model (VGG-19), and two milestones of the advanced CNNs (ResNet-101 and Inception-ResNet-v2). Their characteristics are summarized in <xref ref-type="table" rid="T1">Table 1</xref>. All the CNN models take color images as inputs, thus three-channel grayscale images are created for training. All shape images are scaled to proper size according to each model prior to training and testing. The four CNNs have been pretrained with the ImageNet.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Summary of the four CNN models.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>CNN Model</bold></th>
<th valign="top" align="center"><bold>AlexNet</bold></th>
<th valign="top" align="center"><bold>VGG-19</bold></th>
<th valign="top" align="center"><bold>ResNet-101</bold></th>
<th valign="top" align="center"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Top-1 Accuracy (on ImageNet)</td>
<td valign="top" align="center">57.1%</td>
<td valign="top" align="center">71.3%</td>
<td valign="top" align="center">77.1%</td>
<td valign="top" align="center">80.0%</td>
</tr>
<tr>
<td valign="top" align="left">Number of Layers</td>
<td valign="top" align="center">8</td>
<td valign="top" align="center">19</td>
<td valign="top" align="center">101</td>
<td valign="top" align="center">164</td>
</tr>
<tr>
<td valign="top" align="left">Number of Parameters</td>
<td valign="top" align="center">63M</td>
<td valign="top" align="center">143.7M</td>
<td valign="top" align="center">44.5M</td>
<td valign="top" align="center">56M</td>
</tr>
<tr>
<td valign="top" align="left">Input Image Size</td>
<td valign="top" align="center">227 &#x000D7; 227 &#x000D7; 3</td>
<td valign="top" align="center">224 &#x000D7; 224 &#x000D7; 3</td>
<td valign="top" align="center">224 &#x000D7; 224 &#x000D7; 3</td>
<td valign="top" align="center">299 &#x000D7; 299 &#x000D7; 3</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec>
<title>AlexNet</title>
<p>AlexNet (Krizhevsky et al., <xref ref-type="bibr" rid="B7">2012</xref>) is a deep CNN for image classification that won the ILSVRC (The ImageNet Large Scale Visual Recognition Challenge) 2012 competition (Russakovsky et al., <xref ref-type="bibr" rid="B10">2015</xref>). It was the first model performed so well on the historically difficult ImageNet. AlexNet has eight layers with a total of 63 M parameters (<xref ref-type="table" rid="T1">Table 1</xref>). The first five layers are convolutional and the last three layers are fully connected. The AlexNet uses <italic>Relu</italic> instead of <italic>Tanh</italic> to add non-linearity and accelerates the speed by six times at the same accuracy. It uses <italic>dropout</italic> instead of <italic>regularization</italic> to deal with overfitting. AlexNet was trained using batch <italic>stochastic gradient descent</italic> (SGD), with specific values for <italic>momentum</italic> and weight decay.</p>
</sec>
<sec>
<title>VGG-19</title>
<p>Simonyan and Zisserman (<xref ref-type="bibr" rid="B11">2014</xref>) created a 19-layer (16 conv., 3 fully-connected) CNN that strictly used 3 &#x000D7; 3 filters with stride and pad of 1, along with 2 &#x000D7; 2 max-pooling layers with stride 2, called VGG-19 model<xref ref-type="fn" rid="fn0001"><sup>1</sup></xref> To reduce the number of parameters in such a deep network, it uses small 3 &#x000D7; 3 filters in all convolutional layers and best utilized with its 7.3% error rate. The VGG-19 has a total of 143.7M parameters. As the winner of ILSVRC 2015, it is one of the most influential models because it reinforced the notion that the CNNs need to have a deep network of layers for hierarchical representation of visual data.</p>
</sec>
<sec>
<title>ResNet-101 and Inception-ResNet-v2</title>
<p>As the winner of ILSVRC 2015, the ResNet-101 (He et al., <xref ref-type="bibr" rid="B3">2016</xref>) has 101 layers, consisting 33 three-layer <italic>residual</italic> blocks plus input and output layers. <italic>Identity connections</italic> learn incremental, or residual, representations, which creates a path for back-propagation. The identity layers gradually transform from simple to complex. Such evolution occurs if the parameters for the <italic>f</italic> (<italic>x</italic>) part begin at or near zero. The residual block helps overcome the hard training problem in DeepNet (&#x0003E; 30 layers) due to vanishing gradients. The ResNet-101 model uses 3 &#x000D7; 3 filters with stride of 2, and 3 &#x000D7; 3 max-pooling layers with stride 2.</p>
<p>Inception-ResNet-v2 is a hybrid inception version with residual connections, which leads to dramatically improved recognition performance and training speed in contrast with the inception architecture (Szegedy et al., <xref ref-type="bibr" rid="B12">2017</xref>). The inception model uses variant kernel size (in v1) to capture the features from variant object size and location, introduces batch (weight) normalization (in v2) and factorizing convolutions (in v3), and uses bottleneck layers (1 &#x000D7; 1) to avoid a parameter explosion. The combination of the two most recent ideas: residual connections (Szegedy et al., <xref ref-type="bibr" rid="B13">2016</xref>) and the latest revised version of the inception architecture (Szegedy et al., <xref ref-type="bibr" rid="B13">2016</xref>). It is argued that residual connections are inherently important for training very deep architectures (He et al., <xref ref-type="bibr" rid="B3">2016</xref>). Since inception networks tend to be very deep, it is natural to replace the filter concatenation stage of the inception architecture with residual connections. This would allow Inception to reap the benefits of the residual approach while retaining its computational efficiency.</p>
</sec>
</sec>
<sec id="s3">
<title>Experimental Results</title>
<sec>
<title>Experimental Design and Datasets</title>
<p>As shown in <xref ref-type="table" rid="T2">Table 2</xref>, there were 24 categories of shapes (540 images per category), which were generated in MatLab with variations created with transforms including translation, rotation and scaling. For the learning tasks, 85% of the learning datasets were used for training and 15% of the learning datasets were used for measuring validation accuracies, which are reported as learning accuracies. For the transfer tasks, classification accuracies in the transfer datasets are reported as transfer accuracies. Notice that the training datasets and the transfer datasets were different and separated. For example, in Experiment A.1, the CNNs were trained with squares and trapezoids, but never with rectangles. The four CNNs, which were pretrained with the ImageNet, were retrained with the learning datasets for 20 epochs.</p>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>Examples of shapes for the learning and transfer tasks.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Exp. &#x00023;</bold></th>
<th valign="top" align="left"><bold>Sample images for learning tasks</bold></th>
<th valign="top" align="left"><bold>Sample images for transfer tasks</bold></th>
<th valign="top" align="left"><bold>Description</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left"><bold>A.1</bold></td>
<td valign="bottom" align="left"><inline-graphic xlink:href="fncom-15-637144-i0002.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0001.tif"/></td>
<td valign="top" align="left">Learning: Square vs. Trapezoid<break/> Transfer: Rectangle vs. Trapezoid</td>
</tr>
<tr>
<td valign="top" align="left"><bold>A.2</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0003.tif"/></td>
<td valign="top" align="left">Learning: Parallelogram vs. Trapezoid<break/> Transfer: Rectangle vs. Parallelogram</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left"><bold>A.3</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0004.tif"/></td>
<td valign="top" align="left">Learning: Square vs. Trapezoid<break/> Transfer: Rectangle vs. Trapezoid</td>
</tr>
<tr>
<td valign="top" align="left"><bold>B.1</bold></td>
<td valign="bottom" align="left"><inline-graphic xlink:href="fncom-15-637144-i0006.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0005.tif"/></td>
<td valign="top" align="left">Learning: Square vs. Parallelogram<break/> Transfer: Trapezoid vs. Parallelogram</td>
</tr>
<tr>
<td valign="top" align="left"><bold>B.2</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0007.tif"/></td>
<td valign="top" align="left">Learning: Square vs. Parallelogram<break/> Transfer: Rectangle vs. Parallelogram</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left"><bold>B.3</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0008.tif"/></td>
<td valign="top" align="left">Learning: Square vs. Parallelogram<break/> Transfer: Rectangle vs. Trapezoid</td>
</tr>
<tr>
<td valign="top" align="left"><bold>C.1</bold></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0009.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0010.tif"/></td>
<td valign="top" align="left">Learning: Disk vs. Ring<break/> Transfer: Triangle vs. Triangle-ring</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left"><bold>C.2</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0011.tif"/></td>
<td valign="top" align="left">Learning: Disk vs. Ring<break/> Transfer: Square vs. Square-ring</td>
</tr>
<tr>
<td valign="top" align="left"><bold>D.1</bold></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0012.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0013.tif"/></td>
<td valign="top" align="left">Learning: Irregular-disk vs. Irregular-ring<break/> Transfer: Irregular-triangle vs. Irregular-triangle-ring</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left"><bold>D.2</bold></td>
<td/>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0014.tif"/></td>
<td valign="top" align="left">Learning: Irregular-disk vs. Irregular-ring<break/> Transfer: Irregular-square vs. Irregular-square-ring</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left"><bold>E</bold></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0015.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0016.tif"/></td>
<td valign="top" align="left">Learning: Isosceles-triangle vs. Disassembled-Isosceles-triangle<break/> Transfer: Irregular-triangle vs. Disassembled-irregular-triangle</td>
</tr>
<tr>
<td valign="top" align="left"><bold>F</bold></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0017.tif"/></td>
<td valign="top" align="left"><inline-graphic xlink:href="fncom-15-637144-i0018.tif"/></td>
<td valign="top" align="left">Learning: Dot-inside-circle vs. Dot-outside-circle<break/> Transfer: Dot-inside-square vs. Dot-outside-square</td>
</tr>
<tr>
<td/>
<td/>
<td/>
</tr>
</tbody>
</table>
</table-wrap>
<p>To quantitatively evaluate transfer of learning (<xref ref-type="fig" rid="F1">Figures 1</xref>&#x02013;<xref ref-type="fig" rid="F6">6</xref>), we define <italic>transfer index</italic> (TFI) as</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mtable class="eqnarray" columnalign="right center left"><mml:mtr><mml:mtd><mml:mi>T</mml:mi><mml:mi>F</mml:mi><mml:mi>I</mml:mi><mml:mo>=</mml:mo><mml:mi>H</mml:mi><mml:mi>A</mml:mi><mml:mi>U</mml:mi><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>f</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:mi>H</mml:mi><mml:mi>A</mml:mi><mml:mi>U</mml:mi><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x000D7;</mml:mo><mml:mn>100</mml:mn><mml:mi>%</mml:mi><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where the Half Area Under Curve (<italic>HAUC</italic>) is calculated using the (<italic>Accuracy</italic> 50) and <italic>Epoch number</italic>. In general, we are interested in classifiers with accuracies higher than 50%. Using (<italic>Accuracy</italic> 50) instead of <italic>Accuracy</italic> is also for normalization purpose. <italic>HAUC</italic><sub><italic>Transfer</italic></sub> can be negative. The higher the <italic>TFI</italic>, the higher the transfer of learning of a CNN. A perfect transfer, <italic>TFI</italic> = 100% can be achieved when both transfer accuracy and learning accuracy are 100%.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Experiment A. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0001.tif"/>
</fig>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Experiment B. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0002.tif"/>
</fig>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Experiment C. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0003.tif"/>
</fig>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Experiment D. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0004.tif"/>
</fig>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Experiment E. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0005.tif"/>
</fig>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Experiment F. The top panels show the images used in learning and transfer tasks. The lower panel is learning and transfer accuracies as a function of training epochs for the four CNN models.</p></caption>
<graphic xlink:href="fncom-15-637144-g0006.tif"/>
</fig>
<p>In the following discussion and all tables (<xref ref-type="table" rid="T3">Tables 3</xref>&#x02013;<xref ref-type="table" rid="T8">8</xref>), we use the TFI values to measure the performance of transfer learning. The bold TFI values in each table indicate the best CNN model in that experiment.</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Exp. A. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center" colspan="3"><bold>AlexNet</bold></th>
<th valign="top" align="center" colspan="3"><bold>VGG-19</bold></th>
<th valign="top" align="center" colspan="3"><bold>ResNet-101</bold></th>
<th valign="top" align="center" colspan="3"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center" colspan="3">69.44</td>
<td valign="top" align="center" colspan="3">76.94</td>
<td valign="top" align="center" colspan="3">69.91</td>
<td valign="top" align="center" colspan="3">63.70</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center" colspan="3">75.28</td>
<td valign="top" align="center" colspan="3">93.43</td>
<td valign="top" align="center" colspan="3">90.09</td>
<td valign="top" align="center" colspan="3">91.20</td>
</tr>
<tr>
<td valign="top" align="left">Transfer Exp.</td>
<td valign="top" align="center">A.1</td>
<td valign="top" align="center">A.2</td>
<td valign="top" align="center">A.3</td>
<td valign="top" align="center">A.1</td>
<td valign="top" align="center">A.2</td>
<td valign="top" align="center">A.3</td>
<td valign="top" align="center">A.1</td>
<td valign="top" align="center">A.2</td>
<td valign="top" align="center">A.3</td>
<td valign="top" align="center">A.1</td>
<td valign="top" align="center">A.2</td>
<td valign="top" align="center">A.3</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">4.78</td>
<td valign="top" align="center">7.15</td>
<td valign="top" align="center">&#x02212;2.37</td>
<td valign="top" align="center">12.03</td>
<td valign="top" align="center">3.45</td>
<td valign="top" align="center">8.57</td>
<td valign="top" align="center">18.58</td>
<td valign="top" align="center">13.01</td>
<td valign="top" align="center">5.58</td>
<td valign="top" align="center">41.24</td>
<td valign="top" align="center">45.26</td>
<td valign="top" align="center">&#x02212;4.09</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">22.35</td>
<td valign="top" align="center">4.39</td>
<td valign="top" align="center">17.96</td>
<td valign="top" align="center">46.49</td>
<td valign="top" align="center">22.82</td>
<td valign="top" align="center">23.67</td>
<td valign="top" align="center">53.36</td>
<td valign="top" align="center">24.94</td>
<td valign="top" align="center">28.41</td>
<td valign="top" align="center"><bold>62.94</bold></td>
<td valign="top" align="center"><bold>42.26</bold></td>
<td valign="top" align="center"><bold>20.68</bold></td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">0.738</td>
<td valign="top" align="center">0.029</td>
<td valign="top" align="center">0.708</td>
<td valign="top" align="center">0.868</td>
<td valign="top" align="center">0.548</td>
<td valign="top" align="center">0.320</td>
<td valign="top" align="center">0.809</td>
<td valign="top" align="center">0.366</td>
<td valign="top" align="center">0.443</td>
<td valign="top" align="center">0.733</td>
<td valign="top" align="center">0.462</td>
<td valign="top" align="center">0.271</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.959</td>
<td valign="top" align="center">0.163</td>
<td valign="top" align="center">0.943</td>
<td valign="top" align="center">0.990</td>
<td valign="top" align="center">0.989</td>
<td valign="top" align="center">0.921</td>
<td valign="top" align="center">0.981</td>
<td valign="top" align="center">0.952</td>
<td valign="top" align="center">0.974</td>
<td valign="top" align="center">0.987</td>
<td valign="top" align="center">0.966</td>
<td valign="top" align="center">0.912</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T4">
<label>Table 4</label>
<caption><p>Exp. B. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center" colspan="3"><bold>AlexNet</bold></th>
<th valign="top" align="center" colspan="3"><bold>VGG-19</bold></th>
<th valign="top" align="center" colspan="3"><bold>ResNet-101</bold></th>
<th valign="top" align="center" colspan="3"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center" colspan="3">70.00</td>
<td valign="top" align="center" colspan="3">73.98</td>
<td valign="top" align="center" colspan="3">70.00</td>
<td valign="top" align="center" colspan="3">59.07</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center" colspan="3">83.43</td>
<td valign="top" align="center" colspan="3">100.00</td>
<td valign="top" align="center" colspan="3">97.13</td>
<td valign="top" align="center" colspan="3">79.54</td>
</tr>
<tr>
<td valign="top" align="left">Transfer Exp.</td>
<td valign="top" align="center">B.1</td>
<td valign="top" align="center">B.2</td>
<td valign="top" align="center">B.3</td>
<td valign="top" align="center">B.1</td>
<td valign="top" align="center">B.2</td>
<td valign="top" align="center">B.3</td>
<td valign="top" align="center">B.1</td>
<td valign="top" align="center">B.2</td>
<td valign="top" align="center">B.3</td>
<td valign="top" align="center">B.1</td>
<td valign="top" align="center">B.2</td>
<td valign="top" align="center">B.3</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">19.45</td>
<td valign="top" align="center">42.60</td>
<td valign="top" align="center">23.15</td>
<td valign="top" align="center">4.63</td>
<td valign="top" align="center">18.14</td>
<td valign="top" align="center">13.51</td>
<td valign="top" align="center">8.80</td>
<td valign="top" align="center">19.45</td>
<td valign="top" align="center">10.65</td>
<td valign="top" align="center">50.06</td>
<td valign="top" align="center">9.15</td>
<td valign="top" align="center">&#x02212;40.79</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">20.49</td>
<td valign="top" align="center">36.82</td>
<td valign="top" align="center">16.33</td>
<td valign="top" align="center"><bold>47.40</bold></td>
<td valign="top" align="center"><bold>61.30</bold></td>
<td valign="top" align="center"><bold>13.88</bold></td>
<td valign="top" align="center">41.65</td>
<td valign="top" align="center">36.16</td>
<td valign="top" align="center">&#x02212;5.50</td>
<td valign="top" align="center">38.25</td>
<td valign="top" align="center">44.82</td>
<td valign="top" align="center">6.57</td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">0.435</td>
<td valign="top" align="center">0.483</td>
<td valign="top" align="center">0.048</td>
<td valign="top" align="center">0.766</td>
<td valign="top" align="center">0.941</td>
<td valign="top" align="center">0.175</td>
<td valign="top" align="center">0.723</td>
<td valign="top" align="center">0.566</td>
<td valign="top" align="center">&#x02212;0.157</td>
<td valign="top" align="center">0.341</td>
<td valign="top" align="center">0.581</td>
<td valign="top" align="center">0.240</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.692</td>
<td valign="top" align="center">0.780</td>
<td valign="top" align="center">0.223</td>
<td valign="top" align="center">0.955</td>
<td valign="top" align="center">0.983</td>
<td valign="top" align="center">0.876</td>
<td valign="top" align="center">0.970</td>
<td valign="top" align="center">0.974</td>
<td valign="top" align="center">0.822</td>
<td valign="top" align="center">0.880</td>
<td valign="top" align="center">0.970</td>
<td valign="top" align="center">0.873</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T5">
<label>Table 5</label>
<caption><p>Experiment C. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression (N/A mean not applicable).</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center" colspan="2"><bold>AlexNet</bold></th>
<th valign="top" align="center" colspan="2"><bold>VGG-19</bold></th>
<th valign="top" align="center" colspan="2"><bold>ResNet-101</bold></th>
<th valign="top" align="center" colspan="2"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center" colspan="2">96.76</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">99.17</td>
<td valign="top" align="center" colspan="2">84.91</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">100.00</td>
</tr>
<tr>
<td valign="top" align="left">Transfer Exp.</td>
<td valign="top" align="center">C.1</td>
<td valign="top" align="center">C.2</td>
<td valign="top" align="center">C.1</td>
<td valign="top" align="center">C.2</td>
<td valign="top" align="center">C.1</td>
<td valign="top" align="center">C.2</td>
<td valign="top" align="center">C.1</td>
<td valign="top" align="center">C.2</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">10.01</td>
<td valign="top" align="center">32.93</td>
<td valign="top" align="center">&#x02212;5.26</td>
<td valign="top" align="center">19.50</td>
<td valign="top" align="center">3.56</td>
<td valign="top" align="center">24.77</td>
<td valign="top" align="center">43.83</td>
<td valign="top" align="center">34.06</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">13.06</td>
<td valign="top" align="center">61.20</td>
<td valign="top" align="center">&#x02212;5.26</td>
<td valign="top" align="center">5.84</td>
<td valign="top" align="center">4.88</td>
<td valign="top" align="center">33.14</td>
<td valign="top" align="center"><bold>77.20</bold></td>
<td valign="top" align="center"><bold>81.48</bold></td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">0.729</td>
<td valign="top" align="center">4.436</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">0.724</td>
<td valign="top" align="center">3.767</td>
<td valign="top" align="center">1.690</td>
<td valign="top" align="center">1.980</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.754</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">0.412</td>
<td valign="top" align="center">0.707</td>
<td valign="top" align="center">0.940</td>
<td valign="top" align="center">0.967</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T6">
<label>Table 6</label>
<caption><p>Experiment D. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center" colspan="2"><bold>AlexNet</bold></th>
<th valign="top" align="center" colspan="2"><bold>VGG-19</bold></th>
<th valign="top" align="center" colspan="2"><bold>ResNet-101</bold></th>
<th valign="top" align="center" colspan="2"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center" colspan="2">95.27</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">89.20</td>
<td valign="top" align="center" colspan="2">64.68</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">100.00</td>
<td valign="top" align="center" colspan="2">99.72</td>
</tr>
<tr>
<td valign="top" align="left">Transfer Exp.</td>
<td valign="top" align="center">D.1</td>
<td valign="top" align="center">D.2</td>
<td valign="top" align="center">D.1</td>
<td valign="top" align="center">D.2</td>
<td valign="top" align="center">D.1</td>
<td valign="top" align="center">D.2</td>
<td valign="top" align="center">D.1</td>
<td valign="top" align="center">D.2</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">34.26</td>
<td valign="top" align="center">72.61</td>
<td valign="top" align="center">86.58</td>
<td valign="top" align="center">85.64</td>
<td valign="top" align="center">36.33</td>
<td valign="top" align="center">44.87</td>
<td valign="top" align="center">87.67</td>
<td valign="top" align="center">86.85</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">79.86</td>
<td valign="top" align="center">96.30</td>
<td valign="top" align="center"><bold>94.68</bold></td>
<td valign="top" align="center"><bold>97.22</bold></td>
<td valign="top" align="center">46.76</td>
<td valign="top" align="center">50.70</td>
<td valign="top" align="center">93.34</td>
<td valign="top" align="center">86.36</td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">5.218</td>
<td valign="top" align="center">3.188</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">0.909</td>
<td valign="top" align="center">0.721</td>
<td valign="top" align="center">0.584</td>
<td valign="top" align="center">0.610</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.907</td>
<td valign="top" align="center">0.909</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">0.641</td>
<td valign="top" align="center">0.584</td>
<td valign="top" align="center">0.911</td>
<td valign="top" align="center">0.813</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T7">
<label>Table 7</label>
<caption><p>Experiment E. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center"><bold>AlexNet</bold></th>
<th valign="top" align="center"><bold>VGG-19</bold></th>
<th valign="top" align="center"><bold>ResNet-101</bold></th>
<th valign="top" align="center"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center">61.67</td>
<td valign="top" align="center">98.98</td>
<td valign="top" align="center">75.83</td>
<td valign="top" align="center">75.83</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center">94.91</td>
<td valign="top" align="center">100.00</td>
<td valign="top" align="center">99.26</td>
<td valign="top" align="center">98.98</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">38.05</td>
<td valign="top" align="center">87.71</td>
<td valign="top" align="center">45.88</td>
<td valign="top" align="center">83.51</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">52.57</td>
<td valign="top" align="center"><bold>92.78</bold></td>
<td valign="top" align="center">77.06</td>
<td valign="top" align="center">87.91</td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">0.639</td>
<td valign="top" align="center">3.514</td>
<td valign="top" align="center">1.134</td>
<td valign="top" align="center">0.967</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.967</td>
<td valign="top" align="center">0.897</td>
<td valign="top" align="center">0.976</td>
<td valign="top" align="center">0.967</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T8">
<label>Table 8</label>
<caption><p>Experiment F. Learning accuracies and transfer index (TFI, percentage) of the four CNNs (Epoch 1 and 20) and the slope and R of the regression.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Epoch&#x00023;<bold>\</bold>CNN</bold></th>
<th valign="top" align="center"><bold>AlexNet</bold></th>
<th valign="top" align="center"><bold>VGG-19</bold></th>
<th valign="top" align="center"><bold>ResNet-101</bold></th>
<th valign="top" align="center"><bold>Inception-ResNet-v2</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1 (learning)</td>
<td valign="top" align="center">80.46</td>
<td valign="top" align="center">100.00</td>
<td valign="top" align="center">89.81</td>
<td valign="top" align="center">70.19</td>
</tr>
<tr>
<td valign="top" align="left">20 (learning)</td>
<td valign="top" align="center">100.00</td>
<td valign="top" align="center">100.00</td>
<td valign="top" align="center">99.91</td>
<td valign="top" align="center">99.44</td>
</tr>
<tr>
<td valign="top" align="left">1 (TFI)</td>
<td valign="top" align="center">36.18</td>
<td valign="top" align="center">35.00</td>
<td valign="top" align="center">29.77</td>
<td valign="top" align="center">41.26</td>
</tr>
<tr>
<td valign="top" align="left">20 (TFI)</td>
<td valign="top" align="center">55.92</td>
<td valign="top" align="center"><bold>65.92</bold></td>
<td valign="top" align="center">46.74</td>
<td valign="top" align="center">13.11</td>
</tr>
<tr>
<td valign="top" align="left">Slope of regression</td>
<td valign="top" align="center">0.838</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">1.138</td>
<td valign="top" align="center">&#x02212;0.167</td>
</tr>
<tr>
<td valign="top" align="left">R of regression</td>
<td valign="top" align="center">0.764</td>
<td valign="top" align="center">N/A</td>
<td valign="top" align="center">0.824</td>
<td valign="top" align="center">0.393</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The bold values denote the best CNN model corresponding to the highest TFI values in each experiment</italic>.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec>
<title>Classification With Local Features: Different Shapes</title>
<p>In Experiment A, the CNNs were trained to discriminate squares vs. trapezoids. If the classification was based on angles of neighboring sides or parallelism of opposing sides, we expect the models to classify rectangles vs. trapezoids as squares vs. trapezoids in Experiment A.1 (see the red curves labeled &#x0201C;Transferring 1&#x0201D; in <xref ref-type="fig" rid="F1">Figure 1</xref>). In general, we expect that a trained model recognizes Column 1 images in the transfer dataset as Colum 1 images in the training dataset (<xref ref-type="table" rid="T2">Table 2</xref>) if the shared geometric invariants were used for classification. Note that the parallelograms appear in both columns, which partially explains that the accuracies of Transfer 2 and Transfer 3 are lower than that of Transfer 1 (<xref ref-type="fig" rid="F1">Figure 1</xref> and <xref ref-type="table" rid="T3">Table 3</xref>). The Inception-ResNet-v2 model performed the best and achieved 62.94, 42.26, and 20.68% of transfer index on the three transfer tests (<xref ref-type="table" rid="T3">Table 3</xref>).</p>
<p>In Experiment B, squares vs. parallelograms were used to train the CNNs. Trapezoids were listed in both columns, which caused lower accuracies of Transfer 1 and Transfer 3 (shown in red and green curves in <xref ref-type="fig" rid="F2">Figure 2</xref>). The VGG-19 model was the best and reached 47.4, 61.3, and 13.88% of transfer index (<xref ref-type="table" rid="T4">Table 4</xref>). The low transfer accuracies indicate that similarity extraction were not complete. Transfer of learning was the worst when classifying two unseen shapes (Transfer 3 in Experiment A and Experiment B, green curves in <xref ref-type="fig" rid="F1">Figures 1</xref>, <xref ref-type="fig" rid="F2">2</xref>). Note that the transfer curves were in &#x0201C;parallel&#x0201D; with the learning curves, indicating the CNNs did extract similarities between the training dataset and the transfer datasets. Linear regressions were performed to quantify the relationship between learning accuracy and transfer accuracy (<xref ref-type="supplementary-material" rid="SM1">Supplemental Materials</xref>). Slope and R of the regressions were used to assess the correlation between transfer accuracy and learning accuracy.</p>
</sec>
<sec>
<title>Classification With Global Features: No-Hole vs. One-Hole</title>
<p>The CNNs were trained to discriminate disks (no-hole) vs. rings (one-hole), and transfer of learning was tested on triangles vs. triangle-rings in Experiment C.1 and squares vs. square-rings in Experiment C.2, respectively. A perfect transfer would be expected if the presence of a hole was used to perform the classification. The Inception-ResNet-v2 performed the best (<xref ref-type="fig" rid="F3">Figure 3</xref>) and achieved 77.2 and 81.48% of transfer index for the two transfer tasks, respectively (<xref ref-type="table" rid="T5">Table 5</xref>).</p>
<p>Similar tests with irregular shapes were conducted in Experiment D. The VGG-19 model had high transfer index of 94.68 and 97.22% for the two transfer tasks, respectively (<xref ref-type="fig" rid="F4">Figure 4</xref> and <xref ref-type="table" rid="T6">Table 6</xref>). The high transfer performance were impressive when considering the fact of that the model had never been exposed to shapes in the transfer datasets, indicating that presence of a hole (a topological invariant) was likely extracted and used for classification.</p>
<p>Note that the transfer index values of irregular shapes are higher than that of regular shapes. More experiments are needed to identify the underlying mechanisms.</p>
</sec>
<sec>
<title>Classification With Global Features: Connectivity</title>
<p>In Experiment E, the four CNNs were trained with isosceles-triangles (connected) vs. its three sides separated (not connected), and transfer of learning were tested on irregular-triangles vs. its three sides separated. If connectivity (a topological invariant) was extracted during the learning, we would expect high transfer accuracies in this task. Among the four models, VGG-19 exhibited the highest transfer index of 92.78% (<xref ref-type="fig" rid="F5">Figure 5</xref> and <xref ref-type="table" rid="T7">Table 7</xref>).</p>
</sec>
<sec>
<title>Classification With Global Features: Inside/Outside Relationship</title>
<p>In Experiment F, the CNNs were trained to discriminate dot-inside-circle vs. dot-outside-circle, and transfer of learning was tested on dot-inside-square vs. dot-outside-square (<xref ref-type="fig" rid="F6">Figure 6</xref>). While the VGG-19 achieved a moderate transfer index of 65.92% (<xref ref-type="table" rid="T8">Table 8</xref>), the other three models, including the two advanced models, exhibited lower transfer index of 46.74 and 13.11%, respectively, indicating that inside/outside relationship was not extracted for classification during the learning phase.</p>
</sec>
</sec>
<sec id="s4">
<title>Summary and Discussion</title>
<p>In this study, we trained four CNNs to perform shape classification tasks based on local or global features and further examined how learning of classifying shapes in the training datasets was transferred to classifying shapes in the transfer datasets, which share local or global features with the training datasets. Experiments were designed to test two hypotheses on transfer of CNN learning. First, we wanted to test whether learning tasks based on local features have a higher transfer accuracy than that based on global features. This hypothesis was motivated by the local-to-global hierarchical organization of the CNN architecture, where local features are fully extracted and represented by the early layers. Second, we wanted to test whether the advanced CNNs have higher transfer accuracy for learning tasks based on global features than the early CNNs. This hypothesis was motivated by the fact that the advanced CNNs employ more layers and recurrent connections, which had advantages of extracting global features by integrating inputs from a large region. Although this is a pilot study using the ShapeNet approach, our results provide clear evidence that does not support the two hypotheses.</p>
<p>As expected, the CNNs performed well in the learning tasks, regardless classifying shapes using local features (Experiments A and B) or global features (Experiments C&#x02013;F). After 20 epochs of training, they classified the shapes in the training datasets at high accuracies (&#x0003E;95%), indicating feasibility of employing pre-trained CNNs to learn new tasks on a small dataset. However, their performance in the transfer experiments varied from task to task, and from model to model. Regarding the first hypothesis, we found that transfer accuracies for local features (Experiments A and B) were lower than those with global features (Experiments C&#x02013;F). In the example of Resnet101, after it was trained to discriminate squares from trapezoids, they were tested to discriminate rectangles from trapezoids. The squares share many local features with squares, such as four angles of 90 degrees, two pairs of sides parallel to each other, etc. If the model learned to discriminate the pair of shapes based on these shared features, we should expect a perfect transfer, TFI = 100%. Contrary to this prediction, we found that Resnet101 only had 53.36% transfer to rectangles and 24.94% transfer to parallelograms. On the other hand, after Resnet-101 was trained to discriminate regular triangle from their separated sides, they were tested to discriminate irregular triangles from their separated sides. If Restnet101 learned to discriminate connected shape from disconnected shapes (i.e., connectivity, a topological invariant), we would expect to observe a high transfer accuracy. Indeed, it showed a transfer index of 77.06%, much higher than the transfer accuracy based on local features. This finding is counterintuitive, suggesting a lack of understanding of the mechanisms underlying CNN image classification. However, the ShapeNet analysis provides a quantitative approach to gain insight into this difficult problem. Future studies will systematically manipulate the differences between the learning datasets and the transfer datasets to tease out the features used in the learning tasks.</p>
<p>Regarding the second hypothesis, we found that the more advanced CNNs do not have higher transfer accuracies based on global features. For example, Inception-ResNet-v2 has 192 layers and VGG19 has 19 layers. However, VGG19 exhibited higher transfer accuracies on learning based on global features, such as connectivity (<xref ref-type="table" rid="T7">Table 7</xref>, 92.78 vs. 87.91%) and inside-outside relationship (<xref ref-type="table" rid="T8">Table 8</xref>, 65.92 vs. 13.11%). Among the three global (topological) invariants, we found that inside/outside relationship had the lowest transfer performance in the CNNs (<xref ref-type="fig" rid="F7">Figure 7</xref>). In the training datasets of dot-inside-circle/dot-outside-circle, circle size, circle position and dot position with respect to the circle varied from image to image. The high learning accuracies (&#x0003E;99%) indicate that the CNNs successfully extracted the common features of the learning datasets. However, after only replacing circle by square, the models performed poorly in classifying dot-inside-square and dot-outside-square. The most advanced CNN model only had a transfer index of 13.11%. This counterintuitive result suggests that the CNNs achieved shape classification by adopting different strategies than extracting inside/outside relationship. Note that different from the other tasks, where the transfer curves are in parallel with the learning curves, indicating extracting shared properties between the training datasets and the transfer datasets (<xref ref-type="supplementary-material" rid="SM1">Supplementary Figures 1, 2</xref>), the transfer curve for the Inception-ResNet-v2 did not increase in parallel with the learning curve. In fact, the correlation coefficient between the transfer accuracy and learning accuracy was &#x02212;0.17. Among the three tested global features, inside-outside relationship seems to be a limitation of the CNNs, which is not overcome by increasing depth and recurrent connections. This task may be an effective benchmark for developing new CNNs that can extract global features under various conditions.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>Evaluation and comparison of transfer learning of the four CNN models using transfer index.</p></caption>
<graphic xlink:href="fncom-15-637144-g0007.tif"/>
</fig>
<p>In summary, this pilot study presented a proof of concept of the &#x0201C;ShapeNet&#x0201D; approach that can be used to elucidate the mechanisms underlying CNN image classification. Rejecting the two intuitive hypotheses indicate clear knowledge gaps in our understanding of CNN image processing. Since the same stimuli and tasks can be used to study visual information processing in humans and monkeys, the &#x0201C;ShapeNet&#x0201D; approach may be an effective platform to compare CNN vision and biology vision. In fact, in addition to the well-known local-to-global approach, there are accumulating evidence for an alternative global-to-local approach, such as object-superiority (Weisstein and Harris, <xref ref-type="bibr" rid="B14">1974</xref>), early detection of topological properties (Chen, <xref ref-type="bibr" rid="B1">1982</xref>, <xref ref-type="bibr" rid="B2">1990</xref>), and rapid processing of global features in non-human primates (Huang et al., <xref ref-type="bibr" rid="B4">2017</xref>). While the exact underlying mechanisms and differences between CNN models and primate visual systems are unknown, the results suggested that the primate visual systems process local and global features in different ways than the CNNs. By recognizing the differences, future studies will be focused on extending the analysis to other local/global geometrical invariants to understand the CNNs and the biological visual functions. In particular, we will test how humans and monkeys transfer their learning based on inside/outside relationships (topological invariant). We believe comparison between the CNN vision and biological vision using the &#x0201C;ShapeNet&#x0201D; approach will provide insight into a better understanding of visual information processing in both systems.</p>
</sec>
<sec sec-type="data-availability-statement" id="s5">
<title>Data Availability Statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation is available at <ext-link ext-link-type="uri" xlink:href="http://r2image.com/transfer_learning/datasets.zip">http://r2image.com/transfer_learning/datasets.zip</ext-link>.</p>
</sec>
<sec id="s6">
<title>Author Contributions</title>
<p>YZ analyzed all images with four CNN models and drafted the sections regarding CNN method and models. JH created all geometric images and figures. He also analyzed CNN results. TC and YO assisted in running all experiments. WZ designed all experiments and drafted the sections regarding hypotheses and result discussion. All authors contributed to the article and approved the submitted version.</p>
</sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
</body>
<back>
<sec sec-type="supplementary-material" id="s7">
<title>Supplementary Material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fncom.2021.637144/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fncom.2021.637144/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Data_Sheet_1.PDF" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chen</surname> <given-names>L.</given-names></name></person-group> (<year>1982</year>). <article-title>Topological structure in visual perception</article-title>. <source>Science</source> <volume>218</volume>, <fpage>699</fpage>&#x02013;<lpage>700</lpage>. <pub-id pub-id-type="doi">10.1126/science.7134969</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chen</surname> <given-names>L.</given-names></name></person-group> (<year>1990</year>). <article-title>Holes and wholes: a reply to Rubin and Kanwisher</article-title>. <source>Percept. Psychophy.</source> <volume>47</volume>, <fpage>47</fpage>&#x02013;<lpage>53</lpage>. <pub-id pub-id-type="doi">10.3758/BF03208163</pub-id><pub-id pub-id-type="pmid">2300423</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>He</surname> <given-names>K.</given-names></name> <name><surname>Zhang</surname> <given-names>X.</given-names></name> <name><surname>Ren</surname> <given-names>S.</given-names></name> <name><surname>Sun</surname> <given-names>J.</given-names></name></person-group> (<year>2016</year>). <article-title>&#x0201C;Deep residual learning for image recognition. 2016,&#x0201D;</article-title> in <source>IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</source> (<publisher-loc>Las Vegas, NV</publisher-loc>), <fpage>770</fpage>&#x02013;<lpage>778</lpage>. <pub-id pub-id-type="doi">10.1109/CVPR.2016.90</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Huang</surname> <given-names>J.</given-names></name> <name><surname>Yang</surname> <given-names>Y.</given-names></name> <name><surname>Zhou</surname> <given-names>K.</given-names></name> <name><surname>Zhao</surname> <given-names>X.</given-names></name> <name><surname>Zhou</surname> <given-names>Q.</given-names></name> <name><surname>Zhu</surname> <given-names>H.</given-names></name> <etal/></person-group>. (<year>2017</year>). <article-title>Rapid processing of a global feature in the ON visual pathways of behaving monkeys</article-title>. <source>Front. Neurosci</source>. <volume>11</volume>:<fpage>474</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2017.00474</pub-id><pub-id pub-id-type="pmid">28890683</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hubel</surname> <given-names>D. H.</given-names></name> <name><surname>Wiesel</surname> <given-names>T. N.</given-names></name></person-group> (<year>1977</year>). <article-title>Ferrier lecture. Functional architecture of macaque monkey visual cortex</article-title>. <source>Proc. B. Soc. Lond. B</source>. <volume>198</volume>, <fpage>1</fpage>&#x02013;<lpage>59</lpage>. <pub-id pub-id-type="doi">10.1098/rspb.1977.0085</pub-id><pub-id pub-id-type="pmid">20635</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Hussain</surname> <given-names>M.</given-names></name> <name><surname>Bird</surname> <given-names>J. J.</given-names></name> <name><surname>Faria</surname> <given-names>D. R.</given-names></name></person-group> (<year>2018</year>). <article-title>&#x0201C;A study on CNN transfer learning for image classification,&#x0201D;</article-title> in <source>Advances in Computational Intelligence Systems. UKCI 2018. Advances in Intelligent Systems and Computing, Vol. 840</source>, eds A. Lotfi, H. Bouchachia, A. Gegov, C. Langensiepen and M. McGinnity (<publisher-loc>Cham</publisher-loc>: <publisher-name>Springer</publisher-name>), <fpage>191</fpage>&#x02013;<lpage>202</lpage>.</citation></ref>
<ref id="B7">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Krizhevsky</surname> <given-names>A.</given-names></name> <name><surname>Sutskever</surname> <given-names>I.</given-names></name> <name><surname>Hinton</surname> <given-names>G. E.</given-names></name></person-group> (<year>2012</year>). <article-title>&#x0201C;ImageNet classification with deep convolutional neural networks,&#x0201D;</article-title> <source>Proceedings of the 25th International Conference on Neural Information Processing Systems&#x02014;Volume 1</source> (<publisher-loc>Lake Tahoe, Nevada</publisher-loc>), <fpage>1097</fpage>&#x02013;<lpage>1105</lpage>.</citation></ref>
<ref id="B8">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Liu</surname> <given-names>S.</given-names></name> <name><surname>John</surname> <given-names>V.</given-names></name> <name><surname>Blasch</surname> <given-names>E.</given-names></name> <name><surname>Liu</surname> <given-names>Z.</given-names></name> <name><surname>Huang</surname> <given-names>Y.</given-names></name></person-group> (<year>2018</year>). <article-title>&#x0201C;IR2VI: enhanced night environmental perception by unsupervised thermal image translation,&#x0201D;</article-title> in <source>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops</source> (<publisher-loc>Salt Lake City, UT</publisher-loc>), <fpage>1153</fpage>&#x02013;<lpage>1160</lpage>. <pub-id pub-id-type="doi">10.1109/CVPRW.2018.00160</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Marr</surname> <given-names>D.</given-names></name></person-group> (<year>1982</year>). <source>Vision: A Computational Investigation Into the Human Representation and Processing of Visual Information</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Freeman</publisher-name>.</citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Russakovsky</surname> <given-names>O.</given-names></name> <name><surname>Deng</surname> <given-names>J.</given-names></name> <name><surname>Su</surname> <given-names>H.</given-names></name> <name><surname>Krause</surname> <given-names>J.</given-names></name> <name><surname>Satheesh</surname> <given-names>S</given-names></name> <name><surname>Ma</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2015</year>). <article-title>ImageNet large scale visual recognition challenge</article-title>. <source>Int. J. Comput. Vis.</source> <volume>115</volume>, <fpage>211</fpage>&#x02013;<lpage>252</lpage>. <pub-id pub-id-type="doi">10.1007/s11263-015-0816-y</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Simonyan</surname> <given-names>K.</given-names></name> <name><surname>Zisserman</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <source>Very Deep Convolutional Networks for Large-Scale Image Recognition, arXiv Technical Report</source>, <publisher-name>California Institute of Technology</publisher-name></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Szegedy</surname> <given-names>C.</given-names></name> <name><surname>loffes</surname></name> <name><surname>Vanhoucke</surname> <given-names>V.</given-names></name> <name><surname>Alemi</surname> <given-names>A. A.</given-names></name></person-group> (<year>2017</year>). <article-title>&#x0201C;Inception-v4, Inception-ResNet and the impact of residual connections on learning,&#x0201D;</article-title> <source>AAAI</source> <volume>2017</volume>, <fpage>4278</fpage>&#x02013;<lpage>4284</lpage>.</citation></ref>
<ref id="B13">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Szegedy</surname> <given-names>C.</given-names></name> <name><surname>Vanhoucke</surname> <given-names>V.</given-names></name> <name><surname>Ioffe</surname> <given-names>S.</given-names></name> <name><surname>Shlens</surname> <given-names>J.</given-names></name> <name><surname>Wojna</surname> <given-names>Z.</given-names></name></person-group> (<year>2016</year>). <article-title>&#x0201C;Rethinking the inception architecture for computer vision,&#x0201D;</article-title> in <source>2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</source> (<publisher-loc>Boston, MA</publisher-loc>), <fpage>2818</fpage>&#x02013;<lpage>2826</lpage>. <pub-id pub-id-type="doi">10.1109/CVPR.2016.308</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Weisstein</surname> <given-names>N.</given-names></name> <name><surname>Harris</surname> <given-names>C. S.</given-names></name></person-group> (<year>1974</year>). <article-title>Visual detection of line segments: an object-superiority effect</article-title>. <source>Science</source> <volume>186</volume>:<fpage>752</fpage>. <pub-id pub-id-type="doi">10.1126/science.186.4165.752</pub-id><pub-id pub-id-type="pmid">704284</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zheng</surname> <given-names>Y.</given-names></name> <name><surname>Huang</surname> <given-names>J.</given-names></name> <name><surname>Chen</surname> <given-names>T.</given-names></name> <name><surname>Ou</surname> <given-names>Y.</given-names></name> <name><surname>Zhou</surname> <given-names>W.</given-names></name></person-group> (<year>2019</year>). <article-title>&#x0201C;CNN classification based on global and local features,&#x0201D;</article-title> in <source>Proceedings of the. SPIE 10996, Real-Time Image Processing and Deep Learning 2019</source>, <fpage>109960G</fpage>. <pub-id pub-id-type="doi">10.1117/12.2519660</pub-id></citation></ref>
</ref-list>
<fn-group>
<fn id="fn0001"><p><sup>1</sup>Very Deep Convolutional Networks for Large-Scale Visual Recognition, <ext-link ext-link-type="uri" xlink:href="http://www.robots.ox.ac.uk/simvgg/research/very_deep/">http://www.robots.ox.ac.uk/\simvgg/research/very_deep/</ext-link>.</p></fn>
</fn-group>
</back>
</article>