There might, of course, be a reason behind your teacher's behaviour that might be unobvious to you as a 17-year old:
While you possibly don't think of yourself in that way, you ARE, actually, a young female human ADULT.
KIt is entirely natural that TEACHERS occasionally become romantically attracted to students, even though such developed feelings goes against their own deeply-held ethical principles.
Now, an EXPERIENCED teacher will have developed internal mental strategies in how to cope with that unwanted emotional development within themselves, an INEXPERIENCED, but highly ethical, teacher, might become so embarassed and ashamed of his own awry emotions that their BEHAVIOUR towards the student becomes obviously restrained, characterized by flustered speech, active avoidance of eye contact and so on.
Basically, BOTH the experienced and the inexperienced teacher know that it would be unethical to seek to "live out" such am involuntary romantic attachment, and that it is actually their own personal duty to quell their own emotions as quickly as possible.
But, the experienced teacher knows how to effectively deal with this situation without the student ever knowing of the fleeting romantic attraction the teacher has felt towards her.
--------------------------------------------------------
You shouldn't be frightened if this happens to be the "real reason" behind your teacher's attitude, nor should you push him to "admit" it (even if it is true, he will just deny it), that adult males occasionally feel attracted to females they know it is wrong to be attracted to, is normal. If this happens to be true (which I don't particularly believe in), he is not a pedophile, nor is he trying to lure you into an unhealthy relationship. Nor does it cloud his PROFESSIONAL judgment of your work. Nor should you be afraid to confront him on those issues where you feel he is discriminating towards you as a pupil, relative to his other pupils.
----------------------------------
But, as has been said several times over, many other at least as plausible reasons behind your teacher's behaviour exist.
-----------------------------------------------------
Basically, my advice to you is that you should take contact with your teacher, and tell him that YOU feel it is odd that he sort of ignores you on the personal plane, relative to other students, and that although you appreciate his conscientious effort to show you where your flaws/mistakes are, the very lack of otherwise personal/normal communication between the two of you make you feel somewhat uncomfortable.
----------------------------------------------------------------------------------------
Have a TRUST in your teacher's basic professionality, and adress him as a student in the sense that you make clear that his way of behaving towards you actually has bothered YOU, while making clear that you principally make it explicit to him that you believe he has had his best intentions towards you, i.e, that you say you think he has been overly considerate to a hypothesized shyness in your personality that you actually do not have. Tell him that you actually don't mind him giving you the same informal attention he gives other students, and that, in fact, the manner in which he does NOT give you that same friendly/chatty attention has left you puzzled and uncertain about how he perceives you as a student.
That is, make it in your conversation with him an UNQUESTIONED PREMISE that he is, indeed, wholly professional, but that he has somehow misjudged your personality out of misplaced considerateness.