Police are investigating a violent home invasion in the Perth suburb of Bedford.

At least two men believed to be armed with machetes smashed their way into a home in Broun Avenue last night and assaulted a 27-year-old man.

The victim is in Royal Perth Hospital with serious head injuries.

Police believe the victim may have known the offenders.