Project name

ShelfMatch

Motto

Find your next great read with your taste and your local library's shelves in mind.

Inspiration

I have often struggled to choose a book, only to start one and lose interest. As someone motivated by numbers, I wanted a recommendation grounded in what readers with similar tastes actually enjoyed.

But finding an interesting book is only part of the problem. If I am already at the library, I also want to know what I can borrow there.

Vancouver Public Library offers personalized, staff-curated reading suggestions through Books Just for You. That inspired me to explore a complementary experience: an automated recommendation tool for the moment someone is browsing and wants to choose a book. ShelfMatch brings personal taste and library availability into the same decision.

I also want that experience to feel approachable for people who are less comfortable with technology, including seniors who walk into a library looking for their next read. The longer-term vision is a simple interface on a library computer or kiosk, usable independently or with a little help from staff. Readers should be able to describe what they enjoy without needing to understand recommendation algorithms.

What it does

ShelfMatch is a VPL-focused book recommendation prototype. A reader selects three to twenty favourite books, optionally chooses preferred genres, and picks a branch. They can then prioritize:

  • Available at My Branch: recommendations with a copy available locally.
  • Available Anywhere in VPL: recommendations available somewhere in the system.
  • Best Matches: recommendations from the collection, even if every copy is checked out.

The app returns up to ten suggestions, limits repeated authors, and shows local and system-wide copy counts. Each recommendation links to a VPL catalogue search. Cards also include a circular match-score indicator, giving readers a numerical way to compare suggestions.

The distinguishing feature is the connection between relevance and access: a strong recommendation should fit both what someone enjoys and how they want to borrow it.

The recommendation model uses real historical data. Library inventory is simulated, and ShelfMatch is not connected to a live VPL inventory API or affiliated with VPL.

How I built it

I built ShelfMatch individually using Python and Streamlit, with pandas and NumPy for data processing, SciPy for sparse matrices, and scikit-learn for normalization.

The recommendation pipeline uses Goodbooks-10k, a 2017 Goodreads dataset. The supplied data contains 10,000 books and approximately six million ratings from 53,424 readers.

I converted four- and five-star ratings into positive interactions and represented each book by the readers who liked it. After normalization, cosine similarity measures how much two books' audiences overlap. A candidate's base score is its average similarity to the user's favourites.

I combined this collaborative signal with genre preferences. A curated mapping cleans up Goodreads shelf tags, and matching genres can increase a candidate's score by up to 25%. Availability then determines which titles are eligible, while an author-diversity rule keeps the list from being dominated by one writer.

For the displayed match score, I scale each book relative to the strongest unseen match before inventory filtering. That reference stays fixed when the reader changes branches or availability preferences, so filtering cannot make a weaker match appear stronger. The score describes relative relevance, not a probability of enjoyment.

Because I did not have live VPL inventory access, I built a reproducible simulator. It models collection inclusion, popularity-related copy counts, checkout probabilities, and branch allocation. This lets the prototype demonstrate the full recommendation workflow while clearly labelling the availability data as synthetic.

Challenges I ran into

Making availability meaningful. Library-wide ownership, system-wide availability, and copies at a specific branch are different quantities. Keeping them separate was essential to making the three recommendation modes behave correctly.

Turning messy tags into useful preferences. Goodreads shelves include aliases and personal labels. I used an explicit genre map and relative tag evidence, with thresholds to reduce weak labels and avoid double-counting aliases.

Balancing the inventory simulation. Early iterations produced too much variation between comparable books or crowded popular titles at the maximum copy count. I revised the model to use a bounded, nonlinear relationship with popularity so the simulation could support a more useful demonstration. These remain assumptions, not a reconstruction of VPL's collection.

Making the interface clear. Early recommendation cards had awkward formatting and repeated information that distracted from the books. I refined the layout, grouped related details, and reduced repeated notices so readers could focus on choosing a title. This reinforced how much the presentation matters, especially when designing for people who may not be comfortable navigating an unfamiliar app.

Knowing whether the recommendations are actually good. Producing a ranked list is not the same as proving that readers will enjoy it. I can explain the scoring and check that the filters work, but I do not yet know how accurate or useful the recommendations are. That is an important limitation of the current prototype and a priority for the next stage.

Accomplishments that I'm proud of

I connected an end-to-end data pipeline to an interactive product: historical ratings become recommendations, user-selected genres adjust the ranking, and availability changes which books are shown.

I am especially proud of moving beyond a generic list of similar books. The three borrowing priorities let readers express a real trade-off between finding the strongest match and finding something they can pick up at their chosen branch.

Completing the project individually also meant working across data preparation, recommendation logic, simulation, interface design, and integration.

What I learned

A useful recommender needs more than a similarity score. Data cleaning, diversity, practical constraints, and a clear interface all shape whether someone can use the result.

I also learned that a plausible recommendation is not evidence of accuracy. The current model provides a starting point, but its scoring choices need evaluation and feedback from real readers. Adding more inputs or a more complex algorithm would only be an improvement if it leads to more useful recommendations.

What's next for ShelfMatch

Measure recommendation quality. I want to compare the model with simple popularity-based and collaborative-only baselines, using held-out ratings and measures such as Recall and NDCG. Reader testing would then help answer the more practical question: did someone find a book they actually enjoyed? The current prototype does not yet establish that.

Build a more sophisticated model. I would explore richer inputs such as reading pace, book length, language, themes, mood, and books a reader disliked, where suitable data is available. I also want to combine audience similarity with information about the books themselves and tune the balance between relevance, variety, and discovery. These preferences could be optional so that more personalization does not mean a longer, harder form.

Create a feedback loop with library readers. After reading a recommended book, patrons could optionally rate it and say whether the recommendation suited them. This would provide direct feedback for evaluating and improving the model. With enough participation and coverage, a library partnership could gradually build a VPL-specific ratings dataset and reduce reliance on third-party Goodreads data, potentially supporting recommendations primarily from its own readers' ratings. That would require permission-based collection and care for borrowing privacy; it is a future direction, not an existing feature.

Make the experience accessible in the library. I would test the interface with seniors and other readers who are less familiar with technology, then refine the wording, text size, contrast, keyboard navigation, and number of steps. A library computer or kiosk could make the service available without requiring a personal smartphone, with staff assistance when useful. Accessibility is a design goal that needs testing with the people it is meant to serve.

Connect current catalogue and availability data. With authorized VPL catalogue and inventory access, I would replace the simulation with current holdings, match books to the correct editions, and show when availability was last refreshed. I would also update the book data: a 2017 snapshot cannot cover recent releases or fully reflect current tastes.

The goal is simple: help someone walk into a library unsure what to read and leave with a book they are excited to start.

Created by

Cristian Batista · Solo project · HackCamp 2026

References

Share this project:

Updates

Submission history