Code Monkey home page Code Monkey logo

pod-db-checker's Introduction

Podcast Index Database Analysis

This repository contains analysis pipelines supporting the PodcastIndex Database Dashboard:

  • Identify potential duplicate podcast entries in the database using the record linkage method.
  • Assess the quality of the database records with specific assessment criteria

Each of these analyses are performed weekly after the Podcast Index SQLite database is updated.

Duplicate Analysis

The methodology used to identify candidate duplicates is a technique called record linkage. At a high level, record linkage evaluates possible pairwise combinations of records from two data sets (or in the case of de-duplication, a single data set compared to itself) and determines if a given pair are likely to originate from the same entity. For a data set the size of the Podcast Index, it would be next to impossible to perform the analysis on all pairwise combinations of records. Next we describe the techniques for pruning the possible record combinations and the criteria used to categorize a given pair as a possible duplicate. Within R, we leverage the {reclin2} package that strikes a nice balance between performance and logical workflow for performing probabilistic record linkage and de-duplication.

Reducing Candidate Pairs

To reduce candidate record pairs supplied to the record linkage analyses, we apply a technique called blocking, which requires a pair of records to agree on one or multiple variables before it can be moved to further analysis. For this analysis, we are using the title and content hash variables as the blocking variables.

Comparing Pairs

With the candidate pairs available, the next step is to derive a similarity score between the records in a given pair based on a set of variables common between the records. Based on advice from the Pod Sage Dave Jones, we use the following variables for comparison:

  • URL
  • Newest Enclosure URL
  • Image URL

The statistical method used to derive the similarity score is the Jaro-Winkler distance metric, which is a great fit for the URL variables. The metric produces a score ranging from 0 (no match in any of the string characters) to 1 (perfect match between the strings). The algorithm can be customized with a threshold value that gives a cutoff for determining if the two strings are a likely match. For this analysis we use a threshold of 0.95, but this is up for discussion as there is a tradeoff between a threshold value and the number of candidate duplicate groupings identified. This is a subject that requires further attention going forward.

With the Jaro-WInkler distance score calculated, only the records with a score of 0.95 or above will be retained for further evaluation.

Derive Duplicate Groups

Once the candidate pairs are pruned with the threshold cutoff, the last step is to organize the potential duplicate records into groups. The dashboard presents each of these groups with the ability to drill down within each group and inspect the records that were considered duplicates.

Data Quality Assessments

The following assessments are performed to evaluate the quality of the Podcast Index:

  • Non-missing podcast GUID values
  • Unique Podcast GUID values
  • Non-missing podcast content hashes
  • Non-missing newest enclosure duration
  • Valid explicit flag values (0, 1)
  • Valid last HTTP status values
  • Valid newest enclosure duration (above 0)
  • Unique content hash values for all podcast entries in each host
  • Unique podcast title and image URL combinations
  • Unique podcast content hash, title, and image URL combinations

Tech Stack

Much like the ethos behind podcasting 2.0, the PodcastIndex Dashboard is proudly built on the foundations of open-source, using the R project for statistical computing with the following amazing packages:

  • {reclin2}: Record linkage toolkit for R.
  • {pointblank}: Data quality assessment and metadata reporting for data frames and database tables.
  • {DBI}: A database interface (DBI) definition for communication between R and RDBMSs.
  • {RSQLite}: R interface to SQLite.
  • {dplyr}: A grammar of data manipulation.
  • {dbplyr}: Database (DBI) backend for {dplyr}.
  • {tidyr}: TIdy messy data.
  • {logger}: A lightweight, modern and flexible, log4j and futile.logger inspired logging utility for R.
  • {arrow}: R binding to the Apache Arrow C++ library.
  • {s3fs}: Access Amazon Web Service S3 as if it were a file system.
  • {anytime}: Anything to POSIXct or Date converter.

The scripts for performing the schedule analyses are the following:

Each of these scripts are run weekly via GitHub actions.

pod-db-checker's People

Contributors

rpodcast avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.