It is a current mirror but the two NPN are unmatched i.e they have different emitter Areas i.e different gains.
According to current density, the current flowing through R is function of Temperature.
Such sensors are used in many old ics for temperature measure of die