Skip to main content
. 2013 Sep 25;13(10):12929–12942. doi: 10.3390/s131012929
Algorithm 1. Pig wasting disease sound classification procedure.
  1. Input: a matrix of training samples

    A = [A1, A2,…, Ac] ∈ ℝm×n for c classes, a test sample y ∈ ℝm.

  2. Normalize the columns of A to have unit l2 norm.

  3. Solve the l1 minimization problem: α^1=argminαα1subject toy=Aα.

  4. Compute the mean coefficient value of each class.

    mci=1ni1niδi(α^1)fori=1,2,,c

    mci: mean coefficient value of ith class;

    ni: number of elements in ith class;

    δi(α̂1): characteristic function that selects the coefficients associated with the ith class;

  5. Sort the class in descending order according with mean coefficient value of classes.

  6. Output: pig wasting diseases, which have large mean coefficient value.