%!TEX program = xelatex
%!TEX encoding = UTF-8

\documentclass[
  oneside,
  degree=bachelor,
  fullwidthstop=false,
  fontset=auto,
  times=false,
  minted=false,
  biblatex=true,
]{tongjithesis}

\tjbibresource{bib/note.bib}

% Set thesis information
\school{计算机科学与技术学院}
\major{计算机科学与技术}
\student{1234567}{张三}
\thesistitle{基于机器学习的图像分类研究}{——以交通标志识别为例}
\thesistitleeng{Research on image classification based on machine learning}{——Take traffic sign recognition as an example}
\thesisadvisor{李四 教授}
\thesisdate{2026}{4}{20}

% 信息说明页配置
\infotype{thesis}
\infoabstract{本文研究了基于机器学习的图像分类技术，并以交通标志识别为应用场景进行了实验验证。}
\infothesiswords{10000}
\infomaterials{\item 程序源代码}

\begin{document}

% Generate cover and info page
\MakeCover
\cleardoublepage
\MakeInfoPage
\cleardoublepage

% Front matter: abstract and table of contents
\frontmatter
\MakeAbstract{
    本文研究了基于机器学习的图像分类技术，并以交通标志识别为应用场景进行了实验验证。
    图像分类是计算机视觉中的基础任务，具有广泛的应用前景。本文首先综述了图像分类领域的经典算法和最新进展，
    然后提出了一种改进的卷积神经网络模型用于交通标志识别。实验结果表明，所提出的方法在准确率和计算效率方面
    均取得了良好的性能。
}{机器学习; 图像分类; 卷积神经网络; 交通标志识别}

% English Abstract
\MakeAbstractEng{
    This paper investigates image classification techniques based on machine learning,
    with traffic sign recognition as an application scenario for experimental validation.
    Image classification is a fundamental task in computer vision with extensive application prospects.
    This paper first reviews classic algorithms and recent advances in the field of image classification,
    then proposes an improved convolutional neural network model for traffic sign recognition.
    Experimental results demonstrate that the proposed method achieves good performance in terms of
    accuracy and computational efficiency.
}{Machine Learning; Image Classification; Convolutional Neural Network; Traffic Sign Recognition}

% Table of contents
\clearpage
\tableofcontents
\cleardoublepage

% Main matter: thesis chapters
\mainmatter

\chapter{引言}

图像分类是计算机视觉中的基础任务之一，其目标是将图像分配到预定义的类别中。
随着深度学习技术的发展，图像分类的性能得到了显著提升。
本文研究基于机器学习的图像分类技术，并以交通标志识别为例进行应用研究。

\section{研究背景}

交通标志识别是自动驾驶系统的重要组成部分，它能够帮助车辆理解道路环境，遵守交通规则。
准确、实时的交通标志识别对于提高自动驾驶安全性具有重要意义。

% 代码示例
\begin{listing}[!htb]
\begin{minted}{python}
import torch
import torch.nn as nn

class CNN(nn.Module):
    def __init__(self, num_classes=43):
        super(CNN, self).__init__()
        self.conv1 = nn.Conv2d(3, 32, kernel_size=3, padding=1)
        self.relu = nn.ReLU()
        self.pool = nn.MaxPool2d(kernel_size=2, stride=2)
        self.fc = nn.Linear(32 * 16 * 16, num_classes)

    def forward(self, x):
        x = self.pool(self.relu(self.conv1(x)))
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

# 创建模型实例
model = CNN()
print(model)
\end{minted}
\caption{用于交通标志识别的简化卷积神经网络模型}
\label{listing:cnn}
\end{listing}

\chapter{结论}

本文提出了一种高效的交通标志识别方法，在准确率和计算效率方面均表现出色。
未来工作将探索模型的进一步轻量化，以及在嵌入式设备上的部署方案。

\makereferences

\backmatter
\chapter*{谢辞}
\addcontentsline{toc}{chapter}{谢辞}
感谢指导老师的悉心指导。

\end{document}
