| Algorithm 2 TSVDD algorithm |
| Input: Training dataset Train |
| Testing dataset: Test = {x1, x2, …, xn} |
| Process: |
| 1: Derive the decision model f of SVDD use training dataset; |
| 2: While (Test ≠ φ) do |
| 3: if f(xi) > 0, (i = 1, 2, …, n) |
| 4: xi is marked as an outlier; |
| 5: else |
| 6: xi is marked as an adequate sample; |
| 7: end if; |
| 8: end while; |
| Output: the outlier set |