The NS1 test detects the non-structural protein NS1 of the dengue virus, which enters the bloodstream during dengue infection. This test recognizes distinct anti-dengue IgM and anti-dengue-IgG antibodies, making it useful for estimating whether dengue infections are primary or secondary.