Journal Reflection #3: Insights into your first ML project

Please use your reply to this blog post to detail the following:

  1. Please start with a full description of the nature of your first ML project.
  2. What was your primary motivation to explore the project you completed?
  3. Share some insights into what predictions you were able to make on the dataset you used for your project.
  4. What new skills did you pick up from this project? For example, if you used Jupyter Notebooks, had you used that technology before? Did you encounter any weird bugs, twists, or turns in your dataset that caused issues? How did you resolve those issues?
  5. What was the most challenging part of mining and refining your dataset (while you’re at it, you should talk about where you got or mined your dataset, if you connected to an API)?
  6. What types of conclusions can you derive from the images/graphs you created with your project? If you didn’t create charts or graphs and instead explored things like Markov Chains, how much work do you think you need to do to further refine your project to make its output more realistic?
  7. Given your experience with this project, if you had the opportunity to do anything for your next ML enterprise, what would you explore? Would you try to market your findings and sell them? Why or why not?

Take the time to look through the project posts of your classmates. You don’t have to comment on the posts of your classmates, but if you want to give them praise or just comment on their project if you found it cool, please do.

This entry was posted in Uncategorized. Bookmark the permalink.

11 Responses to Journal Reflection #3: Insights into your first ML project

  1. Solomon Hornstein says:

    1.
    I built a model that used the 2026 MLB regular season to predict the 2026 playoffs as they happened. It predicts who wins each game, then uses those predictions to play out every playoff series. I saved each prediction to GitHub before the games were played, so I couldn’t cheat with hindsight. My final model looks at three things: each team’s run differential, its last 10 games, and its starting pitchers.

    2.
    I love playing and watching baseball, so this was a chance to use computer science on something I really care about. The playoffs also started the same day I started the project, so I could make real predictions and see if they came true.

    3.
    My model’s best call was picking the Rays to beat the Guardians in 6 games, which is exactly what happened. It also picked the Brewers to beat the Dodgers, and the Brewers swept them. For the World Series, my model picks the Brewers in 6. I also compared my model with a betting market: the market’s favorite was the Dodgers, but my model liked the Brewers more.

    4.
    I learned how to pull data from a live API, train a model with scikit-learn, run simulations, and build a display with Pygame. My biggest bug was a game that MLB listed twice because it was suspended and finished the next day. I found it because my data had extra rows, and I fixed it so the game only counted once. I also had to install a package correctly before my code would run at all.

    5.
    All my data came from MLB’s official API: every regular-season game, plus the starting pitchers for each one. The hardest part was making sure the model only used information from before each game, so it couldn’t “see the future.” I also had to deal with early-season stats being mostly luck, since a team that starts 3–0 isn’t really perfect.

    6.
    My graphs showed that adding starting pitchers made the model better in 4 of 5 months, especially late in the season. They also showed that baseball is very random: even good models only predict about 58% of games correctly. My model mostly agreed with the betting market, except about the Dodgers and Brewers.

    7.
    Next, I’d add more seasons of data and more stats, like bullpen quality. I wouldn’t try to sell it yet, because one good postseason doesn’t prove my model can beat the betting market, which knows things my model doesn’t, like injuries.

    • Yash Mehta says:

      I really liked your project Solomon. I thought that your approach to the project was actually really interesting, and the way you implemented the live api and the gui. One thing that i would really find interesting if you perhaps continued this project would be to incorporate lineups and also whether certain people on the team have injuries or not. This can be done through news scraping API’s, or just a llm built in that gives a score to each team. but great job and your presentation was fire as well. very aesthetic

  2. Kingston Hurt says:

    1.
    I created a polynomial regression model that can work with any relationship between two variables. It imports a list of input data and answer data from a csv file. The model predicts an output, then a loss value is calculated. The derivative of the loss is then taken with respect to each weight of the polynomial terms. The weights are adjusted based on which direction decreases the loss and proportional to the learning rate. This process repeats until the user-set limit is reached or all outputs are predicted within a user-defined threshold. Additionally, I added a function to find the best learning rate. It starts with a specified learning rate and changes it a number of times. It does this until either of the stop conditions are met. For each of the learning rates, it takes the average number of steps(updating all weights once) that it took some number of trials each to find the solution. That average step is then compared to the other learning rates and the best one is selected as the best learning rate. All output displays in the console, clearly indicating if the model predictions are close to the actual answers and the percent error. If graphed you are able to fit the polynomial curve to fit the data. After the deadline I wanted to keep working so I added a UI that more easily allows the user to set parameters.

    2.
    My primary motivation was to intuitively understand the underlying concepts of how AI works. I only used AI to assist in debugging and small sections, however all the core AI logic I did manually.

    3.
    For my testing I used housing data, but the model can be used on anything else. I just used the population and median housing price and had the model fit that data. A polynomial model isn’t best for this dataset because it has so much spread, but it still has the general trend and with fewer data points gets very close to matching. Currently it can predict the average median housing price based on population and it shows that it has some correlation, but only is not the main factor.

    4.
    I’ve never imported data in python from a csv. I’ve also never made functional AI. I’ve also never used derivatives in a programming context which came with a number of bugs since I was trying to do it with a symbolic derivative calculator. Later I found it best to manually find the derivative equations first so they don’t need to be found every time.

    5.
    I got the dataset from Kaggle and it was easy to download, I mostly had to get used to the pandas library and syntax for grabbing the specific data I wanted.

    6.
    I think its output is fairly realistic. It just needs data that only has two variables, one independent and one dependent. The graphs it plotted showed its predictions following the general trend of the data. I think it could definitely be refined for efficiency and speed. It would also be interesting to have multiple of these models as nodes connected together into a network.

    7.
    I think I would want to make something related to robotics, howeverI wouldn’t want to sell my findings if it was going to be used for bad purposes. Creating an AI model that could convert an AI network to equations and a human-readable hardcoded system would be really useful and is probably what I would work toward.

    • Yash Mehta says:

      Great project Kingston! Your project is clearly difficult and uses lots of concepts that are foreign to me, but you explained it well. I found it interesting how u used the learning rate and adjusted it based on how the model was performing. I found this similar to reinforcement learning models, as you constantly have to change the learning rate (i think its called the epsilon or something) to get it to predict it’s next move in a certain way until it achieves it’s goal. The model being able to use multiple different types of datasets is really cool as well. Great job on your project!

    • Ganapathi Pamula says:

      Kingston, I liked that you put the effort to build the polynomial regression from scratch instead of just calling a library. Writing the gradient updates yourself is a lot harder, and the learning rate search plus the UI make it something other people could actually use. Testing it on both population and housing data was a good way to show it works on more than one kind of problem. Your idea about turning neural networks into readable equations is really interesting too. I’d be curious how far that could go with bigger networks. Nice work!

  3. Gabriel Whangbo-Olvera says:

    1. I created a K-Pop view count predictor for videos using the YouTube API (data was pulled 10.06.2026). The data comes from 26 official group channels (e.g. BTS, Blackpink, Twice, etc.) and labels (e.g. Hybe, SM, JYP). The model uses a random forest of 100 trees with leaf size 5, meaning it has 100 decision trees (asking yes/no questions like “Is it a MV?”) where each node has 5 data samples; the prediction is taken from the average of the trees. The leaf size minimizes the noise of the prediction because it forces each endpoint to have at least 5 samples. This model resulted in an R2 of 0.711 and mean average error of 0.268, though I also created a 300 tree / leaf size 1 model that scored 0.741. This comes together in the local interface that uses Streamlit and allows the user to input the group, title of the video, type of video (e.g. MV, behind the scenes, short, etc.), release date and time, length, and the time period you’re counting views. The interface will show the predicted amount of views, the 80% range of predictions, and comparisons with other types of videos from the same group.
    2. I enjoy listening to K-Pop and was curious about what the logistics of a group might be; for example, what do marketers look at to determine the success of a new comeback song? Of course, my model is certainly a lot more rudimentary than whatever actual labels use, but I thought the idea of attaching numbers to the popularity and virality of the videos was interesting.
    3. The three most important factors were the channel’s earlier performance, then video type, and the channel itself. This is less a referendum on what makes videos more popular, but what weights the model used; however, this suggests that already well-known groups are often guaranteed a higher minimum amount of views regardless of the “quality” of the videos. Of course, music videos tend to get more views than shorts or teasers. Since the culture of K-Pop is about sticking with a small selection of groups, it may be that there is a loyal fanbase for each group that ensures videos get consistent views.
    The predictions were best for behind the scenes videos and shorts due to the large quantity of them and the relatively consistent viewership; in contrast, music videos were limited in the data set and the model struggled to account for mega hits with hundreds of millions of views (ex. How You Like That by Blackpink). The error for behind the scenes was 0.19, while the model underestimated by up to 7x for the most viewed music videos. The typical error overall was about 1.9x.
    4. A skill I practiced was categorizing data. Pulling the data from the YouTube API on its own isn’t very helpful in predicting the view count for a given video on a K-Pop group’s channel because long-form blogs or shorts will skew the view counts down from the much more viral music videos. To account for this, I had to categorize the videos into types like music video, behind the scenes, shorts, dance practice, etc. This was difficult because there is no standard format for these, and the only piece of data that can really help determine this is the title (with clues like “M/V”, “mv”, “MV”, etc.). While length of the video may also help, it’s not entirely reliable. This issue got worse when I added the label channels as well, since those channels tend to also have many videos not related to any particular group that may be read as a music video (or any other type) when it isn’t. I ended up creating a separate list of accepted groups and filtered out non-groups and non-K-Pop groups (like J-Pop collaborations). This method helped especially with the interface since the app pulls from the list of accepted groups, though it may also have artificially limited the data because what counts as a particular video type isn’t clear cut.
    5. The most difficult part of mining and refining the dataset was distinguishing between labels and channels. A lot of K-Pop groups publish videos jointly with their label’s official channel, which creates duplicates in the data because I pulled from each channel individually using the YouTube API. The issue with the labels is that they also have videos that the individual group channels don’t have, which also makes it harder to categorize whether a series of videos on a label is about a group or something else. For example, after one of the initial cleanups there were a bunch of “groups” that the model was counting that weren’t actual groups but the names of series and podcasts the label was running. My solution was to A) require there to be a minimum number of videos with the group name in it and B) to create a list of accepted groups/artists to filter out the mistakes. As a result, the model isn’t built on all the possible groups that a label may own and there may still be mistakes in the categorization.
    6. The graphs tell us a couple things. For example, the median views by video type graph shows that music videos by far get the highest median views out of any video type; this was expected given that music videos are the main release for a new song, especially on YouTube (in contrast, Spotify doesn’t really have videos of any sort). The views per day by release year graph suggests that new videos collect views more quickly; however, this does not mean smaller groups like Hearts2Hearts are more popular than larger ones like BTS, only that newer groups’ median is inflated because they’re new. The feature importance graph shows that earlier performance, video type, and channel have the most predictive weight, though some features like “has Korean text in the title” may overlap with channel name. Of course, the graphs can only show correlations—not cause and effect—and in the case of feature importance don’t account for the hype or viral trends that surround a release.
    7. I would do a similar project that instead focuses on the qualities of a K-Pop song to predict its streams. This would entail using data about the tempo, beats, styles, dances, etc. but also data similar to what I used in this project like a group’s previous performance. The project would differ in that it doesn’t look at any other type of content besides songs themselves (so no teasers, behind the scenes, shorts, etc.) but it would look at non-comeback songs and songs without music videos (like B-lists). There’d be no downside to trying to market it, though I imagine there’s not many people who are curious about this for commercial reasons and don’t already have some model.

  4. Yash Mehta says:

    For my first machine learning project, I built a distributed, tiny Large Language Model running across a chain of ESP32 S3 microcontrollers. Instead of relying on cloud servers or massive GPUs, I trained it from scratch to act as a Gordon Ramsay impersonator that roasts your code. When you run into an error in your IDE, you prompt the microcontroller chain with it, and it responds with a brutal insult about your programming skills.

    My primary motivation was a mix of wanting to push the limits of edge hardware and making debugging a bit more entertaining. Staring at compiler errors all day gets frustrating, so I thought it would be funny if my hardware yelled at me like a frustrated chef whenever I missed a semicolon or caused a crash. I also found it interesting cramming a custom trained LLM onto microcontrollers that cost just a few dollars each felt like a challenge to understand how transformers and quantization work.

    I did not use a pre packaged dataset like TinyStories (even though some template files were left in the branch). instead, I built and mined my own dataset and trained the model locally. In the context of LLMs, predictions involve forecasting the next token in a sequence based on prompt context. Once trained on my custom dataset of IDE errors and ramsay style rants, feeding the ESP32 chain a prompt like a SyntaxError or a NullPointerException makes the microcontrollers predict and string together a custom roast.

    I picked up several new skills along the way by bridging Pythonbased ML training and C/C++ embedded systems. The first was local LLM training and quantization. I trained an LLM locally on my device using my custom dataset and quantized the weights so they could fit into the ESP32’s flash memory and PSRAM. The second one was UART configuration. I used UART serial communication to link multiple microprocessors together, creating a custom setup where each board handles a piece of the neural network. Lastly, i used embedded memory management. I managed memory manually using ESP IDF and CMake, dealing with raw byte arrays and pointers to fit model weights onto constrained hardware.

    The most challenging part of mining and refining the dataset was gathering enough consistent training pairs without the model just memorizing a few catchphrases. Since there is no public API for Gordon Ramsay code roasts, I had to curate real IDE error logs paired with insults myself. Early versions of the dataset caused the model to loop or lose context because of the compression limits, which I fixed by cleaning up the training data formatting, adjusting response lengths, and changing inference parameters. On the hardware side, UART synchronization was really hard to get right. if one ESP32 sent data faster than the next could read it, the buffer would overflow and corrupt the output. I resolved this by tuning baud rates and implementing a protocol between the boards.

    Because this was a text generation and hardware project, I did not generate traditional data science graphs, focusing instead on the text output itself. While using a transformer architecture is a massive step up from a Markov Chain because it uses attention mechanisms to understand context, the output still needs refinement to become more realistic. It needs to be more Intelligent, due to memory constraints on microcontrollers, the model’s vocabulary and reasoning are limited. Moving to 4 bit quantization and expanding the dataset with thousands more compiler errors would allow for a smarter model in the same footprint.
    Given this experience, for my next ML project, I would use larger microprocessors to fit bigger models and build a complete standalone hardware project, which could be a desktop debugging buddy sitting by the monitor with a small speaker that automatically reads IDE output and roasts failed builds in real time.

    I would also try to market these ideas because fitting an LLM on a microcontroller is a unique niche with big potential. Running completely offline, costing pennies to power, and requiring no cloud subscription opens up possibilities for novelty developer gadgets, smart interactive toys, or offline smart home voice assistants.

  5. Garrett Zhou says:

    1. My first ML project for this class aimed to predict a soccer player’s market value based on several given inputs such as age, goals, assists, red cards, and trophies won. This is a relevant issue because player valuation is messy; different sites have different valuations for the same player, making it a very inconsistent avenue. However, its useful for coaches and fans to estimate the value of a player and how much should be given for them.
    I collected data from Tranfermarkt, which is the most trusted source for player valuations online. However, they do not have downloadable datasets, so I went to Kaggle and found a dataset of Transfermarkt data that I used. This data didn’t have trophy and achievement data, so I scraped the necessary data from Transfermarkt’s site. After collecting the data, I cleaned and filtered it to obtain about 20,000 training rows. I seperated the data with a 70-15-15 split, which means that I used 70% of the data to train the model, 15% to validate it, and 15% to test the model. I then log transformed the valuation output and the previous valuation term so that the linear fit was ore appropriate.
    I tested three machine learning algorithms: Ridge Regression, Random Forest, and Gradient Boosting. I used statistical terms such as R^2, mean abosolute error, and root mean squared error to find which algorithm was best for my data. I ended up having two main models: one that included a log lag term (previous market valuation), and one that excluded that and only contained performance and player bio stats. I tested all three algorithms on both models to see which would be optimal for each model. I ended up getting that Gradient Boosting was the most reasonable algorithm for both models even though for the full model, Ridge Regression had a higher R^2 value. What I gathered from this analysis was that previous valuation is a key term, but performance statistics can still do a good job at predicting valuation.
    I then conducted a test file for Jude Bellingham, one of the world’s brightest midfield stars. I ran all three algorithms for both models and saw how his valuation changed as his age changed. This helped reinforce the conclusion that using the Gradient Boosting algorithm was the best choice because Ridge clung too closely to the previous valuation and still valued Jude at over 110 million euros as a 35 year old player, which is simply unrealistic.
    Finally, when the user runs the program, I generate a UI where the user can enter stats for their ‘player’ to take and the program will give a predicted market value. They can also exclude the stats they want to exclude; for example, they can choose to refit the Gradient Boosting model without previous value or trophies.

    2. My primary motivation for me to complete the project that I did is my love of soccer and also my interest in transfers. Transfers can be highly criticized; maybe a club paid too much for a certain player, or the club let a player go for too little. Additionally, as a I conducted more research, I realized that this was a natural supervised regression problem; supervised because inputs correlated to outputs, and regression because the outputs are continuous, not categorical. This made it ideal for my ML project.

    3. I realized that gradient boosting was the best model for my dataset, although it was close between it, random forest, and ridge regression. For insights into the data, I had a few notable ones. First, previous valuation, when included, was the most significant term by far. Without it, the R^2 of the model drops from ~0.96 to ~0.70. Additionally, the importance of outliers and hyper-extrapolation became noticeable to me. When I first started with my UI and entered in Lamine Yamal’s stats, he was such an outlier that it predicted his market value to be over 1 billion euros. I decided to cap valuations at the maximum of the dataset (Lamine Yamal – 200 million euros). Entering in outlier data was a weakness of my model, and I fixed it by capping results to be realistic. This only happened when previous value was excluded.

    4. I picked up a few new skills from this project. First, I needed to learn to efficiently scrape data from the Transfermarkt site. I ran into a few errors at first as the site banned me due to too many requests. Then, I implemented curl_cff, beautifulsoup, and a delay between scrape attempts for cloudflare bypass. I also learned how to use matplotlib to create insightful and interesting plots for both me and the user of the program to see. I used some of these plots and test files to choose which ML algorithm should be preferred, and I believed that some of them woiuld be insigtful for users as well.

    5. The most challenging part of refining the data was dropping stats and players because of missing data points. I did not want the model to be trained on imperfect/incomplete training rows, and I did not want to replace empty data cells with medians or averages. Any player that did not have a necessary for the model was dropped, including players with only one valuation. This drastically decreased the amount of data I could use to train the model, but luckily I was still left with a solid amount. My data came from a Kaggle dataset, but I also scraped data directly from the Trasnfermarkt site, specifically trophy and achievement data.

    6. From the graphs and plots I created, I reached a few conclusions. The biggest one by far was choosing which ML algorithm was most appropriate for my data. I used plots in combination with statistical terms like R^2 and my test file to choose the optimal algorithm, eventually landing on Gradient Boosting. I also used it to check how well the prediction fit the data, and this helped me realize how far the outliers were from the prediction. For example, Lamine Yamal was very far off from the predicted value. However, the size of my dataset was able to mitigate the effect of the outliers. In fact, the vast majority of the data points sat very close to the prediction.

    7. I’m not sure. I did this because it related well to one of my passions, and I could see myself definitely taking this further as a hobby, but never marketing or selling the findings. It’s very likely that Transfermarkt’s valuations are based upon some sort of algirithm, and due to its highly-touted reputation, it’s unlikely my findings would ever have higher percieved accuracy than Transfermarkts. This was a very interesting project to conduct, but maybe next time I would try for a project that allowed for more interesting conclusions.

    • Ganapathi Pamula says:

      Garrett, scraping the trophy data from Transfermarkt on top of the Kaggle set was a smart way to add something the original dataset didn’t have. I also liked that you compared Ridge, Random Forest, and Gradient Boosting before picking one, instead of just going with the first model that worked. Capping Yamal at the dataset max makes sense adn was a smart choice. Another option could be predicting the log of market value, so the top players don’t skew things as much. Great job!

  6. Ansh Desai says:

    1. My project predicts the daily high temperature in Durham, NC for each of the next 7 days. I used Python and scikit-learn with about 26 years of data from the Open-Meteo API, and I compared Ridge regression and Gradient Boosting against two simple baselines: “same as today” and “the normal temperature for that date.” I trained on 2000–2021 and tested on 2022 and later.

    2. The assignment said to try a live API, and weather is perfect because new data comes in every day and you can check your predictions against reality. I wanted to try a more creative project, but ideation was too difficult and I kept shutting down my ideas, so I chose to go with a simple project and try and dive a little deeper to make it more challenging to understand for me and to learn from.

    3. For tomorrow, my model’s high was off by 4.1°F on average, versus 5.1°F for “same as today” and 6.5°F for the normal. It beats guessing for about 3 days; after that, it’s no better than the normal. In a live test during an October heat wave, the official forecast missed by 1.8°F on average and mine missed by 10.2°F, though that was only 5 days.

    4. I learned to pull data from a live API, work with time series in pandas, tune a model with scikit-learn, and use Git and GitHub in PyCharm. My biggest bug risk was accidentally using future data in a feature, which I checked by hand. I also had Git problems, like a first commit that grabbed too many files, which I undid and redid.

    5. The API has an archive for history and a live service for recent days, and the two don’t match exactly. They differed by about 1.6°F on average over 8 overlapping days, so my live predictions have a little extra noise. Pressure and dew point came only hourly, so I averaged each day’s readings into one number.

    6. The charts show my model beating the baselines at day 1, then drifting up until it matches the normal around day 4–5. The skill chart shows the same thing: +0.36 at day 1, near 0 by day 5–6. My model is useful for about 3 days and no better than random guessing after that.

    7. Next I’d add weather from cities to the west (Nashville, Atlanta, Charlotte) so the model can see storm/heat fronts coming. I wouldn’t try to sell it, because there are already much better free forecasters.

  7. Ganapathi Pamula says:

    1. Please start with a full description of the nature of your first ML project.

    My project explored recognizing Bonji in photographs where they appear alongside Japanese writing, decorations, and other marks throughout Japan. Bonji are Sanskrit characters that are used in Japanese Buddhism.

    I worked on two related tasks. First, I tested whether a model could classify an already-selected character image as Bonji or non-Bonji. The code converted each image to grayscale, adjusted its contrast, and fitted it into a 32-by-32 square. HOG measured the directions of the strokes’ edges, producing 324 numerical features. Logistic regression then learned which combinations of those measurements were associated with Bonji.

    Second, I trained Faster R-CNN to locate Bonji within full photographs. It first suggests possible object regions, then checks those regions and adjusts their boxes. I adapted a pretrained model using my own annotations.

    For my broader Bonji research, I usually train YOLO on my annotated photographs. This assignment gave me an opportunity to explore another detector and see how that works.

    2. What was your primary motivation to explore the project you completed?

    This project grew out of my ongoing Bonji research. I created a research consortium for Bonji ML and traveled across Japan this summer, taking thousands of photographs and working with temples and universities.

    Bonji are treated as sacred in Japanese Buddhism, but many people who encounter them cannot read them or understand what they represent. I wanted to explore whether machine learning could help identify these characters in photographs, making it easier to connect them with their readings and religious meanings.
    The photographs also presented a useful challenge because the characters appear on stone, paper, fabric, and other surfaces. Their appearance changes with lighting, wear, carving depth, and camera angle. I wanted to understand how well a model could handle that variation.

    3. Share some insights into what predictions you were able to make on the dataset you used for your project.

    For the new experiment, I separated the 132 photographs into a training pool of 105 and a held-out test set of 27. Those test photographs contained 1,206 labeled character images: 194 Bonji and 1,012 non-Bonji.

    The character classifier achieved 78.84 percent balanced accuracy. Balanced accuracy gives Bonji and non-Bonji equal importance, which matters because the test set contained many more non-Bonji examples. It correctly identified 174 of the 194 Bonji, although it also incorrectly labeled 324 non-Bonji examples as Bonji.

    Finding characters in full photographs was much harder. Faster R-CNN found 20 of the 194 annotated Bonji, giving it 10.31 percent recall. Its precision was 60.61 percent, meaning roughly six out of every ten boxes it kept matched an annotated Bonji.

    Compared with the HOG scanning baseline, Faster R-CNN reduced extra predictions from about 185 per photograph to about half a box per photograph. However, it also found fewer of the annotated Bonji. The two models offered different tradeoffs between finding characters and producing extra guesses.

    4. What new skills did you pick up from this project? Did you encounter any unexpected problems, and how did you resolve them?

    I developed a better understanding of image preprocessing, feature extraction, model training, and evaluation. I also learned how precision, recall, balanced accuracy, and F1 reveal different aspects of a model’s performance.

    One surprising issue was how misleading overall accuracy could be. Always predicting non-Bonji achieved 83.91 percent accuracy because most test examples were non-Bonji. Looking at balanced accuracy and the individual prediction counts made that problem clear.

    I also learned why photographs need to stay together when splitting the dataset. Putting characters from the same photograph into both training and testing could make the results look stronger because the model would encounter similar backgrounds and image conditions.

    Another useful lesson involved choosing training settings. I compared two and four epochs, meaning two and four passes through the training data, and tested several score thresholds on development data. Two epochs and a threshold of 0.7 performed best in that comparison. More training did not automatically improve the result.

    Overall, I got more familiarity with Faster R-CNN frameworks as I had mostly been using YOLO up to this point.

    5. What was the most challenging part of mining and refining your dataset?

    I collected the photographs myself over a month on site in Japan rather than obtaining them through an API. My first dataset release contained 67 photographs. The newer dataset contained 132 photographs taken at Zentsūji in Kagawa Prefecture with the temple’s support.

    One of the hardest parts was turning those photographs into useful training examples. Bonji appeared at different sizes, on different surfaces, and under very different lighting conditions. Some were shallow and worn; others had deep carving and strong shadows. A full photograph could also contain many surrounding characters and decorations.

    Drawing consistent annotation boxes was important because those boxes supplied both the training examples and the reference used to evaluate predictions. If a visible Bonji was left unlabeled, a correct detection could be counted as an extra prediction.

    I also had to keep track of which photographs belonged to each split. Reviewing annotation completeness and expanding the range of photographed settings remain important next steps.

    6. What conclusions can you derive from the images and graphs you created?

    The graphs showed that performance varied considerably across scene types. Faster R-CNN found 19 of 120 annotated Bonji on framed glyph charts and one of 16 on paper charms. It found none of the 58 Bonji across book covers, wall diagrams, and the white garment group. A single overall score would hide those differences.

    The saved predictions also helped separate two problems. For 106 missed Bonji, there was no returned candidate box with enough overlap to count as a match. For another 68, a matching candidate existed but scored below the selected threshold.

    These findings give me specific questions for the next experiment: how to generate useful candidate boxes for more characters, and how to improve the scores assigned to real Bonji.

    The photographs also illustrate the visual variation the detector faces. Small, worn characters with little contrast look very different from large, deeply carved characters. Further experiments could examine how character size, surface, and lighting relate to performance. The current detector still misses too many characters for dependable use.

    7. What would you explore in your next ML project? Would you market or sell your findings?

    I would continue developing the Bonji detector with photographs from more temples, independently checked annotations, and verified photographs containing no Bonji. Including photographs without Bonji would help evaluate how often the detector produces false alarms in scenes where it should return no boxes.

    I would also compare YOLO and Faster R-CNN using the same data and evaluation rules. Since YOLO is already part of my broader project, that comparison would help me decide which approach deserves further development.

    Any new settings would be selected using development data, followed by evaluation on fresh test photographs. Changing settings after inspecting the current test results could improve the reported score without establishing that the model performs better on new images.

    I am making an app with a different recognition algorithm for the same problem with a consortium of universities and temples in Japan.

Leave a Reply